From d00c4767a99f908b0db01923fabac94d38391563 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 13 Aug 2024 00:10:47 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.363.1 --- .speakeasy/gen.lock | 52 +- .speakeasy/gen.yaml | 6 +- .speakeasy/workflow.lock | 10 +- CONTRIBUTING.md | 26 + README.md | 277 ++- RELEASES.md | 10 +- USAGE.md | 63 +- build.gradle | 1 + codeSamples.yaml | 2152 +++++++---------- docs/models/components/Asset.md | 42 +- docs/models/components/AssetIpfs.md | 12 +- docs/models/components/AssetPatchPayload.md | 12 +- docs/models/components/AssetSpec.md | 4 +- docs/models/components/AssetStatus.md | 12 +- docs/models/components/AssetStorage.md | 8 +- docs/models/components/Attestation.md | 20 +- docs/models/components/AttestationIpfs.md | 4 +- docs/models/components/AttestationStorage.md | 8 +- docs/models/components/Clip.md | 10 +- docs/models/components/ClipPayload.md | 6 +- docs/models/components/ClipStrategy.md | 6 +- docs/models/components/CreateRoomResponse.md | 2 +- docs/models/components/CreatorId1.md | 8 +- docs/models/components/Custom.md | 2 +- docs/models/components/Domain.md | 8 +- docs/models/components/DvrPlayback.md | 12 +- docs/models/components/Export.md | 6 +- docs/models/components/ExportData.md | 6 +- docs/models/components/ExportTaskParams1.md | 6 +- docs/models/components/ExportTaskParams2.md | 6 +- docs/models/components/FfmpegProfile.md | 12 +- docs/models/components/GetRoomUserResponse.md | 10 +- docs/models/components/Hash.md | 4 +- docs/models/components/Hrn.md | 1 + docs/models/components/Input2.md | 4 +- docs/models/components/InputCreatorId1.md | 8 +- docs/models/components/Ipfs1.md | 6 +- docs/models/components/IpfsExportParams.md | 8 +- docs/models/components/IpfsFileInfo.md | 4 +- docs/models/components/LastFailure.md | 8 +- docs/models/components/Message.md | 12 +- docs/models/components/Meta.md | 14 +- docs/models/components/Multistream.md | 6 +- docs/models/components/MultistreamTarget.md | 10 +- .../components/MultistreamTargetInput.md | 4 +- .../MultistreamTargetPatchPayload.md | 4 +- .../components/NewAssetFromUrlPayload.md | 16 +- docs/models/components/NewAssetPayload.md | 22 +- .../models/components/NewAssetPayloadIpfs1.md | 6 +- .../components/NewAssetPayloadStorage.md | 2 +- docs/models/components/NewStreamPayload.md | 16 +- .../NewStreamPayloadRecordingSpec.md | 8 + docs/models/components/Output.md | 10 +- docs/models/components/Outputs.md | 10 +- docs/models/components/Params.md | 14 +- docs/models/components/Participants.md | 8 +- docs/models/components/PlaybackInfo.md | 8 +- .../models/components/PlaybackInfoMetaType.md | 1 + docs/models/components/PlaybackInfoSource.md | 18 +- docs/models/components/PlaybackPolicy.md | 8 +- docs/models/components/Pull.md | 4 +- .../components/RealtimeViewershipMetric.md | 16 + docs/models/components/RecordingSpec.md | 10 +- docs/models/components/Request.md | 6 +- docs/models/components/Response.md | 10 +- docs/models/components/Room.md | 14 +- docs/models/components/RoomUserPayload.md | 6 +- docs/models/components/RoomUserResponse.md | 6 +- .../components/RoomUserUpdatePayload.md | 6 +- docs/models/components/Session.md | 54 +- docs/models/components/SigningKey.md | 14 +- docs/models/components/Source1.md | 12 +- docs/models/components/Source3.md | 18 +- docs/models/components/Spec.md | 4 +- docs/models/components/Status.md | 8 +- docs/models/components/Storage.md | 2 +- docs/models/components/Storage1.md | 4 +- docs/models/components/Storage2.md | 8 +- docs/models/components/StorageStatus.md | 12 +- docs/models/components/Stream.md | 70 +- docs/models/components/StreamMultistream.md | 6 +- docs/models/components/StreamPatchPayload.md | 19 +- docs/models/components/StreamPull.md | 4 +- docs/models/components/StreamRecordingSpec.md | 6 +- docs/models/components/Target.md | 6 +- docs/models/components/TargetAddPayload.md | 12 +- .../models/components/TargetAddPayloadSpec.md | 2 +- docs/models/components/TargetOutput.md | 4 +- docs/models/components/TargetSpec.md | 2 +- docs/models/components/Task.md | 24 +- docs/models/components/TaskExportData.md | 12 +- docs/models/components/TaskHls.md | 6 +- docs/models/components/TaskInput.md | 2 +- docs/models/components/TaskIpfs.md | 10 +- docs/models/components/TaskMp4.md | 6 +- docs/models/components/TaskOutputs.md | 8 +- docs/models/components/TaskStatus.md | 14 +- docs/models/components/TaskStorage.md | 2 +- docs/models/components/Tasks.md | 6 +- docs/models/components/Tracks.md | 28 +- docs/models/components/TranscodeFile.md | 18 +- docs/models/components/TranscodePayload.md | 18 +- docs/models/components/TranscodeProfile.md | 18 +- docs/models/components/Two.md | 8 +- docs/models/components/Upload.md | 14 +- docs/models/components/UsageMetric.md | 10 +- docs/models/components/VideoSpec.md | 12 +- docs/models/components/ViewershipMetric.md | 46 +- docs/models/components/Webhook.md | 16 +- docs/models/components/WebhookInput.md | 16 +- docs/models/components/WebhookLog.md | 20 +- .../operations/AddMultistreamTargetRequest.md | 8 +- .../AddMultistreamTargetResponse.md | 2 +- docs/models/operations/BreakdownBy.md | 22 +- docs/models/operations/CreateClipData.md | 8 +- docs/models/operations/CreateClipResponse.md | 4 +- docs/models/operations/CreateClipTask.md | 2 +- .../CreateMultistreamTargetResponse.md | 14 +- docs/models/operations/CreateRoomResponse.md | 14 +- .../operations/CreateRoomUserRequest.md | 8 +- .../operations/CreateRoomUserResponse.md | 14 +- .../operations/CreateSigningKeyResponse.md | 4 +- .../models/operations/CreateStreamResponse.md | 4 +- .../operations/CreateWebhookResponse.md | 4 +- docs/models/operations/DeleteAssetResponse.md | 2 +- .../DeleteMultistreamTargetResponse.md | 2 +- docs/models/operations/DeleteRoomResponse.md | 2 +- .../operations/DeleteRoomUserResponse.md | 2 +- .../operations/DeleteSigningKeyResponse.md | 2 +- .../models/operations/DeleteStreamResponse.md | 2 +- .../operations/DeleteWebhookResponse.md | 4 +- docs/models/operations/GetAssetResponse.md | 4 +- docs/models/operations/GetAssetsResponse.md | 4 +- docs/models/operations/GetClipsResponse.md | 4 +- ...rViewershipMetricsQueryParamBreakdownBy.md | 18 + .../GetCreatorViewershipMetricsRequest.md | 18 +- .../GetCreatorViewershipMetricsResponse.md | 4 +- .../GetMultistreamTargetResponse.md | 14 +- .../GetMultistreamTargetsResponse.md | 4 +- .../operations/GetPlaybackInfoResponse.md | 2 +- .../GetPublicViewershipMetricsData.md | 8 +- .../GetPublicViewershipMetricsResponse.md | 14 +- .../GetRealtimeViewershipNowRequest.md | 10 + .../GetRealtimeViewershipNowResponse.md | 12 + .../operations/GetRecordedSessionsRequest.md | 8 +- .../operations/GetRecordedSessionsResponse.md | 4 +- docs/models/operations/GetRoomResponse.md | 4 +- docs/models/operations/GetRoomUserResponse.md | 14 +- .../operations/GetSessionClipsResponse.md | 4 +- docs/models/operations/GetSessionResponse.md | 4 +- docs/models/operations/GetSessionsResponse.md | 4 +- .../operations/GetSigningKeyResponse.md | 4 +- .../operations/GetSigningKeysResponse.md | 4 +- docs/models/operations/GetStreamResponse.md | 4 +- docs/models/operations/GetStreamsRequest.md | 6 +- docs/models/operations/GetStreamsResponse.md | 4 +- docs/models/operations/GetTaskResponse.md | 2 +- docs/models/operations/GetTasksResponse.md | 4 +- .../operations/GetUsageMetricsRequest.md | 14 +- .../operations/GetUsageMetricsResponse.md | 4 +- .../operations/GetViewershipMetricsRequest.md | 16 +- .../GetViewershipMetricsResponse.md | 4 +- .../operations/GetWebhookLogResponse.md | 4 +- .../operations/GetWebhookLogsResponse.md | 4 +- docs/models/operations/GetWebhookResponse.md | 4 +- docs/models/operations/GetWebhooksResponse.md | 4 +- .../operations/QueryParamBreakdownBy.md | 5 +- .../RemoveMultistreamTargetResponse.md | 2 +- docs/models/operations/RequestUploadData.md | 4 +- .../operations/RequestUploadResponse.md | 14 +- .../operations/ResendWebhookResponse.md | 4 +- .../operations/StartPullStreamResponse.md | 2 +- .../operations/StartRoomEgressRequest.md | 8 +- .../operations/StartRoomEgressResponse.md | 2 +- .../operations/StopRoomEgressResponse.md | 2 +- .../operations/TerminateStreamResponse.md | 2 +- .../operations/TranscodeVideoResponse.md | 4 +- docs/models/operations/UpdateAssetRequest.md | 8 +- docs/models/operations/UpdateAssetResponse.md | 4 +- .../UpdateMultistreamTargetRequest.md | 8 +- .../UpdateMultistreamTargetResponse.md | 2 +- .../operations/UpdateRoomUserRequest.md | 10 +- .../operations/UpdateRoomUserResponse.md | 2 +- .../operations/UpdateSigningKeyRequest.md | 8 +- .../operations/UpdateSigningKeyRequestBody.md | 8 +- .../operations/UpdateSigningKeyResponse.md | 2 +- docs/models/operations/UpdateStreamRequest.md | 8 +- .../models/operations/UpdateStreamResponse.md | 2 +- .../models/operations/UpdateWebhookRequest.md | 8 +- .../operations/UpdateWebhookResponse.md | 4 +- docs/models/operations/UploadAssetData.md | 8 +- .../operations/UploadAssetDataOutput.md | 8 +- docs/models/operations/UploadAssetResponse.md | 16 +- docs/sdks/accesscontrol/README.md | 129 +- docs/sdks/asset/README.md | 202 +- docs/sdks/metrics/README.md | 185 +- docs/sdks/multistream/README.md | 136 +- docs/sdks/playback/README.md | 24 +- docs/sdks/room/README.md | 245 +- docs/sdks/session/README.md | 107 +- docs/sdks/stream/README.md | 385 ++- docs/sdks/task/README.md | 48 +- docs/sdks/transcode/README.md | 48 +- docs/sdks/webhook/README.md | 216 +- .../livepeer/livepeer/AccessControl.java | 312 ++- .../java/studio/livepeer/livepeer/Asset.java | 405 ++-- .../studio/livepeer/livepeer/Livepeer.java | 19 +- .../studio/livepeer/livepeer/Metrics.java | 433 +++- .../studio/livepeer/livepeer/Multistream.java | 326 ++- .../studio/livepeer/livepeer/Playback.java | 76 +- .../java/studio/livepeer/livepeer/Room.java | 560 +++-- .../livepeer/livepeer/SDKConfiguration.java | 30 +- .../livepeer/livepeer/SecuritySource.java | 2 +- .../studio/livepeer/livepeer/Session.java | 262 +- .../java/studio/livepeer/livepeer/Stream.java | 693 ++++-- .../java/studio/livepeer/livepeer/Task.java | 120 +- .../studio/livepeer/livepeer/Transcode.java | 87 +- .../studio/livepeer/livepeer/Webhook.java | 511 ++-- .../livepeer/models/components/Asset.java | 249 +- .../livepeer/models/components/AssetIpfs.java | 57 +- .../models/components/AssetNftMetadata.java | 16 +- .../components/AssetNftMetadataTemplate.java | 13 +- .../models/components/AssetPatchPayload.java | 37 +- .../models/components/AssetPhase.java | 13 +- .../models/components/AssetSource3Type.java | 13 +- .../models/components/AssetSourceType.java | 13 +- .../livepeer/models/components/AssetSpec.java | 19 +- .../models/components/AssetStatus.java | 50 +- .../models/components/AssetStorage.java | 20 +- .../livepeer/models/components/AssetType.java | 13 +- .../models/components/AssetVideoSpecType.java | 13 +- .../models/components/Attestation.java | 59 +- .../models/components/AttestationIpfs.java | 53 +- .../models/components/AttestationStorage.java | 20 +- .../models/components/Attestations.java | 19 +- .../components/CatalystPipelineStrategy.java | 13 +- .../livepeer/models/components/Clip.java | 65 +- .../models/components/ClipPayload.java | 65 +- .../models/components/ClipStrategy.java | 61 +- .../livepeer/models/components/Content.java | 16 +- .../models/components/CreateRoomResponse.java | 30 +- .../livepeer/models/components/CreatorId.java | 33 +- .../models/components/CreatorId1.java | 19 +- .../models/components/CreatorIdType.java | 13 +- .../models/components/Credentials.java | 19 +- .../livepeer/models/components/Custom.java | 57 +- .../livepeer/models/components/Domain.java | 19 +- .../models/components/DvrPlayback.java | 50 +- .../livepeer/models/components/Encoder.java | 13 +- .../models/components/Encryption.java | 17 +- .../models/components/EncryptionOutput.java | 16 +- .../livepeer/models/components/Events.java | 13 +- .../livepeer/models/components/Export.java | 18 +- .../models/components/ExportData.java | 18 +- .../models/components/ExportTaskParams.java | 37 +- .../models/components/ExportTaskParams1.java | 17 +- .../models/components/ExportTaskParams2.java | 17 +- .../models/components/FfmpegProfile.java | 76 +- .../livepeer/models/components/Fmp4.java | 17 +- .../components/GetRoomUserResponse.java | 95 +- .../livepeer/models/components/Hash.java | 45 +- .../livepeer/models/components/Hls.java | 17 +- .../livepeer/models/components/Hrn.java | 14 +- .../livepeer/models/components/Input.java | 37 +- .../livepeer/models/components/Input1.java | 17 +- .../livepeer/models/components/Input2.java | 25 +- .../models/components/InputCreatorId.java | 37 +- .../models/components/InputCreatorId1.java | 19 +- .../models/components/InputCreatorIdType.java | 13 +- .../livepeer/models/components/InputType.java | 13 +- .../livepeer/models/components/Ipfs.java | 37 +- .../livepeer/models/components/Ipfs1.java | 18 +- .../models/components/IpfsExportParams.java | 39 +- .../models/components/IpfsFileInfo.java | 47 +- .../livepeer/models/components/IsMobile.java | 37 +- .../livepeer/models/components/IsMobile1.java | 12 +- .../models/components/LastFailure.java | 76 +- .../livepeer/models/components/Live.java | 12 +- .../livepeer/models/components/Location.java | 20 +- .../livepeer/models/components/Message.java | 37 +- .../livepeer/models/components/Meta.java | 59 +- .../livepeer/models/components/Mp4.java | 17 +- .../models/components/Multistream.java | 37 +- .../models/components/MultistreamTarget.java | 91 +- .../components/MultistreamTargetInput.java | 48 +- .../MultistreamTargetPatchPayload.java | 48 +- .../livepeer/models/components/Name.java | 13 +- .../components/NewAssetFromUrlPayload.java | 96 +- .../models/components/NewAssetPayload.java | 94 +- .../components/NewAssetPayloadEncryption.java | 17 +- .../components/NewAssetPayloadIpfs.java | 37 +- .../components/NewAssetPayloadIpfs1.java | 18 +- .../components/NewAssetPayloadStorage.java | 18 +- .../models/components/NewStreamPayload.java | 134 +- .../NewStreamPayloadRecordingSpec.java | 112 + .../models/components/NftMetadata.java | 16 +- .../components/NftMetadataTemplate.java | 13 +- .../livepeer/models/components/One.java | 12 +- .../livepeer/models/components/Output.java | 42 +- .../livepeer/models/components/Outputs.java | 22 +- .../livepeer/models/components/Params.java | 26 +- .../models/components/Participants.java | 76 +- .../livepeer/models/components/Phase.java | 13 +- .../livepeer/models/components/Pinata.java | 37 +- .../livepeer/models/components/Pinata1.java | 16 +- .../livepeer/models/components/Pinata2.java | 17 +- .../models/components/PlaybackInfo.java | 19 +- .../models/components/PlaybackInfoHrn.java | 13 +- .../PlaybackInfoMetaDvrPlaybackType.java | 13 +- .../components/PlaybackInfoMetaType.java | 14 +- .../models/components/PlaybackInfoSource.java | 82 +- .../models/components/PlaybackInfoType.java | 13 +- .../models/components/PlaybackPolicy.java | 92 +- .../models/components/PrimaryType.java | 13 +- .../livepeer/models/components/Profile.java | 13 +- .../livepeer/models/components/Pull.java | 43 +- .../components/RealtimeViewershipMetric.java | 397 +++ .../models/components/RecordingSpec.java | 86 +- .../models/components/RecordingStatus.java | 13 +- .../models/components/Renditions.java | 16 +- .../livepeer/models/components/Request.java | 82 +- .../livepeer/models/components/Response.java | 61 +- .../livepeer/models/components/Room.java | 80 +- .../models/components/RoomEgressPayload.java | 17 +- .../models/components/RoomUserPayload.java | 63 +- .../models/components/RoomUserResponse.java | 60 +- .../components/RoomUserUpdatePayload.java | 68 +- .../livepeer/models/components/Security.java | 18 +- .../livepeer/models/components/Session.java | 400 +-- .../models/components/SignatureType.java | 13 +- .../models/components/SigningKey.java | 123 +- .../livepeer/models/components/Source.java | 41 +- .../livepeer/models/components/Source1.java | 37 +- .../livepeer/models/components/Source3.java | 95 +- .../models/components/SourceType.java | 13 +- .../livepeer/models/components/Spec.java | 19 +- .../livepeer/models/components/Status.java | 34 +- .../livepeer/models/components/Storage.java | 18 +- .../livepeer/models/components/Storage1.java | 23 +- .../livepeer/models/components/Storage2.java | 19 +- .../models/components/StorageCredentials.java | 19 +- .../models/components/StorageStatus.java | 50 +- .../models/components/StorageType.java | 13 +- .../livepeer/models/components/Stream.java | 474 ++-- .../models/components/StreamIsMobile.java | 37 +- .../models/components/StreamLocation.java | 20 +- .../models/components/StreamMultistream.java | 37 +- .../models/components/StreamPatchPayload.java | 140 +- .../models/components/StreamPull.java | 43 +- .../components/StreamRecordingSpec.java | 73 +- .../models/components/StreamUserTags.java | 46 +- .../livepeer/models/components/Target.java | 54 +- .../models/components/TargetAddPayload.java | 54 +- .../components/TargetAddPayloadSpec.java | 32 +- .../models/components/TargetOutput.java | 51 +- .../models/components/TargetSpec.java | 32 +- .../livepeer/models/components/Task.java | 115 +- .../models/components/TaskExportData.java | 50 +- .../livepeer/models/components/TaskHls.java | 30 +- .../livepeer/models/components/TaskInput.java | 30 +- .../livepeer/models/components/TaskIpfs.java | 92 +- .../livepeer/models/components/TaskMp4.java | 30 +- .../models/components/TaskOutputIpfs.java | 17 +- .../models/components/TaskOutputs.java | 20 +- .../livepeer/models/components/TaskPhase.java | 13 +- .../models/components/TaskStatus.java | 65 +- .../models/components/TaskStorage.java | 30 +- .../livepeer/models/components/TaskType.java | 13 +- .../livepeer/models/components/Tasks.java | 60 +- .../livepeer/models/components/Three.java | 37 +- .../livepeer/models/components/Tracks.java | 170 +- .../models/components/TranscodeFile.java | 77 +- .../models/components/TranscodePayload.java | 77 +- .../components/TranscodePayloadStorage.java | 37 +- .../TranscodePayloadStorageCredentials.java | 17 +- .../TranscodePayloadStorageType.java | 13 +- .../models/components/TranscodeProfile.java | 128 +- .../components/TranscodeProfileEncoder.java | 13 +- .../components/TranscodeProfileProfile.java | 13 +- .../livepeer/models/components/Two.java | 19 +- .../livepeer/models/components/Type.java | 13 +- .../livepeer/models/components/Upload.java | 86 +- .../models/components/UsageMetric.java | 91 +- .../livepeer/models/components/UserTags.java | 46 +- .../livepeer/models/components/UserTags3.java | 37 +- .../livepeer/models/components/Version.java | 13 +- .../livepeer/models/components/VideoSpec.java | 83 +- .../models/components/ViewershipMetric.java | 351 ++- .../livepeer/models/components/Webhook.java | 133 +- .../models/components/WebhookInput.java | 86 +- .../models/components/WebhookLog.java | 86 +- .../livepeer/models/errors/AuthException.java | 2 +- .../livepeer/models/errors/Error.java | 36 +- .../livepeer/models/errors/SDKError.java | 2 +- .../AddMultistreamTargetRequest.java | 32 +- .../AddMultistreamTargetRequestBuilder.java | 19 +- .../AddMultistreamTargetResponse.java | 46 +- .../models/operations/BreakdownBy.java | 25 +- .../models/operations/CreateClipData.java | 32 +- .../operations/CreateClipRequestBuilder.java | 16 +- .../models/operations/CreateClipResponse.java | 48 +- .../models/operations/CreateClipTask.java | 30 +- ...CreateMultistreamTargetRequestBuilder.java | 16 +- .../CreateMultistreamTargetResponse.java | 67 +- .../operations/CreateRoomRequestBuilder.java | 14 +- .../models/operations/CreateRoomResponse.java | 48 +- .../operations/CreateRoomUserRequest.java | 32 +- .../CreateRoomUserRequestBuilder.java | 19 +- .../operations/CreateRoomUserResponse.java | 67 +- .../CreateSigningKeyRequestBuilder.java | 14 +- .../operations/CreateSigningKeyResponse.java | 67 +- .../CreateStreamRequestBuilder.java | 16 +- .../operations/CreateStreamResponse.java | 67 +- .../CreateWebhookRequestBuilder.java | 16 +- .../operations/CreateWebhookResponse.java | 67 +- .../models/operations/DeleteAssetRequest.java | 17 +- .../operations/DeleteAssetRequestBuilder.java | 16 +- .../operations/DeleteAssetResponse.java | 46 +- .../DeleteMultistreamTargetRequest.java | 17 +- ...DeleteMultistreamTargetRequestBuilder.java | 16 +- .../DeleteMultistreamTargetResponse.java | 46 +- .../models/operations/DeleteRoomRequest.java | 17 +- .../operations/DeleteRoomRequestBuilder.java | 16 +- .../models/operations/DeleteRoomResponse.java | 46 +- .../operations/DeleteRoomUserRequest.java | 19 +- .../DeleteRoomUserRequestBuilder.java | 18 +- .../operations/DeleteRoomUserResponse.java | 46 +- .../operations/DeleteSigningKeyRequest.java | 17 +- .../DeleteSigningKeyRequestBuilder.java | 16 +- .../operations/DeleteSigningKeyResponse.java | 46 +- .../operations/DeleteStreamRequest.java | 17 +- .../DeleteStreamRequestBuilder.java | 16 +- .../operations/DeleteStreamResponse.java | 46 +- .../operations/DeleteWebhookRequest.java | 17 +- .../DeleteWebhookRequestBuilder.java | 16 +- .../operations/DeleteWebhookResponse.java | 67 +- .../livepeer/models/operations/From.java | 38 +- .../models/operations/GetAssetRequest.java | 17 +- .../operations/GetAssetRequestBuilder.java | 16 +- .../models/operations/GetAssetResponse.java | 67 +- .../operations/GetAssetsRequestBuilder.java | 14 +- .../models/operations/GetAssetsResponse.java | 68 +- .../models/operations/GetClipsRequest.java | 17 +- .../operations/GetClipsRequestBuilder.java | 16 +- .../models/operations/GetClipsResponse.java | 68 +- ...iewershipMetricsQueryParamBreakdownBy.java | 34 + .../GetCreatorViewershipMetricsRequest.java | 88 +- ...reatorViewershipMetricsRequestBuilder.java | 15 +- .../GetCreatorViewershipMetricsResponse.java | 68 +- .../GetMultistreamTargetRequest.java | 17 +- .../GetMultistreamTargetRequestBuilder.java | 16 +- .../GetMultistreamTargetResponse.java | 67 +- .../GetMultistreamTargetsRequestBuilder.java | 14 +- .../GetMultistreamTargetsResponse.java | 68 +- .../operations/GetPlaybackInfoRequest.java | 17 +- .../GetPlaybackInfoRequestBuilder.java | 16 +- .../operations/GetPlaybackInfoResponse.java | 46 +- .../GetPublicViewershipMetricsData.java | 101 +- .../GetPublicViewershipMetricsRequest.java | 17 +- ...PublicViewershipMetricsRequestBuilder.java | 16 +- .../GetPublicViewershipMetricsResponse.java | 48 +- .../GetRealtimeViewershipNowRequest.java | 275 +++ ...etRealtimeViewershipNowRequestBuilder.java | 66 + .../GetRealtimeViewershipNowResponse.java | 313 +++ .../GetRecordedSessionsRequest.java | 20 +- .../GetRecordedSessionsRequestBuilder.java | 19 +- .../GetRecordedSessionsResponse.java | 68 +- .../models/operations/GetRoomRequest.java | 17 +- .../operations/GetRoomRequestBuilder.java | 16 +- .../models/operations/GetRoomResponse.java | 67 +- .../models/operations/GetRoomUserRequest.java | 19 +- .../operations/GetRoomUserRequestBuilder.java | 18 +- .../operations/GetRoomUserResponse.java | 48 +- .../operations/GetSessionClipsRequest.java | 17 +- .../GetSessionClipsRequestBuilder.java | 16 +- .../operations/GetSessionClipsResponse.java | 68 +- .../models/operations/GetSessionRequest.java | 17 +- .../operations/GetSessionRequestBuilder.java | 16 +- .../models/operations/GetSessionResponse.java | 67 +- .../operations/GetSessionsRequestBuilder.java | 14 +- .../operations/GetSessionsResponse.java | 68 +- .../operations/GetSigningKeyRequest.java | 17 +- .../GetSigningKeyRequestBuilder.java | 16 +- .../operations/GetSigningKeyResponse.java | 67 +- .../GetSigningKeysRequestBuilder.java | 14 +- .../operations/GetSigningKeysResponse.java | 68 +- .../models/operations/GetStreamRequest.java | 17 +- .../operations/GetStreamRequestBuilder.java | 16 +- .../models/operations/GetStreamResponse.java | 67 +- .../models/operations/GetStreamsRequest.java | 30 +- .../operations/GetStreamsRequestBuilder.java | 19 +- .../models/operations/GetStreamsResponse.java | 68 +- .../models/operations/GetTaskRequest.java | 17 +- .../operations/GetTaskRequestBuilder.java | 16 +- .../models/operations/GetTaskResponse.java | 46 +- .../operations/GetTasksRequestBuilder.java | 14 +- .../models/operations/GetTasksResponse.java | 68 +- .../GetUsageMetricsQueryParamBreakdownBy.java | 13 +- .../GetUsageMetricsQueryParamTimeStep.java | 13 +- .../operations/GetUsageMetricsRequest.java | 85 +- .../GetUsageMetricsRequestBuilder.java | 15 +- .../operations/GetUsageMetricsResponse.java | 67 +- .../GetViewershipMetricsRequest.java | 103 +- .../GetViewershipMetricsRequestBuilder.java | 15 +- .../GetViewershipMetricsResponse.java | 68 +- .../operations/GetWebhookLogRequest.java | 19 +- .../GetWebhookLogRequestBuilder.java | 18 +- .../operations/GetWebhookLogResponse.java | 67 +- .../operations/GetWebhookLogsRequest.java | 17 +- .../GetWebhookLogsRequestBuilder.java | 16 +- .../operations/GetWebhookLogsResponse.java | 68 +- .../models/operations/GetWebhookRequest.java | 17 +- .../operations/GetWebhookRequestBuilder.java | 16 +- .../models/operations/GetWebhookResponse.java | 67 +- .../operations/GetWebhooksRequestBuilder.java | 14 +- .../operations/GetWebhooksResponse.java | 68 +- .../operations/QueryParamBreakdownBy.java | 18 +- .../models/operations/QueryParamFrom.java | 38 +- .../models/operations/QueryParamTimeStep.java | 13 +- .../models/operations/QueryParamTo.java | 38 +- .../livepeer/models/operations/Record.java | 37 +- .../RemoveMultistreamTargetRequest.java | 19 +- ...RemoveMultistreamTargetRequestBuilder.java | 18 +- .../RemoveMultistreamTargetResponse.java | 46 +- .../models/operations/RequestUploadData.java | 36 +- .../RequestUploadRequestBuilder.java | 16 +- .../operations/RequestUploadResponse.java | 48 +- .../operations/ResendWebhookRequest.java | 19 +- .../ResendWebhookRequestBuilder.java | 18 +- .../operations/ResendWebhookResponse.java | 67 +- .../operations/SDKMethodInterfaces.java | 76 +- .../operations/StartPullStreamRequest.java | 17 +- .../StartPullStreamRequestBuilder.java | 16 +- .../operations/StartPullStreamResponse.java | 46 +- .../operations/StartRoomEgressRequest.java | 32 +- .../StartRoomEgressRequestBuilder.java | 19 +- .../operations/StartRoomEgressResponse.java | 46 +- .../operations/StopRoomEgressRequest.java | 17 +- .../StopRoomEgressRequestBuilder.java | 16 +- .../operations/StopRoomEgressResponse.java | 46 +- .../livepeer/models/operations/Task.java | 17 +- .../operations/TerminateStreamRequest.java | 17 +- .../TerminateStreamRequestBuilder.java | 16 +- .../operations/TerminateStreamResponse.java | 46 +- .../livepeer/models/operations/TimeStep.java | 13 +- .../livepeer/models/operations/To.java | 38 +- .../TranscodeVideoRequestBuilder.java | 16 +- .../operations/TranscodeVideoResponse.java | 67 +- .../models/operations/UpdateAssetRequest.java | 32 +- .../operations/UpdateAssetRequestBuilder.java | 19 +- .../operations/UpdateAssetResponse.java | 67 +- .../UpdateMultistreamTargetRequest.java | 32 +- ...UpdateMultistreamTargetRequestBuilder.java | 19 +- .../UpdateMultistreamTargetResponse.java | 46 +- .../operations/UpdateRoomUserRequest.java | 34 +- .../UpdateRoomUserRequestBuilder.java | 21 +- .../operations/UpdateRoomUserResponse.java | 46 +- .../operations/UpdateSigningKeyRequest.java | 19 +- .../UpdateSigningKeyRequestBody.java | 46 +- .../UpdateSigningKeyRequestBuilder.java | 18 +- .../operations/UpdateSigningKeyResponse.java | 46 +- .../operations/UpdateStreamRequest.java | 32 +- .../UpdateStreamRequestBuilder.java | 19 +- .../operations/UpdateStreamResponse.java | 46 +- .../operations/UpdateWebhookRequest.java | 32 +- .../UpdateWebhookRequestBuilder.java | 19 +- .../operations/UpdateWebhookResponse.java | 67 +- .../operations/UploadAssetAssetTask.java | 17 +- .../models/operations/UploadAssetData.java | 32 +- .../operations/UploadAssetDataOutput.java | 32 +- .../operations/UploadAssetRequestBuilder.java | 16 +- .../operations/UploadAssetResponse.java | 50 +- .../models/operations/UploadAssetTask.java | 17 +- .../livepeer/utils/BackoffStrategy.java | 2 +- .../livepeer/utils/BigDecimalString.java | 2 +- .../livepeer/utils/BigIntegerString.java | 2 +- .../livepeer/utils/Deserializers.java | 2 +- .../livepeer/livepeer/utils/EventStream.java | 2 +- .../livepeer/utils/EventStreamLineReader.java | 2 +- .../livepeer/utils/EventStreamMessage.java | 2 +- .../livepeer/utils/EventStreamReader.java | 2 +- .../livepeer/livepeer/utils/FormMetadata.java | 2 +- .../livepeer/livepeer/utils/HTTPClient.java | 18 +- .../livepeer/livepeer/utils/HTTPRequest.java | 2 +- .../livepeer/utils/HeaderMetadata.java | 2 +- .../livepeer/livepeer/utils/Helpers.java | 2 +- .../studio/livepeer/livepeer/utils/Hook.java | 8 +- .../studio/livepeer/livepeer/utils/Hooks.java | 4 +- .../studio/livepeer/livepeer/utils/JSON.java | 2 +- .../livepeer/utils/LazySingletonValue.java | 2 +- .../livepeer/livepeer/utils/Metadata.java | 2 +- .../livepeer/utils/MultipartFormMetadata.java | 2 +- .../livepeer/utils/OneOfDeserializer.java | 2 +- .../livepeer/livepeer/utils/Options.java | 4 +- .../livepeer/utils/PathParamsMetadata.java | 2 +- .../livepeer/utils/QueryParameters.java | 5 +- .../livepeer/utils/QueryParamsMetadata.java | 2 +- .../livepeer/livepeer/utils/RequestBody.java | 3 +- .../livepeer/utils/RequestMetadata.java | 2 +- .../livepeer/livepeer/utils/Response.java | 2 +- .../livepeer/livepeer/utils/Retries.java | 5 +- .../livepeer/livepeer/utils/RetryConfig.java | 4 +- .../livepeer/livepeer/utils/Security.java | 5 +- .../livepeer/utils/SecurityMetadata.java | 2 +- .../livepeer/utils/SerializedBody.java | 2 +- .../livepeer/utils/SpeakeasyHTTPClient.java | 2 +- .../livepeer/utils/SpeakeasyMetadata.java | 2 +- .../livepeer/livepeer/utils/TypedObject.java | 2 +- .../studio/livepeer/livepeer/utils/Types.java | 2 +- .../studio/livepeer/livepeer/utils/Utils.java | 29 +- 610 files changed, 13262 insertions(+), 12060 deletions(-) create mode 100644 CONTRIBUTING.md create mode 100644 docs/models/components/NewStreamPayloadRecordingSpec.md create mode 100644 docs/models/components/RealtimeViewershipMetric.md create mode 100644 docs/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md create mode 100644 docs/models/operations/GetRealtimeViewershipNowRequest.md create mode 100644 docs/models/operations/GetRealtimeViewershipNowResponse.md create mode 100644 src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayloadRecordingSpec.java create mode 100644 src/main/java/studio/livepeer/livepeer/models/components/RealtimeViewershipMetric.java create mode 100644 src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.java create mode 100644 src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequest.java create mode 100644 src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java create mode 100644 src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index aefc5cd..865d76a 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,21 +1,21 @@ lockVersion: 2.0.0 id: b4f7f2df-6c4d-4150-a18f-8b74fe44eb22 management: - docChecksum: 542222dd6207ab2554389496b78b5e76 + docChecksum: b5a2c208bc36f884f74846e5b9777fb8 docVersion: 1.0.0 - speakeasyVersion: 1.308.1 - generationVersion: 2.342.6 - releaseVersion: 0.3.0 - configChecksum: f44218f4ba6cddd58e0635faecf3747e + speakeasyVersion: 1.363.1 + generationVersion: 2.396.0 + releaseVersion: 0.4.0 + configChecksum: 7d6f5183f0f9da49f264d8b474501c0d repoURL: https://github.com/livepeer/livepeer-java.git features: java: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.1 - core: 3.23.2 + core: 3.28.1 deprecations: 2.81.1 flattening: 2.81.1 - globalSecurity: 2.82.5 + globalSecurity: 2.82.7 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.1 @@ -23,7 +23,7 @@ features: nameOverrides: 2.81.3 nullables: 0.1.0 sdkHooks: 0.1.0 - unions: 0.0.4 + unions: 0.0.5 generatedFiles: - src/main/java/studio/livepeer/livepeer/SecuritySource.java - src/main/java/studio/livepeer/livepeer/SDKConfiguration.java @@ -81,6 +81,7 @@ generatedFiles: - src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java - src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java - src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java @@ -226,16 +227,19 @@ generatedFiles: - src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequest.java - src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java + - src/main/java/studio/livepeer/livepeer/models/operations/BreakdownBy.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequest.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java - src/main/java/studio/livepeer/livepeer/models/operations/From.java - src/main/java/studio/livepeer/livepeer/models/operations/To.java - src/main/java/studio/livepeer/livepeer/models/operations/TimeStep.java - - src/main/java/studio/livepeer/livepeer/models/operations/BreakdownBy.java + - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamBreakdownBy.java - src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequest.java - src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTimeStep.java - - src/main/java/studio/livepeer/livepeer/models/operations/QueryParamBreakdownBy.java + - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.java - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequest.java - src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java - src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequest.java @@ -272,6 +276,9 @@ generatedFiles: - src/main/java/studio/livepeer/livepeer/models/components/Renditions.java - src/main/java/studio/livepeer/livepeer/models/components/Stream.java - src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileProfile.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileEncoder.java + - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfile.java - src/main/java/studio/livepeer/livepeer/models/components/Profile.java - src/main/java/studio/livepeer/livepeer/models/components/Encoder.java - src/main/java/studio/livepeer/livepeer/models/components/FfmpegProfile.java @@ -280,13 +287,13 @@ generatedFiles: - src/main/java/studio/livepeer/livepeer/models/components/CreatorIdType.java - src/main/java/studio/livepeer/livepeer/models/components/CreatorId1.java - src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java + - src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayloadRecordingSpec.java - src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayload.java - src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java - src/main/java/studio/livepeer/livepeer/models/components/UserTags.java - src/main/java/studio/livepeer/livepeer/models/components/Multistream.java - src/main/java/studio/livepeer/livepeer/models/components/TargetSpec.java - src/main/java/studio/livepeer/livepeer/models/components/Target.java - - src/main/java/studio/livepeer/livepeer/models/components/RecordingSpec.java - src/main/java/studio/livepeer/livepeer/models/components/InputCreatorIdType.java - src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId1.java - src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java @@ -295,6 +302,7 @@ generatedFiles: - src/main/java/studio/livepeer/livepeer/models/components/Location.java - src/main/java/studio/livepeer/livepeer/models/components/Pull.java - src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java + - src/main/java/studio/livepeer/livepeer/models/components/RecordingSpec.java - src/main/java/studio/livepeer/livepeer/models/components/AssetType.java - src/main/java/studio/livepeer/livepeer/models/components/AssetSource3Type.java - src/main/java/studio/livepeer/livepeer/models/components/Source3.java @@ -339,9 +347,6 @@ generatedFiles: - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadStorage.java - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadEncryption.java - src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayload.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileProfile.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileEncoder.java - - src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfile.java - src/main/java/studio/livepeer/livepeer/models/components/NftMetadataTemplate.java - src/main/java/studio/livepeer/livepeer/models/components/NftMetadata.java - src/main/java/studio/livepeer/livepeer/models/components/Spec.java @@ -361,6 +366,7 @@ generatedFiles: - src/main/java/studio/livepeer/livepeer/models/components/RoomUserPayload.java - src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java - src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java + - src/main/java/studio/livepeer/livepeer/models/components/RealtimeViewershipMetric.java - src/main/java/studio/livepeer/livepeer/models/components/ViewershipMetric.java - src/main/java/studio/livepeer/livepeer/models/components/UsageMetric.java - src/main/java/studio/livepeer/livepeer/models/components/SigningKey.java @@ -516,16 +522,19 @@ generatedFiles: - docs/models/operations/UpdateRoomUserResponse.md - docs/models/operations/DeleteRoomUserRequest.md - docs/models/operations/DeleteRoomUserResponse.md + - docs/models/operations/BreakdownBy.md + - docs/models/operations/GetRealtimeViewershipNowRequest.md + - docs/models/operations/GetRealtimeViewershipNowResponse.md - docs/models/operations/From.md - docs/models/operations/To.md - docs/models/operations/TimeStep.md - - docs/models/operations/BreakdownBy.md + - docs/models/operations/QueryParamBreakdownBy.md - docs/models/operations/GetViewershipMetricsRequest.md - docs/models/operations/GetViewershipMetricsResponse.md - docs/models/operations/QueryParamFrom.md - docs/models/operations/QueryParamTo.md - docs/models/operations/QueryParamTimeStep.md - - docs/models/operations/QueryParamBreakdownBy.md + - docs/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md - docs/models/operations/GetCreatorViewershipMetricsRequest.md - docs/models/operations/GetCreatorViewershipMetricsResponse.md - docs/models/operations/GetPublicViewershipMetricsRequest.md @@ -562,6 +571,9 @@ generatedFiles: - docs/models/components/Renditions.md - docs/models/components/Stream.md - docs/models/components/TargetOutput.md + - docs/models/components/TranscodeProfileProfile.md + - docs/models/components/TranscodeProfileEncoder.md + - docs/models/components/TranscodeProfile.md - docs/models/components/Profile.md - docs/models/components/Encoder.md - docs/models/components/FfmpegProfile.md @@ -570,13 +582,13 @@ generatedFiles: - docs/models/components/CreatorIdType.md - docs/models/components/CreatorId1.md - docs/models/components/CreatorId.md + - docs/models/components/NewStreamPayloadRecordingSpec.md - docs/models/components/NewStreamPayload.md - docs/models/components/UserTags3.md - docs/models/components/UserTags.md - docs/models/components/Multistream.md - docs/models/components/TargetSpec.md - docs/models/components/Target.md - - docs/models/components/RecordingSpec.md - docs/models/components/InputCreatorIdType.md - docs/models/components/InputCreatorId1.md - docs/models/components/InputCreatorId.md @@ -585,6 +597,7 @@ generatedFiles: - docs/models/components/Location.md - docs/models/components/Pull.md - docs/models/components/StreamPatchPayload.md + - docs/models/components/RecordingSpec.md - docs/models/components/AssetType.md - docs/models/components/AssetSource3Type.md - docs/models/components/Source3.md @@ -629,9 +642,6 @@ generatedFiles: - docs/models/components/NewAssetPayloadStorage.md - docs/models/components/NewAssetPayloadEncryption.md - docs/models/components/NewAssetPayload.md - - docs/models/components/TranscodeProfileProfile.md - - docs/models/components/TranscodeProfileEncoder.md - - docs/models/components/TranscodeProfile.md - docs/models/components/NftMetadataTemplate.md - docs/models/components/NftMetadata.md - docs/models/components/Spec.md @@ -651,6 +661,7 @@ generatedFiles: - docs/models/components/RoomUserPayload.md - docs/models/components/GetRoomUserResponse.md - docs/models/components/RoomUserUpdatePayload.md + - docs/models/components/RealtimeViewershipMetric.md - docs/models/components/ViewershipMetric.md - docs/models/components/UsageMetric.md - docs/models/components/SigningKey.md @@ -735,3 +746,4 @@ generatedFiles: - docs/sdks/transcode/README.md - docs/sdks/playback/README.md - USAGE.md + - CONTRIBUTING.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index b882a25..bf68374 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true java: - version: 0.3.0 + version: 0.4.0 additionalDependencies: [] additionalPlugins: [] artifactID: livepeer @@ -32,6 +32,10 @@ java: shared: models/components webhooks: models/webhooks inputModelSuffix: input + license: + name: The MIT License (MIT) + shortName: MIT + url: https://mit-license.org/ maxMethodParams: 4 outputModelSuffix: output projectName: openapi diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 38c1ef8..29523f8 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.308.1 +speakeasyVersion: 1.363.1 sources: Livepeer: sourceNamespace: livepeer @@ -8,8 +8,8 @@ sources: - latest livepeer-studio-api: sourceNamespace: livepeer-studio-api - sourceRevisionDigest: sha256:a82f003c53514527fb80565b00e18f12a35caf6e6166f55a36bd47467d492a76 - sourceBlobDigest: sha256:b7075420d6962db1878bfbd0269be6b8a6ff34dc16bcc395e8386c3a275cc58b + sourceRevisionDigest: sha256:0dbaf8a7778fa745fcd3d24d1e96021ba6b57b27ea1a0b2f0496721ad0e044f8 + sourceBlobDigest: sha256:e52a771ee6c6da0462e04215ca8263268a4464d44554e9089aec8c03b65037a6 tags: - latest - main @@ -17,8 +17,8 @@ targets: livepeer-java: source: livepeer-studio-api sourceNamespace: livepeer-studio-api - sourceRevisionDigest: sha256:a82f003c53514527fb80565b00e18f12a35caf6e6166f55a36bd47467d492a76 - sourceBlobDigest: sha256:b7075420d6962db1878bfbd0269be6b8a6ff34dc16bcc395e8386c3a275cc58b + sourceRevisionDigest: sha256:0dbaf8a7778fa745fcd3d24d1e96021ba6b57b27ea1a0b2f0496721ad0e044f8 + sourceBlobDigest: sha256:e52a771ee6c6da0462e04215ca8263268a4464d44554e9089aec8c03b65037a6 outLocation: /github/workspace/repo my-first-target: source: Livepeer diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..d585717 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Contributing to This Repository + +Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. + +## How to Report Issues + +If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: + +- A clear and descriptive title +- Steps to reproduce the issue +- Expected and actual behavior +- Any relevant logs, screenshots, or error messages +- Information about your environment (e.g., operating system, software versions) + - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed + +## Issue Triage and Upstream Fixes + +We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. + +## Contact + +If you have any questions or need further assistance, please feel free to reach out by opening an issue. + +Thank you for your understanding and cooperation! + +The Maintainers diff --git a/README.md b/README.md index c1e926d..5a4c8dc 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'studio.livepeer:livepeer:0.3.0' +implementation 'studio.livepeer:livepeer:0.4.0' ``` Maven: @@ -26,7 +26,7 @@ Maven: studio.livepeer livepeer - 0.3.0 + 0.4.0 ``` @@ -53,19 +53,26 @@ gradlew.bat publishToMavenLocal -Pskip.signing ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.FfmpegProfile; +import studio.livepeer.livepeer.models.components.Location; +import studio.livepeer.livepeer.models.components.Multistream; +import studio.livepeer.livepeer.models.components.NewStreamPayload; +import studio.livepeer.livepeer.models.components.NewStreamPayloadRecordingSpec; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.Profile; +import studio.livepeer.livepeer.models.components.Pull; +import studio.livepeer.livepeer.models.components.Target; +import studio.livepeer.livepeer.models.components.TargetSpec; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { @@ -79,8 +86,8 @@ public class Application { .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") - .headers(java.util.Map.ofEntries( - entry("Authorization", "Bearer 123"))) + .headers(Map.ofEntries( + Map.entry("Authorization", "Bearer 123"))) .location(Location.builder() .lat(39.739d) .lon(-104.988d) @@ -89,15 +96,15 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) - .profiles(java.util.List.of( + .profiles(List.of( FfmpegProfile.builder() .width(1280L) .name("720p") - .height(486589L) + .height(720L) .bitrate(3000000L) .fps(30L) .fpsDen(1L) @@ -106,22 +113,23 @@ public class Application { .profile(Profile.H264_BASELINE) .build())) .record(false) - .recordingSpec(RecordingSpec.builder() - .profiles(java.util.List.of( - FfmpegProfile.builder() + .recordingSpec(NewStreamPayloadRecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) .width(1280L) .name("720p") - .height(489382L) - .bitrate(3000000L) + .height(720L) + .quality(23L) .fps(30L) .fpsDen(1L) - .quality(23L) .gop("2") - .profile(Profile.H264_BASELINE) + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) .build())) .build()) .multistream(Multistream.builder() - .targets(java.util.List.of( + .targets(List.of( Target.builder() .profile("720p0") .videoOnly(false) @@ -141,13 +149,14 @@ public class Application { if (res.stream().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` @@ -219,6 +228,7 @@ public class Application { ### [metrics()](docs/sdks/metrics/README.md) +* [getRealtimeViewership](docs/sdks/metrics/README.md#getrealtimeviewership) - Query realtime viewership * [getViewership](docs/sdks/metrics/README.md#getviewership) - Query viewership metrics * [getCreatorViewership](docs/sdks/metrics/README.md#getcreatorviewership) - Query creator viewership metrics * [getPublicViewership](docs/sdks/metrics/README.md#getpublicviewership) - Query public total views metrics @@ -254,26 +264,17 @@ Handling errors in this SDK should largely match your expectations. All operati | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | | models/errors/Error | 404 | application/json | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ### Example ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse; public class Application { @@ -293,13 +294,14 @@ public class Application { } catch (studio.livepeer.livepeer.models.errors.Error e) { // handle exception throw e; - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` @@ -321,19 +323,26 @@ You can override the default server globally by passing a server index to the `s ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.FfmpegProfile; +import studio.livepeer.livepeer.models.components.Location; +import studio.livepeer.livepeer.models.components.Multistream; +import studio.livepeer.livepeer.models.components.NewStreamPayload; +import studio.livepeer.livepeer.models.components.NewStreamPayloadRecordingSpec; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.Profile; +import studio.livepeer.livepeer.models.components.Pull; +import studio.livepeer.livepeer.models.components.Target; +import studio.livepeer.livepeer.models.components.TargetSpec; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { @@ -348,8 +357,8 @@ public class Application { .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") - .headers(java.util.Map.ofEntries( - entry("Authorization", "Bearer 123"))) + .headers(Map.ofEntries( + Map.entry("Authorization", "Bearer 123"))) .location(Location.builder() .lat(39.739d) .lon(-104.988d) @@ -358,15 +367,15 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) - .profiles(java.util.List.of( + .profiles(List.of( FfmpegProfile.builder() .width(1280L) .name("720p") - .height(486589L) + .height(720L) .bitrate(3000000L) .fps(30L) .fpsDen(1L) @@ -375,22 +384,23 @@ public class Application { .profile(Profile.H264_BASELINE) .build())) .record(false) - .recordingSpec(RecordingSpec.builder() - .profiles(java.util.List.of( - FfmpegProfile.builder() + .recordingSpec(NewStreamPayloadRecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) .width(1280L) .name("720p") - .height(489382L) - .bitrate(3000000L) + .height(720L) + .quality(23L) .fps(30L) .fpsDen(1L) - .quality(23L) .gop("2") - .profile(Profile.H264_BASELINE) + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) .build())) .build()) .multistream(Multistream.builder() - .targets(java.util.List.of( + .targets(List.of( Target.builder() .profile("720p0") .videoOnly(false) @@ -410,13 +420,14 @@ public class Application { if (res.stream().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` @@ -428,19 +439,26 @@ The default server can also be overridden globally by passing a URL to the `serv ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.FfmpegProfile; +import studio.livepeer.livepeer.models.components.Location; +import studio.livepeer.livepeer.models.components.Multistream; +import studio.livepeer.livepeer.models.components.NewStreamPayload; +import studio.livepeer.livepeer.models.components.NewStreamPayloadRecordingSpec; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.Profile; +import studio.livepeer.livepeer.models.components.Pull; +import studio.livepeer.livepeer.models.components.Target; +import studio.livepeer.livepeer.models.components.TargetSpec; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { @@ -455,8 +473,8 @@ public class Application { .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") - .headers(java.util.Map.ofEntries( - entry("Authorization", "Bearer 123"))) + .headers(Map.ofEntries( + Map.entry("Authorization", "Bearer 123"))) .location(Location.builder() .lat(39.739d) .lon(-104.988d) @@ -465,15 +483,15 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) - .profiles(java.util.List.of( + .profiles(List.of( FfmpegProfile.builder() .width(1280L) .name("720p") - .height(486589L) + .height(720L) .bitrate(3000000L) .fps(30L) .fpsDen(1L) @@ -482,22 +500,23 @@ public class Application { .profile(Profile.H264_BASELINE) .build())) .record(false) - .recordingSpec(RecordingSpec.builder() - .profiles(java.util.List.of( - FfmpegProfile.builder() + .recordingSpec(NewStreamPayloadRecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) .width(1280L) .name("720p") - .height(489382L) - .bitrate(3000000L) + .height(720L) + .quality(23L) .fps(30L) .fpsDen(1L) - .quality(23L) .gop("2") - .profile(Profile.H264_BASELINE) + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) .build())) .build()) .multistream(Multistream.builder() - .targets(java.util.List.of( + .targets(List.of( Target.builder() .profile("720p0") .videoOnly(false) @@ -517,13 +536,14 @@ public class Application { if (res.stream().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` @@ -544,19 +564,26 @@ To authenticate with the API the `apiKey` parameter must be set when initializin ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.FfmpegProfile; +import studio.livepeer.livepeer.models.components.Location; +import studio.livepeer.livepeer.models.components.Multistream; +import studio.livepeer.livepeer.models.components.NewStreamPayload; +import studio.livepeer.livepeer.models.components.NewStreamPayloadRecordingSpec; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.Profile; +import studio.livepeer.livepeer.models.components.Pull; +import studio.livepeer.livepeer.models.components.Target; +import studio.livepeer.livepeer.models.components.TargetSpec; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { @@ -570,8 +597,8 @@ public class Application { .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") - .headers(java.util.Map.ofEntries( - entry("Authorization", "Bearer 123"))) + .headers(Map.ofEntries( + Map.entry("Authorization", "Bearer 123"))) .location(Location.builder() .lat(39.739d) .lon(-104.988d) @@ -580,15 +607,15 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) - .profiles(java.util.List.of( + .profiles(List.of( FfmpegProfile.builder() .width(1280L) .name("720p") - .height(486589L) + .height(720L) .bitrate(3000000L) .fps(30L) .fpsDen(1L) @@ -597,22 +624,23 @@ public class Application { .profile(Profile.H264_BASELINE) .build())) .record(false) - .recordingSpec(RecordingSpec.builder() - .profiles(java.util.List.of( - FfmpegProfile.builder() + .recordingSpec(NewStreamPayloadRecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) .width(1280L) .name("720p") - .height(489382L) - .bitrate(3000000L) + .height(720L) + .quality(23L) .fps(30L) .fpsDen(1L) - .quality(23L) .gop("2") - .profile(Profile.H264_BASELINE) + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) .build())) .build()) .multistream(Multistream.builder() - .targets(java.util.List.of( + .targets(List.of( Target.builder() .profile("720p0") .videoOnly(false) @@ -632,13 +660,14 @@ public class Application { if (res.stream().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` diff --git a/RELEASES.md b/RELEASES.md index ad1d725..cc78889 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -30,4 +30,12 @@ Based on: - OpenAPI Doc - Speakeasy CLI 1.308.1 (2.342.6) https://github.com/speakeasy-api/speakeasy ### Generated -- [java v0.3.0] . \ No newline at end of file +- [java v0.3.0] . + +## 2024-08-13 00:09:55 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.363.1 (2.396.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.4.0] . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 678ba38..7677927 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2,19 +2,26 @@ ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.FfmpegProfile; +import studio.livepeer.livepeer.models.components.Location; +import studio.livepeer.livepeer.models.components.Multistream; +import studio.livepeer.livepeer.models.components.NewStreamPayload; +import studio.livepeer.livepeer.models.components.NewStreamPayloadRecordingSpec; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.Profile; +import studio.livepeer.livepeer.models.components.Pull; +import studio.livepeer.livepeer.models.components.Target; +import studio.livepeer.livepeer.models.components.TargetSpec; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { @@ -28,8 +35,8 @@ public class Application { .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") - .headers(java.util.Map.ofEntries( - entry("Authorization", "Bearer 123"))) + .headers(Map.ofEntries( + Map.entry("Authorization", "Bearer 123"))) .location(Location.builder() .lat(39.739d) .lon(-104.988d) @@ -38,15 +45,15 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) - .profiles(java.util.List.of( + .profiles(List.of( FfmpegProfile.builder() .width(1280L) .name("720p") - .height(486589L) + .height(720L) .bitrate(3000000L) .fps(30L) .fpsDen(1L) @@ -55,22 +62,23 @@ public class Application { .profile(Profile.H264_BASELINE) .build())) .record(false) - .recordingSpec(RecordingSpec.builder() - .profiles(java.util.List.of( - FfmpegProfile.builder() + .recordingSpec(NewStreamPayloadRecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) .width(1280L) .name("720p") - .height(489382L) - .bitrate(3000000L) + .height(720L) + .quality(23L) .fps(30L) .fpsDen(1L) - .quality(23L) .gop("2") - .profile(Profile.H264_BASELINE) + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) .build())) .build()) .multistream(Multistream.builder() - .targets(java.util.List.of( + .targets(List.of( Target.builder() .profile("720p0") .videoOnly(false) @@ -90,13 +98,14 @@ public class Application { if (res.stream().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` diff --git a/build.gradle b/build.gradle index c1b13ce..4158c6d 100644 --- a/build.gradle +++ b/build.gradle @@ -8,6 +8,7 @@ // Additions to the plugins block can be made by setting the `additionalPlugins` property (an array // of string where each string value is an additional line in the block) in gen.yaml. //////////////////////////////////////////////////////////////////////////////////////////// + plugins { // Apply the java-library plugin for API and implementation separation. id 'java-library' diff --git a/codeSamples.yaml b/codeSamples.yaml index 06542c2..0d1a870 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,27 +3,18 @@ info: title: CodeSamples overlay for java target version: 0.0.0 actions: - - target: $["paths"]["/multistream/target/{id}"]["get"] + - target: $["paths"]["/room/{id}/egress"]["delete"] update: x-codeSamples: - lang: java - label: getMultistreamTarget + label: stopRoomEgress source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.StopRoomEgressResponse; public class Application { @@ -33,43 +24,34 @@ actions: .apiKey("") .build(); - GetMultistreamTargetResponse res = sdk.multistream().get() + StopRoomEgressResponse res = sdk.room().stopEgress() .id("") .call(); - if (res.multistreamTarget().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/session/{id}/clips"]["get"] + - target: $["paths"]["/room/{id}/user"]["post"] update: x-codeSamples: - lang: java - label: getSessionClips + label: createRoomUser source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.RoomUserPayload; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.CreateRoomUserResponse; public class Application { @@ -79,43 +61,40 @@ actions: .apiKey("") .build(); - GetSessionClipsResponse res = sdk.session().getClips() + CreateRoomUserResponse res = sdk.room().createUser() .id("") + .roomUserPayload(RoomUserPayload.builder() + .name("name") + .canPublish(true) + .canPublishData(true) + .build()) .call(); - if (res.data().isPresent()) { + if (res.roomUserResponse().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/asset"]["get"] + - target: $["paths"]["/multistream/target"]["get"] update: x-codeSamples: - lang: java - label: getAssets + label: getMultistreamTargets source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse; public class Application { @@ -125,19 +104,20 @@ actions: .apiKey("") .build(); - GetAssetsResponse res = sdk.asset().getAll() + GetMultistreamTargetsResponse res = sdk.multistream().getAll() .call(); if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - target: $["paths"]["/stream/{parentId}/sessions"]["get"] @@ -148,19 +128,11 @@ actions: source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse; + import studio.livepeer.livepeer.models.operations.Record; public class Application { @@ -172,42 +144,34 @@ actions: GetRecordedSessionsResponse res = sdk.session().getRecorded() .parentId("") - .record(studio.livepeer.livepeer.models.operations.Record.of(true)) + .record(Record.of(true)) .call(); if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream/{id}/terminate"]["delete"] + - target: $["paths"]["/asset"]["get"] update: x-codeSamples: - lang: java - label: terminateStream + label: getAssets source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetAssetsResponse; public class Application { @@ -217,41 +181,34 @@ actions: .apiKey("") .build(); - TerminateStreamResponse res = sdk.stream().terminate() - .id("") + GetAssetsResponse res = sdk.asset().getAll() .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.data().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/room/{id}"]["get"] + - target: $["paths"]["/session/{id}/clips"]["get"] update: x-codeSamples: - lang: java - label: getRoom + label: getSessionClips source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetSessionClipsResponse; public class Application { @@ -261,43 +218,35 @@ actions: .apiKey("") .build(); - GetRoomResponse res = sdk.room().get() + GetSessionClipsResponse res = sdk.session().getClips() .id("") .call(); - if (res.room().isPresent()) { + if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/room/{id}"]["delete"] + - target: $["paths"]["/room/{id}/user/{userId}"]["delete"] update: x-codeSamples: - lang: java - label: deleteRoom + label: deleteRoomUser source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse; public class Application { @@ -307,41 +256,36 @@ actions: .apiKey("") .build(); - DeleteRoomResponse res = sdk.room().delete() + DeleteRoomUserResponse res = sdk.room().deleteUser() .id("") + .userId("") .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/access-control/signing-key"]["post"] + - target: $["paths"]["/data/views/now"]["get"] update: x-codeSamples: - lang: java - label: createSigningKey + label: getRealtimeViewershipNow source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; + import java.util.List; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.BreakdownBy; + import studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowResponse; public class Application { @@ -351,42 +295,38 @@ actions: .apiKey("") .build(); - CreateSigningKeyResponse res = sdk.accessControl().create() + GetRealtimeViewershipNowResponse res = sdk.metrics().getRealtimeViewership() + .playbackId("") + .creatorId("") + .breakdownBy(List.of( + BreakdownBy.PLAYBACK_ID)) .call(); - if (res.signingKey().isPresent()) { + if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/task"]["get"] + - target: $["paths"]["/stream/{id}"]["get"] update: x-codeSamples: - lang: java - label: getTasks + label: getStream source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetStreamResponse; public class Application { @@ -396,42 +336,35 @@ actions: .apiKey("") .build(); - GetTasksResponse res = sdk.task().getAll() + GetStreamResponse res = sdk.stream().get() + .id("") .call(); - if (res.data().isPresent()) { + if (res.stream().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/webhook/{id}/log/{logId}/resend"]["post"] + - target: $["paths"]["/room/{id}"]["get"] update: x-codeSamples: - lang: java - label: resendWebhook + label: getRoom source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetRoomResponse; public class Application { @@ -441,44 +374,35 @@ actions: .apiKey("") .build(); - ResendWebhookResponse res = sdk.webhook().resendLog() + GetRoomResponse res = sdk.room().get() .id("") - .logId("") .call(); - if (res.webhookLog().isPresent()) { + if (res.room().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/room/{id}/egress"]["delete"] + - target: $["paths"]["/stream"]["get"] update: x-codeSamples: - lang: java - label: stopRoomEgress + label: getStreams source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetStreamsResponse; public class Application { @@ -488,41 +412,36 @@ actions: .apiKey("") .build(); - StopRoomEgressResponse res = sdk.room().stopEgress() - .id("") + GetStreamsResponse res = sdk.stream().getAll() + .streamsonly("") .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.data().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/room/{id}/user/{userId}"]["delete"] + - target: $["paths"]["/clip"]["post"] update: x-codeSamples: - lang: java - label: deleteRoomUser + label: createClip source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.ClipPayload; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.CreateClipResponse; public class Application { @@ -532,42 +451,43 @@ actions: .apiKey("") .build(); - DeleteRoomUserResponse res = sdk.room().deleteUser() - .id("") - .userId("") + ClipPayload req = ClipPayload.builder() + .playbackId("eaw4nk06ts2d0mzb") + .startTime(1587667174725d) + .endTime(1587667174725d) + .name("My Clip") + .sessionId("de7818e7-610a-4057-8f6f-b785dc1e6f88") + .build(); + + CreateClipResponse res = sdk.stream().createClip() + .request(req) .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.data().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/data/usage/query"]["get"] + - target: $["paths"]["/stream/{id}/clips"]["get"] update: x-codeSamples: - lang: java - label: getUsageMetrics + label: getClips source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetClipsResponse; public class Application { @@ -577,46 +497,37 @@ actions: .apiKey("") .build(); - GetUsageMetricsRequest req = GetUsageMetricsRequest.builder() - .build(); - - GetUsageMetricsResponse res = sdk.metrics().getUsage() - .request(req) + GetClipsResponse res = sdk.stream().getClips() + .id("") .call(); - if (res.usageMetric().isPresent()) { + if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream/{id}"]["patch"] + - target: $["paths"]["/stream/{id}/create-multistream-target"]["post"] update: x-codeSamples: - lang: java - label: updateStream + label: addMultistreamTarget source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.TargetAddPayload; + import studio.livepeer.livepeer.models.components.TargetAddPayloadSpec; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse; public class Application { @@ -626,75 +537,42 @@ actions: .apiKey("") .build(); - UpdateStreamResponse res = sdk.stream().update() + AddMultistreamTargetResponse res = sdk.stream().addMultistreamTarget() .id("") - .streamPatchPayload(StreamPatchPayload.builder() - .record(false) - .multistream(Multistream.builder() - .targets(java.util.List.of( - Target.builder() - .profile("720p0") - .videoOnly(false) - .id("PUSH123") - .spec(TargetSpec.builder() - .url("rtmps://live.my-service.tv/channel/secretKey") - .name("My target") - .build()) - .build())) - .build()) - .playbackPolicy(PlaybackPolicy.builder() - .type(Type.WEBHOOK) - .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) - .refreshInterval(600d) + .targetAddPayload(TargetAddPayload.builder() + .profile("720p0") + .videoOnly(false) + .id("PUSH123") + .spec(TargetAddPayloadSpec.builder() + .url("rtmps://live.my-service.tv/channel/secretKey") + .name("My target") .build()) - .profiles(java.util.List.of( - FfmpegProfile.builder() - .width(1280L) - .name("720p") - .height(857478L) - .bitrate(3000000L) - .fps(30L) - .fpsDen(1L) - .quality(23L) - .gop("2") - .profile(Profile.H264_BASELINE) - .build())) .build()) .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/room/{id}/user"]["post"] + - target: $["paths"]["/playback/{id}"]["get"] update: x-codeSamples: - lang: java - label: createRoomUser + label: getPlaybackInfo source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse; public class Application { @@ -704,48 +582,38 @@ actions: .apiKey("") .build(); - CreateRoomUserResponse res = sdk.room().createUser() + GetPlaybackInfoResponse res = sdk.playback().get() .id("") - .roomUserPayload(RoomUserPayload.builder() - .name("name") - .canPublish(true) - .canPublishData(true) - .build()) .call(); - if (res.roomUserResponse().isPresent()) { + if (res.playbackInfo().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (studio.livepeer.livepeer.models.errors.Error e) { + // handle exception + throw e; + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/data/views/query/creator"]["get"] + - target: $["paths"]["/stream/{id}"]["delete"] update: x-codeSamples: - lang: java - label: getCreatorViewershipMetrics + label: deleteStream source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.DeleteStreamResponse; public class Application { @@ -755,46 +623,34 @@ actions: .apiKey("") .build(); - GetCreatorViewershipMetricsRequest req = GetCreatorViewershipMetricsRequest.builder() - .build(); - - GetCreatorViewershipMetricsResponse res = sdk.metrics().getCreatorViewership() - .request(req) + DeleteStreamResponse res = sdk.stream().delete() + .id("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/clip"]["post"] + - target: $["paths"]["/room/{id}/user/{userId}"]["put"] update: x-codeSamples: - lang: java - label: createClip + label: updateRoomUser source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.RoomUserUpdatePayload; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse; public class Application { @@ -804,51 +660,54 @@ actions: .apiKey("") .build(); - ClipPayload req = ClipPayload.builder() - .playbackId("eaw4nk06ts2d0mzb") - .startTime(1587667174725d) - .endTime(1587667174725d) - .name("My Clip") - .sessionId("de7818e7-610a-4057-8f6f-b785dc1e6f88") - .build(); - - CreateClipResponse res = sdk.stream().createClip() - .request(req) + UpdateRoomUserResponse res = sdk.room().updateUser() + .id("") + .userId("") + .roomUserUpdatePayload(RoomUserUpdatePayload.builder() + .canPublish(true) + .canPublishData(true) + .build()) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/asset/{assetId}"]["patch"] + - target: $["paths"]["/stream"]["post"] update: x-codeSamples: - lang: java - label: updateAsset + label: createStream source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; + import java.util.List; + import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.FfmpegProfile; + import studio.livepeer.livepeer.models.components.Location; + import studio.livepeer.livepeer.models.components.Multistream; + import studio.livepeer.livepeer.models.components.NewStreamPayload; + import studio.livepeer.livepeer.models.components.NewStreamPayloadRecordingSpec; + import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.Profile; + import studio.livepeer.livepeer.models.components.Pull; + import studio.livepeer.livepeer.models.components.Target; + import studio.livepeer.livepeer.models.components.TargetSpec; + import studio.livepeer.livepeer.models.components.TranscodeProfile; + import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; + import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; + import studio.livepeer.livepeer.models.components.Type; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { @@ -858,30 +717,117 @@ actions: .apiKey("") .build(); - UpdateAssetResponse res = sdk.asset().update() - .assetId("") - .assetPatchPayload(AssetPatchPayload.builder() - .name("filename.mp4") - .playbackPolicy(PlaybackPolicy.builder() - .type(Type.WEBHOOK) - .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) - .refreshInterval(600d) - .build()) - .build()) - .call(); - - if (res.asset().isPresent()) { - // handle response + NewStreamPayload req = NewStreamPayload.builder() + .name("test_stream") + .pull(Pull.builder() + .source("https://myservice.com/live/stream.flv") + .headers(Map.ofEntries( + Map.entry("Authorization", "Bearer 123"))) + .location(Location.builder() + .lat(39.739d) + .lon(-104.988d) + .build()) + .build()) + .playbackPolicy(PlaybackPolicy.builder() + .type(Type.WEBHOOK) + .webhookId("1bde4o2i6xycudoy") + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) + .refreshInterval(600d) + .build()) + .profiles(List.of( + FfmpegProfile.builder() + .width(1280L) + .name("720p") + .height(720L) + .bitrate(3000000L) + .fps(30L) + .fpsDen(1L) + .quality(23L) + .gop("2") + .profile(Profile.H264_BASELINE) + .build())) + .record(false) + .recordingSpec(NewStreamPayloadRecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) + .width(1280L) + .name("720p") + .height(720L) + .quality(23L) + .fps(30L) + .fpsDen(1L) + .gop("2") + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) + .build())) + .build()) + .multistream(Multistream.builder() + .targets(List.of( + Target.builder() + .profile("720p0") + .videoOnly(false) + .id("PUSH123") + .spec(TargetSpec.builder() + .url("rtmps://live.my-service.tv/channel/secretKey") + .name("My target") + .build()) + .build())) + .build()) + .build(); + + CreateStreamResponse res = sdk.stream().create() + .request(req) + .call(); + + if (res.stream().isPresent()) { + // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } + } + - target: $["paths"]["/multistream/target/{id}"]["delete"] + update: + x-codeSamples: + - lang: java + label: deleteMultistreamTarget + source: |- + package hello.world; + + import java.lang.Exception; + import studio.livepeer.livepeer.Livepeer; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse; + + public class Application { + + public static void main(String[] args) throws Exception { + try { + Livepeer sdk = Livepeer.builder() + .apiKey("") + .build(); + + DeleteMultistreamTargetResponse res = sdk.multistream().delete() + .id("") + .call(); + + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - target: $["paths"]["/webhook/{id}/log/{logId}"]["get"] @@ -892,19 +838,10 @@ actions: source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetWebhookLogResponse; public class Application { @@ -922,36 +859,36 @@ actions: if (res.webhookLog().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/transcode"]["post"] + - target: $["paths"]["/asset/upload/url"]["post"] update: x-codeSamples: - lang: java - label: transcodeVideo + label: uploadAsset source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; + import java.util.List; + import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload; + import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.TranscodeProfile; + import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; + import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; + import studio.livepeer.livepeer.models.components.Type; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.UploadAssetResponse; public class Application { @@ -961,35 +898,23 @@ actions: .apiKey("") .build(); - TranscodePayload req = TranscodePayload.builder() - .input(Input.of(Input1.builder() - .url("https://s3.amazonaws.com/bucket/file.mp4") - .build())) - .storage(TranscodePayloadStorage.of(Storage1.builder() - .type(StorageType.S3) - .endpoint("https://gateway.storjshare.io") - .bucket("outputbucket") - .credentials(StorageCredentials.builder() - .accessKeyId("AKIAIOSFODNN7EXAMPLE") - .secretAccessKey("wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY") - .build()) - .build())) - .outputs(Outputs.builder() - .hls(Hls.builder() - .path("/samplevideo/hls") - .build()) - .mp4(Mp4.builder() - .path("/samplevideo/mp4") - .build()) - .fmp4(Fmp4.builder() - .path("/samplevideo/fmp4") - .build()) - .build()) - .profiles(java.util.List.of( + NewAssetFromUrlPayload req = NewAssetFromUrlPayload.builder() + .name("filename.mp4") + .url("https://s3.amazonaws.com/my-bucket/path/filename.mp4") + .staticMp4(true) + .playbackPolicy(PlaybackPolicy.builder() + .type(Type.WEBHOOK) + .webhookId("1bde4o2i6xycudoy") + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) + .refreshInterval(600d) + .build()) + .profiles(List.of( TranscodeProfile.builder() .bitrate(3000000L) .width(1280L) .name("720p") + .height(720L) .quality(23L) .fps(30L) .fpsDen(1L) @@ -999,43 +924,35 @@ actions: .build())) .build(); - TranscodeVideoResponse res = sdk.transcode().create() + UploadAssetResponse res = sdk.asset().createViaUrl() .request(req) .call(); - if (res.task().isPresent()) { + if (res.twoHundredApplicationJsonData().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/room/{id}/user/{userId}"]["put"] + - target: $["paths"]["/session"]["get"] update: x-codeSamples: - lang: java - label: updateRoomUser + label: getSessions source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetSessionsResponse; public class Application { @@ -1045,46 +962,35 @@ actions: .apiKey("") .build(); - UpdateRoomUserResponse res = sdk.room().updateUser() - .id("") - .userId("") - .roomUserUpdatePayload(RoomUserUpdatePayload.builder() - .canPublish(true) - .canPublishData(true) - .build()) + GetSessionsResponse res = sdk.session().getAll() .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.data().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/task/{taskId}"]["get"] + - target: $["paths"]["/data/usage/query"]["get"] update: x-codeSamples: - lang: java - label: getTask + label: getUsageMetrics source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest; + import studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse; public class Application { @@ -1094,43 +1000,38 @@ actions: .apiKey("") .build(); - GetTaskResponse res = sdk.task().get() - .taskId("") + GetUsageMetricsRequest req = GetUsageMetricsRequest.builder() + .build(); + + GetUsageMetricsResponse res = sdk.metrics().getUsage() + .request(req) .call(); - if (res.task().isPresent()) { + if (res.usageMetric().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream"]["get"] + - target: $["paths"]["/task"]["get"] update: x-codeSamples: - lang: java - label: getStreams + label: getTasks source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetTasksResponse; public class Application { @@ -1140,43 +1041,35 @@ actions: .apiKey("") .build(); - GetStreamsResponse res = sdk.stream().getAll() - .streamsonly("") + GetTasksResponse res = sdk.task().getAll() .call(); if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/webhook/{id}"]["get"] + - target: $["paths"]["/multistream/target/{id}"]["patch"] update: x-codeSamples: - lang: java - label: getWebhook + label: updateMultistreamTarget source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse; public class Application { @@ -1186,43 +1079,36 @@ actions: .apiKey("") .build(); - GetWebhookResponse res = sdk.webhook().get() + UpdateMultistreamTargetResponse res = sdk.multistream().update() .id("") + .multistreamTargetPatchPayload(MultistreamTargetPatchPayload.builder() + .url("rtmps://live.my-service.tv/channel/secretKey") + .build()) .call(); - if (res.webhook().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/room/{id}/user/{userId}"]["get"] + - target: $["paths"]["/multistream/target/{id}"]["get"] update: x-codeSamples: - lang: java - label: getRoomUser + label: getMultistreamTarget source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse; public class Application { @@ -1232,44 +1118,38 @@ actions: .apiKey("") .build(); - GetRoomUserResponse res = sdk.room().getUser() + GetMultistreamTargetResponse res = sdk.multistream().get() .id("") - .userId("") .call(); - if (res.getRoomUserResponse().isPresent()) { + if (res.multistreamTarget().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/access-control/signing-key/{keyId}"]["patch"] + - target: $["paths"]["/webhook/{id}"]["put"] update: x-codeSamples: - lang: java - label: updateSigningKey + label: updateWebhook source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; + import java.util.List; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.Events; + import studio.livepeer.livepeer.models.components.WebhookInput; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.UpdateWebhookResponse; public class Application { @@ -1279,43 +1159,45 @@ actions: .apiKey("") .build(); - UpdateSigningKeyResponse res = sdk.accessControl().update() - .keyId("") - .requestBody(UpdateSigningKeyRequestBody.builder() + UpdateWebhookResponse res = sdk.webhook().update() + .id("") + .webhook(WebhookInput.builder() + .name("test_webhook") + .url("https://my-service.com/webhook") + .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") + .events(List.of( + Events.STREAM_STARTED, + Events.STREAM_IDLE)) + .sharedSecret("my-secret") + .streamId("de7818e7-610a-4057-8f6f-b785dc1e6f88") .build()) .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.webhook().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream/{id}/clips"]["get"] + - target: $["paths"]["/asset/{assetId}"]["delete"] update: x-codeSamples: - lang: java - label: getClips + label: deleteAsset source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.DeleteAssetResponse; public class Application { @@ -1325,43 +1207,33 @@ actions: .apiKey("") .build(); - GetClipsResponse res = sdk.stream().getClips() - .id("") + DeleteAssetResponse res = sdk.asset().delete() + .assetId("") .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/webhook/{id}"]["put"] + - target: $["paths"]["/room"]["post"] update: x-codeSamples: - lang: java - label: updateWebhook + label: createRoom source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.CreateRoomResponse; public class Application { @@ -1371,53 +1243,35 @@ actions: .apiKey("") .build(); - UpdateWebhookResponse res = sdk.webhook().update() - .id("") - .webhook(WebhookInput.builder() - .name("test_webhook") - .url("https://my-service.com/webhook") - .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") - .events(java.util.List.of( - Events.STREAM_STARTED, - Events.STREAM_IDLE)) - .sharedSecret("my-secret") - .streamId("de7818e7-610a-4057-8f6f-b785dc1e6f88") - .build()) + CreateRoomResponse res = sdk.room().create() .call(); - if (res.webhook().isPresent()) { + if (res.createRoomResponse().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/webhook/{id}"]["delete"] + - target: $["paths"]["/data/views/query"]["get"] update: x-codeSamples: - lang: java - label: deleteWebhook + label: getViewershipMetrics source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest; + import studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse; public class Application { @@ -1427,43 +1281,38 @@ actions: .apiKey("") .build(); - DeleteWebhookResponse res = sdk.webhook().delete() - .id("") + GetViewershipMetricsRequest req = GetViewershipMetricsRequest.builder() + .build(); + + GetViewershipMetricsResponse res = sdk.metrics().getViewership() + .request(req) .call(); - if (res.webhook().isPresent()) { + if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/asset/{assetId}"]["get"] + - target: $["paths"]["/stream/{id}/terminate"]["delete"] update: x-codeSamples: - lang: java - label: getAsset + label: terminateStream source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.TerminateStreamResponse; public class Application { @@ -1473,43 +1322,34 @@ actions: .apiKey("") .build(); - GetAssetResponse res = sdk.asset().get() - .assetId("") + TerminateStreamResponse res = sdk.stream().terminate() + .id("") .call(); - if (res.asset().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/asset/{assetId}"]["delete"] + - target: $["paths"]["/access-control/signing-key/{keyId}"]["patch"] update: x-codeSamples: - lang: java - label: deleteAsset + label: updateSigningKey source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody; + import studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse; public class Application { @@ -1519,41 +1359,35 @@ actions: .apiKey("") .build(); - DeleteAssetResponse res = sdk.asset().delete() - .assetId("") + UpdateSigningKeyResponse res = sdk.accessControl().update() + .keyId("") + .requestBody(UpdateSigningKeyRequestBody.builder() + .build()) .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/playback/{id}"]["get"] + - target: $["paths"]["/room/{id}"]["delete"] update: x-codeSamples: - lang: java - label: getPlaybackInfo + label: deleteRoom source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.DeleteRoomResponse; public class Application { @@ -1563,46 +1397,41 @@ actions: .apiKey("") .build(); - GetPlaybackInfoResponse res = sdk.playback().get() + DeleteRoomResponse res = sdk.room().delete() .id("") .call(); - if (res.playbackInfo().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.Error e) { - // handle exception - throw e; - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream/{id}/create-multistream-target"]["post"] + - target: $["paths"]["/asset/request-upload"]["post"] update: x-codeSamples: - lang: java - label: addMultistreamTarget + label: requestUpload source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; + import java.util.List; + import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.NewAssetPayload; + import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.TranscodeProfile; + import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; + import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; + import studio.livepeer.livepeer.models.components.Type; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.RequestUploadResponse; public class Application { @@ -1612,50 +1441,60 @@ actions: .apiKey("") .build(); - AddMultistreamTargetResponse res = sdk.stream().addMultistreamTarget() - .id("") - .targetAddPayload(TargetAddPayload.builder() - .profile("720p0") - .videoOnly(false) - .id("PUSH123") - .spec(TargetAddPayloadSpec.builder() - .url("rtmps://live.my-service.tv/channel/secretKey") - .name("My target") - .build()) + NewAssetPayload req = NewAssetPayload.builder() + .name("filename.mp4") + .staticMp4(true) + .playbackPolicy(PlaybackPolicy.builder() + .type(Type.WEBHOOK) + .webhookId("1bde4o2i6xycudoy") + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) + .refreshInterval(600d) .build()) + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) + .width(1280L) + .name("720p") + .height(720L) + .quality(23L) + .fps(30L) + .fpsDen(1L) + .gop("2") + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) + .build())) + .build(); + + RequestUploadResponse res = sdk.asset().create() + .request(req) .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.data().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream/{id}/multistream/{targetId}"]["delete"] + - target: $["paths"]["/asset/{assetId}"]["get"] update: x-codeSamples: - lang: java - label: removeMultistreamTarget + label: getAsset source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetAssetResponse; public class Application { @@ -1665,42 +1504,36 @@ actions: .apiKey("") .build(); - RemoveMultistreamTargetResponse res = sdk.stream().removeMultistreamTarget() - .id("") - .targetId("") + GetAssetResponse res = sdk.asset().get() + .assetId("") .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.asset().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/multistream/target/{id}"]["delete"] + - target: $["paths"]["/data/views/query/creator"]["get"] update: x-codeSamples: - lang: java - label: deleteMultistreamTarget + label: getCreatorViewershipMetrics source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest; + import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse; public class Application { @@ -1710,41 +1543,38 @@ actions: .apiKey("") .build(); - DeleteMultistreamTargetResponse res = sdk.multistream().delete() - .id("") + GetCreatorViewershipMetricsRequest req = GetCreatorViewershipMetricsRequest.builder() + .build(); + + GetCreatorViewershipMetricsResponse res = sdk.metrics().getCreatorViewership() + .request(req) .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.data().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/room"]["post"] + - target: $["paths"]["/webhook/{id}"]["delete"] update: x-codeSamples: - lang: java - label: createRoom + label: deleteWebhook source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.DeleteWebhookResponse; public class Application { @@ -1754,42 +1584,35 @@ actions: .apiKey("") .build(); - CreateRoomResponse res = sdk.room().create() + DeleteWebhookResponse res = sdk.webhook().delete() + .id("") .call(); - if (res.createRoomResponse().isPresent()) { + if (res.webhook().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/multistream/target/{id}"]["patch"] + - target: $["paths"]["/session/{id}"]["get"] update: x-codeSamples: - lang: java - label: updateMultistreamTarget + label: getSession source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetSessionResponse; public class Application { @@ -1799,44 +1622,49 @@ actions: .apiKey("") .build(); - UpdateMultistreamTargetResponse res = sdk.multistream().update() + GetSessionResponse res = sdk.session().get() .id("") - .multistreamTargetPatchPayload(MultistreamTargetPatchPayload.builder() - .url("rtmps://live.my-service.tv/channel/secretKey") - .build()) .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.session().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/webhook"]["post"] + - target: $["paths"]["/stream/{id}"]["patch"] update: x-codeSamples: - lang: java - label: createWebhook + label: updateStream source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; + import java.util.List; + import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.FfmpegProfile; + import studio.livepeer.livepeer.models.components.Multistream; + import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.Profile; + import studio.livepeer.livepeer.models.components.RecordingSpec; + import studio.livepeer.livepeer.models.components.StreamPatchPayload; + import studio.livepeer.livepeer.models.components.Target; + import studio.livepeer.livepeer.models.components.TargetSpec; + import studio.livepeer.livepeer.models.components.TranscodeProfile; + import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; + import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; + import studio.livepeer.livepeer.models.components.Type; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.UpdateStreamResponse; public class Application { @@ -1846,54 +1674,86 @@ actions: .apiKey("") .build(); - WebhookInput req = WebhookInput.builder() - .name("test_webhook") - .url("https://my-service.com/webhook") - .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") - .events(java.util.List.of( - Events.STREAM_STARTED, - Events.STREAM_IDLE)) - .sharedSecret("my-secret") - .streamId("de7818e7-610a-4057-8f6f-b785dc1e6f88") - .build(); - - CreateWebhookResponse res = sdk.webhook().create() - .request(req) + UpdateStreamResponse res = sdk.stream().update() + .id("") + .streamPatchPayload(StreamPatchPayload.builder() + .record(false) + .multistream(Multistream.builder() + .targets(List.of( + Target.builder() + .profile("720p0") + .videoOnly(false) + .id("PUSH123") + .spec(TargetSpec.builder() + .url("rtmps://live.my-service.tv/channel/secretKey") + .name("My target") + .build()) + .build())) + .build()) + .playbackPolicy(PlaybackPolicy.builder() + .type(Type.WEBHOOK) + .webhookId("1bde4o2i6xycudoy") + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) + .refreshInterval(600d) + .build()) + .profiles(List.of( + FfmpegProfile.builder() + .width(1280L) + .name("720p") + .height(720L) + .bitrate(3000000L) + .fps(30L) + .fpsDen(1L) + .quality(23L) + .gop("2") + .profile(Profile.H264_BASELINE) + .build())) + .recordingSpec(RecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) + .width(1280L) + .name("720p") + .height(720L) + .quality(23L) + .fps(30L) + .fpsDen(1L) + .gop("2") + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) + .build())) + .build()) + .build()) .call(); - if (res.webhook().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/session"]["get"] + - target: $["paths"]["/asset/{assetId}"]["patch"] update: x-codeSamples: - lang: java - label: getSessions + label: updateAsset source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; + import java.util.Map; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.AssetPatchPayload; + import studio.livepeer.livepeer.models.components.PlaybackPolicy; + import studio.livepeer.livepeer.models.components.Type; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.UpdateAssetResponse; public class Application { @@ -1903,42 +1763,46 @@ actions: .apiKey("") .build(); - GetSessionsResponse res = sdk.session().getAll() + UpdateAssetResponse res = sdk.asset().update() + .assetId("") + .assetPatchPayload(AssetPatchPayload.builder() + .name("filename.mp4") + .playbackPolicy(PlaybackPolicy.builder() + .type(Type.WEBHOOK) + .webhookId("1bde4o2i6xycudoy") + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) + .refreshInterval(600d) + .build()) + .build()) .call(); - if (res.data().isPresent()) { + if (res.asset().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/webhook/{id}/log"]["get"] + - target: $["paths"]["/room/{id}/egress"]["post"] update: x-codeSamples: - lang: java - label: getWebhookLogs + label: startRoomEgress source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.RoomEgressPayload; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.StartRoomEgressResponse; public class Application { @@ -1948,43 +1812,36 @@ actions: .apiKey("") .build(); - GetWebhookLogsResponse res = sdk.webhook().getLogs() + StartRoomEgressResponse res = sdk.room().startEgress() .id("") + .roomEgressPayload(RoomEgressPayload.builder() + .streamId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") + .build()) .call(); - if (res.data().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/data/views/query/total/{playbackId}"]["get"] + - target: $["paths"]["/room/{id}/user/{userId}"]["get"] update: x-codeSamples: - lang: java - label: getPublicViewershipMetrics + label: getRoomUser source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetRoomUserResponse; public class Application { @@ -1994,43 +1851,36 @@ actions: .apiKey("") .build(); - GetPublicViewershipMetricsResponse res = sdk.metrics().getPublicViewership() - .playbackId("") + GetRoomUserResponse res = sdk.room().getUser() + .id("") + .userId("") .call(); - if (res.data().isPresent()) { + if (res.getRoomUserResponse().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/access-control/signing-key"]["get"] + - target: $["paths"]["/access-control/signing-key/{keyId}"]["get"] update: x-codeSamples: - lang: java - label: getSigningKeys + label: getSigningKey source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetSigningKeyResponse; public class Application { @@ -2040,42 +1890,36 @@ actions: .apiKey("") .build(); - GetSigningKeysResponse res = sdk.accessControl().getAll() + GetSigningKeyResponse res = sdk.accessControl().get() + .keyId("") .call(); - if (res.data().isPresent()) { + if (res.signingKey().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/data/views/query"]["get"] + - target: $["paths"]["/multistream/target"]["post"] update: x-codeSamples: - lang: java - label: getViewershipMetrics + label: createMultistreamTarget source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.MultistreamTargetInput; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse; public class Application { @@ -2085,46 +1929,39 @@ actions: .apiKey("") .build(); - GetViewershipMetricsRequest req = GetViewershipMetricsRequest.builder() + MultistreamTargetInput req = MultistreamTargetInput.builder() + .url("rtmps://live.my-service.tv/channel/secretKey") .build(); - GetViewershipMetricsResponse res = sdk.metrics().getViewership() + CreateMultistreamTargetResponse res = sdk.multistream().create() .request(req) .call(); - if (res.data().isPresent()) { + if (res.multistreamTarget().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/access-control/signing-key/{keyId}"]["delete"] + - target: $["paths"]["/webhook/{id}/log"]["get"] update: x-codeSamples: - lang: java - label: deleteSigningKey + label: getWebhookLogs source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse; public class Application { @@ -2134,41 +1971,35 @@ actions: .apiKey("") .build(); - DeleteSigningKeyResponse res = sdk.accessControl().delete() - .keyId("") + GetWebhookLogsResponse res = sdk.webhook().getLogs() + .id("") .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.data().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/access-control/signing-key/{keyId}"]["get"] + - target: $["paths"]["/access-control/signing-key"]["get"] update: x-codeSamples: - lang: java - label: getSigningKey + label: getSigningKeys source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetSigningKeysResponse; public class Application { @@ -2178,43 +2009,34 @@ actions: .apiKey("") .build(); - GetSigningKeyResponse res = sdk.accessControl().get() - .keyId("") + GetSigningKeysResponse res = sdk.accessControl().getAll() .call(); - if (res.signingKey().isPresent()) { + if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream"]["post"] + - target: $["paths"]["/webhook/{id}"]["get"] update: x-codeSamples: - lang: java - label: createStream + label: getWebhook source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetWebhookResponse; public class Application { @@ -2224,102 +2046,35 @@ actions: .apiKey("") .build(); - NewStreamPayload req = NewStreamPayload.builder() - .name("test_stream") - .pull(Pull.builder() - .source("https://myservice.com/live/stream.flv") - .headers(java.util.Map.ofEntries( - entry("Authorization", "Bearer 123"))) - .location(Location.builder() - .lat(39.739d) - .lon(-104.988d) - .build()) - .build()) - .playbackPolicy(PlaybackPolicy.builder() - .type(Type.WEBHOOK) - .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) - .refreshInterval(600d) - .build()) - .profiles(java.util.List.of( - FfmpegProfile.builder() - .width(1280L) - .name("720p") - .height(486589L) - .bitrate(3000000L) - .fps(30L) - .fpsDen(1L) - .quality(23L) - .gop("2") - .profile(Profile.H264_BASELINE) - .build())) - .record(false) - .recordingSpec(RecordingSpec.builder() - .profiles(java.util.List.of( - FfmpegProfile.builder() - .width(1280L) - .name("720p") - .height(489382L) - .bitrate(3000000L) - .fps(30L) - .fpsDen(1L) - .quality(23L) - .gop("2") - .profile(Profile.H264_BASELINE) - .build())) - .build()) - .multistream(Multistream.builder() - .targets(java.util.List.of( - Target.builder() - .profile("720p0") - .videoOnly(false) - .id("PUSH123") - .spec(TargetSpec.builder() - .url("rtmps://live.my-service.tv/channel/secretKey") - .name("My target") - .build()) - .build())) - .build()) - .build(); - - CreateStreamResponse res = sdk.stream().create() - .request(req) + GetWebhookResponse res = sdk.webhook().get() + .id("") .call(); - if (res.stream().isPresent()) { + if (res.webhook().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/multistream/target"]["get"] + - target: $["paths"]["/webhook/{id}/log/{logId}/resend"]["post"] update: x-codeSamples: - lang: java - label: getMultistreamTargets + label: resendWebhook source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.ResendWebhookResponse; public class Application { @@ -2329,42 +2084,36 @@ actions: .apiKey("") .build(); - GetMultistreamTargetsResponse res = sdk.multistream().getAll() + ResendWebhookResponse res = sdk.webhook().resendLog() + .id("") + .logId("") .call(); - if (res.data().isPresent()) { + if (res.webhookLog().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/multistream/target"]["post"] + - target: $["paths"]["/access-control/signing-key/{keyId}"]["delete"] update: x-codeSamples: - lang: java - label: createMultistreamTarget + label: deleteSigningKey source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse; public class Application { @@ -2374,47 +2123,33 @@ actions: .apiKey("") .build(); - MultistreamTargetInput req = MultistreamTargetInput.builder() - .url("rtmps://live.my-service.tv/channel/secretKey") - .build(); - - CreateMultistreamTargetResponse res = sdk.multistream().create() - .request(req) + DeleteSigningKeyResponse res = sdk.accessControl().delete() + .keyId("") .call(); - if (res.multistreamTarget().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream/{id}"]["get"] + - target: $["paths"]["/task/{taskId}"]["get"] update: x-codeSamples: - lang: java - label: getStream + label: getTask source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetTaskResponse; public class Application { @@ -2424,43 +2159,35 @@ actions: .apiKey("") .build(); - GetStreamResponse res = sdk.stream().get() - .id("") + GetTaskResponse res = sdk.task().get() + .taskId("") .call(); - if (res.stream().isPresent()) { + if (res.task().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream/{id}"]["delete"] + - target: $["paths"]["/webhook"]["get"] update: x-codeSamples: - lang: java - label: deleteStream + label: getWebhooks source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetWebhooksResponse; public class Application { @@ -2470,41 +2197,34 @@ actions: .apiKey("") .build(); - DeleteStreamResponse res = sdk.stream().delete() - .id("") + GetWebhooksResponse res = sdk.webhook().getAll() .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.data().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/webhook"]["get"] + - target: $["paths"]["/data/views/query/total/{playbackId}"]["get"] update: x-codeSamples: - lang: java - label: getWebhooks + label: getPublicViewershipMetrics source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse; public class Application { @@ -2514,42 +2234,35 @@ actions: .apiKey("") .build(); - GetWebhooksResponse res = sdk.webhook().getAll() + GetPublicViewershipMetricsResponse res = sdk.metrics().getPublicViewership() + .playbackId("") .call(); if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/session/{id}"]["get"] + - target: $["paths"]["/access-control/signing-key"]["post"] update: x-codeSamples: - lang: java - label: getSession + label: createSigningKey source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse; public class Application { @@ -2559,43 +2272,34 @@ actions: .apiKey("") .build(); - GetSessionResponse res = sdk.session().get() - .id("") + CreateSigningKeyResponse res = sdk.accessControl().create() .call(); - if (res.session().isPresent()) { + if (res.signingKey().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/room/{id}/egress"]["post"] + - target: $["paths"]["/stream/{id}/multistream/{targetId}"]["delete"] update: x-codeSamples: - lang: java - label: startRoomEgress + label: removeMultistreamTarget source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse; public class Application { @@ -2605,44 +2309,37 @@ actions: .apiKey("") .build(); - StartRoomEgressResponse res = sdk.room().startEgress() + RemoveMultistreamTargetResponse res = sdk.stream().removeMultistreamTarget() .id("") - .roomEgressPayload(RoomEgressPayload.builder() - .streamId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") - .build()) + .targetId("") .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/stream/{id}/start-pull"]["post"] + - target: $["paths"]["/webhook"]["post"] update: x-codeSamples: - lang: java - label: startPullStream + label: createWebhook source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; + import java.util.List; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.Events; + import studio.livepeer.livepeer.models.components.WebhookInput; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.CreateWebhookResponse; public class Application { @@ -2652,41 +2349,61 @@ actions: .apiKey("") .build(); - StartPullStreamResponse res = sdk.stream().startPull() - .id("") + WebhookInput req = WebhookInput.builder() + .name("test_webhook") + .url("https://my-service.com/webhook") + .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") + .events(List.of( + Events.STREAM_STARTED, + Events.STREAM_IDLE)) + .sharedSecret("my-secret") + .streamId("de7818e7-610a-4057-8f6f-b785dc1e6f88") + .build(); + + CreateWebhookResponse res = sdk.webhook().create() + .request(req) .call(); - // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + if (res.webhook().isPresent()) { + // handle response + } + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/asset/request-upload"]["post"] + - target: $["paths"]["/transcode"]["post"] update: x-codeSamples: - lang: java - label: requestUpload + label: transcodeVideo source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; + import java.util.List; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.components.Fmp4; + import studio.livepeer.livepeer.models.components.Hls; + import studio.livepeer.livepeer.models.components.Input1; + import studio.livepeer.livepeer.models.components.Input; + import studio.livepeer.livepeer.models.components.Mp4; + import studio.livepeer.livepeer.models.components.Outputs; + import studio.livepeer.livepeer.models.components.Storage1; + import studio.livepeer.livepeer.models.components.StorageCredentials; + import studio.livepeer.livepeer.models.components.StorageType; + import studio.livepeer.livepeer.models.components.TranscodePayload; + import studio.livepeer.livepeer.models.components.TranscodePayloadStorage; + import studio.livepeer.livepeer.models.components.TranscodeProfile; + import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; + import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.TranscodeVideoResponse; public class Application { @@ -2696,21 +2413,36 @@ actions: .apiKey("") .build(); - NewAssetPayload req = NewAssetPayload.builder() - .name("filename.mp4") - .staticMp4(true) - .playbackPolicy(PlaybackPolicy.builder() - .type(Type.WEBHOOK) - .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) - .refreshInterval(600d) - .build()) - .profiles(java.util.List.of( + TranscodePayload req = TranscodePayload.builder() + .input(Input.of(Input1.builder() + .url("https://s3.amazonaws.com/bucket/file.mp4") + .build())) + .storage(TranscodePayloadStorage.of(Storage1.builder() + .type(StorageType.S3) + .endpoint("https://gateway.storjshare.io") + .bucket("outputbucket") + .credentials(StorageCredentials.builder() + .accessKeyId("AKIAIOSFODNN7EXAMPLE") + .secretAccessKey("wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY") + .build()) + .build())) + .outputs(Outputs.builder() + .hls(Hls.builder() + .path("/samplevideo/hls") + .build()) + .mp4(Mp4.builder() + .path("/samplevideo/mp4") + .build()) + .fmp4(Fmp4.builder() + .path("/samplevideo/fmp4") + .build()) + .build()) + .profiles(List.of( TranscodeProfile.builder() .bitrate(3000000L) .width(1280L) .name("720p") + .height(720L) .quality(23L) .fps(30L) .fpsDen(1L) @@ -2720,43 +2452,35 @@ actions: .build())) .build(); - RequestUploadResponse res = sdk.asset().create() + TranscodeVideoResponse res = sdk.transcode().create() .request(req) .call(); - if (res.data().isPresent()) { + if (res.task().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } - - target: $["paths"]["/asset/upload/url"]["post"] + - target: $["paths"]["/stream/{id}/start-pull"]["post"] update: x-codeSamples: - lang: java - label: uploadAsset + label: startPullStream source: |- package hello.world; - import java.math.BigDecimal; - import java.math.BigDecimal; - import java.math.BigInteger; - import java.time.LocalDate; - import java.time.OffsetDateTime; - import java.util.Optional; - import org.openapitools.jackson.nullable.JsonNullable; - import static java.util.Map.entry; + import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; - import studio.livepeer.livepeer.models.components.*; - import studio.livepeer.livepeer.models.components.Security; - import studio.livepeer.livepeer.models.operations.*; - import studio.livepeer.livepeer.utils.EventStream; + import studio.livepeer.livepeer.models.errors.SDKError; + import studio.livepeer.livepeer.models.operations.StartPullStreamResponse; public class Application { @@ -2766,44 +2490,18 @@ actions: .apiKey("") .build(); - NewAssetFromUrlPayload req = NewAssetFromUrlPayload.builder() - .name("filename.mp4") - .url("https://s3.amazonaws.com/my-bucket/path/filename.mp4") - .staticMp4(true) - .playbackPolicy(PlaybackPolicy.builder() - .type(Type.WEBHOOK) - .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) - .refreshInterval(600d) - .build()) - .profiles(java.util.List.of( - TranscodeProfile.builder() - .bitrate(3000000L) - .width(1280L) - .name("720p") - .quality(23L) - .fps(30L) - .fpsDen(1L) - .gop("2") - .profile(TranscodeProfileProfile.H264_BASELINE) - .encoder(TranscodeProfileEncoder.H264) - .build())) - .build(); - - UploadAssetResponse res = sdk.asset().createViaUrl() - .request(req) + StartPullStreamResponse res = sdk.stream().startPull() + .id("") .call(); - if (res.twoHundredApplicationJsonData().isPresent()) { - // handle response - } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + // handle response + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } diff --git a/docs/models/components/Asset.md b/docs/models/components/Asset.md index 279306a..0a08693 100644 --- a/docs/models/components/Asset.md +++ b/docs/models/components/Asset.md @@ -3,24 +3,24 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `type` | [Optional](../../models/components/AssetType.md) | :heavy_minus_sign: | Type of the asset. | video | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | -| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 66E2161C-7670-4D05-B71D-DA2D6979556F | -| `playbackUrl` | *Optional* | :heavy_minus_sign: | URL for HLS playback. **It is recommended to not use this URL**, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8). | https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8 | -| `downloadUrl` | *Optional* | :heavy_minus_sign: | The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. | https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `source` | [studio.livepeer.livepeer.models.components.Source](../../models/components/Source.md) | :heavy_check_mark: | N/A | | -| `creatorId` | [Optional](../../models/components/CreatorId.md) | :heavy_minus_sign: | N/A | | -| `profiles` | List<[studio.livepeer.livepeer.models.components.FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | Requested profiles for the asset to be transcoded into. Currently
only supported for livestream recording assets, configured through
the `stream.recordingSpec` field. If this is not present it means
that default profiles were derived from the input metadata.
| | -| `storage` | [Optional](../../models/components/AssetStorage.md) | :heavy_minus_sign: | N/A | | -| `status` | [Optional](../../models/components/AssetStatus.md) | :heavy_minus_sign: | Status of the asset | | -| `name` | *String* | :heavy_check_mark: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which asset was created | 1587667174725 | -| `createdByTokenName` | *Optional* | :heavy_minus_sign: | Name of the token used to create this object | | -| `size` | *Optional* | :heavy_minus_sign: | Size of the asset in bytes | 84934509 | -| `hash` | List<[studio.livepeer.livepeer.models.components.Hash](../../models/components/Hash.md)> | :heavy_minus_sign: | Hash of the asset | | -| `videoSpec` | [Optional](../../models/components/VideoSpec.md) | :heavy_minus_sign: | Video metadata | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `type` | [Optional](../../models/components/AssetType.md) | :heavy_minus_sign: | Type of the asset. | video | +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | +| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 66E2161C-7670-4D05-B71D-DA2D6979556F | +| `playbackUrl` | *Optional* | :heavy_minus_sign: | URL for HLS playback. **It is recommended to not use this URL**, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8). | https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8 | +| `downloadUrl` | *Optional* | :heavy_minus_sign: | The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. | https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video | +| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `source` | [Source](../../models/components/Source.md) | :heavy_check_mark: | N/A | | +| `creatorId` | [Optional](../../models/components/CreatorId.md) | :heavy_minus_sign: | N/A | | +| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | Requested profiles for the asset to be transcoded into. Configured
on the upload APIs payload or through the `stream.recordingSpec`
field for recordings. If not specified, default profiles are derived
based on the source input. If this is a recording, the source will
not be present in this list but will be available for playback.
| | +| `storage` | [Optional](../../models/components/AssetStorage.md) | :heavy_minus_sign: | N/A | | +| `status` | [Optional](../../models/components/AssetStatus.md) | :heavy_minus_sign: | Status of the asset | | +| `name` | *String* | :heavy_check_mark: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | +| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which asset was created | 1587667174725 | +| `createdByTokenName` | *Optional* | :heavy_minus_sign: | Name of the token used to create this object | | +| `size` | *Optional* | :heavy_minus_sign: | Size of the asset in bytes | 84934509 | +| `hash` | List<[Hash](../../models/components/Hash.md)> | :heavy_minus_sign: | Hash of the asset | | +| `videoSpec` | [Optional](../../models/components/VideoSpec.md) | :heavy_minus_sign: | Video metadata | | \ No newline at end of file diff --git a/docs/models/components/AssetIpfs.md b/docs/models/components/AssetIpfs.md index 3a28607..fa75d65 100644 --- a/docs/models/components/AssetIpfs.md +++ b/docs/models/components/AssetIpfs.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `spec` | [Optional](../../models/components/AssetSpec.md) | :heavy_minus_sign: | N/A | | -| `dollarRef` | *Optional* | :heavy_minus_sign: | N/A | | -| `nftMetadata` | [Optional](../../models/components/IpfsFileInfo.md) | :heavy_minus_sign: | N/A | | -| `updatedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which IPFS export task was
updated
| 1587667174725 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `spec` | [Optional](../../models/components/AssetSpec.md) | :heavy_minus_sign: | N/A | | +| `dollarRef` | *Optional* | :heavy_minus_sign: | N/A | | +| `nftMetadata` | [Optional](../../models/components/IpfsFileInfo.md) | :heavy_minus_sign: | N/A | | +| `updatedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which IPFS export task was
updated
| 1587667174725 | \ No newline at end of file diff --git a/docs/models/components/AssetPatchPayload.md b/docs/models/components/AssetPatchPayload.md index b326bc2..b133cb4 100644 --- a/docs/models/components/AssetPatchPayload.md +++ b/docs/models/components/AssetPatchPayload.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `name` | *Optional* | :heavy_minus_sign: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `storage` | [Optional](../../models/components/Storage.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `name` | *Optional* | :heavy_minus_sign: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | +| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `storage` | [Optional](../../models/components/Storage.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/AssetSpec.md b/docs/models/components/AssetSpec.md index dacb7d8..6ac9398 100644 --- a/docs/models/components/AssetSpec.md +++ b/docs/models/components/AssetSpec.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `nftMetadataTemplate` | [Optional](../../models/components/AssetNftMetadataTemplate.md) | :heavy_minus_sign: | Name of the NFT metadata template to export. 'player'
will embed the Livepeer Player on the NFT while 'file'
will reference only the immutable MP4 files.
| -| `nftMetadata` | [Optional](../../models/components/AssetNftMetadata.md) | :heavy_minus_sign: | Additional data to add to the NFT metadata exported to
IPFS. Will be deep merged with the default metadata
exported.
| \ No newline at end of file +| `nftMetadataTemplate` | [Optional](../../models/components/AssetNftMetadataTemplate.md) | :heavy_minus_sign: | Name of the NFT metadata template to export. 'player'
will embed the Livepeer Player on the NFT while 'file'
will reference only the immutable MP4 files.
| +| `nftMetadata` | [Optional](../../models/components/AssetNftMetadata.md) | :heavy_minus_sign: | Additional data to add to the NFT metadata exported to
IPFS. Will be deep merged with the default metadata
exported.
| \ No newline at end of file diff --git a/docs/models/components/AssetStatus.md b/docs/models/components/AssetStatus.md index 625611e..1e44dcf 100644 --- a/docs/models/components/AssetStatus.md +++ b/docs/models/components/AssetStatus.md @@ -5,9 +5,9 @@ Status of the asset ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `phase` | [studio.livepeer.livepeer.models.components.AssetPhase](../../models/components/AssetPhase.md) | :heavy_check_mark: | Phase of the asset | | -| `updatedAt` | *double* | :heavy_check_mark: | Timestamp (in milliseconds) at which the asset was last updated | 1587667174725 | -| `progress` | *Optional* | :heavy_minus_sign: | Current progress of the task creating this asset. | | -| `errorMessage` | *Optional* | :heavy_minus_sign: | Error message if the asset creation failed. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `phase` | [AssetPhase](../../models/components/AssetPhase.md) | :heavy_check_mark: | Phase of the asset | | +| `updatedAt` | *double* | :heavy_check_mark: | Timestamp (in milliseconds) at which the asset was last updated | 1587667174725 | +| `progress` | *Optional* | :heavy_minus_sign: | Current progress of the task creating this asset. | | +| `errorMessage` | *Optional* | :heavy_minus_sign: | Error message if the asset creation failed. | | \ No newline at end of file diff --git a/docs/models/components/AssetStorage.md b/docs/models/components/AssetStorage.md index 1a03175..c980349 100644 --- a/docs/models/components/AssetStorage.md +++ b/docs/models/components/AssetStorage.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `ipfs` | [Optional](../../models/components/AssetIpfs.md) | :heavy_minus_sign: | N/A | -| `status` | [Optional](../../models/components/StorageStatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `ipfs` | [Optional](../../models/components/AssetIpfs.md) | :heavy_minus_sign: | N/A | +| `status` | [Optional](../../models/components/StorageStatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Attestation.md b/docs/models/components/Attestation.md index d5548ad..d78ee96 100644 --- a/docs/models/components/Attestation.md +++ b/docs/models/components/Attestation.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0 | -| `primaryType` | [studio.livepeer.livepeer.models.components.PrimaryType](../../models/components/PrimaryType.md) | :heavy_check_mark: | Video Metadata EIP-712 primaryType | VideoAttestation | -| `domain` | [studio.livepeer.livepeer.models.components.Domain](../../models/components/Domain.md) | :heavy_check_mark: | Video Metadata EIP-712 domain | | -| `message` | [studio.livepeer.livepeer.models.components.Message](../../models/components/Message.md) | :heavy_check_mark: | Video Metadata EIP-712 message content | | -| `signature` | *String* | :heavy_check_mark: | Video Metadata EIP-712 message signature | 1311768467294899700 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the object was created | 1587667174725 | -| `signatureType` | [Optional](../../models/components/SignatureType.md) | :heavy_minus_sign: | N/A | eip712 | -| `storage` | [Optional](../../models/components/AttestationStorage.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `id` | *Optional* | :heavy_minus_sign: | N/A | 5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0 | +| `primaryType` | [PrimaryType](../../models/components/PrimaryType.md) | :heavy_check_mark: | Video Metadata EIP-712 primaryType | VideoAttestation | +| `domain` | [Domain](../../models/components/Domain.md) | :heavy_check_mark: | Video Metadata EIP-712 domain | | +| `message` | [Message](../../models/components/Message.md) | :heavy_check_mark: | Video Metadata EIP-712 message content | | +| `signature` | *String* | :heavy_check_mark: | Video Metadata EIP-712 message signature | 1311768467294899700 | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the object was created | 1587667174725 | +| `signatureType` | [Optional](../../models/components/SignatureType.md) | :heavy_minus_sign: | N/A | eip712 | +| `storage` | [Optional](../../models/components/AttestationStorage.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/AttestationIpfs.md b/docs/models/components/AttestationIpfs.md index 7991fa4..37b9214 100644 --- a/docs/models/components/AttestationIpfs.md +++ b/docs/models/components/AttestationIpfs.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `dollarRef` | *Optional* | :heavy_minus_sign: | N/A | | -| `updatedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which IPFS export task was updated
| 1587667174725 | \ No newline at end of file +| `dollarRef` | *Optional* | :heavy_minus_sign: | N/A | | +| `updatedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which IPFS export task was updated
| 1587667174725 | \ No newline at end of file diff --git a/docs/models/components/AttestationStorage.md b/docs/models/components/AttestationStorage.md index 46ed381..ba5b9da 100644 --- a/docs/models/components/AttestationStorage.md +++ b/docs/models/components/AttestationStorage.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `ipfs` | [Optional](../../models/components/AttestationIpfs.md) | :heavy_minus_sign: | N/A | -| `status` | [Optional](../../models/components/StorageStatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `ipfs` | [Optional](../../models/components/AttestationIpfs.md) | :heavy_minus_sign: | N/A | +| `status` | [Optional](../../models/components/StorageStatus.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Clip.md b/docs/models/components/Clip.md index ca03f79..5001d81 100644 --- a/docs/models/components/Clip.md +++ b/docs/models/components/Clip.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `url` | *Optional* | :heavy_minus_sign: | URL of the asset to "clip" | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | -| `clipStrategy` | [Optional](../../models/components/ClipStrategy.md) | :heavy_minus_sign: | Strategy to use for clipping the asset. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. | | -| `catalystPipelineStrategy` | [Optional](../../models/components/CatalystPipelineStrategy.md) | :heavy_minus_sign: | Force to use a specific strategy in the Catalyst pipeline. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. | catalyst_ffmpeg | -| `sessionId` | *Optional* | :heavy_minus_sign: | ID of the session | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | -| `inputId` | *Optional* | :heavy_minus_sign: | ID of the input asset or stream | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file +| `url` | *Optional* | :heavy_minus_sign: | URL of the asset to "clip" | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | +| `clipStrategy` | [Optional](../../models/components/ClipStrategy.md) | :heavy_minus_sign: | Strategy to use for clipping the asset. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. | | +| `catalystPipelineStrategy` | [Optional](../../models/components/CatalystPipelineStrategy.md) | :heavy_minus_sign: | Force to use a specific strategy in the Catalyst pipeline. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. | catalyst_ffmpeg | +| `sessionId` | *Optional* | :heavy_minus_sign: | ID of the session | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | +| `inputId` | *Optional* | :heavy_minus_sign: | ID of the input asset or stream | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file diff --git a/docs/models/components/ClipPayload.md b/docs/models/components/ClipPayload.md index 9573a60..a6c9c9b 100644 --- a/docs/models/components/ClipPayload.md +++ b/docs/models/components/ClipPayload.md @@ -7,6 +7,6 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `playbackId` | *String* | :heavy_check_mark: | The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. | eaw4nk06ts2d0mzb | | `startTime` | *double* | :heavy_check_mark: | The start timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | -| `endTime` | *Optional* | :heavy_minus_sign: | The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | -| `name` | *Optional* | :heavy_minus_sign: | The optional friendly name of the clip to create. | My Clip | -| `sessionId` | *Optional* | :heavy_minus_sign: | The optional session ID of the stream to clip. This can be used to clip _recordings_ - if it is not specified, it will clip the ongoing livestream. | de7818e7-610a-4057-8f6f-b785dc1e6f88 | \ No newline at end of file +| `endTime` | *Optional* | :heavy_minus_sign: | The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | +| `name` | *Optional* | :heavy_minus_sign: | The optional friendly name of the clip to create. | My Clip | +| `sessionId` | *Optional* | :heavy_minus_sign: | The optional session ID of the stream to clip. This can be used to clip _recordings_ - if it is not specified, it will clip the ongoing livestream. | de7818e7-610a-4057-8f6f-b785dc1e6f88 | \ No newline at end of file diff --git a/docs/models/components/ClipStrategy.md b/docs/models/components/ClipStrategy.md index 08d9132..51ee330 100644 --- a/docs/models/components/ClipStrategy.md +++ b/docs/models/components/ClipStrategy.md @@ -7,6 +7,6 @@ Strategy to use for clipping the asset. If not specified, the default strategy t | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `startTime` | *Optional* | :heavy_minus_sign: | The start timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | -| `endTime` | *Optional* | :heavy_minus_sign: | The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. | eaw4nk06ts2d0mzb | \ No newline at end of file +| `startTime` | *Optional* | :heavy_minus_sign: | The start timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | +| `endTime` | *Optional* | :heavy_minus_sign: | The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ | 1587667174725 | +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. | eaw4nk06ts2d0mzb | \ No newline at end of file diff --git a/docs/models/components/CreateRoomResponse.md b/docs/models/components/CreateRoomResponse.md index 3b0301f..d104426 100644 --- a/docs/models/components/CreateRoomResponse.md +++ b/docs/models/components/CreateRoomResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *Optional* | :heavy_minus_sign: | The ID of the room | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | \ No newline at end of file +| `id` | *Optional* | :heavy_minus_sign: | The ID of the room | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | \ No newline at end of file diff --git a/docs/models/components/CreatorId1.md b/docs/models/components/CreatorId1.md index cd279f5..6fcf9b7 100644 --- a/docs/models/components/CreatorId1.md +++ b/docs/models/components/CreatorId1.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `type` | [studio.livepeer.livepeer.models.components.CreatorIdType](../../models/components/CreatorIdType.md) | :heavy_check_mark: | N/A | unverified | -| `value` | *String* | :heavy_check_mark: | Developer-managed ID of the user who created the resource. | user123 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `type` | [CreatorIdType](../../models/components/CreatorIdType.md) | :heavy_check_mark: | N/A | unverified | +| `value` | *String* | :heavy_check_mark: | Developer-managed ID of the user who created the resource. | user123 | \ No newline at end of file diff --git a/docs/models/components/Custom.md b/docs/models/components/Custom.md index 2b4fe55..2620fca 100644 --- a/docs/models/components/Custom.md +++ b/docs/models/components/Custom.md @@ -8,5 +8,5 @@ custom URL parameters for the export task | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `url` | *String* | :heavy_check_mark: | URL where to export the asset | https://s3.amazonaws.com/my-bucket/path/filename.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=LLMMB | -| `method` | *Optional* | :heavy_minus_sign: | Method to use on the export request | POST | +| `method` | *Optional* | :heavy_minus_sign: | Method to use on the export request | POST | | `headers` | Map | :heavy_minus_sign: | Headers to add to the export request | | \ No newline at end of file diff --git a/docs/models/components/Domain.md b/docs/models/components/Domain.md index 45138ca..a31b726 100644 --- a/docs/models/components/Domain.md +++ b/docs/models/components/Domain.md @@ -5,7 +5,7 @@ Video Metadata EIP-712 domain ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `name` | [studio.livepeer.livepeer.models.components.Name](../../models/components/Name.md) | :heavy_check_mark: | N/A | Verifiable Video | -| `version` | [studio.livepeer.livepeer.models.components.Version](../../models/components/Version.md) | :heavy_check_mark: | N/A | 1 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `name` | [Name](../../models/components/Name.md) | :heavy_check_mark: | N/A | Verifiable Video | +| `version` | [Version](../../models/components/Version.md) | :heavy_check_mark: | N/A | 1 | \ No newline at end of file diff --git a/docs/models/components/DvrPlayback.md b/docs/models/components/DvrPlayback.md index f4cec84..646cf7a 100644 --- a/docs/models/components/DvrPlayback.md +++ b/docs/models/components/DvrPlayback.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `hrn` | [Optional](../../models/components/PlaybackInfoHrn.md) | :heavy_minus_sign: | N/A | MP4 | -| `type` | [Optional](../../models/components/PlaybackInfoMetaDvrPlaybackType.md) | :heavy_minus_sign: | N/A | html5/video/mp4 | -| `url` | *Optional* | :heavy_minus_sign: | N/A | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | -| `error` | *Optional* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `hrn` | [Optional](../../models/components/PlaybackInfoHrn.md) | :heavy_minus_sign: | N/A | MP4 | +| `type` | [Optional](../../models/components/PlaybackInfoMetaDvrPlaybackType.md) | :heavy_minus_sign: | N/A | html5/video/mp4 | +| `url` | *Optional* | :heavy_minus_sign: | N/A | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | +| `error` | *Optional* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/Export.md b/docs/models/components/Export.md index 1c5ede3..10f17f8 100644 --- a/docs/models/components/Export.md +++ b/docs/models/components/Export.md @@ -5,6 +5,6 @@ Output of the export task ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `ipfs` | [Optional](../../models/components/TaskIpfs.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ipfs` | [Optional](../../models/components/TaskIpfs.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/ExportData.md b/docs/models/components/ExportData.md index f09c3c1..281f40d 100644 --- a/docs/models/components/ExportData.md +++ b/docs/models/components/ExportData.md @@ -5,6 +5,6 @@ Output of the export data task ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `ipfs` | [Optional](../../models/components/TaskOutputIpfs.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `ipfs` | [Optional](../../models/components/TaskOutputIpfs.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/ExportTaskParams1.md b/docs/models/components/ExportTaskParams1.md index 8a0604f..5e11c24 100644 --- a/docs/models/components/ExportTaskParams1.md +++ b/docs/models/components/ExportTaskParams1.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `custom` | [studio.livepeer.livepeer.models.components.Custom](../../models/components/Custom.md) | :heavy_check_mark: | custom URL parameters for the export task | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `custom` | [Custom](../../models/components/Custom.md) | :heavy_check_mark: | custom URL parameters for the export task | \ No newline at end of file diff --git a/docs/models/components/ExportTaskParams2.md b/docs/models/components/ExportTaskParams2.md index 2e27d5a..c031a51 100644 --- a/docs/models/components/ExportTaskParams2.md +++ b/docs/models/components/ExportTaskParams2.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `ipfs` | [studio.livepeer.livepeer.models.components.IpfsExportParams](../../models/components/IpfsExportParams.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `ipfs` | [IpfsExportParams](../../models/components/IpfsExportParams.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/FfmpegProfile.md b/docs/models/components/FfmpegProfile.md index 2a9cb65..8df3ef1 100644 --- a/docs/models/components/FfmpegProfile.md +++ b/docs/models/components/FfmpegProfile.md @@ -9,11 +9,11 @@ Transcode profile | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `width` | *long* | :heavy_check_mark: | N/A | 1280 | | `name` | *String* | :heavy_check_mark: | N/A | 720p | -| `height` | *long* | :heavy_check_mark: | N/A | | +| `height` | *long* | :heavy_check_mark: | N/A | 720 | | `bitrate` | *long* | :heavy_check_mark: | N/A | 3000000 | | `fps` | *long* | :heavy_check_mark: | N/A | 30 | -| `fpsDen` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `quality` | *Optional* | :heavy_minus_sign: | Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it.
| 23 | -| `gop` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `profile` | [Optional](../../models/components/Profile.md) | :heavy_minus_sign: | N/A | H264Baseline | -| `encoder` | [Optional](../../models/components/Encoder.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `fpsDen` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `quality` | *Optional* | :heavy_minus_sign: | Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it.
| 23 | +| `gop` | *Optional* | :heavy_minus_sign: | N/A | 2 | +| `profile` | [Optional](../../models/components/Profile.md) | :heavy_minus_sign: | N/A | H264Baseline | +| `encoder` | [Optional](../../models/components/Encoder.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/GetRoomUserResponse.md b/docs/models/components/GetRoomUserResponse.md index f7589fe..94ea838 100644 --- a/docs/models/components/GetRoomUserResponse.md +++ b/docs/models/components/GetRoomUserResponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | The ID of the user | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | -| `joinedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the user joined | 1687517025261 | -| `name` | *Optional* | :heavy_minus_sign: | The display name of the user | name | -| `isPublisher` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks | true | -| `metadata` | *Optional* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file +| `id` | *Optional* | :heavy_minus_sign: | The ID of the user | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | +| `joinedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the user joined | 1687517025261 | +| `name` | *Optional* | :heavy_minus_sign: | The display name of the user | name | +| `isPublisher` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks | true | +| `metadata` | *Optional* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file diff --git a/docs/models/components/Hash.md b/docs/models/components/Hash.md index 7489843..17f177c 100644 --- a/docs/models/components/Hash.md +++ b/docs/models/components/Hash.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `hash` | *Optional* | :heavy_minus_sign: | Hash of the asset | 9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57 | -| `algorithm` | *Optional* | :heavy_minus_sign: | Hash algorithm used to compute the hash | sha256 | \ No newline at end of file +| `hash` | *Optional* | :heavy_minus_sign: | Hash of the asset | 9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57 | +| `algorithm` | *Optional* | :heavy_minus_sign: | Hash algorithm used to compute the hash | sha256 | \ No newline at end of file diff --git a/docs/models/components/Hrn.md b/docs/models/components/Hrn.md index cda6e42..414b5af 100644 --- a/docs/models/components/Hrn.md +++ b/docs/models/components/Hrn.md @@ -12,4 +12,5 @@ Human Readable Name | `WEB_RTCH264` | WebRTC (H264) | | `FLV_H264` | FLV (H264) | | `THUMBNAIL_JPEG` | Thumbnail (JPEG) | +| `THUMBNAIL_PNG` | Thumbnail (PNG) | | `THUMBNAILS` | Thumbnails | \ No newline at end of file diff --git a/docs/models/components/Input2.md b/docs/models/components/Input2.md index 080b019..0b17af4 100644 --- a/docs/models/components/Input2.md +++ b/docs/models/components/Input2.md @@ -7,8 +7,8 @@ S3-like storage input video | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [studio.livepeer.livepeer.models.components.InputType](../../models/components/InputType.md) | :heavy_check_mark: | Type of service. This is optional and defaults to `url` if
ÅšURL field is provided.
| | +| `type` | [InputType](../../models/components/InputType.md) | :heavy_check_mark: | Type of service. This is optional and defaults to `url` if
ÅšURL field is provided.
| | | `endpoint` | *String* | :heavy_check_mark: | Service endpoint URL (AWS S3 endpoint list: https://docs.aws.amazon.com/general/latest/gr/s3.html, GCP S3 endpoint: https://storage.googleapis.com, Storj: https://gateway.storjshare.io) | https://gateway.storjshare.io | | `bucket` | *String* | :heavy_check_mark: | Bucket with input file | inputbucket | | `path` | *String* | :heavy_check_mark: | Path to the input file inside the bucket | /path/file.mp4 | -| `credentials` | [studio.livepeer.livepeer.models.components.Credentials](../../models/components/Credentials.md) | :heavy_check_mark: | Credentials for the private input video storage | | \ No newline at end of file +| `credentials` | [Credentials](../../models/components/Credentials.md) | :heavy_check_mark: | Credentials for the private input video storage | | \ No newline at end of file diff --git a/docs/models/components/InputCreatorId1.md b/docs/models/components/InputCreatorId1.md index 587f5da..3557108 100644 --- a/docs/models/components/InputCreatorId1.md +++ b/docs/models/components/InputCreatorId1.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `type` | [studio.livepeer.livepeer.models.components.InputCreatorIdType](../../models/components/InputCreatorIdType.md) | :heavy_check_mark: | N/A | -| `value` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `type` | [InputCreatorIdType](../../models/components/InputCreatorIdType.md) | :heavy_check_mark: | N/A | +| `value` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/Ipfs1.md b/docs/models/components/Ipfs1.md index a39cc61..e400eb8 100644 --- a/docs/models/components/Ipfs1.md +++ b/docs/models/components/Ipfs1.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `spec` | [JsonNullable](../../models/components/Spec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `spec` | [JsonNullable](../../models/components/Spec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/IpfsExportParams.md b/docs/models/components/IpfsExportParams.md index 754a215..07775b8 100644 --- a/docs/models/components/IpfsExportParams.md +++ b/docs/models/components/IpfsExportParams.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `dollarRef` | *Optional* | :heavy_minus_sign: | N/A | -| `pinata` | [Optional](../../models/components/Pinata.md) | :heavy_minus_sign: | Custom credentials for the Piñata service. Must have either
a JWT or an API key and an API secret.
| \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `dollarRef` | *Optional* | :heavy_minus_sign: | N/A | +| `pinata` | [Optional](../../models/components/Pinata.md) | :heavy_minus_sign: | Custom credentials for the Piñata service. Must have either
a JWT or an API key and an API secret.
| \ No newline at end of file diff --git a/docs/models/components/IpfsFileInfo.md b/docs/models/components/IpfsFileInfo.md index e9f9600..58a4638 100644 --- a/docs/models/components/IpfsFileInfo.md +++ b/docs/models/components/IpfsFileInfo.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | | `cid` | *String* | :heavy_check_mark: | CID of the file on IPFS | -| `url` | *Optional* | :heavy_minus_sign: | URL with IPFS scheme for the file | -| `gatewayUrl` | *Optional* | :heavy_minus_sign: | URL to access file via HTTP through an IPFS gateway | \ No newline at end of file +| `url` | *Optional* | :heavy_minus_sign: | URL with IPFS scheme for the file | +| `gatewayUrl` | *Optional* | :heavy_minus_sign: | URL to access file via HTTP through an IPFS gateway | \ No newline at end of file diff --git a/docs/models/components/LastFailure.md b/docs/models/components/LastFailure.md index 3ab3fbb..125cfbd 100644 --- a/docs/models/components/LastFailure.md +++ b/docs/models/components/LastFailure.md @@ -7,7 +7,7 @@ failure timestamp and error message with status code | Field | Type | Required | Description | Example | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `timestamp` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the webhook last failed | 1587667174725 | -| `error` | *Optional* | :heavy_minus_sign: | Webhook failure error message | Error message | -| `response` | *Optional* | :heavy_minus_sign: | Webhook failure response | Response body | -| `statusCode` | *Optional* | :heavy_minus_sign: | Webhook failure status code | 500 | \ No newline at end of file +| `timestamp` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the webhook last failed | 1587667174725 | +| `error` | *Optional* | :heavy_minus_sign: | Webhook failure error message | Error message | +| `response` | *Optional* | :heavy_minus_sign: | Webhook failure response | Response body | +| `statusCode` | *Optional* | :heavy_minus_sign: | Webhook failure status code | 500 | \ No newline at end of file diff --git a/docs/models/components/Message.md b/docs/models/components/Message.md index 73b4288..c6207fd 100644 --- a/docs/models/components/Message.md +++ b/docs/models/components/Message.md @@ -5,9 +5,9 @@ Video Metadata EIP-712 message content ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `video` | *String* | :heavy_check_mark: | N/A | 5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0 | -| `attestations` | List<[studio.livepeer.livepeer.models.components.Attestations](../../models/components/Attestations.md)> | :heavy_check_mark: | N/A | | -| `signer` | *String* | :heavy_check_mark: | N/A | 1311768467294899700 | -| `timestamp` | *double* | :heavy_check_mark: | N/A | 1587667174725 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `video` | *String* | :heavy_check_mark: | N/A | 5b9e63bb-6fd0-4bea-aff2-cc5d4eb9cad0 | +| `attestations` | List<[Attestations](../../models/components/Attestations.md)> | :heavy_check_mark: | N/A | | +| `signer` | *String* | :heavy_check_mark: | N/A | 1311768467294899700 | +| `timestamp` | *double* | :heavy_check_mark: | N/A | 1587667174725 | \ No newline at end of file diff --git a/docs/models/components/Meta.md b/docs/models/components/Meta.md index 30ea154..1555f4b 100644 --- a/docs/models/components/Meta.md +++ b/docs/models/components/Meta.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `live` | [Optional](../../models/components/Live.md) | :heavy_minus_sign: | N/A | 0 | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `source` | List<[studio.livepeer.livepeer.models.components.PlaybackInfoSource](../../models/components/PlaybackInfoSource.md)> | :heavy_check_mark: | N/A | | -| `dvrPlayback` | List<[studio.livepeer.livepeer.models.components.DvrPlayback](../../models/components/DvrPlayback.md)> | :heavy_minus_sign: | N/A | | -| `attestation` | [Optional](../../models/components/Attestation.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `live` | [Optional](../../models/components/Live.md) | :heavy_minus_sign: | N/A | 0 | +| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `source` | List<[PlaybackInfoSource](../../models/components/PlaybackInfoSource.md)> | :heavy_check_mark: | N/A | | +| `dvrPlayback` | List<[DvrPlayback](../../models/components/DvrPlayback.md)> | :heavy_minus_sign: | N/A | | +| `attestation` | [Optional](../../models/components/Attestation.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/Multistream.md b/docs/models/components/Multistream.md index 1ae187a..d221a15 100644 --- a/docs/models/components/Multistream.md +++ b/docs/models/components/Multistream.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `targets` | List<[studio.livepeer.livepeer.models.components.Target](../../models/components/Target.md)> | :heavy_minus_sign: | References to targets where this stream will be simultaneously
streamed to
| [
{
"id": "PUSH123",
"profile": "720p"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `targets` | List<[Target](../../models/components/Target.md)> | :heavy_minus_sign: | References to targets where this stream will be simultaneously
streamed to
| [
{
"id": "PUSH123",
"profile": "720p"
}
] | \ No newline at end of file diff --git a/docs/models/components/MultistreamTarget.md b/docs/models/components/MultistreamTarget.md index 6ffaa3b..db6d018 100644 --- a/docs/models/components/MultistreamTarget.md +++ b/docs/models/components/MultistreamTarget.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | | -| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 66E2161C-7670-4D05-B71D-DA2D6979556F | -| `disabled` | *Optional* | :heavy_minus_sign: | If true then this multistream target will not be used for pushing
even if it is configured in a stream object.
| | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which multistream target object was
created
| 1587667174725 | \ No newline at end of file +| `id` | *Optional* | :heavy_minus_sign: | N/A | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `name` | *Optional* | :heavy_minus_sign: | N/A | | +| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 66E2161C-7670-4D05-B71D-DA2D6979556F | +| `disabled` | *Optional* | :heavy_minus_sign: | If true then this multistream target will not be used for pushing
even if it is configured in a stream object.
| | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which multistream target object was
created
| 1587667174725 | \ No newline at end of file diff --git a/docs/models/components/MultistreamTargetInput.md b/docs/models/components/MultistreamTargetInput.md index 7d6fed1..89c54f3 100644 --- a/docs/models/components/MultistreamTargetInput.md +++ b/docs/models/components/MultistreamTargetInput.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | | +| `name` | *Optional* | :heavy_minus_sign: | N/A | | | `url` | *String* | :heavy_check_mark: | Livepeer-compatible multistream target URL (RTMP(S) or SRT) | rtmps://live.my-service.tv/channel/secretKey | -| `disabled` | *Optional* | :heavy_minus_sign: | If true then this multistream target will not be used for pushing
even if it is configured in a stream object.
| | \ No newline at end of file +| `disabled` | *Optional* | :heavy_minus_sign: | If true then this multistream target will not be used for pushing
even if it is configured in a stream object.
| | \ No newline at end of file diff --git a/docs/models/components/MultistreamTargetPatchPayload.md b/docs/models/components/MultistreamTargetPatchPayload.md index 3fce188..b88be5c 100644 --- a/docs/models/components/MultistreamTargetPatchPayload.md +++ b/docs/models/components/MultistreamTargetPatchPayload.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | | +| `name` | *Optional* | :heavy_minus_sign: | N/A | | | `url` | *String* | :heavy_check_mark: | Livepeer-compatible multistream target URL (RTMP(S) or SRT) | rtmps://live.my-service.tv/channel/secretKey | -| `disabled` | *Optional* | :heavy_minus_sign: | If true then this multistream target will not be used for pushing
even if it is configured in a stream object.
| | \ No newline at end of file +| `disabled` | *Optional* | :heavy_minus_sign: | If true then this multistream target will not be used for pushing
even if it is configured in a stream object.
| | \ No newline at end of file diff --git a/docs/models/components/NewAssetFromUrlPayload.md b/docs/models/components/NewAssetFromUrlPayload.md index 802f1b3..319a022 100644 --- a/docs/models/components/NewAssetFromUrlPayload.md +++ b/docs/models/components/NewAssetFromUrlPayload.md @@ -6,12 +6,12 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | *String* | :heavy_check_mark: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | -| `staticMp4` | *Optional* | :heavy_minus_sign: | Whether to generate MP4s for the asset. | true | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `storage` | [Optional](../../models/components/Storage.md) | :heavy_minus_sign: | N/A | | +| `staticMp4` | *Optional* | :heavy_minus_sign: | Whether to generate MP4s for the asset. | true | +| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `storage` | [Optional](../../models/components/Storage.md) | :heavy_minus_sign: | N/A | | | `url` | *String* | :heavy_check_mark: | URL where the asset contents can be retrieved, e.g. `https://s3.amazonaws.com/my-bucket/path/filename.mp4`.
For an IPFS source, this should be similar to: `ipfs://{CID}`. For an Arweave
source: `ar://{CID}`.
| https://s3.amazonaws.com/my-bucket/path/filename.mp4 | -| `encryption` | [Optional](../../models/components/Encryption.md) | :heavy_minus_sign: | N/A | | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | | -| `profiles` | List<[studio.livepeer.livepeer.models.components.TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | | \ No newline at end of file +| `encryption` | [Optional](../../models/components/Encryption.md) | :heavy_minus_sign: | N/A | | +| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | | +| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | +| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | | \ No newline at end of file diff --git a/docs/models/components/NewAssetPayload.md b/docs/models/components/NewAssetPayload.md index 5400ccb..e55a41a 100644 --- a/docs/models/components/NewAssetPayload.md +++ b/docs/models/components/NewAssetPayload.md @@ -3,14 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `name` | *String* | :heavy_check_mark: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | -| `staticMp4` | *Optional* | :heavy_minus_sign: | Whether to generate MP4s for the asset. | true | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `storage` | [Optional](../../models/components/NewAssetPayloadStorage.md) | :heavy_minus_sign: | N/A | | -| `encryption` | [Optional](../../models/components/NewAssetPayloadEncryption.md) | :heavy_minus_sign: | N/A | | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | | -| `profiles` | List<[studio.livepeer.livepeer.models.components.TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `name` | *String* | :heavy_check_mark: | The name of the asset. This is not necessarily the filename - it can be a custom name or title.
| filename.mp4 | +| `staticMp4` | *Optional* | :heavy_minus_sign: | Whether to generate MP4s for the asset. | true | +| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `storage` | [Optional](../../models/components/NewAssetPayloadStorage.md) | :heavy_minus_sign: | N/A | | +| `encryption` | [Optional](../../models/components/NewAssetPayloadEncryption.md) | :heavy_minus_sign: | N/A | | +| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | | +| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | +| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | | \ No newline at end of file diff --git a/docs/models/components/NewAssetPayloadIpfs1.md b/docs/models/components/NewAssetPayloadIpfs1.md index 9686220..5b7fd53 100644 --- a/docs/models/components/NewAssetPayloadIpfs1.md +++ b/docs/models/components/NewAssetPayloadIpfs1.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `spec` | [JsonNullable](../../models/components/Spec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `spec` | [JsonNullable](../../models/components/Spec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/NewAssetPayloadStorage.md b/docs/models/components/NewAssetPayloadStorage.md index 7cc9b73..bb469fc 100644 --- a/docs/models/components/NewAssetPayloadStorage.md +++ b/docs/models/components/NewAssetPayloadStorage.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ipfs` | [JsonNullable](../../models/components/NewAssetPayloadIpfs.md) | :heavy_minus_sign: | Set to true to make default export to IPFS. To customize the
pinned files, specify an object with a spec field. False or null
means to unpin from IPFS, but it's unsupported right now.
| \ No newline at end of file +| `ipfs` | [JsonNullable](../../models/components/NewAssetPayloadIpfs.md) | :heavy_minus_sign: | Set to true to make default export to IPFS. To customize the
pinned files, specify an object with a spec field. False or null
means to unpin from IPFS, but it's unsupported right now.
| \ No newline at end of file diff --git a/docs/models/components/NewStreamPayload.md b/docs/models/components/NewStreamPayload.md index 3d2b903..52833af 100644 --- a/docs/models/components/NewStreamPayload.md +++ b/docs/models/components/NewStreamPayload.md @@ -6,11 +6,11 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | *String* | :heavy_check_mark: | N/A | test_stream | -| `pull` | [Optional](../../models/components/Pull.md) | :heavy_minus_sign: | Configuration for a stream that should be actively pulled from an
external source, rather than pushed to Livepeer. If specified, the
stream will not have a streamKey. | | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `profiles` | List<[studio.livepeer.livepeer.models.components.FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | -| `record` | *Optional* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | -| `recordingSpec` | [Optional](../../models/components/RecordingSpec.md) | :heavy_minus_sign: | Configuration for recording the stream. This can only be set if
`record` is true.
| | -| `multistream` | [Optional](../../models/components/Multistream.md) | :heavy_minus_sign: | N/A | | -| `userTags` | Map | :heavy_minus_sign: | User input tags associated with the stream | | \ No newline at end of file +| `pull` | [Optional](../../models/components/Pull.md) | :heavy_minus_sign: | Configuration for a stream that should be actively pulled from an
external source, rather than pushed to Livepeer. If specified, the
stream will not have a streamKey. | | +| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `profiles` | List<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | +| `record` | *Optional* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | +| `recordingSpec` | [Optional](../../models/components/NewStreamPayloadRecordingSpec.md) | :heavy_minus_sign: | N/A | | +| `multistream` | [Optional](../../models/components/Multistream.md) | :heavy_minus_sign: | N/A | | +| `userTags` | Map | :heavy_minus_sign: | User input tags associated with the stream | | \ No newline at end of file diff --git a/docs/models/components/NewStreamPayloadRecordingSpec.md b/docs/models/components/NewStreamPayloadRecordingSpec.md new file mode 100644 index 0000000..0234fb0 --- /dev/null +++ b/docs/models/components/NewStreamPayloadRecordingSpec.md @@ -0,0 +1,8 @@ +# NewStreamPayloadRecordingSpec + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Output.md b/docs/models/components/Output.md index 2483bd1..3aa3cd5 100644 --- a/docs/models/components/Output.md +++ b/docs/models/components/Output.md @@ -5,8 +5,8 @@ Output of the task ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `upload` | Map | :heavy_minus_sign: | Output of the upload task | -| `export` | [Optional](../../models/components/Export.md) | :heavy_minus_sign: | Output of the export task | -| `exportData` | [Optional](../../models/components/ExportData.md) | :heavy_minus_sign: | Output of the export data task | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `upload` | Map | :heavy_minus_sign: | Output of the upload task | +| `export` | [Optional](../../models/components/Export.md) | :heavy_minus_sign: | Output of the export task | +| `exportData` | [Optional](../../models/components/ExportData.md) | :heavy_minus_sign: | Output of the export data task | \ No newline at end of file diff --git a/docs/models/components/Outputs.md b/docs/models/components/Outputs.md index 924f529..21f8824 100644 --- a/docs/models/components/Outputs.md +++ b/docs/models/components/Outputs.md @@ -5,8 +5,8 @@ Output formats ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `hls` | [Optional](../../models/components/Hls.md) | :heavy_minus_sign: | HLS output format | -| `mp4` | [Optional](../../models/components/Mp4.md) | :heavy_minus_sign: | MP4 output format | -| `fmp4` | [Optional](../../models/components/Fmp4.md) | :heavy_minus_sign: | FMP4 output format | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `hls` | [Optional](../../models/components/Hls.md) | :heavy_minus_sign: | HLS output format | +| `mp4` | [Optional](../../models/components/Mp4.md) | :heavy_minus_sign: | MP4 output format | +| `fmp4` | [Optional](../../models/components/Fmp4.md) | :heavy_minus_sign: | FMP4 output format | \ No newline at end of file diff --git a/docs/models/components/Params.md b/docs/models/components/Params.md index 8868e2f..f84e148 100644 --- a/docs/models/components/Params.md +++ b/docs/models/components/Params.md @@ -5,10 +5,10 @@ Parameters of the task ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `upload` | [Optional](../../models/components/Upload.md) | :heavy_minus_sign: | Parameters for the upload task | -| `export` | [Optional](../../models/components/ExportTaskParams.md) | :heavy_minus_sign: | Parameters for the export task | -| `exportData` | [Optional](../../models/components/TaskExportData.md) | :heavy_minus_sign: | Parameters for the export-data task | -| `transcodeFile` | [Optional](../../models/components/TranscodeFile.md) | :heavy_minus_sign: | Parameters for the transcode-file task | -| `clip` | [Optional](../../models/components/Clip.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `upload` | [Optional](../../models/components/Upload.md) | :heavy_minus_sign: | Parameters for the upload task | +| `export` | [Optional](../../models/components/ExportTaskParams.md) | :heavy_minus_sign: | Parameters for the export task | +| `exportData` | [Optional](../../models/components/TaskExportData.md) | :heavy_minus_sign: | Parameters for the export-data task | +| `transcodeFile` | [Optional](../../models/components/TranscodeFile.md) | :heavy_minus_sign: | Parameters for the transcode-file task | +| `clip` | [Optional](../../models/components/Clip.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Participants.md b/docs/models/components/Participants.md index 45a940b..47e1968 100644 --- a/docs/models/components/Participants.md +++ b/docs/models/components/Participants.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `identity` | *Optional* | :heavy_minus_sign: | participant ID | -| `name` | *Optional* | :heavy_minus_sign: | user defined participant name | -| `joinedAt` | *Optional* | :heavy_minus_sign: | the time the participant joined | -| `leftAt` | *Optional* | :heavy_minus_sign: | the time the participant left | \ No newline at end of file +| `identity` | *Optional* | :heavy_minus_sign: | participant ID | +| `name` | *Optional* | :heavy_minus_sign: | user defined participant name | +| `joinedAt` | *Optional* | :heavy_minus_sign: | the time the participant joined | +| `leftAt` | *Optional* | :heavy_minus_sign: | the time the participant left | \ No newline at end of file diff --git a/docs/models/components/PlaybackInfo.md b/docs/models/components/PlaybackInfo.md index 6ba2dc3..0e63a8b 100644 --- a/docs/models/components/PlaybackInfo.md +++ b/docs/models/components/PlaybackInfo.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `type` | [studio.livepeer.livepeer.models.components.PlaybackInfoType](../../models/components/PlaybackInfoType.md) | :heavy_check_mark: | N/A | vod | -| `meta` | [studio.livepeer.livepeer.models.components.Meta](../../models/components/Meta.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `type` | [PlaybackInfoType](../../models/components/PlaybackInfoType.md) | :heavy_check_mark: | N/A | vod | +| `meta` | [Meta](../../models/components/Meta.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/PlaybackInfoMetaType.md b/docs/models/components/PlaybackInfoMetaType.md index fe0bc3a..5f91539 100644 --- a/docs/models/components/PlaybackInfoMetaType.md +++ b/docs/models/components/PlaybackInfoMetaType.md @@ -10,4 +10,5 @@ | `HTML5_VIDEO_H264` | html5/video/h264 | | `VIDEO_X_FLV` | video/x-flv | | `IMAGE_JPEG` | image/jpeg | +| `IMAGE_PNG` | image/png | | `TEXT_VTT` | text/vtt | \ No newline at end of file diff --git a/docs/models/components/PlaybackInfoSource.md b/docs/models/components/PlaybackInfoSource.md index e2b605a..7c50d75 100644 --- a/docs/models/components/PlaybackInfoSource.md +++ b/docs/models/components/PlaybackInfoSource.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `hrn` | [studio.livepeer.livepeer.models.components.Hrn](../../models/components/Hrn.md) | :heavy_check_mark: | Human Readable Name | MP4 | -| `type` | [studio.livepeer.livepeer.models.components.PlaybackInfoMetaType](../../models/components/PlaybackInfoMetaType.md) | :heavy_check_mark: | N/A | html5/video/mp4 | -| `url` | *String* | :heavy_check_mark: | N/A | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | -| `size` | *Optional* | :heavy_minus_sign: | N/A | 494778 | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 204 | -| `height` | *Optional* | :heavy_minus_sign: | N/A | 360 | -| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 449890 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `hrn` | [Hrn](../../models/components/Hrn.md) | :heavy_check_mark: | Human Readable Name | MP4 | +| `type` | [PlaybackInfoMetaType](../../models/components/PlaybackInfoMetaType.md) | :heavy_check_mark: | N/A | html5/video/mp4 | +| `url` | *String* | :heavy_check_mark: | N/A | https://asset-cdn.lp-playback.monster/hls/1bde4o2i6xycudoy/static360p0.mp4 | +| `size` | *Optional* | :heavy_minus_sign: | N/A | 494778 | +| `width` | *Optional* | :heavy_minus_sign: | N/A | 204 | +| `height` | *Optional* | :heavy_minus_sign: | N/A | 360 | +| `bitrate` | *Optional* | :heavy_minus_sign: | N/A | 449890 | \ No newline at end of file diff --git a/docs/models/components/PlaybackPolicy.md b/docs/models/components/PlaybackPolicy.md index fefb90c..6a1998b 100644 --- a/docs/models/components/PlaybackPolicy.md +++ b/docs/models/components/PlaybackPolicy.md @@ -7,8 +7,8 @@ Whether the playback policy for an asset or stream is public or signed | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `type` | [studio.livepeer.livepeer.models.components.Type](../../models/components/Type.md) | :heavy_check_mark: | N/A | webhook | -| `webhookId` | *Optional* | :heavy_minus_sign: | ID of the webhook to use for playback policy | 1bde4o2i6xycudoy | -| `webhookContext` | Map | :heavy_minus_sign: | User-defined webhook context | {
"streamerId": "my-custom-id"
} | -| `refreshInterval` | *Optional* | :heavy_minus_sign: | Interval (in seconds) at which the playback policy should be
refreshed (default 600 seconds)
| 600 | +| `type` | [Type](../../models/components/Type.md) | :heavy_check_mark: | N/A | webhook | +| `webhookId` | *Optional* | :heavy_minus_sign: | ID of the webhook to use for playback policy | 1bde4o2i6xycudoy | +| `webhookContext` | Map | :heavy_minus_sign: | User-defined webhook context | {
"streamerId": "my-custom-id"
} | +| `refreshInterval` | *Optional* | :heavy_minus_sign: | Interval (in seconds) at which the playback policy should be
refreshed (default 600 seconds)
| 600 | | `allowedOrigins` | List<*String*> | :heavy_minus_sign: | List of allowed origins for CORS playback (://:, ://) | | \ No newline at end of file diff --git a/docs/models/components/Pull.md b/docs/models/components/Pull.md index 47c4653..3e451c1 100644 --- a/docs/models/components/Pull.md +++ b/docs/models/components/Pull.md @@ -11,5 +11,5 @@ stream will not have a streamKey. | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | `source` | *String* | :heavy_check_mark: | URL from which to pull from. | https://myservice.com/live/stream.flv | | `headers` | Map | :heavy_minus_sign: | Headers to be sent with the request to the pull source. | {
"Authorization": "Bearer 123"
} | -| `isMobile` | [Optional](../../models/components/IsMobile.md) | :heavy_minus_sign: | Indicates whether the stream will be pulled from a mobile source. | | -| `location` | [Optional](../../models/components/Location.md) | :heavy_minus_sign: | Approximate location of the pull source. The location is used to
determine the closest Livepeer region to pull the stream from. | | \ No newline at end of file +| `isMobile` | [Optional](../../models/components/IsMobile.md) | :heavy_minus_sign: | Indicates whether the stream will be pulled from a mobile source. | | +| `location` | [Optional](../../models/components/Location.md) | :heavy_minus_sign: | Approximate location of the pull source. The location is used to
determine the closest Livepeer region to pull the stream from. | | \ No newline at end of file diff --git a/docs/models/components/RealtimeViewershipMetric.md b/docs/models/components/RealtimeViewershipMetric.md new file mode 100644 index 0000000..24a8dab --- /dev/null +++ b/docs/models/components/RealtimeViewershipMetric.md @@ -0,0 +1,16 @@ +# RealtimeViewershipMetric + +An individual metric about realtime viewership of a stream/asset. + + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | +| `device` | *Optional* | :heavy_minus_sign: | The device used by the viewer. | iPhone | +| `browser` | *Optional* | :heavy_minus_sign: | The browser used by the viewer. | Safari | +| `country` | *Optional* | :heavy_minus_sign: | The country where the viewer is located. | United States | +| `viewCount` | *long* | :heavy_check_mark: | The number of views for the stream/asset. | 100 | +| `errorRate` | *double* | :heavy_check_mark: | The error rate for the stream/asset. | 0.1 | \ No newline at end of file diff --git a/docs/models/components/RecordingSpec.md b/docs/models/components/RecordingSpec.md index 5dfc15b..9f22768 100644 --- a/docs/models/components/RecordingSpec.md +++ b/docs/models/components/RecordingSpec.md @@ -1,12 +1,8 @@ # RecordingSpec -Configuration for recording the stream. This can only be set if -`record` is true. - - ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `profiles` | List<[studio.livepeer.livepeer.models.components.FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | Profiles to record the stream in. If not specified, the stream
will be recorded in the same profiles as the stream itself. Keep
in mind that the source rendition will always be recorded.
| \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Request.md b/docs/models/components/Request.md index 62eae7b..e9d424c 100644 --- a/docs/models/components/Request.md +++ b/docs/models/components/Request.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `url` | *Optional* | :heavy_minus_sign: | URL used for the request | https://my-service.com/webhook | -| `method` | *Optional* | :heavy_minus_sign: | HTTP request method | POST | +| `url` | *Optional* | :heavy_minus_sign: | URL used for the request | https://my-service.com/webhook | +| `method` | *Optional* | :heavy_minus_sign: | HTTP request method | POST | | `headers` | Map | :heavy_minus_sign: | HTTP request headers | {
"User-Agent": "livepeer.studio"
} | -| `body` | *Optional* | :heavy_minus_sign: | request body | {"event": "stream.started"} | \ No newline at end of file +| `body` | *Optional* | :heavy_minus_sign: | request body | {"event": "stream.started"} | \ No newline at end of file diff --git a/docs/models/components/Response.md b/docs/models/components/Response.md index 55b43fe..8518b42 100644 --- a/docs/models/components/Response.md +++ b/docs/models/components/Response.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `body` | *Optional* | :heavy_minus_sign: | response body | -| `status` | *Optional* | :heavy_minus_sign: | HTTP status code | -| `statusText` | *Optional* | :heavy_minus_sign: | response status text | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `body` | *Optional* | :heavy_minus_sign: | response body | +| `status` | *Optional* | :heavy_minus_sign: | HTTP status code | +| `statusText` | *Optional* | :heavy_minus_sign: | response status text | \ No newline at end of file diff --git a/docs/models/components/Room.md b/docs/models/components/Room.md index f48b1cc..2ad18d0 100644 --- a/docs/models/components/Room.md +++ b/docs/models/components/Room.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | room ID | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the room was created | 1587667174725 | -| `updatedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which room was updated | 1587667174725 | -| `egressId` | *Optional* | :heavy_minus_sign: | internal ID for egress output | | -| `participants` | Map | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | room ID | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the room was created | 1587667174725 | +| `updatedAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which room was updated | 1587667174725 | +| `egressId` | *Optional* | :heavy_minus_sign: | internal ID for egress output | | +| `participants` | Map | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/RoomUserPayload.md b/docs/models/components/RoomUserPayload.md index 3e8ccf7..8cf2978 100644 --- a/docs/models/components/RoomUserPayload.md +++ b/docs/models/components/RoomUserPayload.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | | `name` | *String* | :heavy_check_mark: | Display name | name | -| `canPublish` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks | true | -| `canPublishData` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish data messages to the room | true | -| `metadata` | *Optional* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file +| `canPublish` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks | true | +| `canPublishData` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish data messages to the room | true | +| `metadata` | *Optional* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file diff --git a/docs/models/components/RoomUserResponse.md b/docs/models/components/RoomUserResponse.md index 84f95c3..3b0d4ba 100644 --- a/docs/models/components/RoomUserResponse.md +++ b/docs/models/components/RoomUserResponse.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | The ID of the user | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | -| `joinUrl` | *Optional* | :heavy_minus_sign: | Joining URL - use this for Livepeer's default meeting app (see the multiparticipant streaming guide for more info). | https://meet.livepeer.chat | -| `token` | *Optional* | :heavy_minus_sign: | Joining JWT - this can be used if you have a custom meeting app (see the multiparticipant streaming guide for more info). | token | \ No newline at end of file +| `id` | *Optional* | :heavy_minus_sign: | The ID of the user | d32ae9e6-c459-4931-9898-e86e2f5e7e16 | +| `joinUrl` | *Optional* | :heavy_minus_sign: | Joining URL - use this for Livepeer's default meeting app (see the multiparticipant streaming guide for more info). | https://meet.livepeer.chat | +| `token` | *Optional* | :heavy_minus_sign: | Joining JWT - this can be used if you have a custom meeting app (see the multiparticipant streaming guide for more info). | token | \ No newline at end of file diff --git a/docs/models/components/RoomUserUpdatePayload.md b/docs/models/components/RoomUserUpdatePayload.md index 978fcf3..fd9d882 100644 --- a/docs/models/components/RoomUserUpdatePayload.md +++ b/docs/models/components/RoomUserUpdatePayload.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `canPublish` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks (i.e. their microphone and webcam) | true | -| `canPublishData` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish data messages to the room | true | -| `metadata` | *Optional* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file +| `canPublish` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish audio/video tracks (i.e. their microphone and webcam) | true | +| `canPublishData` | *Optional* | :heavy_minus_sign: | Whether a user is allowed to publish data messages to the room | true | +| `metadata` | *Optional* | :heavy_minus_sign: | User defined payload to store for the participant | | \ No newline at end of file diff --git a/docs/models/components/Session.md b/docs/models/components/Session.md index 9a36dbc..b76ea3a 100644 --- a/docs/models/components/Session.md +++ b/docs/models/components/Session.md @@ -3,30 +3,30 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| ~~`kind`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | stream | -| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 66E2161C-7670-4D05-B71D-DA2D6979556F | -| `name` | *String* | :heavy_check_mark: | N/A | test_session | -| `lastSeen` | *Optional* | :heavy_minus_sign: | N/A | 1587667174725 | -| `sourceSegments` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodedSegments` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `sourceSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the source segments, sec | 1 | -| `transcodedSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the transcoded segments, sec | 2 | -| `sourceBytes` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodedBytes` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `ingestRate` | *Optional* | :heavy_minus_sign: | Rate at which sourceBytes increases (bytes/second) | 1 | -| `outgoingRate` | *Optional* | :heavy_minus_sign: | Rate at which transcodedBytes increases (bytes/second) | 2 | -| `isHealthy` | *JsonNullable* | :heavy_minus_sign: | Indicates whether the stream is healthy or not. | | -| `issues` | List<*String*> | :heavy_minus_sign: | A string array of human-readable errors describing issues affecting the stream, if any. | | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | -| `parentId` | *Optional* | :heavy_minus_sign: | Points to parent stream object | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | -| `record` | *Optional* | :heavy_minus_sign: | Whether the stream should be recorded. Uses default settings. For more customization, create and configure an object store.
| false | -| `recordingStatus` | [Optional](../../models/components/RecordingStatus.md) | :heavy_minus_sign: | The status of the recording process of this stream session. | | -| `recordingUrl` | *Optional* | :heavy_minus_sign: | URL for accessing the recording of this stream session. | | -| `mp4Url` | *Optional* | :heavy_minus_sign: | The URL for the stream session recording packaged in an MP4. | | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | -| `profiles` | List<[studio.livepeer.livepeer.models.components.FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | -| `recordingSpec` | [Optional](../../models/components/RecordingSpec.md) | :heavy_minus_sign: | Configuration for recording the stream. This can only be set if
`record` is true.
| | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *Optional* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| ~~`kind`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | stream | +| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 66E2161C-7670-4D05-B71D-DA2D6979556F | +| `name` | *String* | :heavy_check_mark: | N/A | test_session | +| `lastSeen` | *Optional* | :heavy_minus_sign: | N/A | 1587667174725 | +| `sourceSegments` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `transcodedSegments` | *Optional* | :heavy_minus_sign: | N/A | 2 | +| `sourceSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the source segments, sec | 1 | +| `transcodedSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the transcoded segments, sec | 2 | +| `sourceBytes` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `transcodedBytes` | *Optional* | :heavy_minus_sign: | N/A | 2 | +| `ingestRate` | *Optional* | :heavy_minus_sign: | Rate at which sourceBytes increases (bytes/second) | 1 | +| `outgoingRate` | *Optional* | :heavy_minus_sign: | Rate at which transcodedBytes increases (bytes/second) | 2 | +| `isHealthy` | *JsonNullable* | :heavy_minus_sign: | Indicates whether the stream is healthy or not. | | +| `issues` | List<*String*> | :heavy_minus_sign: | A string array of human-readable errors describing issues affecting the stream, if any. | | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | +| `parentId` | *Optional* | :heavy_minus_sign: | Points to parent stream object | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `record` | *Optional* | :heavy_minus_sign: | Whether the stream should be recorded. Uses default settings. For more customization, create and configure an object store.
| false | +| `recordingStatus` | [Optional](../../models/components/RecordingStatus.md) | :heavy_minus_sign: | The status of the recording process of this stream session. | | +| `recordingUrl` | *Optional* | :heavy_minus_sign: | URL for accessing the recording of this stream session. | | +| `mp4Url` | *Optional* | :heavy_minus_sign: | The URL for the stream session recording packaged in an MP4. | | +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | +| `profiles` | List<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | Profiles to transcode the stream into. If not specified, a default
set of profiles will be used with 240p, 360p, 480p and 720p
resolutions. Keep in mind that the source rendition is always kept.
| | +| `recordingSpec` | [Optional](../../models/components/RecordingSpec.md) | :heavy_minus_sign: | Configuration for recording the stream. This can only be set if
`record` is true.
| | \ No newline at end of file diff --git a/docs/models/components/SigningKey.md b/docs/models/components/SigningKey.md index ca1a5d5..979fd57 100644 --- a/docs/models/components/SigningKey.md +++ b/docs/models/components/SigningKey.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 78df0075-b5f3-4683-a618-1086faca35dc | -| `name` | *Optional* | :heavy_minus_sign: | Name of the signing key | key1 | -| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 78df0075-b5f3-4683-a618-1086faca35dc | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the signing-key was created | 1587667174725 | -| `lastSeen` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the signing-key was last used | 1587667174725 | +| `id` | *Optional* | :heavy_minus_sign: | N/A | 78df0075-b5f3-4683-a618-1086faca35dc | +| `name` | *Optional* | :heavy_minus_sign: | Name of the signing key | key1 | +| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 78df0075-b5f3-4683-a618-1086faca35dc | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the signing-key was created | 1587667174725 | +| `lastSeen` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the signing-key was last used | 1587667174725 | | `publicKey` | *String* | :heavy_check_mark: | N/A | | -| `disabled` | *Optional* | :heavy_minus_sign: | Disable the signing key to allow rotation safely | false | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb | \ No newline at end of file +| `disabled` | *Optional* | :heavy_minus_sign: | Disable the signing key to allow rotation safely | false | +| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb | \ No newline at end of file diff --git a/docs/models/components/Source1.md b/docs/models/components/Source1.md index 70cb648..4c86cb4 100644 --- a/docs/models/components/Source1.md +++ b/docs/models/components/Source1.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [studio.livepeer.livepeer.models.components.SourceType](../../models/components/SourceType.md) | :heavy_check_mark: | N/A | -| `url` | *String* | :heavy_check_mark: | URL from which the asset was uploaded. | -| `gatewayUrl` | *Optional* | :heavy_minus_sign: | Gateway URL from asset if parsed from provided URL on upload. | -| `encryption` | [Optional](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `type` | [SourceType](../../models/components/SourceType.md) | :heavy_check_mark: | N/A | +| `url` | *String* | :heavy_check_mark: | URL from which the asset was uploaded. | +| `gatewayUrl` | *Optional* | :heavy_minus_sign: | Gateway URL from asset if parsed from provided URL on upload. | +| `encryption` | [Optional](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Source3.md b/docs/models/components/Source3.md index 9f596f0..01a054c 100644 --- a/docs/models/components/Source3.md +++ b/docs/models/components/Source3.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `type` | [studio.livepeer.livepeer.models.components.AssetSource3Type](../../models/components/AssetSource3Type.md) | :heavy_check_mark: | N/A | -| `encryption` | [Optional](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | -| `sourceId` | *Optional* | :heavy_minus_sign: | ID of the asset or stream from which this asset was created. | -| `sessionId` | *Optional* | :heavy_minus_sign: | ID of the session from which this asset was created. | -| `playbackId` | *Optional* | :heavy_minus_sign: | Playback ID of the asset or stream from which this asset was created. | -| `requesterId` | *Optional* | :heavy_minus_sign: | ID of the requester from which this asset was created. | -| `assetId` | *Optional* | :heavy_minus_sign: | ID of the asset from which this asset was created. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `type` | [AssetSource3Type](../../models/components/AssetSource3Type.md) | :heavy_check_mark: | N/A | +| `encryption` | [Optional](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | +| `sourceId` | *Optional* | :heavy_minus_sign: | ID of the asset or stream from which this asset was created. | +| `sessionId` | *Optional* | :heavy_minus_sign: | ID of the session from which this asset was created. | +| `playbackId` | *Optional* | :heavy_minus_sign: | Playback ID of the asset or stream from which this asset was created. | +| `requesterId` | *Optional* | :heavy_minus_sign: | ID of the requester from which this asset was created. | +| `assetId` | *Optional* | :heavy_minus_sign: | ID of the asset from which this asset was created. | \ No newline at end of file diff --git a/docs/models/components/Spec.md b/docs/models/components/Spec.md index 7e44921..9dd3a5d 100644 --- a/docs/models/components/Spec.md +++ b/docs/models/components/Spec.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `nftMetadataTemplate` | [Optional](../../models/components/NftMetadataTemplate.md) | :heavy_minus_sign: | Name of the NFT metadata template to export. 'player'
will embed the Livepeer Player on the NFT while 'file'
will reference only the immutable MP4 files.
| -| `nftMetadata` | [Optional](../../models/components/NftMetadata.md) | :heavy_minus_sign: | Additional data to add to the NFT metadata exported to
IPFS. Will be deep merged with the default metadata
exported.
| \ No newline at end of file +| `nftMetadataTemplate` | [Optional](../../models/components/NftMetadataTemplate.md) | :heavy_minus_sign: | Name of the NFT metadata template to export. 'player'
will embed the Livepeer Player on the NFT while 'file'
will reference only the immutable MP4 files.
| +| `nftMetadata` | [Optional](../../models/components/NftMetadata.md) | :heavy_minus_sign: | Additional data to add to the NFT metadata exported to
IPFS. Will be deep merged with the default metadata
exported.
| \ No newline at end of file diff --git a/docs/models/components/Status.md b/docs/models/components/Status.md index d395c42..757be8b 100644 --- a/docs/models/components/Status.md +++ b/docs/models/components/Status.md @@ -5,7 +5,7 @@ status of webhook ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `lastFailure` | [Optional](../../models/components/LastFailure.md) | :heavy_minus_sign: | failure timestamp and error message with status code | | -| `lastTriggeredAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the webhook last was
triggered
| 1587667174725 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `lastFailure` | [Optional](../../models/components/LastFailure.md) | :heavy_minus_sign: | failure timestamp and error message with status code | | +| `lastTriggeredAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the webhook last was
triggered
| 1587667174725 | \ No newline at end of file diff --git a/docs/models/components/Storage.md b/docs/models/components/Storage.md index 453e9c8..b639335 100644 --- a/docs/models/components/Storage.md +++ b/docs/models/components/Storage.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ipfs` | [JsonNullable](../../models/components/Ipfs.md) | :heavy_minus_sign: | Set to true to make default export to IPFS. To customize the
pinned files, specify an object with a spec field. False or null
means to unpin from IPFS, but it's unsupported right now.
| \ No newline at end of file +| `ipfs` | [JsonNullable](../../models/components/Ipfs.md) | :heavy_minus_sign: | Set to true to make default export to IPFS. To customize the
pinned files, specify an object with a spec field. False or null
means to unpin from IPFS, but it's unsupported right now.
| \ No newline at end of file diff --git a/docs/models/components/Storage1.md b/docs/models/components/Storage1.md index bc2e9bb..07d68a6 100644 --- a/docs/models/components/Storage1.md +++ b/docs/models/components/Storage1.md @@ -7,7 +7,7 @@ Storage for the output files | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [studio.livepeer.livepeer.models.components.StorageType](../../models/components/StorageType.md) | :heavy_check_mark: | Type of service used for output files | | +| `type` | [StorageType](../../models/components/StorageType.md) | :heavy_check_mark: | Type of service used for output files | | | `endpoint` | *String* | :heavy_check_mark: | Service endpoint URL (AWS S3 endpoint list: https://docs.aws.amazon.com/general/latest/gr/s3.html, GCP S3 endpoint: https://storage.googleapis.com, Storj: https://gateway.storjshare.io) | https://gateway.storjshare.io | | `bucket` | *String* | :heavy_check_mark: | Bucket with output files | outputbucket | -| `credentials` | [studio.livepeer.livepeer.models.components.StorageCredentials](../../models/components/StorageCredentials.md) | :heavy_check_mark: | Credentials for the output video storage | | \ No newline at end of file +| `credentials` | [StorageCredentials](../../models/components/StorageCredentials.md) | :heavy_check_mark: | Credentials for the output video storage | | \ No newline at end of file diff --git a/docs/models/components/Storage2.md b/docs/models/components/Storage2.md index 9012eab..51a7aad 100644 --- a/docs/models/components/Storage2.md +++ b/docs/models/components/Storage2.md @@ -5,7 +5,7 @@ Storage for the output files ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [studio.livepeer.livepeer.models.components.TranscodePayloadStorageType](../../models/components/TranscodePayloadStorageType.md) | :heavy_check_mark: | Type of service used for output files | -| `credentials` | [studio.livepeer.livepeer.models.components.TranscodePayloadStorageCredentials](../../models/components/TranscodePayloadStorageCredentials.md) | :heavy_check_mark: | Delegation proof for Livepeer to be able to upload to
web3.storage
| \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `type` | [TranscodePayloadStorageType](../../models/components/TranscodePayloadStorageType.md) | :heavy_check_mark: | Type of service used for output files | +| `credentials` | [TranscodePayloadStorageCredentials](../../models/components/TranscodePayloadStorageCredentials.md) | :heavy_check_mark: | Delegation proof for Livepeer to be able to upload to
web3.storage
| \ No newline at end of file diff --git a/docs/models/components/StorageStatus.md b/docs/models/components/StorageStatus.md index 999bae4..79af3e1 100644 --- a/docs/models/components/StorageStatus.md +++ b/docs/models/components/StorageStatus.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `phase` | [studio.livepeer.livepeer.models.components.Phase](../../models/components/Phase.md) | :heavy_check_mark: | Phase of the asset storage | ready | -| `progress` | *Optional* | :heavy_minus_sign: | Current progress of the task updating the storage. | 0.5 | -| `errorMessage` | *Optional* | :heavy_minus_sign: | Error message if the last storage changed failed. | Failed to update storage | -| `tasks` | [studio.livepeer.livepeer.models.components.Tasks](../../models/components/Tasks.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `phase` | [Phase](../../models/components/Phase.md) | :heavy_check_mark: | Phase of the asset storage | ready | +| `progress` | *Optional* | :heavy_minus_sign: | Current progress of the task updating the storage. | 0.5 | +| `errorMessage` | *Optional* | :heavy_minus_sign: | Error message if the last storage changed failed. | Failed to update storage | +| `tasks` | [Tasks](../../models/components/Tasks.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/Stream.md b/docs/models/components/Stream.md index 196c471..551ba2a 100644 --- a/docs/models/components/Stream.md +++ b/docs/models/components/Stream.md @@ -3,38 +3,38 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `name` | *String* | :heavy_check_mark: | N/A | test_stream | -| ~~`kind`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | stream | -| `creatorId` | [Optional](../../models/components/CreatorId.md) | :heavy_minus_sign: | N/A | | -| `userTags` | Map | :heavy_minus_sign: | User input tags associated with the stream | | -| `lastSeen` | *Optional* | :heavy_minus_sign: | N/A | 1587667174725 | -| `sourceSegments` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodedSegments` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `sourceSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the source segments, sec | 1 | -| `transcodedSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the transcoded segments, sec | 2 | -| `sourceBytes` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `transcodedBytes` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `ingestRate` | *Optional* | :heavy_minus_sign: | Rate at which sourceBytes increases (bytes/second) | 1 | -| `outgoingRate` | *Optional* | :heavy_minus_sign: | Rate at which transcodedBytes increases (bytes/second) | 2 | -| `isActive` | *Optional* | :heavy_minus_sign: | If currently active | true | -| `isHealthy` | *JsonNullable* | :heavy_minus_sign: | Indicates whether the stream is healthy or not. | | -| `issues` | List<*String*> | :heavy_minus_sign: | A string array of human-readable errors describing issues affecting the stream, if any. | | -| `createdByTokenName` | *Optional* | :heavy_minus_sign: | Name of the token used to create this object | abc-123-xyz-456 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | -| `parentId` | *Optional* | :heavy_minus_sign: | Points to parent stream object | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `streamKey` | *Optional* | :heavy_minus_sign: | Used to form RTMP ingest URL | hgebdhhigq | -| `pull` | [Optional](../../models/components/StreamPull.md) | :heavy_minus_sign: | Configuration for a stream that should be actively pulled from an
external source, rather than pushed to Livepeer. If specified, the
stream will not have a streamKey. | | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `profiles` | List<[studio.livepeer.livepeer.models.components.FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | -| `record` | *Optional* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | -| `recordingSpec` | [Optional](../../models/components/StreamRecordingSpec.md) | :heavy_minus_sign: | Configuration for recording the stream. This can only be set if
`record` is true.
| | -| `multistream` | [Optional](../../models/components/StreamMultistream.md) | :heavy_minus_sign: | N/A | | -| `suspended` | *Optional* | :heavy_minus_sign: | If currently suspended | | -| `lastTerminatedAt` | *JsonNullable* | :heavy_minus_sign: | Timestamp (in milliseconds) when the stream was last terminated | 1713281212993 | -| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | we7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `renditions` | [Optional](../../models/components/Renditions.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *Optional* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `name` | *String* | :heavy_check_mark: | N/A | test_stream | +| ~~`kind`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | stream | +| `creatorId` | [Optional](../../models/components/CreatorId.md) | :heavy_minus_sign: | N/A | | +| `userTags` | Map | :heavy_minus_sign: | User input tags associated with the stream | | +| `lastSeen` | *Optional* | :heavy_minus_sign: | N/A | 1587667174725 | +| `sourceSegments` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `transcodedSegments` | *Optional* | :heavy_minus_sign: | N/A | 2 | +| `sourceSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the source segments, sec | 1 | +| `transcodedSegmentsDuration` | *Optional* | :heavy_minus_sign: | Duration of all the transcoded segments, sec | 2 | +| `sourceBytes` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `transcodedBytes` | *Optional* | :heavy_minus_sign: | N/A | 2 | +| `ingestRate` | *Optional* | :heavy_minus_sign: | Rate at which sourceBytes increases (bytes/second) | 1 | +| `outgoingRate` | *Optional* | :heavy_minus_sign: | Rate at which transcodedBytes increases (bytes/second) | 2 | +| `isActive` | *Optional* | :heavy_minus_sign: | If currently active | true | +| `isHealthy` | *JsonNullable* | :heavy_minus_sign: | Indicates whether the stream is healthy or not. | | +| `issues` | List<*String*> | :heavy_minus_sign: | A string array of human-readable errors describing issues affecting the stream, if any. | | +| `createdByTokenName` | *Optional* | :heavy_minus_sign: | Name of the token used to create this object | abc-123-xyz-456 | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | +| `parentId` | *Optional* | :heavy_minus_sign: | Points to parent stream object | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `streamKey` | *Optional* | :heavy_minus_sign: | Used to form RTMP ingest URL | hgebdhhigq | +| `pull` | [Optional](../../models/components/StreamPull.md) | :heavy_minus_sign: | Configuration for a stream that should be actively pulled from an
external source, rather than pushed to Livepeer. If specified, the
stream will not have a streamKey. | | +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb | +| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `profiles` | List<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | Profiles to transcode the stream into. If not specified, a default
set of profiles will be used with 240p, 360p, 480p and 720p
resolutions. Keep in mind that the source rendition is always kept.
| | +| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `record` | *Optional* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | +| `recordingSpec` | [Optional](../../models/components/StreamRecordingSpec.md) | :heavy_minus_sign: | Configuration for recording the stream. This can only be set if
`record` is true.
| | +| `multistream` | [Optional](../../models/components/StreamMultistream.md) | :heavy_minus_sign: | N/A | | +| `suspended` | *Optional* | :heavy_minus_sign: | If currently suspended | | +| `lastTerminatedAt` | *JsonNullable* | :heavy_minus_sign: | Timestamp (in milliseconds) when the stream was last terminated | 1713281212993 | +| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | we7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `renditions` | [Optional](../../models/components/Renditions.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/StreamMultistream.md b/docs/models/components/StreamMultistream.md index 19c1f91..2297063 100644 --- a/docs/models/components/StreamMultistream.md +++ b/docs/models/components/StreamMultistream.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `targets` | List<[studio.livepeer.livepeer.models.components.TargetOutput](../../models/components/TargetOutput.md)> | :heavy_minus_sign: | References to targets where this stream will be simultaneously
streamed to
| [
{
"id": "PUSH123",
"profile": "720p"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `targets` | List<[TargetOutput](../../models/components/TargetOutput.md)> | :heavy_minus_sign: | References to targets where this stream will be simultaneously
streamed to
| [
{
"id": "PUSH123",
"profile": "720p"
}
] | \ No newline at end of file diff --git a/docs/models/components/StreamPatchPayload.md b/docs/models/components/StreamPatchPayload.md index 0919ad3..cad701a 100644 --- a/docs/models/components/StreamPatchPayload.md +++ b/docs/models/components/StreamPatchPayload.md @@ -3,12 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `record` | *Optional* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | -| `suspended` | *Optional* | :heavy_minus_sign: | If currently suspended | | -| `multistream` | [Optional](../../models/components/Multistream.md) | :heavy_minus_sign: | N/A | | -| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | -| `profiles` | List<[studio.livepeer.livepeer.models.components.FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | -| `userTags` | Map | :heavy_minus_sign: | User input tags associated with the stream | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `record` | *Optional* | :heavy_minus_sign: | Should this stream be recorded? Uses default settings. For more
customization, create and configure an object store.
| false | +| `suspended` | *Optional* | :heavy_minus_sign: | If currently suspended | | +| `multistream` | [Optional](../../models/components/Multistream.md) | :heavy_minus_sign: | N/A | | +| `playbackPolicy` | [JsonNullable](../../models/components/PlaybackPolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | | +| `profiles` | List<[FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | N/A | | +| `recordingSpec` | [Optional](../../models/components/RecordingSpec.md) | :heavy_minus_sign: | N/A | | +| `userTags` | Map | :heavy_minus_sign: | User input tags associated with the stream | | \ No newline at end of file diff --git a/docs/models/components/StreamPull.md b/docs/models/components/StreamPull.md index 1666c81..9952d19 100644 --- a/docs/models/components/StreamPull.md +++ b/docs/models/components/StreamPull.md @@ -11,5 +11,5 @@ stream will not have a streamKey. | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | `source` | *String* | :heavy_check_mark: | URL from which to pull from. | https://myservice.com/live/stream.flv | | `headers` | Map | :heavy_minus_sign: | Headers to be sent with the request to the pull source. | {
"Authorization": "Bearer 123"
} | -| `isMobile` | [Optional](../../models/components/StreamIsMobile.md) | :heavy_minus_sign: | Indicates whether the stream will be pulled from a mobile source. | | -| `location` | [Optional](../../models/components/StreamLocation.md) | :heavy_minus_sign: | Approximate location of the pull source. The location is used to
determine the closest Livepeer region to pull the stream from. | | \ No newline at end of file +| `isMobile` | [Optional](../../models/components/StreamIsMobile.md) | :heavy_minus_sign: | Indicates whether the stream will be pulled from a mobile source. | | +| `location` | [Optional](../../models/components/StreamLocation.md) | :heavy_minus_sign: | Approximate location of the pull source. The location is used to
determine the closest Livepeer region to pull the stream from. | | \ No newline at end of file diff --git a/docs/models/components/StreamRecordingSpec.md b/docs/models/components/StreamRecordingSpec.md index ec65df7..e5a93a3 100644 --- a/docs/models/components/StreamRecordingSpec.md +++ b/docs/models/components/StreamRecordingSpec.md @@ -7,6 +7,6 @@ Configuration for recording the stream. This can only be set if ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `profiles` | List<[studio.livepeer.livepeer.models.components.FfmpegProfile](../../models/components/FfmpegProfile.md)> | :heavy_minus_sign: | Profiles to record the stream in. If not specified, the stream
will be recorded in the same profiles as the stream itself. Keep
in mind that the source rendition will always be recorded.
| \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | Profiles to process the recording of this stream into. If not
specified, default profiles will be derived based on the stream
input. Keep in mind that the source rendition is always kept.
| \ No newline at end of file diff --git a/docs/models/components/Target.md b/docs/models/components/Target.md index 98d8a5c..a28bb05 100644 --- a/docs/models/components/Target.md +++ b/docs/models/components/Target.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | | `profile` | *String* | :heavy_check_mark: | Name of transcoding profile that should be sent. Use
"source" for pushing source stream data
| 720p0 | -| `videoOnly` | *Optional* | :heavy_minus_sign: | If true, the stream audio will be muted and only silent
video will be pushed to the target.
| false | -| `id` | *Optional* | :heavy_minus_sign: | ID of multistream target object where to push this stream | PUSH123 | -| `spec` | [Optional](../../models/components/TargetSpec.md) | :heavy_minus_sign: | Inline multistream target object. Will automatically
create the target resource to be used by the created
stream.
| | \ No newline at end of file +| `videoOnly` | *Optional* | :heavy_minus_sign: | If true, the stream audio will be muted and only silent
video will be pushed to the target.
| false | +| `id` | *Optional* | :heavy_minus_sign: | ID of multistream target object where to push this stream | PUSH123 | +| `spec` | [Optional](../../models/components/TargetSpec.md) | :heavy_minus_sign: | Inline multistream target object. Will automatically
create the target resource to be used by the created
stream.
| | \ No newline at end of file diff --git a/docs/models/components/TargetAddPayload.md b/docs/models/components/TargetAddPayload.md index 50272cd..9ff315e 100644 --- a/docs/models/components/TargetAddPayload.md +++ b/docs/models/components/TargetAddPayload.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `profile` | *String* | :heavy_check_mark: | Name of transcoding profile that should be sent. Use
"source" for pushing source stream data
| 720p0 | -| `videoOnly` | *Optional* | :heavy_minus_sign: | If true, the stream audio will be muted and only silent
video will be pushed to the target.
| false | -| `id` | *Optional* | :heavy_minus_sign: | ID of multistream target object where to push this stream | PUSH123 | -| `spec` | [Optional](../../models/components/TargetAddPayloadSpec.md) | :heavy_minus_sign: | Inline multistream target object. Will automatically
create the target resource to be used by the created
stream.
| | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `profile` | *String* | :heavy_check_mark: | Name of transcoding profile that should be sent. Use
"source" for pushing source stream data
| 720p0 | +| `videoOnly` | *Optional* | :heavy_minus_sign: | If true, the stream audio will be muted and only silent
video will be pushed to the target.
| false | +| `id` | *Optional* | :heavy_minus_sign: | ID of multistream target object where to push this stream | PUSH123 | +| `spec` | [Optional](../../models/components/TargetAddPayloadSpec.md) | :heavy_minus_sign: | Inline multistream target object. Will automatically
create the target resource to be used by the created
stream.
| | \ No newline at end of file diff --git a/docs/models/components/TargetAddPayloadSpec.md b/docs/models/components/TargetAddPayloadSpec.md index a25dd05..f1dc43f 100644 --- a/docs/models/components/TargetAddPayloadSpec.md +++ b/docs/models/components/TargetAddPayloadSpec.md @@ -10,5 +10,5 @@ stream. | Field | Type | Required | Description | Example | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | My target | +| `name` | *Optional* | :heavy_minus_sign: | N/A | My target | | `url` | *String* | :heavy_check_mark: | Livepeer-compatible multistream target URL (RTMP(S) or SRT) | rtmps://live.my-service.tv/channel/secretKey | \ No newline at end of file diff --git a/docs/models/components/TargetOutput.md b/docs/models/components/TargetOutput.md index eb5966e..8e1d0f3 100644 --- a/docs/models/components/TargetOutput.md +++ b/docs/models/components/TargetOutput.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `profile` | *String* | :heavy_check_mark: | Name of transcoding profile that should be sent. Use
"source" for pushing source stream data
| 720p0 | -| `videoOnly` | *Optional* | :heavy_minus_sign: | If true, the stream audio will be muted and only silent
video will be pushed to the target.
| false | -| `id` | *Optional* | :heavy_minus_sign: | ID of multistream target object where to push this stream | PUSH123 | \ No newline at end of file +| `videoOnly` | *Optional* | :heavy_minus_sign: | If true, the stream audio will be muted and only silent
video will be pushed to the target.
| false | +| `id` | *Optional* | :heavy_minus_sign: | ID of multistream target object where to push this stream | PUSH123 | \ No newline at end of file diff --git a/docs/models/components/TargetSpec.md b/docs/models/components/TargetSpec.md index a57bd08..db1cc7c 100644 --- a/docs/models/components/TargetSpec.md +++ b/docs/models/components/TargetSpec.md @@ -10,5 +10,5 @@ stream. | Field | Type | Required | Description | Example | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `name` | *Optional* | :heavy_minus_sign: | N/A | My target | +| `name` | *Optional* | :heavy_minus_sign: | N/A | My target | | `url` | *String* | :heavy_check_mark: | Livepeer-compatible multistream target URL (RTMP(S) or SRT) | rtmps://live.my-service.tv/channel/secretKey | \ No newline at end of file diff --git a/docs/models/components/Task.md b/docs/models/components/Task.md index 965ac31..31a0363 100644 --- a/docs/models/components/Task.md +++ b/docs/models/components/Task.md @@ -3,15 +3,15 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `id` | *Optional* | :heavy_minus_sign: | Task ID | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `type` | [Optional](../../models/components/TaskType.md) | :heavy_minus_sign: | Type of the task | upload | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which task was created | 1587667174725 | -| `scheduledAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the task was scheduled for
execution (e.g. after file upload finished).
| 1587667174725 | -| `inputAssetId` | *Optional* | :heavy_minus_sign: | ID of the input asset | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `outputAssetId` | *Optional* | :heavy_minus_sign: | ID of the output asset | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `requesterId` | *Optional* | :heavy_minus_sign: | ID of the requester hash(IP + SALT + PlaybackId) | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `params` | [Optional](../../models/components/Params.md) | :heavy_minus_sign: | Parameters of the task | | -| `status` | [Optional](../../models/components/TaskStatus.md) | :heavy_minus_sign: | Status of the task | | -| `output` | [Optional](../../models/components/Output.md) | :heavy_minus_sign: | Output of the task | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `id` | *Optional* | :heavy_minus_sign: | Task ID | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `type` | [Optional](../../models/components/TaskType.md) | :heavy_minus_sign: | Type of the task | upload | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which task was created | 1587667174725 | +| `scheduledAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which the task was scheduled for
execution (e.g. after file upload finished).
| 1587667174725 | +| `inputAssetId` | *Optional* | :heavy_minus_sign: | ID of the input asset | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `outputAssetId` | *Optional* | :heavy_minus_sign: | ID of the output asset | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `requesterId` | *Optional* | :heavy_minus_sign: | ID of the requester hash(IP + SALT + PlaybackId) | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `params` | [Optional](../../models/components/Params.md) | :heavy_minus_sign: | Parameters of the task | | +| `status` | [Optional](../../models/components/TaskStatus.md) | :heavy_minus_sign: | Status of the task | | +| `output` | [Optional](../../models/components/Output.md) | :heavy_minus_sign: | Output of the task | | \ No newline at end of file diff --git a/docs/models/components/TaskExportData.md b/docs/models/components/TaskExportData.md index 6fc3511..10eca19 100644 --- a/docs/models/components/TaskExportData.md +++ b/docs/models/components/TaskExportData.md @@ -5,9 +5,9 @@ Parameters for the export-data task ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `content` | [studio.livepeer.livepeer.models.components.Content](../../models/components/Content.md) | :heavy_check_mark: | File content to store into IPFS | {
"data": "Hello, World!"
} | -| `ipfs` | [Optional](../../models/components/IpfsExportParams.md) | :heavy_minus_sign: | N/A | | -| `type` | *Optional* | :heavy_minus_sign: | Optional type of content | text/plain | -| `id` | *Optional* | :heavy_minus_sign: | Optional ID of the content | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `content` | [Content](../../models/components/Content.md) | :heavy_check_mark: | File content to store into IPFS | {
"data": "Hello, World!"
} | +| `ipfs` | [Optional](../../models/components/IpfsExportParams.md) | :heavy_minus_sign: | N/A | | +| `type` | *Optional* | :heavy_minus_sign: | Optional type of content | text/plain | +| `id` | *Optional* | :heavy_minus_sign: | Optional ID of the content | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file diff --git a/docs/models/components/TaskHls.md b/docs/models/components/TaskHls.md index b026ff1..b212d1b 100644 --- a/docs/models/components/TaskHls.md +++ b/docs/models/components/TaskHls.md @@ -5,6 +5,6 @@ HLS output format ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `path` | *Optional* | :heavy_minus_sign: | Path for the HLS output | /samplevideo/hls | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `path` | *Optional* | :heavy_minus_sign: | Path for the HLS output | /samplevideo/hls | \ No newline at end of file diff --git a/docs/models/components/TaskInput.md b/docs/models/components/TaskInput.md index 497a2af..ebf4798 100644 --- a/docs/models/components/TaskInput.md +++ b/docs/models/components/TaskInput.md @@ -7,4 +7,4 @@ Input video file to transcode | Field | Type | Required | Description | Example | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `url` | *Optional* | :heavy_minus_sign: | URL of a video to transcode, accepts object-store format
"s3+https"
| https://cdn.livepeer.com/ABC123/filename.mp4 | \ No newline at end of file +| `url` | *Optional* | :heavy_minus_sign: | URL of a video to transcode, accepts object-store format
"s3+https"
| https://cdn.livepeer.com/ABC123/filename.mp4 | \ No newline at end of file diff --git a/docs/models/components/TaskIpfs.md b/docs/models/components/TaskIpfs.md index 962c134..c0b6888 100644 --- a/docs/models/components/TaskIpfs.md +++ b/docs/models/components/TaskIpfs.md @@ -6,8 +6,8 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `videoFileCid` | *String* | :heavy_check_mark: | IPFS CID of the exported video file | Qmabc123xyz341 | -| `videoFileUrl` | *Optional* | :heavy_minus_sign: | URL for the file with the IPFS protocol | ipfs://Qmabc123xyz341 | -| `videoFileGatewayUrl` | *Optional* | :heavy_minus_sign: | URL to access file via HTTP through an IPFS gateway | https://gateway.ipfs.io/ipfs/Qmabc123xyz341 | -| `nftMetadataCid` | *Optional* | :heavy_minus_sign: | IPFS CID of the default metadata exported for the video | Qmabc123xyz341 | -| `nftMetadataUrl` | *Optional* | :heavy_minus_sign: | URL for the metadata file with the IPFS protocol | ipfs://Qmabc123xyz341 | -| `nftMetadataGatewayUrl` | *Optional* | :heavy_minus_sign: | URL to access metadata file via HTTP through an IPFS
gateway
| https://gateway.ipfs.io/ipfs/Qmabc123xyz341 | \ No newline at end of file +| `videoFileUrl` | *Optional* | :heavy_minus_sign: | URL for the file with the IPFS protocol | ipfs://Qmabc123xyz341 | +| `videoFileGatewayUrl` | *Optional* | :heavy_minus_sign: | URL to access file via HTTP through an IPFS gateway | https://gateway.ipfs.io/ipfs/Qmabc123xyz341 | +| `nftMetadataCid` | *Optional* | :heavy_minus_sign: | IPFS CID of the default metadata exported for the video | Qmabc123xyz341 | +| `nftMetadataUrl` | *Optional* | :heavy_minus_sign: | URL for the metadata file with the IPFS protocol | ipfs://Qmabc123xyz341 | +| `nftMetadataGatewayUrl` | *Optional* | :heavy_minus_sign: | URL to access metadata file via HTTP through an IPFS
gateway
| https://gateway.ipfs.io/ipfs/Qmabc123xyz341 | \ No newline at end of file diff --git a/docs/models/components/TaskMp4.md b/docs/models/components/TaskMp4.md index 5df8bb3..33ffa16 100644 --- a/docs/models/components/TaskMp4.md +++ b/docs/models/components/TaskMp4.md @@ -5,6 +5,6 @@ MP4 output format ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `path` | *Optional* | :heavy_minus_sign: | Path for the MP4 output | /samplevideo/mp4 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `path` | *Optional* | :heavy_minus_sign: | Path for the MP4 output | /samplevideo/mp4 | \ No newline at end of file diff --git a/docs/models/components/TaskOutputs.md b/docs/models/components/TaskOutputs.md index 9d783b9..d18f177 100644 --- a/docs/models/components/TaskOutputs.md +++ b/docs/models/components/TaskOutputs.md @@ -5,7 +5,7 @@ Output formats ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `hls` | [Optional](../../models/components/TaskHls.md) | :heavy_minus_sign: | HLS output format | -| `mp4` | [Optional](../../models/components/TaskMp4.md) | :heavy_minus_sign: | MP4 output format | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `hls` | [Optional](../../models/components/TaskHls.md) | :heavy_minus_sign: | HLS output format | +| `mp4` | [Optional](../../models/components/TaskMp4.md) | :heavy_minus_sign: | MP4 output format | \ No newline at end of file diff --git a/docs/models/components/TaskStatus.md b/docs/models/components/TaskStatus.md index b888f35..4993beb 100644 --- a/docs/models/components/TaskStatus.md +++ b/docs/models/components/TaskStatus.md @@ -5,10 +5,10 @@ Status of the task ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `phase` | [studio.livepeer.livepeer.models.components.TaskPhase](../../models/components/TaskPhase.md) | :heavy_check_mark: | Phase of the task | pending | -| `updatedAt` | *double* | :heavy_check_mark: | Timestamp (in milliseconds) at which task was updated | 1587667174725 | -| `progress` | *Optional* | :heavy_minus_sign: | Current progress of the task in a 0-1 ratio | 0.5 | -| `errorMessage` | *Optional* | :heavy_minus_sign: | Error message if the task failed | Failed to upload file | -| `retries` | *Optional* | :heavy_minus_sign: | Number of retries done on the task | 3 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `phase` | [TaskPhase](../../models/components/TaskPhase.md) | :heavy_check_mark: | Phase of the task | pending | +| `updatedAt` | *double* | :heavy_check_mark: | Timestamp (in milliseconds) at which task was updated | 1587667174725 | +| `progress` | *Optional* | :heavy_minus_sign: | Current progress of the task in a 0-1 ratio | 0.5 | +| `errorMessage` | *Optional* | :heavy_minus_sign: | Error message if the task failed | Failed to upload file | +| `retries` | *Optional* | :heavy_minus_sign: | Number of retries done on the task | 3 | \ No newline at end of file diff --git a/docs/models/components/TaskStorage.md b/docs/models/components/TaskStorage.md index 073a6a7..236ea08 100644 --- a/docs/models/components/TaskStorage.md +++ b/docs/models/components/TaskStorage.md @@ -7,4 +7,4 @@ Storage for the output files | Field | Type | Required | Description | Example | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `url` | *Optional* | :heavy_minus_sign: | URL of the output storage, accepts object-store format
"s3+https"
| s3+https://accessKeyId:secretAccessKey@s3Endpoint/bucket | \ No newline at end of file +| `url` | *Optional* | :heavy_minus_sign: | URL of the output storage, accepts object-store format
"s3+https"
| s3+https://accessKeyId:secretAccessKey@s3Endpoint/bucket | \ No newline at end of file diff --git a/docs/models/components/Tasks.md b/docs/models/components/Tasks.md index 7fb9b97..2109aa9 100644 --- a/docs/models/components/Tasks.md +++ b/docs/models/components/Tasks.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `pending` | *Optional* | :heavy_minus_sign: | ID of any currently running task that is exporting this
asset to IPFS.
| 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `last` | *Optional* | :heavy_minus_sign: | ID of the last task to run successfully, that created
the currently saved data.
| 09F8B46C-61A0-4254-9875-F71F4C605BC7 | -| `failed` | *Optional* | :heavy_minus_sign: | ID of the last task to fail execution. | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file +| `pending` | *Optional* | :heavy_minus_sign: | ID of any currently running task that is exporting this
asset to IPFS.
| 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `last` | *Optional* | :heavy_minus_sign: | ID of the last task to run successfully, that created
the currently saved data.
| 09F8B46C-61A0-4254-9875-F71F4C605BC7 | +| `failed` | *Optional* | :heavy_minus_sign: | ID of the last task to fail execution. | 09F8B46C-61A0-4254-9875-F71F4C605BC7 | \ No newline at end of file diff --git a/docs/models/components/Tracks.md b/docs/models/components/Tracks.md index 5d0d200..6b6c0f5 100644 --- a/docs/models/components/Tracks.md +++ b/docs/models/components/Tracks.md @@ -3,17 +3,17 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `type` | [studio.livepeer.livepeer.models.components.AssetVideoSpecType](../../models/components/AssetVideoSpecType.md) | :heavy_check_mark: | type of track | video | -| `codec` | *String* | :heavy_check_mark: | Codec of the track | aac | -| `startTime` | *Optional* | :heavy_minus_sign: | Start time of the track in seconds | 23.8238 | -| `duration` | *Optional* | :heavy_minus_sign: | Duration of the track in seconds | 23.8238 | -| `bitrate` | *Optional* | :heavy_minus_sign: | Bitrate of the track in bits per second | 1000000 | -| `width` | *Optional* | :heavy_minus_sign: | Width of the track - only for video tracks | 1920 | -| `height` | *Optional* | :heavy_minus_sign: | Height of the track - only for video tracks | 1080 | -| `pixelFormat` | *Optional* | :heavy_minus_sign: | Pixel format of the track - only for video tracks | yuv420p | -| `fps` | *Optional* | :heavy_minus_sign: | Frame rate of the track - only for video tracks | 30 | -| `channels` | *Optional* | :heavy_minus_sign: | Amount of audio channels in the track | 2 | -| `sampleRate` | *Optional* | :heavy_minus_sign: | Sample rate of the track in samples per second - only for
audio tracks
| 44100 | -| `bitDepth` | *Optional* | :heavy_minus_sign: | Bit depth of the track - only for audio tracks | 16 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `type` | [AssetVideoSpecType](../../models/components/AssetVideoSpecType.md) | :heavy_check_mark: | type of track | video | +| `codec` | *String* | :heavy_check_mark: | Codec of the track | aac | +| `startTime` | *Optional* | :heavy_minus_sign: | Start time of the track in seconds | 23.8238 | +| `duration` | *Optional* | :heavy_minus_sign: | Duration of the track in seconds | 23.8238 | +| `bitrate` | *Optional* | :heavy_minus_sign: | Bitrate of the track in bits per second | 1000000 | +| `width` | *Optional* | :heavy_minus_sign: | Width of the track - only for video tracks | 1920 | +| `height` | *Optional* | :heavy_minus_sign: | Height of the track - only for video tracks | 1080 | +| `pixelFormat` | *Optional* | :heavy_minus_sign: | Pixel format of the track - only for video tracks | yuv420p | +| `fps` | *Optional* | :heavy_minus_sign: | Frame rate of the track - only for video tracks | 30 | +| `channels` | *Optional* | :heavy_minus_sign: | Amount of audio channels in the track | 2 | +| `sampleRate` | *Optional* | :heavy_minus_sign: | Sample rate of the track in samples per second - only for
audio tracks
| 44100 | +| `bitDepth` | *Optional* | :heavy_minus_sign: | Bit depth of the track - only for audio tracks | 16 | \ No newline at end of file diff --git a/docs/models/components/TranscodeFile.md b/docs/models/components/TranscodeFile.md index 0aa42f0..64a0792 100644 --- a/docs/models/components/TranscodeFile.md +++ b/docs/models/components/TranscodeFile.md @@ -5,12 +5,12 @@ Parameters for the transcode-file task ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `input` | [Optional](../../models/components/TaskInput.md) | :heavy_minus_sign: | Input video file to transcode | | -| `storage` | [Optional](../../models/components/TaskStorage.md) | :heavy_minus_sign: | Storage for the output files | | -| `outputs` | [Optional](../../models/components/TaskOutputs.md) | :heavy_minus_sign: | Output formats | | -| `profiles` | List<[studio.livepeer.livepeer.models.components.TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should
be
| 10 | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | false | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `input` | [Optional](../../models/components/TaskInput.md) | :heavy_minus_sign: | Input video file to transcode | | +| `storage` | [Optional](../../models/components/TaskStorage.md) | :heavy_minus_sign: | Storage for the output files | | +| `outputs` | [Optional](../../models/components/TaskOutputs.md) | :heavy_minus_sign: | Output formats | | +| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | +| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should
be
| 10 | +| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | | +| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | false | \ No newline at end of file diff --git a/docs/models/components/TranscodePayload.md b/docs/models/components/TranscodePayload.md index f964b39..3618ac8 100644 --- a/docs/models/components/TranscodePayload.md +++ b/docs/models/components/TranscodePayload.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `input` | [studio.livepeer.livepeer.models.components.Input](../../models/components/Input.md) | :heavy_check_mark: | N/A | -| `storage` | [studio.livepeer.livepeer.models.components.TranscodePayloadStorage](../../models/components/TranscodePayloadStorage.md) | :heavy_check_mark: | N/A | -| `outputs` | [studio.livepeer.livepeer.models.components.Outputs](../../models/components/Outputs.md) | :heavy_check_mark: | Output formats | -| `profiles` | List<[studio.livepeer.livepeer.models.components.TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | -| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `input` | [Input](../../models/components/Input.md) | :heavy_check_mark: | N/A | +| `storage` | [TranscodePayloadStorage](../../models/components/TranscodePayloadStorage.md) | :heavy_check_mark: | N/A | +| `outputs` | [Outputs](../../models/components/Outputs.md) | :heavy_check_mark: | Output formats | +| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | +| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | +| `creatorId` | [Optional](../../models/components/InputCreatorId.md) | :heavy_minus_sign: | N/A | +| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | \ No newline at end of file diff --git a/docs/models/components/TranscodeProfile.md b/docs/models/components/TranscodeProfile.md index b449fe9..bff35f6 100644 --- a/docs/models/components/TranscodeProfile.md +++ b/docs/models/components/TranscodeProfile.md @@ -7,13 +7,13 @@ Transcode API profile | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `width` | *Optional* | :heavy_minus_sign: | N/A | 1280 | -| `name` | *Optional* | :heavy_minus_sign: | N/A | 720p | -| `height` | *Optional* | :heavy_minus_sign: | N/A | | +| `width` | *Optional* | :heavy_minus_sign: | N/A | 1280 | +| `name` | *Optional* | :heavy_minus_sign: | N/A | 720p | +| `height` | *Optional* | :heavy_minus_sign: | N/A | 720 | | `bitrate` | *long* | :heavy_check_mark: | N/A | 3000000 | -| `quality` | *Optional* | :heavy_minus_sign: | Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it.
| 23 | -| `fps` | *Optional* | :heavy_minus_sign: | N/A | 30 | -| `fpsDen` | *Optional* | :heavy_minus_sign: | N/A | 1 | -| `gop` | *Optional* | :heavy_minus_sign: | N/A | 2 | -| `profile` | [Optional](../../models/components/TranscodeProfileProfile.md) | :heavy_minus_sign: | N/A | H264Baseline | -| `encoder` | [Optional](../../models/components/TranscodeProfileEncoder.md) | :heavy_minus_sign: | N/A | H.264 | \ No newline at end of file +| `quality` | *Optional* | :heavy_minus_sign: | Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it.
| 23 | +| `fps` | *Optional* | :heavy_minus_sign: | N/A | 30 | +| `fpsDen` | *Optional* | :heavy_minus_sign: | N/A | 1 | +| `gop` | *Optional* | :heavy_minus_sign: | N/A | 2 | +| `profile` | [Optional](../../models/components/TranscodeProfileProfile.md) | :heavy_minus_sign: | N/A | H264Baseline | +| `encoder` | [Optional](../../models/components/TranscodeProfileEncoder.md) | :heavy_minus_sign: | N/A | H.264 | \ No newline at end of file diff --git a/docs/models/components/Two.md b/docs/models/components/Two.md index ed047c3..0f59e3b 100644 --- a/docs/models/components/Two.md +++ b/docs/models/components/Two.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `type` | [studio.livepeer.livepeer.models.components.AssetSourceType](../../models/components/AssetSourceType.md) | :heavy_check_mark: | N/A | -| `sessionId` | *String* | :heavy_check_mark: | ID of the session from which this asset was created | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `type` | [AssetSourceType](../../models/components/AssetSourceType.md) | :heavy_check_mark: | N/A | +| `sessionId` | *String* | :heavy_check_mark: | ID of the session from which this asset was created | \ No newline at end of file diff --git a/docs/models/components/Upload.md b/docs/models/components/Upload.md index 380f9a2..c63ad6d 100644 --- a/docs/models/components/Upload.md +++ b/docs/models/components/Upload.md @@ -5,10 +5,10 @@ Parameters for the upload task ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `url` | *Optional* | :heavy_minus_sign: | URL of the asset to "upload" | https://cdn.livepeer.com/ABC123/filename.mp4 | -| `encryption` | [Optional](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | | -| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | true | -| `profiles` | List<[studio.livepeer.livepeer.models.components.TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | -| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | 6 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `url` | *Optional* | :heavy_minus_sign: | URL of the asset to "upload" | https://cdn.livepeer.com/ABC123/filename.mp4 | +| `encryption` | [Optional](../../models/components/EncryptionOutput.md) | :heavy_minus_sign: | N/A | | +| `c2pa` | *Optional* | :heavy_minus_sign: | Decides if the output video should include C2PA signature | true | +| `profiles` | List<[TranscodeProfile](../../models/components/TranscodeProfile.md)> | :heavy_minus_sign: | N/A | | +| `targetSegmentSizeSecs` | *Optional* | :heavy_minus_sign: | How many seconds the duration of each output segment should be | 6 | \ No newline at end of file diff --git a/docs/models/components/UsageMetric.md b/docs/models/components/UsageMetric.md index 173c0c4..ceec678 100644 --- a/docs/models/components/UsageMetric.md +++ b/docs/models/components/UsageMetric.md @@ -8,8 +8,8 @@ An individual metric about usage of a user. | Field | Type | Required | Description | Example | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `userID` | *Optional* | :heavy_minus_sign: | The user ID associated with the metric | 1bde4o2i6xycudoy | -| `creatorID` | *Optional* | :heavy_minus_sign: | The creator ID associated with the metric | john@doe.com | -| `deliveryUsageMins` | *Optional* | :heavy_minus_sign: | Total minutes of delivery usage. | 100 | -| `totalUsageMins` | *Optional* | :heavy_minus_sign: | Total transcoded minutes. | 100 | -| `storageUsageMins` | *Optional* | :heavy_minus_sign: | Total minutes of storage usage. | 100 | \ No newline at end of file +| `userID` | *Optional* | :heavy_minus_sign: | The user ID associated with the metric | 1bde4o2i6xycudoy | +| `creatorID` | *Optional* | :heavy_minus_sign: | The creator ID associated with the metric | john@doe.com | +| `deliveryUsageMins` | *Optional* | :heavy_minus_sign: | Total minutes of delivery usage. | 100 | +| `totalUsageMins` | *Optional* | :heavy_minus_sign: | Total transcoded minutes. | 100 | +| `storageUsageMins` | *Optional* | :heavy_minus_sign: | Total minutes of storage usage. | 100 | \ No newline at end of file diff --git a/docs/models/components/VideoSpec.md b/docs/models/components/VideoSpec.md index d34d08f..e5ce1e9 100644 --- a/docs/models/components/VideoSpec.md +++ b/docs/models/components/VideoSpec.md @@ -5,9 +5,9 @@ Video metadata ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `format` | *Optional* | :heavy_minus_sign: | Format of the asset | mp4 | -| `duration` | *Optional* | :heavy_minus_sign: | Duration of the asset in seconds (float) | 23.8328 | -| `bitrate` | *Optional* | :heavy_minus_sign: | Bitrate of the video in bits per second | 1000000 | -| `tracks` | List<[studio.livepeer.livepeer.models.components.Tracks](../../models/components/Tracks.md)> | :heavy_minus_sign: | List of tracks associated with the asset when the format
contemplates them (e.g. mp4)
| | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `format` | *Optional* | :heavy_minus_sign: | Format of the asset | mp4 | +| `duration` | *Optional* | :heavy_minus_sign: | Duration of the asset in seconds (float) | 23.8328 | +| `bitrate` | *Optional* | :heavy_minus_sign: | Bitrate of the video in bits per second | 1000000 | +| `tracks` | List<[Tracks](../../models/components/Tracks.md)> | :heavy_minus_sign: | List of tracks associated with the asset when the format
contemplates them (e.g. mp4)
| | \ No newline at end of file diff --git a/docs/models/components/ViewershipMetric.md b/docs/models/components/ViewershipMetric.md index b1a0f69..8719a5c 100644 --- a/docs/models/components/ViewershipMetric.md +++ b/docs/models/components/ViewershipMetric.md @@ -1,6 +1,6 @@ # ViewershipMetric -An individual metric about viewership of an asset. Necessarily, at least +An individual metric about viewership of a stream/asset. Necessarily, at least 1 of playbackId and dStorageUrl will be present, depending on the query. @@ -9,25 +9,25 @@ An individual metric about viewership of an asset. Necessarily, at least | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | -| `creatorId` | *Optional* | :heavy_minus_sign: | The ID of the creator associated with the metric. | john@doe.com | -| `viewerId` | *Optional* | :heavy_minus_sign: | The ID of the viewer associated with the metric. | 1bde4o2i6xycudoy | -| `dStorageUrl` | *Optional* | :heavy_minus_sign: | The URL of the distributed storage used for the asset | ipfs://QmZ4 | -| `timestamp` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) when the metric was recorded. If the
query contains a time step, this timestamp will point to the
beginning of the time step period.
| 1587667174725 | -| `device` | *Optional* | :heavy_minus_sign: | The device used by the viewer. | iPhone | -| `deviceType` | *Optional* | :heavy_minus_sign: | The type of the device used by the viewer. | mobile | -| `cpu` | *Optional* | :heavy_minus_sign: | The CPU used by the viewer's device. | ARM | -| `os` | *Optional* | :heavy_minus_sign: | The operating system used by the viewer. | iOS | -| `browser` | *Optional* | :heavy_minus_sign: | The browser used by the viewer. | Safari | -| `browserEngine` | *Optional* | :heavy_minus_sign: | The browser engine used by the viewer's browser. | WebKit | -| `continent` | *Optional* | :heavy_minus_sign: | The continent where the viewer is located. | North America | -| `country` | *Optional* | :heavy_minus_sign: | The country where the viewer is located. | United States | -| `subdivision` | *Optional* | :heavy_minus_sign: | The subdivision (e.g., state or province) where the viewer is
located.
| California | -| `timezone` | *Optional* | :heavy_minus_sign: | The timezone where the viewer is located. | America/Los_Angeles | -| `geohash` | *Optional* | :heavy_minus_sign: | Geographic encoding of the viewers location. Accurate to 3 digits. | 123 | -| `viewCount` | *long* | :heavy_check_mark: | The number of views for the asset. | 100 | -| `playtimeMins` | *double* | :heavy_check_mark: | The total playtime in minutes for the asset. | 10 | -| `ttffMs` | *Optional* | :heavy_minus_sign: | The time-to-first-frame (TTFF) in milliseconds. | 100 | -| `rebufferRatio` | *Optional* | :heavy_minus_sign: | The rebuffering ratio for the asset. | 0.1 | -| `errorRate` | *Optional* | :heavy_minus_sign: | The error rate for the asset. | 0.1 | -| `exitsBeforeStart` | *Optional* | :heavy_minus_sign: | The percentage of sessions that existed before the asset started
playing.
| 0.5 | \ No newline at end of file +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | +| `creatorId` | *Optional* | :heavy_minus_sign: | The ID of the creator associated with the metric. | john@doe.com | +| `viewerId` | *Optional* | :heavy_minus_sign: | The ID of the viewer associated with the metric. | 1bde4o2i6xycudoy | +| `dStorageUrl` | *Optional* | :heavy_minus_sign: | The URL of the distributed storage used for the asset | ipfs://QmZ4 | +| `timestamp` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) when the metric was recorded. If the
query contains a time step, this timestamp will point to the
beginning of the time step period.
| 1587667174725 | +| `device` | *Optional* | :heavy_minus_sign: | The device used by the viewer. | iPhone | +| `deviceType` | *Optional* | :heavy_minus_sign: | The type of the device used by the viewer. | mobile | +| `cpu` | *Optional* | :heavy_minus_sign: | The CPU used by the viewer's device. | ARM | +| `os` | *Optional* | :heavy_minus_sign: | The operating system used by the viewer. | iOS | +| `browser` | *Optional* | :heavy_minus_sign: | The browser used by the viewer. | Safari | +| `browserEngine` | *Optional* | :heavy_minus_sign: | The browser engine used by the viewer's browser. | WebKit | +| `continent` | *Optional* | :heavy_minus_sign: | The continent where the viewer is located. | North America | +| `country` | *Optional* | :heavy_minus_sign: | The country where the viewer is located. | United States | +| `subdivision` | *Optional* | :heavy_minus_sign: | The subdivision (e.g., state or province) where the viewer is
located.
| California | +| `timezone` | *Optional* | :heavy_minus_sign: | The timezone where the viewer is located. | America/Los_Angeles | +| `geohash` | *Optional* | :heavy_minus_sign: | Geographic encoding of the viewers location. Accurate to 3 digits. | 123 | +| `viewCount` | *long* | :heavy_check_mark: | The number of views for the stream/asset. | 100 | +| `playtimeMins` | *double* | :heavy_check_mark: | The total playtime in minutes for the stream/asset. | 10 | +| `ttffMs` | *Optional* | :heavy_minus_sign: | The time-to-first-frame (TTFF) in milliseconds. | 100 | +| `rebufferRatio` | *Optional* | :heavy_minus_sign: | The rebuffering ratio for the asset. | 0.1 | +| `errorRate` | *Optional* | :heavy_minus_sign: | The error rate for the stream/asset. | 0.1 | +| `exitsBeforeStart` | *Optional* | :heavy_minus_sign: | The percentage of sessions that existed before the asset started
playing.
| 0.5 | \ No newline at end of file diff --git a/docs/models/components/Webhook.md b/docs/models/components/Webhook.md index 6c5cc54..f51664e 100644 --- a/docs/models/components/Webhook.md +++ b/docs/models/components/Webhook.md @@ -5,13 +5,13 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `id` | *Optional* | :heavy_minus_sign: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | | `name` | *String* | :heavy_check_mark: | N/A | test_webhook | -| ~~`kind`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | webhook | -| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | -| `events` | List<[studio.livepeer.livepeer.models.components.Events](../../models/components/Events.md)> | :heavy_minus_sign: | N/A | [
"stream.started",
"stream.idle"
] | +| ~~`kind`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | webhook | +| ~~`userId`~~ | *Optional* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | +| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which stream object was created | 1587667174725 | +| `events` | List<[Events](../../models/components/Events.md)> | :heavy_minus_sign: | N/A | [
"stream.started",
"stream.idle"
] | | `url` | *String* | :heavy_check_mark: | N/A | https://my-service.com/webhook | -| `streamId` | *Optional* | :heavy_minus_sign: | streamId of the stream on which the webhook is applied | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `status` | [Optional](../../models/components/Status.md) | :heavy_minus_sign: | status of webhook | | \ No newline at end of file +| `streamId` | *Optional* | :heavy_minus_sign: | streamId of the stream on which the webhook is applied | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `status` | [Optional](../../models/components/Status.md) | :heavy_minus_sign: | status of webhook | | \ No newline at end of file diff --git a/docs/models/components/WebhookInput.md b/docs/models/components/WebhookInput.md index 5975430..01b1089 100644 --- a/docs/models/components/WebhookInput.md +++ b/docs/models/components/WebhookInput.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `name` | *String* | :heavy_check_mark: | N/A | test_webhook | -| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | -| `events` | List<[studio.livepeer.livepeer.models.components.Events](../../models/components/Events.md)> | :heavy_minus_sign: | N/A | [
"stream.started",
"stream.idle"
] | -| `url` | *String* | :heavy_check_mark: | N/A | https://my-service.com/webhook | -| `sharedSecret` | *Optional* | :heavy_minus_sign: | shared secret used to sign the webhook payload | my-secret | -| `streamId` | *Optional* | :heavy_minus_sign: | streamId of the stream on which the webhook is applied | de7818e7-610a-4057-8f6f-b785dc1e6f88 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `name` | *String* | :heavy_check_mark: | N/A | test_webhook | +| `projectId` | *Optional* | :heavy_minus_sign: | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 | +| `events` | List<[Events](../../models/components/Events.md)> | :heavy_minus_sign: | N/A | [
"stream.started",
"stream.idle"
] | +| `url` | *String* | :heavy_check_mark: | N/A | https://my-service.com/webhook | +| `sharedSecret` | *Optional* | :heavy_minus_sign: | shared secret used to sign the webhook payload | my-secret | +| `streamId` | *Optional* | :heavy_minus_sign: | streamId of the stream on which the webhook is applied | de7818e7-610a-4057-8f6f-b785dc1e6f88 | \ No newline at end of file diff --git a/docs/models/components/WebhookLog.md b/docs/models/components/WebhookLog.md index f037f66..354a889 100644 --- a/docs/models/components/WebhookLog.md +++ b/docs/models/components/WebhookLog.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `webhookId` | *String* | :heavy_check_mark: | ID of the webhook this request was made for | de7818e7-610a-4057-8f6f-b785dc1e6f88 | -| `event` | *Optional* | :heavy_minus_sign: | The event type that triggered the webhook request | stream.started | -| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which webhook request object was
created
| 1587667174725 | -| `duration` | *Optional* | :heavy_minus_sign: | The time taken (in seconds) to make the webhook request | 0.5 | -| `success` | *Optional* | :heavy_minus_sign: | Whether the webhook request was successful | true | -| `request` | [Optional](../../models/components/Request.md) | :heavy_minus_sign: | N/A | | -| `response` | [Optional](../../models/components/Response.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `id` | *String* | :heavy_check_mark: | N/A | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `webhookId` | *String* | :heavy_check_mark: | ID of the webhook this request was made for | de7818e7-610a-4057-8f6f-b785dc1e6f88 | +| `event` | *Optional* | :heavy_minus_sign: | The event type that triggered the webhook request | stream.started | +| `createdAt` | *Optional* | :heavy_minus_sign: | Timestamp (in milliseconds) at which webhook request object was
created
| 1587667174725 | +| `duration` | *Optional* | :heavy_minus_sign: | The time taken (in seconds) to make the webhook request | 0.5 | +| `success` | *Optional* | :heavy_minus_sign: | Whether the webhook request was successful | true | +| `request` | [Optional](../../models/components/Request.md) | :heavy_minus_sign: | N/A | | +| `response` | [Optional](../../models/components/Response.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/AddMultistreamTargetRequest.md b/docs/models/operations/AddMultistreamTargetRequest.md index cda9f0c..4a665cf 100644 --- a/docs/models/operations/AddMultistreamTargetRequest.md +++ b/docs/models/operations/AddMultistreamTargetRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the parent stream | -| `targetAddPayload` | [studio.livepeer.livepeer.models.components.TargetAddPayload](../../models/components/TargetAddPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | ID of the parent stream | +| `targetAddPayload` | [TargetAddPayload](../../models/components/TargetAddPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/AddMultistreamTargetResponse.md b/docs/models/operations/AddMultistreamTargetResponse.md index 6e96def..3da8246 100644 --- a/docs/models/operations/AddMultistreamTargetResponse.md +++ b/docs/models/operations/AddMultistreamTargetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/BreakdownBy.md b/docs/models/operations/BreakdownBy.md index d9fddec..f44f40c 100644 --- a/docs/models/operations/BreakdownBy.md +++ b/docs/models/operations/BreakdownBy.md @@ -3,19 +3,9 @@ ## Values -| Name | Value | -| ---------------- | ---------------- | -| `PLAYBACK_ID` | playbackId | -| `DEVICE_TYPE` | deviceType | -| `DEVICE` | device | -| `CPU` | cpu | -| `OS` | os | -| `BROWSER` | browser | -| `BROWSER_ENGINE` | browserEngine | -| `CONTINENT` | continent | -| `COUNTRY` | country | -| `SUBDIVISION` | subdivision | -| `TIMEZONE` | timezone | -| `GEOHASH` | geohash | -| `VIEWER_ID` | viewerId | -| `CREATOR_ID` | creatorId | \ No newline at end of file +| Name | Value | +| ------------- | ------------- | +| `PLAYBACK_ID` | playbackId | +| `DEVICE` | device | +| `BROWSER` | browser | +| `COUNTRY` | country | \ No newline at end of file diff --git a/docs/models/operations/CreateClipData.md b/docs/models/operations/CreateClipData.md index 0e2aef0..8f12c24 100644 --- a/docs/models/operations/CreateClipData.md +++ b/docs/models/operations/CreateClipData.md @@ -5,7 +5,7 @@ Success ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `asset` | [studio.livepeer.livepeer.models.components.Asset](../../models/components/Asset.md) | :heavy_check_mark: | N/A | -| `task` | [studio.livepeer.livepeer.models.operations.CreateClipTask](../../models/operations/CreateClipTask.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `asset` | [Asset](../../models/components/Asset.md) | :heavy_check_mark: | N/A | +| `task` | [CreateClipTask](../../models/operations/CreateClipTask.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CreateClipResponse.md b/docs/models/operations/CreateClipResponse.md index f7839a2..c640660 100644 --- a/docs/models/operations/CreateClipResponse.md +++ b/docs/models/operations/CreateClipResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | [Optional](../../models/operations/CreateClipData.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | [Optional](../../models/operations/CreateClipData.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateClipTask.md b/docs/models/operations/CreateClipTask.md index 0e5a1ba..dc493a0 100644 --- a/docs/models/operations/CreateClipTask.md +++ b/docs/models/operations/CreateClipTask.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *Optional* | :heavy_minus_sign: | N/A | 34d7618e-fd42-4798-acf5-19504616a11e | \ No newline at end of file +| `id` | *Optional* | :heavy_minus_sign: | N/A | 34d7618e-fd42-4798-acf5-19504616a11e | \ No newline at end of file diff --git a/docs/models/operations/CreateMultistreamTargetResponse.md b/docs/models/operations/CreateMultistreamTargetResponse.md index 108c692..28ec03b 100644 --- a/docs/models/operations/CreateMultistreamTargetResponse.md +++ b/docs/models/operations/CreateMultistreamTargetResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `multistreamTarget` | [Optional](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `multistreamTarget` | [Optional](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateRoomResponse.md b/docs/models/operations/CreateRoomResponse.md index 5cd5523..df87089 100644 --- a/docs/models/operations/CreateRoomResponse.md +++ b/docs/models/operations/CreateRoomResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `createRoomResponse` | [Optional](../../models/components/CreateRoomResponse.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `createRoomResponse` | [Optional](../../models/components/CreateRoomResponse.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateRoomUserRequest.md b/docs/models/operations/CreateRoomUserRequest.md index b748e68..dcffafb 100644 --- a/docs/models/operations/CreateRoomUserRequest.md +++ b/docs/models/operations/CreateRoomUserRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | -| `roomUserPayload` | [studio.livepeer.livepeer.models.components.RoomUserPayload](../../models/components/RoomUserPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `roomUserPayload` | [RoomUserPayload](../../models/components/RoomUserPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CreateRoomUserResponse.md b/docs/models/operations/CreateRoomUserResponse.md index 8dcce10..1d41549 100644 --- a/docs/models/operations/CreateRoomUserResponse.md +++ b/docs/models/operations/CreateRoomUserResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `roomUserResponse` | [Optional](../../models/components/RoomUserResponse.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `roomUserResponse` | [Optional](../../models/components/RoomUserResponse.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateSigningKeyResponse.md b/docs/models/operations/CreateSigningKeyResponse.md index db4546f..327fde0 100644 --- a/docs/models/operations/CreateSigningKeyResponse.md +++ b/docs/models/operations/CreateSigningKeyResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `signingKey` | [Optional](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `signingKey` | [Optional](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateStreamResponse.md b/docs/models/operations/CreateStreamResponse.md index 28d06ce..2d8e055 100644 --- a/docs/models/operations/CreateStreamResponse.md +++ b/docs/models/operations/CreateStreamResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `stream` | [Optional](../../models/components/Stream.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `stream` | [Optional](../../models/components/Stream.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/CreateWebhookResponse.md b/docs/models/operations/CreateWebhookResponse.md index 0115d79..83db0cd 100644 --- a/docs/models/operations/CreateWebhookResponse.md +++ b/docs/models/operations/CreateWebhookResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteAssetResponse.md b/docs/models/operations/DeleteAssetResponse.md index e9a6f87..9faa387 100644 --- a/docs/models/operations/DeleteAssetResponse.md +++ b/docs/models/operations/DeleteAssetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteMultistreamTargetResponse.md b/docs/models/operations/DeleteMultistreamTargetResponse.md index 9438cf1..97a72d4 100644 --- a/docs/models/operations/DeleteMultistreamTargetResponse.md +++ b/docs/models/operations/DeleteMultistreamTargetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteRoomResponse.md b/docs/models/operations/DeleteRoomResponse.md index 0322b9f..f86b8a7 100644 --- a/docs/models/operations/DeleteRoomResponse.md +++ b/docs/models/operations/DeleteRoomResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteRoomUserResponse.md b/docs/models/operations/DeleteRoomUserResponse.md index f5dafad..390d080 100644 --- a/docs/models/operations/DeleteRoomUserResponse.md +++ b/docs/models/operations/DeleteRoomUserResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteSigningKeyResponse.md b/docs/models/operations/DeleteSigningKeyResponse.md index 80c81b0..9253c43 100644 --- a/docs/models/operations/DeleteSigningKeyResponse.md +++ b/docs/models/operations/DeleteSigningKeyResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteStreamResponse.md b/docs/models/operations/DeleteStreamResponse.md index baa0a09..6e84149 100644 --- a/docs/models/operations/DeleteStreamResponse.md +++ b/docs/models/operations/DeleteStreamResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/DeleteWebhookResponse.md b/docs/models/operations/DeleteWebhookResponse.md index 4804e79..4332553 100644 --- a/docs/models/operations/DeleteWebhookResponse.md +++ b/docs/models/operations/DeleteWebhookResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetAssetResponse.md b/docs/models/operations/GetAssetResponse.md index a939011..bab0167 100644 --- a/docs/models/operations/GetAssetResponse.md +++ b/docs/models/operations/GetAssetResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `asset` | [Optional](../../models/components/Asset.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `asset` | [Optional](../../models/components/Asset.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetAssetsResponse.md b/docs/models/operations/GetAssetsResponse.md index 8fb906b..a3e6551 100644 --- a/docs/models/operations/GetAssetsResponse.md +++ b/docs/models/operations/GetAssetsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetClipsResponse.md b/docs/models/operations/GetClipsResponse.md index 9d70a9e..56d4ce2 100644 --- a/docs/models/operations/GetClipsResponse.md +++ b/docs/models/operations/GetClipsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md b/docs/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md new file mode 100644 index 0000000..6f233a0 --- /dev/null +++ b/docs/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md @@ -0,0 +1,18 @@ +# GetCreatorViewershipMetricsQueryParamBreakdownBy + + +## Values + +| Name | Value | +| ---------------- | ---------------- | +| `DEVICE_TYPE` | deviceType | +| `DEVICE` | device | +| `CPU` | cpu | +| `OS` | os | +| `BROWSER` | browser | +| `BROWSER_ENGINE` | browserEngine | +| `CONTINENT` | continent | +| `COUNTRY` | country | +| `SUBDIVISION` | subdivision | +| `TIMEZONE` | timezone | +| `VIEWER_ID` | viewerId | \ No newline at end of file diff --git a/docs/models/operations/GetCreatorViewershipMetricsRequest.md b/docs/models/operations/GetCreatorViewershipMetricsRequest.md index fc49f4a..d148962 100644 --- a/docs/models/operations/GetCreatorViewershipMetricsRequest.md +++ b/docs/models/operations/GetCreatorViewershipMetricsRequest.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `from` | [Optional](../../models/operations/QueryParamFrom.md) | :heavy_minus_sign: | Start timestamp for the query range (inclusive) | -| `to` | [Optional](../../models/operations/QueryParamTo.md) | :heavy_minus_sign: | End timestamp for the query range (exclusive) | -| `timeStep` | [Optional](../../models/operations/QueryParamTimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by | -| `assetId` | *Optional* | :heavy_minus_sign: | The asset ID to filter metrics for | -| `streamId` | *Optional* | :heavy_minus_sign: | The stream ID to filter metrics for | -| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | -| `breakdownBy` | List<[studio.livepeer.livepeer.models.operations.QueryParamBreakdownBy](../../models/operations/QueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| `from` | [Optional](../../models/operations/QueryParamFrom.md) | :heavy_minus_sign: | Start timestamp for the query range (inclusive) | +| `to` | [Optional](../../models/operations/QueryParamTo.md) | :heavy_minus_sign: | End timestamp for the query range (exclusive) | +| `timeStep` | [Optional](../../models/operations/QueryParamTimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by | +| `assetId` | *Optional* | :heavy_minus_sign: | The asset ID to filter metrics for | +| `streamId` | *Optional* | :heavy_minus_sign: | The stream ID to filter metrics for | +| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | +| `breakdownBy` | List<[GetCreatorViewershipMetricsQueryParamBreakdownBy](../../models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file diff --git a/docs/models/operations/GetCreatorViewershipMetricsResponse.md b/docs/models/operations/GetCreatorViewershipMetricsResponse.md index f23f9bc..df05bb2 100644 --- a/docs/models/operations/GetCreatorViewershipMetricsResponse.md +++ b/docs/models/operations/GetCreatorViewershipMetricsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.ViewershipMetric](../../models/components/ViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[ViewershipMetric](../../models/components/ViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetMultistreamTargetResponse.md b/docs/models/operations/GetMultistreamTargetResponse.md index 9fae0cf..51e416c 100644 --- a/docs/models/operations/GetMultistreamTargetResponse.md +++ b/docs/models/operations/GetMultistreamTargetResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `multistreamTarget` | [Optional](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `multistreamTarget` | [Optional](../../models/components/MultistreamTarget.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetMultistreamTargetsResponse.md b/docs/models/operations/GetMultistreamTargetsResponse.md index 05e83fa..ff5c4b8 100644 --- a/docs/models/operations/GetMultistreamTargetsResponse.md +++ b/docs/models/operations/GetMultistreamTargetsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.MultistreamTarget](../../models/components/MultistreamTarget.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[MultistreamTarget](../../models/components/MultistreamTarget.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetPlaybackInfoResponse.md b/docs/models/operations/GetPlaybackInfoResponse.md index 0ee3073..9b55fe8 100644 --- a/docs/models/operations/GetPlaybackInfoResponse.md +++ b/docs/models/operations/GetPlaybackInfoResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `playbackInfo` | [Optional](../../models/components/PlaybackInfo.md) | :heavy_minus_sign: | Successful response | \ No newline at end of file +| `playbackInfo` | [Optional](../../models/components/PlaybackInfo.md) | :heavy_minus_sign: | Successful response | \ No newline at end of file diff --git a/docs/models/operations/GetPublicViewershipMetricsData.md b/docs/models/operations/GetPublicViewershipMetricsData.md index ac5523b..f231c25 100644 --- a/docs/models/operations/GetPublicViewershipMetricsData.md +++ b/docs/models/operations/GetPublicViewershipMetricsData.md @@ -9,7 +9,7 @@ asset. Either playbackId or dStorageUrl will be set. | Field | Type | Required | Description | Example | | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | -| `dStorageUrl` | *Optional* | :heavy_minus_sign: | The URL of the distributed storage used for the asset | ipfs://QmZ4 | -| `viewCount` | *Optional* | :heavy_minus_sign: | The number of views for the asset. | 100 | -| `playtimeMins` | *Optional* | :heavy_minus_sign: | The total playtime in minutes for the asset. | 10 | \ No newline at end of file +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID associated with the metric. | 1bde4o2i6xycudoy | +| `dStorageUrl` | *Optional* | :heavy_minus_sign: | The URL of the distributed storage used for the asset | ipfs://QmZ4 | +| `viewCount` | *Optional* | :heavy_minus_sign: | The number of views for the stream/asset. | 100 | +| `playtimeMins` | *Optional* | :heavy_minus_sign: | The total playtime in minutes for the stream/asset. | 10 | \ No newline at end of file diff --git a/docs/models/operations/GetPublicViewershipMetricsResponse.md b/docs/models/operations/GetPublicViewershipMetricsResponse.md index 755eaf8..3872ebb 100644 --- a/docs/models/operations/GetPublicViewershipMetricsResponse.md +++ b/docs/models/operations/GetPublicViewershipMetricsResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | [Optional](../../models/operations/GetPublicViewershipMetricsData.md) | :heavy_minus_sign: | A single Metric object with the viewCount and playtimeMins metrics. | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `data` | [Optional](../../models/operations/GetPublicViewershipMetricsData.md) | :heavy_minus_sign: | A single Metric object with the viewCount and playtimeMins metrics. | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRealtimeViewershipNowRequest.md b/docs/models/operations/GetRealtimeViewershipNowRequest.md new file mode 100644 index 0000000..4d9ba21 --- /dev/null +++ b/docs/models/operations/GetRealtimeViewershipNowRequest.md @@ -0,0 +1,10 @@ +# GetRealtimeViewershipNowRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| +| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | +| `breakdownBy` | List<[BreakdownBy](../../models/operations/BreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file diff --git a/docs/models/operations/GetRealtimeViewershipNowResponse.md b/docs/models/operations/GetRealtimeViewershipNowResponse.md new file mode 100644 index 0000000..8e89968 --- /dev/null +++ b/docs/models/operations/GetRealtimeViewershipNowResponse.md @@ -0,0 +1,12 @@ +# GetRealtimeViewershipNowResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `data` | List<[RealtimeViewershipMetric](../../models/components/RealtimeViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRecordedSessionsRequest.md b/docs/models/operations/GetRecordedSessionsRequest.md index 0749474..e7b927e 100644 --- a/docs/models/operations/GetRecordedSessionsRequest.md +++ b/docs/models/operations/GetRecordedSessionsRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `parentId` | *String* | :heavy_check_mark: | ID of the parent stream | | -| `record` | [Optional](../../models/operations/Record.md) | :heavy_minus_sign: | Flag indicating if the response should only include recorded
sessions
| true | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `parentId` | *String* | :heavy_check_mark: | ID of the parent stream | | +| `record` | [Optional](../../models/operations/Record.md) | :heavy_minus_sign: | Flag indicating if the response should only include recorded
sessions
| true | \ No newline at end of file diff --git a/docs/models/operations/GetRecordedSessionsResponse.md b/docs/models/operations/GetRecordedSessionsResponse.md index cbb6380..cce0752 100644 --- a/docs/models/operations/GetRecordedSessionsResponse.md +++ b/docs/models/operations/GetRecordedSessionsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRoomResponse.md b/docs/models/operations/GetRoomResponse.md index 6d163c5..c0d8811 100644 --- a/docs/models/operations/GetRoomResponse.md +++ b/docs/models/operations/GetRoomResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `room` | [Optional](../../models/components/Room.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `room` | [Optional](../../models/components/Room.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetRoomUserResponse.md b/docs/models/operations/GetRoomUserResponse.md index 3033277..86e160e 100644 --- a/docs/models/operations/GetRoomUserResponse.md +++ b/docs/models/operations/GetRoomUserResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `getRoomUserResponse` | [Optional](../../models/components/GetRoomUserResponse.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `getRoomUserResponse` | [Optional](../../models/components/GetRoomUserResponse.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSessionClipsResponse.md b/docs/models/operations/GetSessionClipsResponse.md index f580390..954e521 100644 --- a/docs/models/operations/GetSessionClipsResponse.md +++ b/docs/models/operations/GetSessionClipsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[Asset](../../models/components/Asset.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSessionResponse.md b/docs/models/operations/GetSessionResponse.md index 3591608..2a1833e 100644 --- a/docs/models/operations/GetSessionResponse.md +++ b/docs/models/operations/GetSessionResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `session` | [Optional](../../models/components/Session.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `session` | [Optional](../../models/components/Session.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSessionsResponse.md b/docs/models/operations/GetSessionsResponse.md index 5af0353..2bce61e 100644 --- a/docs/models/operations/GetSessionsResponse.md +++ b/docs/models/operations/GetSessionsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[Session](../../models/components/Session.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSigningKeyResponse.md b/docs/models/operations/GetSigningKeyResponse.md index 4d5ec3b..efc8ecc 100644 --- a/docs/models/operations/GetSigningKeyResponse.md +++ b/docs/models/operations/GetSigningKeyResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `signingKey` | [Optional](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `signingKey` | [Optional](../../models/components/SigningKey.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetSigningKeysResponse.md b/docs/models/operations/GetSigningKeysResponse.md index f4719a9..e65fd8e 100644 --- a/docs/models/operations/GetSigningKeysResponse.md +++ b/docs/models/operations/GetSigningKeysResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.SigningKey](../../models/components/SigningKey.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[SigningKey](../../models/components/SigningKey.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetStreamResponse.md b/docs/models/operations/GetStreamResponse.md index 73a05e7..ae521bc 100644 --- a/docs/models/operations/GetStreamResponse.md +++ b/docs/models/operations/GetStreamResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `stream` | [Optional](../../models/components/Stream.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `stream` | [Optional](../../models/components/Stream.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetStreamsRequest.md b/docs/models/operations/GetStreamsRequest.md index c1d8af6..bbd99d7 100644 --- a/docs/models/operations/GetStreamsRequest.md +++ b/docs/models/operations/GetStreamsRequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `streamsonly` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `streamsonly` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetStreamsResponse.md b/docs/models/operations/GetStreamsResponse.md index ee7d7b0..1ea0010 100644 --- a/docs/models/operations/GetStreamsResponse.md +++ b/docs/models/operations/GetStreamsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.Stream](../../models/components/Stream.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[Stream](../../models/components/Stream.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetTaskResponse.md b/docs/models/operations/GetTaskResponse.md index c96b0ed..3a27830 100644 --- a/docs/models/operations/GetTaskResponse.md +++ b/docs/models/operations/GetTaskResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `task` | [Optional](../../models/components/Task.md) | :heavy_minus_sign: | Success | \ No newline at end of file +| `task` | [Optional](../../models/components/Task.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/docs/models/operations/GetTasksResponse.md b/docs/models/operations/GetTasksResponse.md index ca605d6..72f6c33 100644 --- a/docs/models/operations/GetTasksResponse.md +++ b/docs/models/operations/GetTasksResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.Task](../../models/components/Task.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[Task](../../models/components/Task.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetUsageMetricsRequest.md b/docs/models/operations/GetUsageMetricsRequest.md index ed1352e..5ca81b3 100644 --- a/docs/models/operations/GetUsageMetricsRequest.md +++ b/docs/models/operations/GetUsageMetricsRequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `from` | *Optional* | :heavy_minus_sign: | Start millis timestamp for the query range (inclusive)
| -| `to` | *Optional* | :heavy_minus_sign: | End millis timestamp for the query range (exclusive)
| -| `timeStep` | [Optional](../../models/operations/GetUsageMetricsQueryParamTimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by
| -| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results
| -| `breakdownBy` | List<[studio.livepeer.livepeer.models.operations.GetUsageMetricsQueryParamBreakdownBy](../../models/operations/GetUsageMetricsQueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Currently the
only supported breakdown is by `creatorId`.
| \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `from` | *Optional* | :heavy_minus_sign: | Start millis timestamp for the query range (inclusive)
| +| `to` | *Optional* | :heavy_minus_sign: | End millis timestamp for the query range (exclusive)
| +| `timeStep` | [Optional](../../models/operations/GetUsageMetricsQueryParamTimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by
| +| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results
| +| `breakdownBy` | List<[GetUsageMetricsQueryParamBreakdownBy](../../models/operations/GetUsageMetricsQueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Currently the
only supported breakdown is by `creatorId`.
| \ No newline at end of file diff --git a/docs/models/operations/GetUsageMetricsResponse.md b/docs/models/operations/GetUsageMetricsResponse.md index ed996aa..b31e631 100644 --- a/docs/models/operations/GetUsageMetricsResponse.md +++ b/docs/models/operations/GetUsageMetricsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `usageMetric` | [Optional](../../models/components/UsageMetric.md) | :heavy_minus_sign: | A Usage Metric object | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `usageMetric` | [Optional](../../models/components/UsageMetric.md) | :heavy_minus_sign: | A Usage Metric object | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetViewershipMetricsRequest.md b/docs/models/operations/GetViewershipMetricsRequest.md index 0d06583..efda874 100644 --- a/docs/models/operations/GetViewershipMetricsRequest.md +++ b/docs/models/operations/GetViewershipMetricsRequest.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| -| `from` | [Optional](../../models/operations/From.md) | :heavy_minus_sign: | Start timestamp for the query range (inclusive) | -| `to` | [Optional](../../models/operations/To.md) | :heavy_minus_sign: | End timestamp for the query range (exclusive) | -| `timeStep` | [Optional](../../models/operations/TimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by | -| `assetId` | *Optional* | :heavy_minus_sign: | The asset ID to filter metrics for | -| `streamId` | *Optional* | :heavy_minus_sign: | The stream ID to filter metrics for | -| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | -| `breakdownBy` | List<[studio.livepeer.livepeer.models.operations.BreakdownBy](../../models/operations/BreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| +| `from` | [Optional](../../models/operations/From.md) | :heavy_minus_sign: | Start timestamp for the query range (inclusive) | +| `to` | [Optional](../../models/operations/To.md) | :heavy_minus_sign: | End timestamp for the query range (exclusive) | +| `timeStep` | [Optional](../../models/operations/TimeStep.md) | :heavy_minus_sign: | The time step to aggregate viewership metrics by | +| `assetId` | *Optional* | :heavy_minus_sign: | The asset ID to filter metrics for | +| `streamId` | *Optional* | :heavy_minus_sign: | The stream ID to filter metrics for | +| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | +| `breakdownBy` | List<[QueryParamBreakdownBy](../../models/operations/QueryParamBreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| \ No newline at end of file diff --git a/docs/models/operations/GetViewershipMetricsResponse.md b/docs/models/operations/GetViewershipMetricsResponse.md index 45c1796..762ae90 100644 --- a/docs/models/operations/GetViewershipMetricsResponse.md +++ b/docs/models/operations/GetViewershipMetricsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.ViewershipMetric](../../models/components/ViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[ViewershipMetric](../../models/components/ViewershipMetric.md)> | :heavy_minus_sign: | A list of Metric objects | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetWebhookLogResponse.md b/docs/models/operations/GetWebhookLogResponse.md index 1ef9ea3..fd44c3e 100644 --- a/docs/models/operations/GetWebhookLogResponse.md +++ b/docs/models/operations/GetWebhookLogResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `webhookLog` | [Optional](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `webhookLog` | [Optional](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetWebhookLogsResponse.md b/docs/models/operations/GetWebhookLogsResponse.md index 31d96ff..e958c3f 100644 --- a/docs/models/operations/GetWebhookLogsResponse.md +++ b/docs/models/operations/GetWebhookLogsResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.WebhookLog](../../models/components/WebhookLog.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[WebhookLog](../../models/components/WebhookLog.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetWebhookResponse.md b/docs/models/operations/GetWebhookResponse.md index 061b128..2f893e0 100644 --- a/docs/models/operations/GetWebhookResponse.md +++ b/docs/models/operations/GetWebhookResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/GetWebhooksResponse.md b/docs/models/operations/GetWebhooksResponse.md index 1e54cf4..2968f74 100644 --- a/docs/models/operations/GetWebhooksResponse.md +++ b/docs/models/operations/GetWebhooksResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | List<[studio.livepeer.livepeer.models.components.Webhook](../../models/components/Webhook.md)> | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `data` | List<[Webhook](../../models/components/Webhook.md)> | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/QueryParamBreakdownBy.md b/docs/models/operations/QueryParamBreakdownBy.md index 96109db..2579d5b 100644 --- a/docs/models/operations/QueryParamBreakdownBy.md +++ b/docs/models/operations/QueryParamBreakdownBy.md @@ -5,6 +5,7 @@ | Name | Value | | ---------------- | ---------------- | +| `PLAYBACK_ID` | playbackId | | `DEVICE_TYPE` | deviceType | | `DEVICE` | device | | `CPU` | cpu | @@ -15,4 +16,6 @@ | `COUNTRY` | country | | `SUBDIVISION` | subdivision | | `TIMEZONE` | timezone | -| `VIEWER_ID` | viewerId | \ No newline at end of file +| `GEOHASH` | geohash | +| `VIEWER_ID` | viewerId | +| `CREATOR_ID` | creatorId | \ No newline at end of file diff --git a/docs/models/operations/RemoveMultistreamTargetResponse.md b/docs/models/operations/RemoveMultistreamTargetResponse.md index 113729d..d142083 100644 --- a/docs/models/operations/RemoveMultistreamTargetResponse.md +++ b/docs/models/operations/RemoveMultistreamTargetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/RequestUploadData.md b/docs/models/operations/RequestUploadData.md index 3335cd1..7b7a0c8 100644 --- a/docs/models/operations/RequestUploadData.md +++ b/docs/models/operations/RequestUploadData.md @@ -9,5 +9,5 @@ Success | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `url` | *String* | :heavy_check_mark: | The direct upload endpoint for which supports PUT requests. **It is recommended to use the Tus endpoint for a better upload experience.** | https://origin.livepeer.com/api/asset/upload/direct?token=eyJhbGciOiJIUzI1NiJ9.eyJtc2ciOiJoZWxsbyBoYWNrZXIsIHRoZXJlJ3Mgbm90aGluZyBmb3IgeW91IGhlcmUg8J-YhiJ9.1YDjmXsqLcgNyMSzT4kXl_kIni46_EuGX_xfqmC7e0Q | | `tusEndpoint` | *String* | :heavy_check_mark: | The [Tus-compatible](https://tus.io/) endpoint for resumable uploads. **This is the recommended way to upload assets.** See the [Tus-js](https://github.com/tus/tus-js-client) client for more information. | https://origin.livepeer.com/api/asset/upload/tus?token=eyJhbGciOiJIUzI1NiJ9.eyJtc2ciOiJoZWxsbyBoYWNrZXIsIHRoZXJlJ3Mgbm90aGluZyBmb3IgeW91IGhlcmUg8J-YhiJ9.1YDjmXsqLcgNyMSzT4kXl_kIni46_EuGX_xfqmC7e0Q | -| `asset` | [studio.livepeer.livepeer.models.components.Asset](../../models/components/Asset.md) | :heavy_check_mark: | N/A | | -| `task` | [studio.livepeer.livepeer.models.operations.Task](../../models/operations/Task.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| `asset` | [Asset](../../models/components/Asset.md) | :heavy_check_mark: | N/A | | +| `task` | [Task](../../models/operations/Task.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/RequestUploadResponse.md b/docs/models/operations/RequestUploadResponse.md index f69a988..9ccb433 100644 --- a/docs/models/operations/RequestUploadResponse.md +++ b/docs/models/operations/RequestUploadResponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `data` | [Optional](../../models/operations/RequestUploadData.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `data` | [Optional](../../models/operations/RequestUploadData.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/ResendWebhookResponse.md b/docs/models/operations/ResendWebhookResponse.md index e07eb0f..9c5d1b6 100644 --- a/docs/models/operations/ResendWebhookResponse.md +++ b/docs/models/operations/ResendWebhookResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `webhookLog` | [Optional](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `webhookLog` | [Optional](../../models/components/WebhookLog.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/StartPullStreamResponse.md b/docs/models/operations/StartPullStreamResponse.md index 553876d..23f62ea 100644 --- a/docs/models/operations/StartPullStreamResponse.md +++ b/docs/models/operations/StartPullStreamResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/StartRoomEgressRequest.md b/docs/models/operations/StartRoomEgressRequest.md index 61613b8..13e114b 100644 --- a/docs/models/operations/StartRoomEgressRequest.md +++ b/docs/models/operations/StartRoomEgressRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `id` | *String* | :heavy_check_mark: | N/A | -| `roomEgressPayload` | [studio.livepeer.livepeer.models.components.RoomEgressPayload](../../models/components/RoomEgressPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `roomEgressPayload` | [RoomEgressPayload](../../models/components/RoomEgressPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/StartRoomEgressResponse.md b/docs/models/operations/StartRoomEgressResponse.md index e0a112c..102814e 100644 --- a/docs/models/operations/StartRoomEgressResponse.md +++ b/docs/models/operations/StartRoomEgressResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/StopRoomEgressResponse.md b/docs/models/operations/StopRoomEgressResponse.md index 97accb5..efe3aab 100644 --- a/docs/models/operations/StopRoomEgressResponse.md +++ b/docs/models/operations/StopRoomEgressResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/TerminateStreamResponse.md b/docs/models/operations/TerminateStreamResponse.md index 6f347b0..42550cc 100644 --- a/docs/models/operations/TerminateStreamResponse.md +++ b/docs/models/operations/TerminateStreamResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/TranscodeVideoResponse.md b/docs/models/operations/TranscodeVideoResponse.md index 4545a22..24ccb13 100644 --- a/docs/models/operations/TranscodeVideoResponse.md +++ b/docs/models/operations/TranscodeVideoResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `task` | [Optional](../../models/components/Task.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `task` | [Optional](../../models/components/Task.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateAssetRequest.md b/docs/models/operations/UpdateAssetRequest.md index 2638df9..45ed294 100644 --- a/docs/models/operations/UpdateAssetRequest.md +++ b/docs/models/operations/UpdateAssetRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `assetId` | *String* | :heavy_check_mark: | ID of the asset | -| `assetPatchPayload` | [studio.livepeer.livepeer.models.components.AssetPatchPayload](../../models/components/AssetPatchPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `assetId` | *String* | :heavy_check_mark: | ID of the asset | +| `assetPatchPayload` | [AssetPatchPayload](../../models/components/AssetPatchPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateAssetResponse.md b/docs/models/operations/UpdateAssetResponse.md index 0023e18..dcbc33f 100644 --- a/docs/models/operations/UpdateAssetResponse.md +++ b/docs/models/operations/UpdateAssetResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `asset` | [Optional](../../models/components/Asset.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `asset` | [Optional](../../models/components/Asset.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateMultistreamTargetRequest.md b/docs/models/operations/UpdateMultistreamTargetRequest.md index 53172d6..4d985df 100644 --- a/docs/models/operations/UpdateMultistreamTargetRequest.md +++ b/docs/models/operations/UpdateMultistreamTargetRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `id` | *String* | :heavy_check_mark: | ID of the multistream target | -| `multistreamTargetPatchPayload` | [studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload](../../models/components/MultistreamTargetPatchPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | ID of the multistream target | +| `multistreamTargetPatchPayload` | [MultistreamTargetPatchPayload](../../models/components/MultistreamTargetPatchPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateMultistreamTargetResponse.md b/docs/models/operations/UpdateMultistreamTargetResponse.md index 318b1d9..e344005 100644 --- a/docs/models/operations/UpdateMultistreamTargetResponse.md +++ b/docs/models/operations/UpdateMultistreamTargetResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateRoomUserRequest.md b/docs/models/operations/UpdateRoomUserRequest.md index fded24d..435c7c2 100644 --- a/docs/models/operations/UpdateRoomUserRequest.md +++ b/docs/models/operations/UpdateRoomUserRequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | -| `userId` | *String* | :heavy_check_mark: | N/A | -| `roomUserUpdatePayload` | [studio.livepeer.livepeer.models.components.RoomUserUpdatePayload](../../models/components/RoomUserUpdatePayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `userId` | *String* | :heavy_check_mark: | N/A | +| `roomUserUpdatePayload` | [RoomUserUpdatePayload](../../models/components/RoomUserUpdatePayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateRoomUserResponse.md b/docs/models/operations/UpdateRoomUserResponse.md index 602e66e..d54cb65 100644 --- a/docs/models/operations/UpdateRoomUserResponse.md +++ b/docs/models/operations/UpdateRoomUserResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateSigningKeyRequest.md b/docs/models/operations/UpdateSigningKeyRequest.md index 044abd8..9592f49 100644 --- a/docs/models/operations/UpdateSigningKeyRequest.md +++ b/docs/models/operations/UpdateSigningKeyRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `keyId` | *String* | :heavy_check_mark: | ID of the signing key | -| `requestBody` | [studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody](../../models/operations/UpdateSigningKeyRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `keyId` | *String* | :heavy_check_mark: | ID of the signing key | +| `requestBody` | [UpdateSigningKeyRequestBody](../../models/operations/UpdateSigningKeyRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateSigningKeyRequestBody.md b/docs/models/operations/UpdateSigningKeyRequestBody.md index 20d99b2..f183b8d 100644 --- a/docs/models/operations/UpdateSigningKeyRequestBody.md +++ b/docs/models/operations/UpdateSigningKeyRequestBody.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `disabled` | *Optional* | :heavy_minus_sign: | N/A | -| `name` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `disabled` | *Optional* | :heavy_minus_sign: | N/A | +| `name` | *Optional* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateSigningKeyResponse.md b/docs/models/operations/UpdateSigningKeyResponse.md index 9773a87..815fe3a 100644 --- a/docs/models/operations/UpdateSigningKeyResponse.md +++ b/docs/models/operations/UpdateSigningKeyResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateStreamRequest.md b/docs/models/operations/UpdateStreamRequest.md index 2bf1d19..92b1ff9 100644 --- a/docs/models/operations/UpdateStreamRequest.md +++ b/docs/models/operations/UpdateStreamRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the stream | -| `streamPatchPayload` | [studio.livepeer.livepeer.models.components.StreamPatchPayload](../../models/components/StreamPatchPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | ID of the stream | +| `streamPatchPayload` | [StreamPatchPayload](../../models/components/StreamPatchPayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateStreamResponse.md b/docs/models/operations/UpdateStreamResponse.md index 3ac35aa..fad3251 100644 --- a/docs/models/operations/UpdateStreamResponse.md +++ b/docs/models/operations/UpdateStreamResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UpdateWebhookRequest.md b/docs/models/operations/UpdateWebhookRequest.md index 0d59cfb..7e21752 100644 --- a/docs/models/operations/UpdateWebhookRequest.md +++ b/docs/models/operations/UpdateWebhookRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | -| `webhook` | [studio.livepeer.livepeer.models.components.WebhookInput](../../models/components/WebhookInput.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `webhook` | [WebhookInput](../../models/components/WebhookInput.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateWebhookResponse.md b/docs/models/operations/UpdateWebhookResponse.md index c4431a8..49637c2 100644 --- a/docs/models/operations/UpdateWebhookResponse.md +++ b/docs/models/operations/UpdateWebhookResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| `webhook` | [Optional](../../models/components/Webhook.md) | :heavy_minus_sign: | Success | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/UploadAssetData.md b/docs/models/operations/UploadAssetData.md index 55d7bf1..eeef3a0 100644 --- a/docs/models/operations/UploadAssetData.md +++ b/docs/models/operations/UploadAssetData.md @@ -5,7 +5,7 @@ Upload in progress ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `asset` | [studio.livepeer.livepeer.models.components.Asset](../../models/components/Asset.md) | :heavy_check_mark: | N/A | -| `task` | [studio.livepeer.livepeer.models.operations.UploadAssetTask](../../models/operations/UploadAssetTask.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `asset` | [Asset](../../models/components/Asset.md) | :heavy_check_mark: | N/A | +| `task` | [UploadAssetTask](../../models/operations/UploadAssetTask.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UploadAssetDataOutput.md b/docs/models/operations/UploadAssetDataOutput.md index b21f10c..7c6ac2b 100644 --- a/docs/models/operations/UploadAssetDataOutput.md +++ b/docs/models/operations/UploadAssetDataOutput.md @@ -5,7 +5,7 @@ Upload started ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `asset` | [studio.livepeer.livepeer.models.components.Asset](../../models/components/Asset.md) | :heavy_check_mark: | N/A | -| `task` | [studio.livepeer.livepeer.models.operations.UploadAssetAssetTask](../../models/operations/UploadAssetAssetTask.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `asset` | [Asset](../../models/components/Asset.md) | :heavy_check_mark: | N/A | +| `task` | [UploadAssetAssetTask](../../models/operations/UploadAssetAssetTask.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UploadAssetResponse.md b/docs/models/operations/UploadAssetResponse.md index f965b0a..a0dad73 100644 --- a/docs/models/operations/UploadAssetResponse.md +++ b/docs/models/operations/UploadAssetResponse.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `twoHundredApplicationJsonData` | [Optional](../../models/operations/UploadAssetData.md) | :heavy_minus_sign: | Upload in progress | -| `twoHundredAndOneApplicationJsonData` | [Optional](../../models/operations/UploadAssetDataOutput.md) | :heavy_minus_sign: | Upload started | -| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `twoHundredApplicationJsonData` | [Optional](../../models/operations/UploadAssetData.md) | :heavy_minus_sign: | Upload in progress | +| `twoHundredAndOneApplicationJsonData` | [Optional](../../models/operations/UploadAssetDataOutput.md) | :heavy_minus_sign: | Upload started | +| `error` | *Optional* | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/sdks/accesscontrol/README.md b/docs/sdks/accesscontrol/README.md index 6ef40df..21e88e8 100644 --- a/docs/sdks/accesscontrol/README.md +++ b/docs/sdks/accesscontrol/README.md @@ -24,19 +24,10 @@ Up to 10 signing keys can be generated, after that you must delete at least one ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse; public class Application { @@ -52,26 +43,29 @@ public class Application { if (res.signingKey().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Response -**[Optional](../../models/operations/CreateSigningKeyResponse.md)** +**[CreateSigningKeyResponse](../../models/operations/CreateSigningKeyResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getAll @@ -82,19 +76,10 @@ Retrieves signing keys ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetSigningKeysResponse; public class Application { @@ -110,26 +95,29 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Response -**[Optional](../../models/operations/GetSigningKeysResponse.md)** +**[GetSigningKeysResponse](../../models/operations/GetSigningKeysResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## delete @@ -140,19 +128,10 @@ Delete Signing Key ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse; public class Application { @@ -167,17 +146,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -187,12 +169,12 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteSigningKeyResponse.md)** +**[DeleteSigningKeyResponse](../../models/operations/DeleteSigningKeyResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## get @@ -203,19 +185,10 @@ Retrieves a signing key ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetSigningKeyResponse; public class Application { @@ -232,17 +205,20 @@ public class Application { if (res.signingKey().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -252,12 +228,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetSigningKeyResponse.md)** +**[GetSigningKeyResponse](../../models/operations/GetSigningKeyResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## update @@ -268,19 +244,11 @@ Update a signing key ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody; +import studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse; public class Application { @@ -297,30 +265,33 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `keyId` | *String* | :heavy_check_mark: | ID of the signing key | -| `requestBody` | [studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody](../../models/operations/UpdateSigningKeyRequestBody.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `keyId` | *String* | :heavy_check_mark: | ID of the signing key | +| `requestBody` | [UpdateSigningKeyRequestBody](../../models/operations/UpdateSigningKeyRequestBody.md) | :heavy_check_mark: | N/A | ### Response -**[Optional](../../models/operations/UpdateSigningKeyResponse.md)** +**[UpdateSigningKeyResponse](../../models/operations/UpdateSigningKeyResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/asset/README.md b/docs/sdks/asset/README.md index 82a638c..d283705 100644 --- a/docs/sdks/asset/README.md +++ b/docs/sdks/asset/README.md @@ -23,19 +23,10 @@ Retrieve assets ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetAssetsResponse; public class Application { @@ -51,26 +42,29 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Response -**[Optional](../../models/operations/GetAssetsResponse.md)** +**[GetAssetsResponse](../../models/operations/GetAssetsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## create @@ -152,19 +146,18 @@ definition above. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.NewAssetPayload; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.RequestUploadResponse; public class Application { @@ -180,15 +173,16 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) - .profiles(java.util.List.of( + .profiles(List.of( TranscodeProfile.builder() .bitrate(3000000L) .width(1280L) .name("720p") + .height(720L) .quality(23L) .fps(30L) .fpsDen(1L) @@ -205,32 +199,35 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `request` | [studio.livepeer.livepeer.models.components.NewAssetPayload](../../models/shared/NewAssetPayload.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `request` | [NewAssetPayload](../../models/shared/NewAssetPayload.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/RequestUploadResponse.md)** +**[RequestUploadResponse](../../models/operations/RequestUploadResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## createViaUrl @@ -241,19 +238,18 @@ Upload asset via URL ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.UploadAssetResponse; public class Application { @@ -270,15 +266,16 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) - .profiles(java.util.List.of( + .profiles(List.of( TranscodeProfile.builder() .bitrate(3000000L) .width(1280L) .name("720p") + .height(720L) .quality(23L) .fps(30L) .fpsDen(1L) @@ -295,32 +292,35 @@ public class Application { if (res.twoHundredApplicationJsonData().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `request` | [studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload](../../models/shared/NewAssetFromUrlPayload.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [NewAssetFromUrlPayload](../../models/shared/NewAssetFromUrlPayload.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/UploadAssetResponse.md)** +**[UploadAssetResponse](../../models/operations/UploadAssetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## get @@ -331,19 +331,10 @@ Retrieves an asset ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetAssetResponse; public class Application { @@ -360,17 +351,20 @@ public class Application { if (res.asset().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -380,12 +374,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetAssetResponse.md)** +**[GetAssetResponse](../../models/operations/GetAssetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## update @@ -396,19 +390,14 @@ Patch an asset ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.AssetPatchPayload; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.UpdateAssetResponse; public class Application { @@ -425,8 +414,8 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) .build()) @@ -435,33 +424,36 @@ public class Application { if (res.asset().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `assetId` | *String* | :heavy_check_mark: | ID of the asset | -| `assetPatchPayload` | [studio.livepeer.livepeer.models.components.AssetPatchPayload](../../models/components/AssetPatchPayload.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `assetId` | *String* | :heavy_check_mark: | ID of the asset | +| `assetPatchPayload` | [AssetPatchPayload](../../models/components/AssetPatchPayload.md) | :heavy_check_mark: | N/A | ### Response -**[Optional](../../models/operations/UpdateAssetResponse.md)** +**[UpdateAssetResponse](../../models/operations/UpdateAssetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## delete @@ -472,19 +464,10 @@ Delete an asset ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.DeleteAssetResponse; public class Application { @@ -499,17 +482,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -519,9 +505,9 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteAssetResponse.md)** +**[DeleteAssetResponse](../../models/operations/DeleteAssetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/metrics/README.md b/docs/sdks/metrics/README.md index d3ab9e2..f943505 100644 --- a/docs/sdks/metrics/README.md +++ b/docs/sdks/metrics/README.md @@ -7,11 +7,79 @@ Operations related to metrics api ### Available Operations +* [getRealtimeViewership](#getrealtimeviewership) - Query realtime viewership * [getViewership](#getviewership) - Query viewership metrics * [getCreatorViewership](#getcreatorviewership) - Query creator viewership metrics * [getPublicViewership](#getpublicviewership) - Query public total views metrics * [getUsage](#getusage) - Query usage metrics +## getRealtimeViewership + +Requires a private (non-CORS) API key to be used. + + +### Example Usage + +```java +package hello.world; + +import java.lang.Exception; +import java.util.List; +import studio.livepeer.livepeer.Livepeer; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.BreakdownBy; +import studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowResponse; + +public class Application { + + public static void main(String[] args) throws Exception { + try { + Livepeer sdk = Livepeer.builder() + .apiKey("") + .build(); + + GetRealtimeViewershipNowResponse res = sdk.metrics().getRealtimeViewership() + .playbackId("") + .creatorId("") + .breakdownBy(List.of( + BreakdownBy.PLAYBACK_ID)) + .call(); + + if (res.data().isPresent()) { + // handle response + } + } catch (SDKError e) { + // handle exception + throw e; + } catch (Exception e) { + // handle exception + throw e; + } + + } +} +``` + + + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `playbackId` | *Optional* | :heavy_minus_sign: | The playback ID to filter the query results. This can be a canonical
playback ID from Livepeer assets or streams, or dStorage identifiers
for assets
| +| `creatorId` | *Optional* | :heavy_minus_sign: | The creator ID to filter the query results | +| `breakdownBy` | List<[BreakdownBy](../../models/operations/BreakdownBy.md)> | :heavy_minus_sign: | The list of fields to break down the query results. Specify this
query-string multiple times to break down by multiple fields.
| + + +### Response + +**[GetRealtimeViewershipNowResponse](../../models/operations/GetRealtimeViewershipNowResponse.md)** +### Errors + +| Error Object | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/SDKError | 4xx-5xx | \*\/* | + ## getViewership Requires a private (non-CORS) API key to be used. @@ -22,19 +90,11 @@ Requires a private (non-CORS) API key to be used. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest; +import studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse; public class Application { @@ -54,32 +114,35 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `request` | [studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest](../../models/operations/GetViewershipMetricsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `request` | [GetViewershipMetricsRequest](../../models/operations/GetViewershipMetricsRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/GetViewershipMetricsResponse.md)** +**[GetViewershipMetricsResponse](../../models/operations/GetViewershipMetricsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getCreatorViewership @@ -91,19 +154,11 @@ Requires a proof of ownership to be sent in the request, which for now is just t ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest; +import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse; public class Application { @@ -123,32 +178,35 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `request` | [studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest](../../models/operations/GetCreatorViewershipMetricsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `request` | [GetCreatorViewershipMetricsRequest](../../models/operations/GetCreatorViewershipMetricsRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/GetCreatorViewershipMetricsResponse.md)** +**[GetCreatorViewershipMetricsResponse](../../models/operations/GetCreatorViewershipMetricsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getPublicViewership @@ -162,19 +220,10 @@ unauthenticated. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse; public class Application { @@ -191,17 +240,20 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -211,12 +263,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetPublicViewershipMetricsResponse.md)** +**[GetPublicViewershipMetricsResponse](../../models/operations/GetPublicViewershipMetricsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getUsage @@ -227,19 +279,11 @@ Query usage metrics ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest; +import studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse; public class Application { @@ -259,29 +303,32 @@ public class Application { if (res.usageMetric().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `request` | [studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest](../../models/operations/GetUsageMetricsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `request` | [GetUsageMetricsRequest](../../models/operations/GetUsageMetricsRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/GetUsageMetricsResponse.md)** +**[GetUsageMetricsResponse](../../models/operations/GetUsageMetricsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/multistream/README.md b/docs/sdks/multistream/README.md index bfb34e9..d274a45 100644 --- a/docs/sdks/multistream/README.md +++ b/docs/sdks/multistream/README.md @@ -22,19 +22,10 @@ Retrieve Multistream Targets ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse; public class Application { @@ -50,26 +41,29 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Response -**[Optional](../../models/operations/GetMultistreamTargetsResponse.md)** +**[GetMultistreamTargetsResponse](../../models/operations/GetMultistreamTargetsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## create @@ -80,19 +74,11 @@ Create a multistream target ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.MultistreamTargetInput; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse; public class Application { @@ -113,32 +99,35 @@ public class Application { if (res.multistreamTarget().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `request` | [studio.livepeer.livepeer.models.components.MultistreamTargetInput](../../models/shared/MultistreamTargetInput.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [MultistreamTargetInput](../../models/shared/MultistreamTargetInput.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/CreateMultistreamTargetResponse.md)** +**[CreateMultistreamTargetResponse](../../models/operations/CreateMultistreamTargetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## get @@ -149,19 +138,10 @@ Retrieve a multistream target ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse; public class Application { @@ -178,17 +158,20 @@ public class Application { if (res.multistreamTarget().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -198,12 +181,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetMultistreamTargetResponse.md)** +**[GetMultistreamTargetResponse](../../models/operations/GetMultistreamTargetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## update @@ -214,19 +197,11 @@ Update Multistream Target ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse; public class Application { @@ -244,33 +219,36 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `id` | *String* | :heavy_check_mark: | ID of the multistream target | -| `multistreamTargetPatchPayload` | [studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload](../../models/components/MultistreamTargetPatchPayload.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | ID of the multistream target | +| `multistreamTargetPatchPayload` | [MultistreamTargetPatchPayload](../../models/components/MultistreamTargetPatchPayload.md) | :heavy_check_mark: | N/A | ### Response -**[Optional](../../models/operations/UpdateMultistreamTargetResponse.md)** +**[UpdateMultistreamTargetResponse](../../models/operations/UpdateMultistreamTargetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## delete @@ -283,19 +261,10 @@ streams before actually deleting it from the API. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse; public class Application { @@ -310,17 +279,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -330,9 +302,9 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteMultistreamTargetResponse.md)** +**[DeleteMultistreamTargetResponse](../../models/operations/DeleteMultistreamTargetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/playback/README.md b/docs/sdks/playback/README.md index 73a0ef2..57750ed 100644 --- a/docs/sdks/playback/README.md +++ b/docs/sdks/playback/README.md @@ -18,19 +18,10 @@ Retrieve Playback Info ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse; public class Application { @@ -50,17 +41,20 @@ public class Application { } catch (studio.livepeer.livepeer.models.errors.Error e) { // handle exception throw e; - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -70,10 +64,10 @@ public class Application { ### Response -**[Optional](../../models/operations/GetPlaybackInfoResponse.md)** +**[GetPlaybackInfoResponse](../../models/operations/GetPlaybackInfoResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | | models/errors/Error | 404 | application/json | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/room/README.md b/docs/sdks/room/README.md index 96a13d7..9afea54 100644 --- a/docs/sdks/room/README.md +++ b/docs/sdks/room/README.md @@ -29,19 +29,10 @@ Create a multiparticipant livestreaming room. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateRoomResponse; public class Application { @@ -57,26 +48,29 @@ public class Application { if (res.createRoomResponse().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Response -**[Optional](../../models/operations/CreateRoomResponse.md)** +**[CreateRoomResponse](../../models/operations/CreateRoomResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## ~~get~~ @@ -89,19 +83,10 @@ Retrieve a room ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetRoomResponse; public class Application { @@ -118,17 +103,20 @@ public class Application { if (res.room().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -138,12 +126,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetRoomResponse.md)** +**[GetRoomResponse](../../models/operations/GetRoomResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## ~~delete~~ @@ -156,19 +144,10 @@ Delete a room ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.DeleteRoomResponse; public class Application { @@ -183,17 +162,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -203,12 +185,12 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteRoomResponse.md)** +**[DeleteRoomResponse](../../models/operations/DeleteRoomResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## ~~startEgress~~ @@ -223,19 +205,11 @@ This allows you to leverage livestreaming features like recording and HLS output ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.RoomEgressPayload; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.StartRoomEgressResponse; public class Application { @@ -253,33 +227,36 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `id` | *String* | :heavy_check_mark: | N/A | -| `roomEgressPayload` | [studio.livepeer.livepeer.models.components.RoomEgressPayload](../../models/components/RoomEgressPayload.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `roomEgressPayload` | [RoomEgressPayload](../../models/components/RoomEgressPayload.md) | :heavy_check_mark: | N/A | ### Response -**[Optional](../../models/operations/StartRoomEgressResponse.md)** +**[StartRoomEgressResponse](../../models/operations/StartRoomEgressResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## ~~stopEgress~~ @@ -292,19 +269,10 @@ Stop room RTMP egress ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.StopRoomEgressResponse; public class Application { @@ -319,17 +287,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -339,12 +310,12 @@ public class Application { ### Response -**[Optional](../../models/operations/StopRoomEgressResponse.md)** +**[StopRoomEgressResponse](../../models/operations/StopRoomEgressResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## ~~createUser~~ @@ -360,19 +331,11 @@ Alternatively the joining token can be used with a custom app. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.RoomUserPayload; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateRoomUserResponse; public class Application { @@ -394,33 +357,36 @@ public class Application { if (res.roomUserResponse().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | -| `roomUserPayload` | [studio.livepeer.livepeer.models.components.RoomUserPayload](../../models/components/RoomUserPayload.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `roomUserPayload` | [RoomUserPayload](../../models/components/RoomUserPayload.md) | :heavy_check_mark: | N/A | ### Response -**[Optional](../../models/operations/CreateRoomUserResponse.md)** +**[CreateRoomUserResponse](../../models/operations/CreateRoomUserResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## ~~getUser~~ @@ -433,19 +399,10 @@ Get user details ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetRoomUserResponse; public class Application { @@ -463,17 +420,20 @@ public class Application { if (res.getRoomUserResponse().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -484,12 +444,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetRoomUserResponse.md)** +**[GetRoomUserResponse](../../models/operations/GetRoomUserResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## ~~updateUser~~ @@ -502,19 +462,11 @@ Update properties for a user. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.RoomUserUpdatePayload; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse; public class Application { @@ -534,34 +486,37 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | -| `userId` | *String* | :heavy_check_mark: | N/A | -| `roomUserUpdatePayload` | [studio.livepeer.livepeer.models.components.RoomUserUpdatePayload](../../models/components/RoomUserUpdatePayload.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `userId` | *String* | :heavy_check_mark: | N/A | +| `roomUserUpdatePayload` | [RoomUserUpdatePayload](../../models/components/RoomUserUpdatePayload.md) | :heavy_check_mark: | N/A | ### Response -**[Optional](../../models/operations/UpdateRoomUserResponse.md)** +**[UpdateRoomUserResponse](../../models/operations/UpdateRoomUserResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## ~~deleteUser~~ @@ -574,19 +529,10 @@ Remove a user from the room ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse; public class Application { @@ -602,17 +548,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -623,9 +572,9 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteRoomUserResponse.md)** +**[DeleteRoomUserResponse](../../models/operations/DeleteRoomUserResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/session/README.md b/docs/sdks/session/README.md index 4dfb724..6b26986 100644 --- a/docs/sdks/session/README.md +++ b/docs/sdks/session/README.md @@ -21,19 +21,10 @@ Retrieve clips of a session ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetSessionClipsResponse; public class Application { @@ -50,17 +41,20 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -70,12 +64,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetSessionClipsResponse.md)** +**[GetSessionClipsResponse](../../models/operations/GetSessionClipsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getAll @@ -86,19 +80,10 @@ Retrieve sessions ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetSessionsResponse; public class Application { @@ -114,26 +99,29 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Response -**[Optional](../../models/operations/GetSessionsResponse.md)** +**[GetSessionsResponse](../../models/operations/GetSessionsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## get @@ -144,19 +132,10 @@ Retrieve a session ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetSessionResponse; public class Application { @@ -173,17 +152,20 @@ public class Application { if (res.session().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -193,12 +175,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetSessionResponse.md)** +**[GetSessionResponse](../../models/operations/GetSessionResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getRecorded @@ -209,19 +191,11 @@ Retrieve Recorded Sessions ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse; +import studio.livepeer.livepeer.models.operations.Record; public class Application { @@ -233,36 +207,39 @@ public class Application { GetRecordedSessionsResponse res = sdk.session().getRecorded() .parentId("") - .record(studio.livepeer.livepeer.models.operations.Record.of(true)) + .record(Record.of(true)) .call(); if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `parentId` | *String* | :heavy_check_mark: | ID of the parent stream | | -| `record` | [Optional](../../models/operations/Record.md) | :heavy_minus_sign: | Flag indicating if the response should only include recorded
sessions
| true | +| Parameter | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `parentId` | *String* | :heavy_check_mark: | ID of the parent stream | | +| `record` | [Optional](../../models/operations/Record.md) | :heavy_minus_sign: | Flag indicating if the response should only include recorded
sessions
| true | ### Response -**[Optional](../../models/operations/GetRecordedSessionsResponse.md)** +**[GetRecordedSessionsResponse](../../models/operations/GetRecordedSessionsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/stream/README.md b/docs/sdks/stream/README.md index 3657178..a77b5d5 100644 --- a/docs/sdks/stream/README.md +++ b/docs/sdks/stream/README.md @@ -41,19 +41,26 @@ also be added upon the creation of a new stream by adding ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.FfmpegProfile; +import studio.livepeer.livepeer.models.components.Location; +import studio.livepeer.livepeer.models.components.Multistream; +import studio.livepeer.livepeer.models.components.NewStreamPayload; +import studio.livepeer.livepeer.models.components.NewStreamPayloadRecordingSpec; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.Profile; +import studio.livepeer.livepeer.models.components.Pull; +import studio.livepeer.livepeer.models.components.Target; +import studio.livepeer.livepeer.models.components.TargetSpec; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateStreamResponse; public class Application { @@ -67,8 +74,8 @@ public class Application { .name("test_stream") .pull(Pull.builder() .source("https://myservice.com/live/stream.flv") - .headers(java.util.Map.ofEntries( - entry("Authorization", "Bearer 123"))) + .headers(Map.ofEntries( + Map.entry("Authorization", "Bearer 123"))) .location(Location.builder() .lat(39.739d) .lon(-104.988d) @@ -77,15 +84,15 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) - .profiles(java.util.List.of( + .profiles(List.of( FfmpegProfile.builder() .width(1280L) .name("720p") - .height(486589L) + .height(720L) .bitrate(3000000L) .fps(30L) .fpsDen(1L) @@ -94,22 +101,23 @@ public class Application { .profile(Profile.H264_BASELINE) .build())) .record(false) - .recordingSpec(RecordingSpec.builder() - .profiles(java.util.List.of( - FfmpegProfile.builder() + .recordingSpec(NewStreamPayloadRecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) .width(1280L) .name("720p") - .height(489382L) - .bitrate(3000000L) + .height(720L) + .quality(23L) .fps(30L) .fpsDen(1L) - .quality(23L) .gop("2") - .profile(Profile.H264_BASELINE) + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) .build())) .build()) .multistream(Multistream.builder() - .targets(java.util.List.of( + .targets(List.of( Target.builder() .profile("720p0") .videoOnly(false) @@ -129,32 +137,35 @@ public class Application { if (res.stream().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `request` | [studio.livepeer.livepeer.models.components.NewStreamPayload](../../models/shared/NewStreamPayload.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `request` | [NewStreamPayload](../../models/shared/NewStreamPayload.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/CreateStreamResponse.md)** +**[CreateStreamResponse](../../models/operations/CreateStreamResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getAll @@ -165,19 +176,10 @@ Retrieve streams ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetStreamsResponse; public class Application { @@ -194,32 +196,35 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `streamsonly` | *Optional* | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `streamsonly` | *Optional* | :heavy_minus_sign: | N/A | ### Response -**[Optional](../../models/operations/GetStreamsResponse.md)** +**[GetStreamsResponse](../../models/operations/GetStreamsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## get @@ -230,19 +235,10 @@ Retrieve a stream ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetStreamResponse; public class Application { @@ -259,17 +255,20 @@ public class Application { if (res.stream().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -279,12 +278,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetStreamResponse.md)** +**[GetStreamResponse](../../models/operations/GetStreamResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## update @@ -295,19 +294,24 @@ Update a stream ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; +import java.util.Map; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.FfmpegProfile; +import studio.livepeer.livepeer.models.components.Multistream; +import studio.livepeer.livepeer.models.components.PlaybackPolicy; +import studio.livepeer.livepeer.models.components.Profile; +import studio.livepeer.livepeer.models.components.RecordingSpec; +import studio.livepeer.livepeer.models.components.StreamPatchPayload; +import studio.livepeer.livepeer.models.components.Target; +import studio.livepeer.livepeer.models.components.TargetSpec; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.components.Type; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.UpdateStreamResponse; public class Application { @@ -322,7 +326,7 @@ public class Application { .streamPatchPayload(StreamPatchPayload.builder() .record(false) .multistream(Multistream.builder() - .targets(java.util.List.of( + .targets(List.of( Target.builder() .profile("720p0") .videoOnly(false) @@ -336,15 +340,15 @@ public class Application { .playbackPolicy(PlaybackPolicy.builder() .type(Type.WEBHOOK) .webhookId("1bde4o2i6xycudoy") - .webhookContext(java.util.Map.ofEntries( - entry("streamerId", "my-custom-id"))) + .webhookContext(Map.ofEntries( + Map.entry("streamerId", "my-custom-id"))) .refreshInterval(600d) .build()) - .profiles(java.util.List.of( + .profiles(List.of( FfmpegProfile.builder() .width(1280L) .name("720p") - .height(857478L) + .height(720L) .bitrate(3000000L) .fps(30L) .fpsDen(1L) @@ -352,37 +356,55 @@ public class Application { .gop("2") .profile(Profile.H264_BASELINE) .build())) + .recordingSpec(RecordingSpec.builder() + .profiles(List.of( + TranscodeProfile.builder() + .bitrate(3000000L) + .width(1280L) + .name("720p") + .height(720L) + .quality(23L) + .fps(30L) + .fpsDen(1L) + .gop("2") + .profile(TranscodeProfileProfile.H264_BASELINE) + .encoder(TranscodeProfileEncoder.H264) + .build())) + .build()) .build()) .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the stream | -| `streamPatchPayload` | [studio.livepeer.livepeer.models.components.StreamPatchPayload](../../models/components/StreamPatchPayload.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | ID of the stream | +| `streamPatchPayload` | [StreamPatchPayload](../../models/components/StreamPatchPayload.md) | :heavy_check_mark: | N/A | ### Response -**[Optional](../../models/operations/UpdateStreamResponse.md)** +**[UpdateStreamResponse](../../models/operations/UpdateStreamResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## delete @@ -397,19 +419,10 @@ using the PATCH stream API. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.DeleteStreamResponse; public class Application { @@ -424,17 +437,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -444,12 +460,12 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteStreamResponse.md)** +**[DeleteStreamResponse](../../models/operations/DeleteStreamResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## terminate @@ -468,19 +484,10 @@ terminated. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.TerminateStreamResponse; public class Application { @@ -495,17 +502,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -515,12 +525,12 @@ public class Application { ### Response -**[Optional](../../models/operations/TerminateStreamResponse.md)** +**[TerminateStreamResponse](../../models/operations/TerminateStreamResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## startPull @@ -538,19 +548,10 @@ started. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.StartPullStreamResponse; public class Application { @@ -565,17 +566,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -585,12 +589,12 @@ public class Application { ### Response -**[Optional](../../models/operations/StartPullStreamResponse.md)** +**[StartPullStreamResponse](../../models/operations/StartPullStreamResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## createClip @@ -601,19 +605,11 @@ Create a clip ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.ClipPayload; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateClipResponse; public class Application { @@ -638,32 +634,35 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `request` | [studio.livepeer.livepeer.models.components.ClipPayload](../../models/shared/ClipPayload.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `request` | [ClipPayload](../../models/shared/ClipPayload.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/CreateClipResponse.md)** +**[CreateClipResponse](../../models/operations/CreateClipResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getClips @@ -674,19 +673,10 @@ Retrieve clips of a livestream ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetClipsResponse; public class Application { @@ -703,17 +693,20 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -723,12 +716,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetClipsResponse.md)** +**[GetClipsResponse](../../models/operations/GetClipsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## addMultistreamTarget @@ -739,19 +732,12 @@ Add a multistream target ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.TargetAddPayload; +import studio.livepeer.livepeer.models.components.TargetAddPayloadSpec; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse; public class Application { @@ -775,33 +761,36 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | ID of the parent stream | -| `targetAddPayload` | [studio.livepeer.livepeer.models.components.TargetAddPayload](../../models/components/TargetAddPayload.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | ID of the parent stream | +| `targetAddPayload` | [TargetAddPayload](../../models/components/TargetAddPayload.md) | :heavy_check_mark: | N/A | ### Response -**[Optional](../../models/operations/AddMultistreamTargetResponse.md)** +**[AddMultistreamTargetResponse](../../models/operations/AddMultistreamTargetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## removeMultistreamTarget @@ -812,19 +801,10 @@ Remove a multistream target ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse; public class Application { @@ -840,17 +820,20 @@ public class Application { .call(); // handle response - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -861,9 +844,9 @@ public class Application { ### Response -**[Optional](../../models/operations/RemoveMultistreamTargetResponse.md)** +**[RemoveMultistreamTargetResponse](../../models/operations/RemoveMultistreamTargetResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/task/README.md b/docs/sdks/task/README.md index 57abcc3..b028b6f 100644 --- a/docs/sdks/task/README.md +++ b/docs/sdks/task/README.md @@ -19,19 +19,10 @@ Retrieve Tasks ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetTasksResponse; public class Application { @@ -47,26 +38,29 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Response -**[Optional](../../models/operations/GetTasksResponse.md)** +**[GetTasksResponse](../../models/operations/GetTasksResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## get @@ -77,19 +71,10 @@ Retrieve a Task ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetTaskResponse; public class Application { @@ -106,17 +91,20 @@ public class Application { if (res.task().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -126,9 +114,9 @@ public class Application { ### Response -**[Optional](../../models/operations/GetTaskResponse.md)** +**[GetTaskResponse](../../models/operations/GetTaskResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/transcode/README.md b/docs/sdks/transcode/README.md index 93dbdf9..01934e7 100644 --- a/docs/sdks/transcode/README.md +++ b/docs/sdks/transcode/README.md @@ -139,19 +139,25 @@ This endpoint currently supports the following output types: ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.Fmp4; +import studio.livepeer.livepeer.models.components.Hls; +import studio.livepeer.livepeer.models.components.Input1; +import studio.livepeer.livepeer.models.components.Input; +import studio.livepeer.livepeer.models.components.Mp4; +import studio.livepeer.livepeer.models.components.Outputs; +import studio.livepeer.livepeer.models.components.Storage1; +import studio.livepeer.livepeer.models.components.StorageCredentials; +import studio.livepeer.livepeer.models.components.StorageType; +import studio.livepeer.livepeer.models.components.TranscodePayload; +import studio.livepeer.livepeer.models.components.TranscodePayloadStorage; +import studio.livepeer.livepeer.models.components.TranscodeProfile; +import studio.livepeer.livepeer.models.components.TranscodeProfileEncoder; +import studio.livepeer.livepeer.models.components.TranscodeProfileProfile; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.TranscodeVideoResponse; public class Application { @@ -185,11 +191,12 @@ public class Application { .path("/samplevideo/fmp4") .build()) .build()) - .profiles(java.util.List.of( + .profiles(List.of( TranscodeProfile.builder() .bitrate(3000000L) .width(1280L) .name("720p") + .height(720L) .quality(23L) .fps(30L) .fpsDen(1L) @@ -206,29 +213,32 @@ public class Application { if (res.task().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `request` | [studio.livepeer.livepeer.models.components.TranscodePayload](../../models/shared/TranscodePayload.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `request` | [TranscodePayload](../../models/shared/TranscodePayload.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/TranscodeVideoResponse.md)** +**[TranscodeVideoResponse](../../models/operations/TranscodeVideoResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/docs/sdks/webhook/README.md b/docs/sdks/webhook/README.md index c2e92d6..7623e1b 100644 --- a/docs/sdks/webhook/README.md +++ b/docs/sdks/webhook/README.md @@ -25,19 +25,10 @@ Retrieve a Webhook ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetWebhooksResponse; public class Application { @@ -53,26 +44,29 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Response -**[Optional](../../models/operations/GetWebhooksResponse.md)** +**[GetWebhooksResponse](../../models/operations/GetWebhooksResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## create @@ -84,19 +78,13 @@ To create a new webhook, you need to make an API call with the events you want t ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.Events; +import studio.livepeer.livepeer.models.components.WebhookInput; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateWebhookResponse; public class Application { @@ -110,7 +98,7 @@ public class Application { .name("test_webhook") .url("https://my-service.com/webhook") .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") - .events(java.util.List.of( + .events(List.of( Events.STREAM_STARTED, Events.STREAM_IDLE)) .sharedSecret("my-secret") @@ -124,32 +112,35 @@ public class Application { if (res.webhook().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `request` | [studio.livepeer.livepeer.models.components.WebhookInput](../../models/shared/WebhookInput.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `request` | [WebhookInput](../../models/shared/WebhookInput.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[Optional](../../models/operations/CreateWebhookResponse.md)** +**[CreateWebhookResponse](../../models/operations/CreateWebhookResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## get @@ -160,19 +151,10 @@ Retrieve a webhook ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetWebhookResponse; public class Application { @@ -189,17 +171,20 @@ public class Application { if (res.webhook().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -209,12 +194,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetWebhookResponse.md)** +**[GetWebhookResponse](../../models/operations/GetWebhookResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## update @@ -225,19 +210,13 @@ Update a webhook ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; +import java.util.List; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.components.Events; +import studio.livepeer.livepeer.models.components.WebhookInput; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.UpdateWebhookResponse; public class Application { @@ -253,7 +232,7 @@ public class Application { .name("test_webhook") .url("https://my-service.com/webhook") .projectId("aac12556-4d65-4d34-9fb6-d1f0985eb0a9") - .events(java.util.List.of( + .events(List.of( Events.STREAM_STARTED, Events.STREAM_IDLE)) .sharedSecret("my-secret") @@ -264,33 +243,36 @@ public class Application { if (res.webhook().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | -| `webhook` | [studio.livepeer.livepeer.models.components.WebhookInput](../../models/components/WebhookInput.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `webhook` | [WebhookInput](../../models/components/WebhookInput.md) | :heavy_check_mark: | N/A | ### Response -**[Optional](../../models/operations/UpdateWebhookResponse.md)** +**[UpdateWebhookResponse](../../models/operations/UpdateWebhookResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## delete @@ -301,19 +283,10 @@ Delete a webhook ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.DeleteWebhookResponse; public class Application { @@ -330,17 +303,20 @@ public class Application { if (res.webhook().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -350,12 +326,12 @@ public class Application { ### Response -**[Optional](../../models/operations/DeleteWebhookResponse.md)** +**[DeleteWebhookResponse](../../models/operations/DeleteWebhookResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getLogs @@ -366,19 +342,10 @@ Retrieve webhook logs ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse; public class Application { @@ -395,17 +362,20 @@ public class Application { if (res.data().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -415,12 +385,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetWebhookLogsResponse.md)** +**[GetWebhookLogsResponse](../../models/operations/GetWebhookLogsResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## getLog @@ -431,19 +401,10 @@ Retrieve a webhook log ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetWebhookLogResponse; public class Application { @@ -461,17 +422,20 @@ public class Application { if (res.webhookLog().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -482,12 +446,12 @@ public class Application { ### Response -**[Optional](../../models/operations/GetWebhookLogResponse.md)** +**[GetWebhookLogResponse](../../models/operations/GetWebhookLogResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | ## resendLog @@ -501,19 +465,10 @@ to check or fix the behaviour in your handler. ```java package hello.world; -import java.math.BigDecimal; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; -import static java.util.Map.entry; +import java.lang.Exception; import studio.livepeer.livepeer.Livepeer; -import studio.livepeer.livepeer.models.components.*; -import studio.livepeer.livepeer.models.components.Security; -import studio.livepeer.livepeer.models.operations.*; -import studio.livepeer.livepeer.utils.EventStream; +import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.ResendWebhookResponse; public class Application { @@ -531,17 +486,20 @@ public class Application { if (res.webhookLog().isPresent()) { // handle response } - } catch (studio.livepeer.livepeer.models.errors.SDKError e) { + } catch (SDKError e) { // handle exception throw e; } catch (Exception e) { // handle exception throw e; } + } } ``` + + ### Parameters | Parameter | Type | Required | Description | @@ -552,9 +510,9 @@ public class Application { ### Response -**[Optional](../../models/operations/ResendWebhookResponse.md)** +**[ResendWebhookResponse](../../models/operations/ResendWebhookResponse.md)** ### Errors | Error Object | Status Code | Content Type | | ---------------------- | ---------------------- | ---------------------- | -| models/errors/SDKError | 4xx-5xx | */* | +| models/errors/SDKError | 4xx-5xx | \*\/* | diff --git a/src/main/java/studio/livepeer/livepeer/AccessControl.java b/src/main/java/studio/livepeer/livepeer/AccessControl.java index 4c7c18d..029ab24 100644 --- a/src/main/java/studio/livepeer/livepeer/AccessControl.java +++ b/src/main/java/studio/livepeer/livepeer/AccessControl.java @@ -1,30 +1,44 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.SigningKey; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateSigningKeyRequestBuilder; +import studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse; +import studio.livepeer.livepeer.models.operations.DeleteSigningKeyRequest; +import studio.livepeer.livepeer.models.operations.DeleteSigningKeyRequestBuilder; +import studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse; +import studio.livepeer.livepeer.models.operations.GetSigningKeyRequest; +import studio.livepeer.livepeer.models.operations.GetSigningKeyRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetSigningKeyResponse; +import studio.livepeer.livepeer.models.operations.GetSigningKeysRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetSigningKeysResponse; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; +import studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequest; +import studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody; +import studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBuilder; +import studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; import studio.livepeer.livepeer.utils.SerializedBody; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to access control/signing keys api @@ -50,8 +64,8 @@ public class AccessControl implements * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.CreateSigningKeyRequestBuilder create() { - return new studio.livepeer.livepeer.models.operations.CreateSigningKeyRequestBuilder(this); + public CreateSigningKeyRequestBuilder create() { + return new CreateSigningKeyRequestBuilder(this); } /** @@ -62,7 +76,7 @@ public studio.livepeer.livepeer.models.operations.CreateSigningKeyRequestBuilder * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse createDirect() throws Exception { + public CreateSigningKeyResponse createDirect() throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -80,7 +94,10 @@ public studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse creat HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "createSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -88,18 +105,28 @@ public studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse creat if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "createSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "createSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "createSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -107,28 +134,28 @@ public studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse creat .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse + CreateSigningKeyResponse.Builder _resBuilder = + CreateSigningKeyResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse _res = _resBuilder.build(); + CreateSigningKeyResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.SigningKey _out = Utils.mapper().readValue( + SigningKey _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withSigningKey(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withSigningKey(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -137,28 +164,28 @@ public studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse creat _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -167,8 +194,8 @@ public studio.livepeer.livepeer.models.operations.CreateSigningKeyResponse creat * Retrieves signing keys * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetSigningKeysRequestBuilder getAll() { - return new studio.livepeer.livepeer.models.operations.GetSigningKeysRequestBuilder(this); + public GetSigningKeysRequestBuilder getAll() { + return new GetSigningKeysRequestBuilder(this); } /** @@ -176,7 +203,7 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeysRequestBuilder g * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetSigningKeysResponse getAllDirect() throws Exception { + public GetSigningKeysResponse getAllDirect() throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -194,7 +221,10 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeysResponse getAllD HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getSigningKeys", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getSigningKeys", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -202,18 +232,28 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeysResponse getAllD if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getSigningKeys", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getSigningKeys", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getSigningKeys", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getSigningKeys", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSigningKeys", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getSigningKeys", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -221,28 +261,28 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeysResponse getAllD .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetSigningKeysResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetSigningKeysResponse + GetSigningKeysResponse.Builder _resBuilder = + GetSigningKeysResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetSigningKeysResponse _res = _resBuilder.build(); + GetSigningKeysResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -251,28 +291,28 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeysResponse getAllD _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -281,8 +321,8 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeysResponse getAllD * Delete Signing Key * @return The call builder */ - public studio.livepeer.livepeer.models.operations.DeleteSigningKeyRequestBuilder delete() { - return new studio.livepeer.livepeer.models.operations.DeleteSigningKeyRequestBuilder(this); + public DeleteSigningKeyRequestBuilder delete() { + return new DeleteSigningKeyRequestBuilder(this); } /** @@ -291,17 +331,17 @@ public studio.livepeer.livepeer.models.operations.DeleteSigningKeyRequestBuilder * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse delete( + public DeleteSigningKeyResponse delete( String keyId) throws Exception { - studio.livepeer.livepeer.models.operations.DeleteSigningKeyRequest request = - studio.livepeer.livepeer.models.operations.DeleteSigningKeyRequest + DeleteSigningKeyRequest request = + DeleteSigningKeyRequest .builder() .keyId(keyId) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.DeleteSigningKeyRequest.class, + DeleteSigningKeyRequest.class, _baseUrl, "/access-control/signing-key/{keyId}", request, null); @@ -318,7 +358,10 @@ public studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse delet HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "deleteSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -326,18 +369,28 @@ public studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse delet if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "deleteSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "deleteSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "deleteSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -345,14 +398,14 @@ public studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse delet .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse + DeleteSigningKeyResponse.Builder _resBuilder = + DeleteSigningKeyResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse _res = _resBuilder.build(); + DeleteSigningKeyResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -364,28 +417,28 @@ public studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse delet _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -394,8 +447,8 @@ public studio.livepeer.livepeer.models.operations.DeleteSigningKeyResponse delet * Retrieves a signing key * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetSigningKeyRequestBuilder get() { - return new studio.livepeer.livepeer.models.operations.GetSigningKeyRequestBuilder(this); + public GetSigningKeyRequestBuilder get() { + return new GetSigningKeyRequestBuilder(this); } /** @@ -404,17 +457,17 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeyRequestBuilder ge * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetSigningKeyResponse get( + public GetSigningKeyResponse get( String keyId) throws Exception { - studio.livepeer.livepeer.models.operations.GetSigningKeyRequest request = - studio.livepeer.livepeer.models.operations.GetSigningKeyRequest + GetSigningKeyRequest request = + GetSigningKeyRequest .builder() .keyId(keyId) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetSigningKeyRequest.class, + GetSigningKeyRequest.class, _baseUrl, "/access-control/signing-key/{keyId}", request, null); @@ -431,7 +484,10 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeyResponse get( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -439,18 +495,28 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeyResponse get( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -458,28 +524,28 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeyResponse get( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetSigningKeyResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetSigningKeyResponse + GetSigningKeyResponse.Builder _resBuilder = + GetSigningKeyResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetSigningKeyResponse _res = _resBuilder.build(); + GetSigningKeyResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.SigningKey _out = Utils.mapper().readValue( + SigningKey _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withSigningKey(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withSigningKey(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -488,28 +554,28 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeyResponse get( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -518,8 +584,8 @@ public studio.livepeer.livepeer.models.operations.GetSigningKeyResponse get( * Update a signing key * @return The call builder */ - public studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBuilder update() { - return new studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBuilder(this); + public UpdateSigningKeyRequestBuilder update() { + return new UpdateSigningKeyRequestBuilder(this); } /** @@ -529,11 +595,11 @@ public studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBuilder * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse update( + public UpdateSigningKeyResponse update( String keyId, - studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody requestBody) throws Exception { - studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequest request = - studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequest + UpdateSigningKeyRequestBody requestBody) throws Exception { + UpdateSigningKeyRequest request = + UpdateSigningKeyRequest .builder() .keyId(keyId) .requestBody(requestBody) @@ -541,16 +607,21 @@ public studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse updat String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequest.class, + UpdateSigningKeyRequest.class, _baseUrl, "/access-control/signing-key/{keyId}", request, null); HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "requestBody", "json", false); + _convertedRequest, + "requestBody", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -566,7 +637,10 @@ public studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse updat HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("updateSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "updateSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -574,18 +648,28 @@ public studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse updat if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("updateSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "updateSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("updateSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "updateSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updateSigningKey", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "updateSigningKey", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -593,14 +677,14 @@ public studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse updat .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse + UpdateSigningKeyResponse.Builder _resBuilder = + UpdateSigningKeyResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse _res = _resBuilder.build(); + UpdateSigningKeyResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -612,28 +696,28 @@ public studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse updat _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/Asset.java b/src/main/java/studio/livepeer/livepeer/Asset.java index fb25d54..60a8f1f 100644 --- a/src/main/java/studio/livepeer/livepeer/Asset.java +++ b/src/main/java/studio/livepeer/livepeer/Asset.java @@ -1,30 +1,50 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.AssetPatchPayload; +import studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload; +import studio.livepeer.livepeer.models.components.NewAssetPayload; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.DeleteAssetRequest; +import studio.livepeer.livepeer.models.operations.DeleteAssetRequestBuilder; +import studio.livepeer.livepeer.models.operations.DeleteAssetResponse; +import studio.livepeer.livepeer.models.operations.GetAssetRequest; +import studio.livepeer.livepeer.models.operations.GetAssetRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetAssetResponse; +import studio.livepeer.livepeer.models.operations.GetAssetsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetAssetsResponse; +import studio.livepeer.livepeer.models.operations.RequestUploadData; +import studio.livepeer.livepeer.models.operations.RequestUploadRequestBuilder; +import studio.livepeer.livepeer.models.operations.RequestUploadResponse; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; +import studio.livepeer.livepeer.models.operations.UpdateAssetRequest; +import studio.livepeer.livepeer.models.operations.UpdateAssetRequestBuilder; +import studio.livepeer.livepeer.models.operations.UpdateAssetResponse; +import studio.livepeer.livepeer.models.operations.UploadAssetData; +import studio.livepeer.livepeer.models.operations.UploadAssetDataOutput; +import studio.livepeer.livepeer.models.operations.UploadAssetRequestBuilder; +import studio.livepeer.livepeer.models.operations.UploadAssetResponse; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; import studio.livepeer.livepeer.utils.SerializedBody; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to asset/vod api @@ -48,8 +68,8 @@ public class Asset implements * Retrieve assets * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetAssetsRequestBuilder getAll() { - return new studio.livepeer.livepeer.models.operations.GetAssetsRequestBuilder(this); + public GetAssetsRequestBuilder getAll() { + return new GetAssetsRequestBuilder(this); } /** @@ -57,7 +77,7 @@ public studio.livepeer.livepeer.models.operations.GetAssetsRequestBuilder getAll * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetAssetsResponse getAllDirect() throws Exception { + public GetAssetsResponse getAllDirect() throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -75,7 +95,10 @@ public studio.livepeer.livepeer.models.operations.GetAssetsResponse getAllDirect HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getAssets", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getAssets", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -83,18 +106,28 @@ public studio.livepeer.livepeer.models.operations.GetAssetsResponse getAllDirect if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getAssets", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getAssets", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getAssets", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getAssets", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getAssets", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getAssets", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -102,28 +135,28 @@ public studio.livepeer.livepeer.models.operations.GetAssetsResponse getAllDirect .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetAssetsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetAssetsResponse + GetAssetsResponse.Builder _resBuilder = + GetAssetsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetAssetsResponse _res = _resBuilder.build(); + GetAssetsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -132,28 +165,28 @@ public studio.livepeer.livepeer.models.operations.GetAssetsResponse getAllDirect _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -234,8 +267,8 @@ public studio.livepeer.livepeer.models.operations.GetAssetsResponse getAllDirect * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.RequestUploadRequestBuilder create() { - return new studio.livepeer.livepeer.models.operations.RequestUploadRequestBuilder(this); + public RequestUploadRequestBuilder create() { + return new RequestUploadRequestBuilder(this); } /** @@ -316,18 +349,23 @@ public studio.livepeer.livepeer.models.operations.RequestUploadRequestBuilder cr * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.RequestUploadResponse create( - studio.livepeer.livepeer.models.components.NewAssetPayload request) throws Exception { + public RequestUploadResponse create( + NewAssetPayload request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, "/asset/request-upload"); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "request", "json", false); + _convertedRequest, + "request", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -343,7 +381,10 @@ public studio.livepeer.livepeer.models.operations.RequestUploadResponse create( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("requestUpload", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "requestUpload", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -351,18 +392,28 @@ public studio.livepeer.livepeer.models.operations.RequestUploadResponse create( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("requestUpload", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "requestUpload", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("requestUpload", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "requestUpload", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("requestUpload", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "requestUpload", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -370,28 +421,28 @@ public studio.livepeer.livepeer.models.operations.RequestUploadResponse create( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.RequestUploadResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.RequestUploadResponse + RequestUploadResponse.Builder _resBuilder = + RequestUploadResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.RequestUploadResponse _res = _resBuilder.build(); + RequestUploadResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.operations.RequestUploadData _out = Utils.mapper().readValue( + RequestUploadData _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -400,28 +451,28 @@ public studio.livepeer.livepeer.models.operations.RequestUploadResponse create( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -430,8 +481,8 @@ public studio.livepeer.livepeer.models.operations.RequestUploadResponse create( * Upload asset via URL * @return The call builder */ - public studio.livepeer.livepeer.models.operations.UploadAssetRequestBuilder createViaUrl() { - return new studio.livepeer.livepeer.models.operations.UploadAssetRequestBuilder(this); + public UploadAssetRequestBuilder createViaUrl() { + return new UploadAssetRequestBuilder(this); } /** @@ -440,18 +491,23 @@ public studio.livepeer.livepeer.models.operations.UploadAssetRequestBuilder crea * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.UploadAssetResponse createViaUrl( - studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload request) throws Exception { + public UploadAssetResponse createViaUrl( + NewAssetFromUrlPayload request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, "/asset/upload/url"); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "request", "json", false); + _convertedRequest, + "request", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -467,7 +523,10 @@ public studio.livepeer.livepeer.models.operations.UploadAssetResponse createViaU HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("uploadAsset", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "uploadAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -475,18 +534,28 @@ public studio.livepeer.livepeer.models.operations.UploadAssetResponse createViaU if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("uploadAsset", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "uploadAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("uploadAsset", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "uploadAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("uploadAsset", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "uploadAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -494,43 +563,43 @@ public studio.livepeer.livepeer.models.operations.UploadAssetResponse createViaU .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.UploadAssetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.UploadAssetResponse + UploadAssetResponse.Builder _resBuilder = + UploadAssetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.UploadAssetResponse _res = _resBuilder.build(); + UploadAssetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.operations.UploadAssetData _out = Utils.mapper().readValue( + UploadAssetData _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withTwoHundredApplicationJsonData(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withTwoHundredApplicationJsonData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.operations.UploadAssetDataOutput _out = Utils.mapper().readValue( + UploadAssetDataOutput _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withTwoHundredAndOneApplicationJsonData(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withTwoHundredAndOneApplicationJsonData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -539,28 +608,28 @@ public studio.livepeer.livepeer.models.operations.UploadAssetResponse createViaU _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -569,8 +638,8 @@ public studio.livepeer.livepeer.models.operations.UploadAssetResponse createViaU * Retrieves an asset * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetAssetRequestBuilder get() { - return new studio.livepeer.livepeer.models.operations.GetAssetRequestBuilder(this); + public GetAssetRequestBuilder get() { + return new GetAssetRequestBuilder(this); } /** @@ -579,17 +648,17 @@ public studio.livepeer.livepeer.models.operations.GetAssetRequestBuilder get() { * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetAssetResponse get( + public GetAssetResponse get( String assetId) throws Exception { - studio.livepeer.livepeer.models.operations.GetAssetRequest request = - studio.livepeer.livepeer.models.operations.GetAssetRequest + GetAssetRequest request = + GetAssetRequest .builder() .assetId(assetId) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetAssetRequest.class, + GetAssetRequest.class, _baseUrl, "/asset/{assetId}", request, null); @@ -606,7 +675,10 @@ public studio.livepeer.livepeer.models.operations.GetAssetResponse get( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getAsset", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -614,18 +686,28 @@ public studio.livepeer.livepeer.models.operations.GetAssetResponse get( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getAsset", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getAsset", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getAsset", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -633,28 +715,28 @@ public studio.livepeer.livepeer.models.operations.GetAssetResponse get( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetAssetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetAssetResponse + GetAssetResponse.Builder _resBuilder = + GetAssetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetAssetResponse _res = _resBuilder.build(); + GetAssetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Asset _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withAsset(java.util.Optional.ofNullable(_out)); + _res.withAsset(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -663,28 +745,28 @@ public studio.livepeer.livepeer.models.operations.GetAssetResponse get( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -693,8 +775,8 @@ public studio.livepeer.livepeer.models.operations.GetAssetResponse get( * Patch an asset * @return The call builder */ - public studio.livepeer.livepeer.models.operations.UpdateAssetRequestBuilder update() { - return new studio.livepeer.livepeer.models.operations.UpdateAssetRequestBuilder(this); + public UpdateAssetRequestBuilder update() { + return new UpdateAssetRequestBuilder(this); } /** @@ -704,11 +786,11 @@ public studio.livepeer.livepeer.models.operations.UpdateAssetRequestBuilder upda * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.UpdateAssetResponse update( + public UpdateAssetResponse update( String assetId, - studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload) throws Exception { - studio.livepeer.livepeer.models.operations.UpdateAssetRequest request = - studio.livepeer.livepeer.models.operations.UpdateAssetRequest + AssetPatchPayload assetPatchPayload) throws Exception { + UpdateAssetRequest request = + UpdateAssetRequest .builder() .assetId(assetId) .assetPatchPayload(assetPatchPayload) @@ -716,16 +798,21 @@ public studio.livepeer.livepeer.models.operations.UpdateAssetResponse update( String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.UpdateAssetRequest.class, + UpdateAssetRequest.class, _baseUrl, "/asset/{assetId}", request, null); HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "assetPatchPayload", "json", false); + _convertedRequest, + "assetPatchPayload", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -741,7 +828,10 @@ public studio.livepeer.livepeer.models.operations.UpdateAssetResponse update( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("updateAsset", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "updateAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -749,18 +839,28 @@ public studio.livepeer.livepeer.models.operations.UpdateAssetResponse update( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("updateAsset", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "updateAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("updateAsset", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "updateAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updateAsset", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "updateAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -768,28 +868,28 @@ public studio.livepeer.livepeer.models.operations.UpdateAssetResponse update( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.UpdateAssetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.UpdateAssetResponse + UpdateAssetResponse.Builder _resBuilder = + UpdateAssetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.UpdateAssetResponse _res = _resBuilder.build(); + UpdateAssetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Asset _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withAsset(java.util.Optional.ofNullable(_out)); + _res.withAsset(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -798,28 +898,28 @@ public studio.livepeer.livepeer.models.operations.UpdateAssetResponse update( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -828,8 +928,8 @@ public studio.livepeer.livepeer.models.operations.UpdateAssetResponse update( * Delete an asset * @return The call builder */ - public studio.livepeer.livepeer.models.operations.DeleteAssetRequestBuilder delete() { - return new studio.livepeer.livepeer.models.operations.DeleteAssetRequestBuilder(this); + public DeleteAssetRequestBuilder delete() { + return new DeleteAssetRequestBuilder(this); } /** @@ -838,17 +938,17 @@ public studio.livepeer.livepeer.models.operations.DeleteAssetRequestBuilder dele * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.DeleteAssetResponse delete( + public DeleteAssetResponse delete( String assetId) throws Exception { - studio.livepeer.livepeer.models.operations.DeleteAssetRequest request = - studio.livepeer.livepeer.models.operations.DeleteAssetRequest + DeleteAssetRequest request = + DeleteAssetRequest .builder() .assetId(assetId) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.DeleteAssetRequest.class, + DeleteAssetRequest.class, _baseUrl, "/asset/{assetId}", request, null); @@ -865,7 +965,10 @@ public studio.livepeer.livepeer.models.operations.DeleteAssetResponse delete( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteAsset", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "deleteAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -873,18 +976,28 @@ public studio.livepeer.livepeer.models.operations.DeleteAssetResponse delete( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteAsset", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "deleteAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteAsset", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "deleteAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteAsset", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "deleteAsset", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -892,14 +1005,14 @@ public studio.livepeer.livepeer.models.operations.DeleteAssetResponse delete( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.DeleteAssetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.DeleteAssetResponse + DeleteAssetResponse.Builder _resBuilder = + DeleteAssetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.DeleteAssetResponse _res = _resBuilder.build(); + DeleteAssetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -911,28 +1024,28 @@ public studio.livepeer.livepeer.models.operations.DeleteAssetResponse delete( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/Livepeer.java b/src/main/java/studio/livepeer/livepeer/Livepeer.java index b938c7d..9a962cc 100644 --- a/src/main/java/studio/livepeer/livepeer/Livepeer.java +++ b/src/main/java/studio/livepeer/livepeer/Livepeer.java @@ -1,27 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpRequest; -import java.time.LocalDate; -import java.time.OffsetDateTime; +import java.lang.String; +import java.util.Map; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; import studio.livepeer.livepeer.utils.HTTPClient; -import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; -import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; -import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; import studio.livepeer.livepeer.utils.RetryConfig; import studio.livepeer.livepeer.utils.SpeakeasyHTTPClient; -import studio.livepeer.livepeer.utils.Utils; /** * Livepeer API Reference: Welcome to the Livepeer API reference docs. Here you will find all the @@ -234,7 +223,7 @@ public Builder serverURL(String serverUrl) { * @param params The parameters to use when templating the URL. * @return The builder instance. */ - public Builder serverURL(String serverUrl, java.util.Map params) { + public Builder serverURL(String serverUrl, Map params) { this.sdkConfiguration.serverUrl = studio.livepeer.livepeer.utils.Utils.templateUrl(serverUrl, params); return this; } diff --git a/src/main/java/studio/livepeer/livepeer/Metrics.java b/src/main/java/studio/livepeer/livepeer/Metrics.java index 84161be..6f1c074 100644 --- a/src/main/java/studio/livepeer/livepeer/Metrics.java +++ b/src/main/java/studio/livepeer/livepeer/Metrics.java @@ -1,35 +1,52 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.RealtimeViewershipMetric; +import studio.livepeer.livepeer.models.components.UsageMetric; +import studio.livepeer.livepeer.models.components.ViewershipMetric; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.BreakdownBy; +import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest; +import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse; +import studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsData; +import studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsRequest; +import studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse; +import studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowRequest; +import studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowResponse; +import studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest; +import studio.livepeer.livepeer.models.operations.GetUsageMetricsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse; +import studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest; +import studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to metrics api */ public class Metrics implements + MethodCallGetRealtimeViewershipNow, MethodCallGetViewershipMetrics, MethodCallGetCreatorViewershipMetrics, MethodCallGetPublicViewershipMetrics, @@ -42,14 +59,180 @@ public class Metrics implements } + /** + * Query realtime viewership + * Requires a private (non-CORS) API key to be used. + * + * @return The call builder + */ + public GetRealtimeViewershipNowRequestBuilder getRealtimeViewership() { + return new GetRealtimeViewershipNowRequestBuilder(this); + } + + /** + * Query realtime viewership + * Requires a private (non-CORS) API key to be used. + * + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetRealtimeViewershipNowResponse getRealtimeViewershipDirect() throws Exception { + return getRealtimeViewership(Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Query realtime viewership + * Requires a private (non-CORS) API key to be used. + * + * @param playbackId The playback ID to filter the query results. This can be a canonical + playback ID from Livepeer assets or streams, or dStorage identifiers + for assets + + * @param creatorId The creator ID to filter the query results + * @param breakdownBy The list of fields to break down the query results. Specify this + query-string multiple times to break down by multiple fields. + + * @return The response from the API call + * @throws Exception if the API call fails + */ + public GetRealtimeViewershipNowResponse getRealtimeViewership( + Optional playbackId, + Optional creatorId, + Optional> breakdownBy) throws Exception { + GetRealtimeViewershipNowRequest request = + GetRealtimeViewershipNowRequest + .builder() + .playbackId(playbackId) + .creatorId(creatorId) + .breakdownBy(breakdownBy) + .build(); + + String _baseUrl = this.sdkConfiguration.serverUrl; + String _url = Utils.generateURL( + _baseUrl, + "/data/views/now"); + + HTTPRequest _req = new HTTPRequest(_url, "GET"); + _req.addHeader("Accept", "application/json") + .addHeader("user-agent", + this.sdkConfiguration.userAgent); + + _req.addQueryParams(Utils.getQueryParams( + GetRealtimeViewershipNowRequest.class, + request, + null)); + + Utils.configureSecurity(_req, + this.sdkConfiguration.securitySource.getSecurity()); + + HTTPClient _client = this.sdkConfiguration.defaultClient; + HttpRequest _r = + sdkConfiguration.hooks() + .beforeRequest( + new BeforeRequestContextImpl( + "getRealtimeViewershipNow", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _req.build()); + HttpResponse _httpRes; + try { + _httpRes = _client.send(_r); + if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getRealtimeViewershipNow", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.of(_httpRes), + Optional.empty()); + } else { + _httpRes = sdkConfiguration.hooks() + .afterSuccess( + new AfterSuccessContextImpl( + "getRealtimeViewershipNow", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + _httpRes); + } + } catch (Exception _e) { + _httpRes = sdkConfiguration.hooks() + .afterError( + new AfterErrorContextImpl( + "getRealtimeViewershipNow", + Optional.of(List.of()), + sdkConfiguration.securitySource()), + Optional.empty(), + Optional.of(_e)); + } + String _contentType = _httpRes + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetRealtimeViewershipNowResponse.Builder _resBuilder = + GetRealtimeViewershipNowResponse + .builder() + .contentType(_contentType) + .statusCode(_httpRes.statusCode()) + .rawResponse(_httpRes); + + GetRealtimeViewershipNowResponse _res = _resBuilder.build(); + + if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + List _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { + // no content + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(_httpRes)); + } + if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { + if (Utils.contentTypeMatches(_contentType, "application/json")) { + Error _out = Utils.mapper().readValue( + Utils.toUtf8AndClose(_httpRes.body()), + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); + return _res; + } else { + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected content-type received: " + _contentType, + Utils.extractByteArrayFromBody(_httpRes)); + } + } + throw new SDKError( + _httpRes, + _httpRes.statusCode(), + "Unexpected status code received: " + _httpRes.statusCode(), + Utils.extractByteArrayFromBody(_httpRes)); + } + + + /** * Query viewership metrics * Requires a private (non-CORS) API key to be used. * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequestBuilder getViewership() { - return new studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequestBuilder(this); + public GetViewershipMetricsRequestBuilder getViewership() { + return new GetViewershipMetricsRequestBuilder(this); } /** @@ -60,8 +243,8 @@ public studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequestBui * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse getViewership( - studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest request) throws Exception { + public GetViewershipMetricsResponse getViewership( + GetViewershipMetricsRequest request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -73,7 +256,7 @@ public studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse g this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest.class, + GetViewershipMetricsRequest.class, request, null)); @@ -84,7 +267,10 @@ public studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse g HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -92,18 +278,28 @@ public studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse g if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -111,28 +307,28 @@ public studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse g .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse + GetViewershipMetricsResponse.Builder _resBuilder = + GetViewershipMetricsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse _res = _resBuilder.build(); + GetViewershipMetricsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -141,28 +337,28 @@ public studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse g _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -173,8 +369,8 @@ public studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse g * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequestBuilder getCreatorViewership() { - return new studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequestBuilder(this); + public GetCreatorViewershipMetricsRequestBuilder getCreatorViewership() { + return new GetCreatorViewershipMetricsRequestBuilder(this); } /** @@ -185,8 +381,8 @@ public studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsReq * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse getCreatorViewership( - studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest request) throws Exception { + public GetCreatorViewershipMetricsResponse getCreatorViewership( + GetCreatorViewershipMetricsRequest request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -198,7 +394,7 @@ public studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRes this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest.class, + GetCreatorViewershipMetricsRequest.class, request, null)); @@ -209,7 +405,10 @@ public studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRes HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getCreatorViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getCreatorViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -217,18 +416,28 @@ public studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRes if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getCreatorViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getCreatorViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getCreatorViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getCreatorViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getCreatorViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getCreatorViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -236,28 +445,28 @@ public studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRes .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse + GetCreatorViewershipMetricsResponse.Builder _resBuilder = + GetCreatorViewershipMetricsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse _res = _resBuilder.build(); + GetCreatorViewershipMetricsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -266,28 +475,28 @@ public studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRes _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -300,8 +509,8 @@ public studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRes * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsRequestBuilder getPublicViewership() { - return new studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsRequestBuilder(this); + public GetPublicViewershipMetricsRequestBuilder getPublicViewership() { + return new GetPublicViewershipMetricsRequestBuilder(this); } /** @@ -317,17 +526,17 @@ public studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsRequ * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse getPublicViewership( + public GetPublicViewershipMetricsResponse getPublicViewership( String playbackId) throws Exception { - studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsRequest request = - studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsRequest + GetPublicViewershipMetricsRequest request = + GetPublicViewershipMetricsRequest .builder() .playbackId(playbackId) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsRequest.class, + GetPublicViewershipMetricsRequest.class, _baseUrl, "/data/views/query/total/{playbackId}", request, null); @@ -344,7 +553,10 @@ public studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResp HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getPublicViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getPublicViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -352,18 +564,28 @@ public studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResp if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getPublicViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getPublicViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getPublicViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getPublicViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPublicViewershipMetrics", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getPublicViewershipMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -371,28 +593,28 @@ public studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResp .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse + GetPublicViewershipMetricsResponse.Builder _resBuilder = + GetPublicViewershipMetricsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse _res = _resBuilder.build(); + GetPublicViewershipMetricsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsData _out = Utils.mapper().readValue( + GetPublicViewershipMetricsData _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -401,28 +623,28 @@ public studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResp _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -431,8 +653,8 @@ public studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResp * Query usage metrics * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetUsageMetricsRequestBuilder getUsage() { - return new studio.livepeer.livepeer.models.operations.GetUsageMetricsRequestBuilder(this); + public GetUsageMetricsRequestBuilder getUsage() { + return new GetUsageMetricsRequestBuilder(this); } /** @@ -441,8 +663,8 @@ public studio.livepeer.livepeer.models.operations.GetUsageMetricsRequestBuilder * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse getUsage( - studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest request) throws Exception { + public GetUsageMetricsResponse getUsage( + GetUsageMetricsRequest request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -454,7 +676,7 @@ public studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse getUsa this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest.class, + GetUsageMetricsRequest.class, request, null)); @@ -465,7 +687,10 @@ public studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse getUsa HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getUsageMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getUsageMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -473,18 +698,28 @@ public studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse getUsa if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getUsageMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getUsageMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getUsageMetrics", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getUsageMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getUsageMetrics", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getUsageMetrics", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -492,28 +727,28 @@ public studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse getUsa .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse + GetUsageMetricsResponse.Builder _resBuilder = + GetUsageMetricsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse _res = _resBuilder.build(); + GetUsageMetricsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.UsageMetric _out = Utils.mapper().readValue( + UsageMetric _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUsageMetric(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withUsageMetric(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -522,28 +757,28 @@ public studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse getUsa _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/Multistream.java b/src/main/java/studio/livepeer/livepeer/Multistream.java index 9889e98..6315f4a 100644 --- a/src/main/java/studio/livepeer/livepeer/Multistream.java +++ b/src/main/java/studio/livepeer/livepeer/Multistream.java @@ -1,30 +1,45 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.MultistreamTarget; +import studio.livepeer.livepeer.models.components.MultistreamTargetInput; +import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRequestBuilder; +import studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse; +import studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRequest; +import studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRequestBuilder; +import studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse; +import studio.livepeer.livepeer.models.operations.GetMultistreamTargetRequest; +import studio.livepeer.livepeer.models.operations.GetMultistreamTargetRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse; +import studio.livepeer.livepeer.models.operations.GetMultistreamTargetsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; +import studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRequest; +import studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRequestBuilder; +import studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; import studio.livepeer.livepeer.utils.SerializedBody; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to multistream api @@ -47,8 +62,8 @@ public class Multistream implements * Retrieve Multistream Targets * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetMultistreamTargetsRequestBuilder getAll() { - return new studio.livepeer.livepeer.models.operations.GetMultistreamTargetsRequestBuilder(this); + public GetMultistreamTargetsRequestBuilder getAll() { + return new GetMultistreamTargetsRequestBuilder(this); } /** @@ -56,7 +71,7 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetsRequestBu * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse getAllDirect() throws Exception { + public GetMultistreamTargetsResponse getAllDirect() throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -74,7 +89,10 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getMultistreamTargets", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getMultistreamTargets", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -82,18 +100,28 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getMultistreamTargets", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getMultistreamTargets", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getMultistreamTargets", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getMultistreamTargets", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getMultistreamTargets", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getMultistreamTargets", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -101,28 +129,28 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse + GetMultistreamTargetsResponse.Builder _resBuilder = + GetMultistreamTargetsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse _res = _resBuilder.build(); + GetMultistreamTargetsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -131,28 +159,28 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -161,8 +189,8 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetsResponse * Create a multistream target * @return The call builder */ - public studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRequestBuilder create() { - return new studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRequestBuilder(this); + public CreateMultistreamTargetRequestBuilder create() { + return new CreateMultistreamTargetRequestBuilder(this); } /** @@ -171,18 +199,23 @@ public studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRequest * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse create( - studio.livepeer.livepeer.models.components.MultistreamTargetInput request) throws Exception { + public CreateMultistreamTargetResponse create( + MultistreamTargetInput request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, "/multistream/target"); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "request", "json", false); + _convertedRequest, + "request", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -198,7 +231,10 @@ public studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRespons HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "createMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -206,18 +242,28 @@ public studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRespons if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "createMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "createMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "createMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -225,28 +271,28 @@ public studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRespons .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse + CreateMultistreamTargetResponse.Builder _resBuilder = + CreateMultistreamTargetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse _res = _resBuilder.build(); + CreateMultistreamTargetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.MultistreamTarget _out = Utils.mapper().readValue( + MultistreamTarget _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withMultistreamTarget(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withMultistreamTarget(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -255,28 +301,28 @@ public studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRespons _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -285,8 +331,8 @@ public studio.livepeer.livepeer.models.operations.CreateMultistreamTargetRespons * Retrieve a multistream target * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetMultistreamTargetRequestBuilder get() { - return new studio.livepeer.livepeer.models.operations.GetMultistreamTargetRequestBuilder(this); + public GetMultistreamTargetRequestBuilder get() { + return new GetMultistreamTargetRequestBuilder(this); } /** @@ -295,17 +341,17 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetRequestBui * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse get( + public GetMultistreamTargetResponse get( String id) throws Exception { - studio.livepeer.livepeer.models.operations.GetMultistreamTargetRequest request = - studio.livepeer.livepeer.models.operations.GetMultistreamTargetRequest + GetMultistreamTargetRequest request = + GetMultistreamTargetRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetMultistreamTargetRequest.class, + GetMultistreamTargetRequest.class, _baseUrl, "/multistream/target/{id}", request, null); @@ -322,7 +368,10 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse g HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -330,18 +379,28 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse g if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -349,28 +408,28 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse g .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse + GetMultistreamTargetResponse.Builder _resBuilder = + GetMultistreamTargetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse _res = _resBuilder.build(); + GetMultistreamTargetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.MultistreamTarget _out = Utils.mapper().readValue( + MultistreamTarget _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withMultistreamTarget(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withMultistreamTarget(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -379,28 +438,28 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse g _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -409,8 +468,8 @@ public studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse g * Update Multistream Target * @return The call builder */ - public studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRequestBuilder update() { - return new studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRequestBuilder(this); + public UpdateMultistreamTargetRequestBuilder update() { + return new UpdateMultistreamTargetRequestBuilder(this); } /** @@ -420,11 +479,11 @@ public studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRequest * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse update( + public UpdateMultistreamTargetResponse update( String id, - studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload) throws Exception { - studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRequest request = - studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRequest + MultistreamTargetPatchPayload multistreamTargetPatchPayload) throws Exception { + UpdateMultistreamTargetRequest request = + UpdateMultistreamTargetRequest .builder() .id(id) .multistreamTargetPatchPayload(multistreamTargetPatchPayload) @@ -432,16 +491,21 @@ public studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRespons String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRequest.class, + UpdateMultistreamTargetRequest.class, _baseUrl, "/multistream/target/{id}", request, null); HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "multistreamTargetPatchPayload", "json", false); + _convertedRequest, + "multistreamTargetPatchPayload", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -457,7 +521,10 @@ public studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRespons HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("updateMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "updateMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -465,18 +532,28 @@ public studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRespons if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("updateMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "updateMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("updateMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "updateMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updateMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "updateMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -484,14 +561,14 @@ public studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRespons .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse + UpdateMultistreamTargetResponse.Builder _resBuilder = + UpdateMultistreamTargetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse _res = _resBuilder.build(); + UpdateMultistreamTargetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -503,28 +580,28 @@ public studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRespons _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -536,8 +613,8 @@ public studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetRespons * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRequestBuilder delete() { - return new studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRequestBuilder(this); + public DeleteMultistreamTargetRequestBuilder delete() { + return new DeleteMultistreamTargetRequestBuilder(this); } /** @@ -549,17 +626,17 @@ public studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRequest * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse delete( + public DeleteMultistreamTargetResponse delete( String id) throws Exception { - studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRequest request = - studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRequest + DeleteMultistreamTargetRequest request = + DeleteMultistreamTargetRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRequest.class, + DeleteMultistreamTargetRequest.class, _baseUrl, "/multistream/target/{id}", request, null); @@ -576,7 +653,10 @@ public studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRespons HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "deleteMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -584,18 +664,28 @@ public studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRespons if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "deleteMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "deleteMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "deleteMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -603,14 +693,14 @@ public studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRespons .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse + DeleteMultistreamTargetResponse.Builder _resBuilder = + DeleteMultistreamTargetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetResponse _res = _resBuilder.build(); + DeleteMultistreamTargetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -622,28 +712,28 @@ public studio.livepeer.livepeer.models.operations.DeleteMultistreamTargetRespons _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/Playback.java b/src/main/java/studio/livepeer/livepeer/Playback.java index 12281c2..e6f8a7e 100644 --- a/src/main/java/studio/livepeer/livepeer/Playback.java +++ b/src/main/java/studio/livepeer/livepeer/Playback.java @@ -1,29 +1,30 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.PlaybackInfo; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetPlaybackInfoRequest; +import studio.livepeer.livepeer.models.operations.GetPlaybackInfoRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to playback api @@ -42,8 +43,8 @@ public class Playback implements * Retrieve Playback Info * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetPlaybackInfoRequestBuilder get() { - return new studio.livepeer.livepeer.models.operations.GetPlaybackInfoRequestBuilder(this); + public GetPlaybackInfoRequestBuilder get() { + return new GetPlaybackInfoRequestBuilder(this); } /** @@ -52,17 +53,17 @@ public studio.livepeer.livepeer.models.operations.GetPlaybackInfoRequestBuilder * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse get( + public GetPlaybackInfoResponse get( String id) throws Exception { - studio.livepeer.livepeer.models.operations.GetPlaybackInfoRequest request = - studio.livepeer.livepeer.models.operations.GetPlaybackInfoRequest + GetPlaybackInfoRequest request = + GetPlaybackInfoRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetPlaybackInfoRequest.class, + GetPlaybackInfoRequest.class, _baseUrl, "/playback/{id}", request, null); @@ -79,7 +80,10 @@ public studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse get( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getPlaybackInfo", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getPlaybackInfo", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -87,18 +91,28 @@ public studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse get( if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getPlaybackInfo", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getPlaybackInfo", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getPlaybackInfo", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getPlaybackInfo", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getPlaybackInfo", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getPlaybackInfo", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -106,42 +120,42 @@ public studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse get( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse + GetPlaybackInfoResponse.Builder _resBuilder = + GetPlaybackInfoResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse _res = _resBuilder.build(); + GetPlaybackInfoResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.PlaybackInfo _out = Utils.mapper().readValue( + PlaybackInfo _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withPlaybackInfo(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withPlaybackInfo(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "404")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); + new TypeReference() {}); throw _out; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -150,13 +164,13 @@ public studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse get( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/Room.java b/src/main/java/studio/livepeer/livepeer/Room.java index ea94e63..42b6847 100644 --- a/src/main/java/studio/livepeer/livepeer/Room.java +++ b/src/main/java/studio/livepeer/livepeer/Room.java @@ -1,30 +1,60 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Deprecated; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.RoomEgressPayload; +import studio.livepeer.livepeer.models.components.RoomUserPayload; +import studio.livepeer.livepeer.models.components.RoomUserResponse; +import studio.livepeer.livepeer.models.components.RoomUserUpdatePayload; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateRoomRequestBuilder; +import studio.livepeer.livepeer.models.operations.CreateRoomResponse; +import studio.livepeer.livepeer.models.operations.CreateRoomUserRequest; +import studio.livepeer.livepeer.models.operations.CreateRoomUserRequestBuilder; +import studio.livepeer.livepeer.models.operations.CreateRoomUserResponse; +import studio.livepeer.livepeer.models.operations.DeleteRoomRequest; +import studio.livepeer.livepeer.models.operations.DeleteRoomRequestBuilder; +import studio.livepeer.livepeer.models.operations.DeleteRoomResponse; +import studio.livepeer.livepeer.models.operations.DeleteRoomUserRequest; +import studio.livepeer.livepeer.models.operations.DeleteRoomUserRequestBuilder; +import studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse; +import studio.livepeer.livepeer.models.operations.GetRoomRequest; +import studio.livepeer.livepeer.models.operations.GetRoomRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetRoomResponse; +import studio.livepeer.livepeer.models.operations.GetRoomUserRequest; +import studio.livepeer.livepeer.models.operations.GetRoomUserRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetRoomUserResponse; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; +import studio.livepeer.livepeer.models.operations.StartRoomEgressRequest; +import studio.livepeer.livepeer.models.operations.StartRoomEgressRequestBuilder; +import studio.livepeer.livepeer.models.operations.StartRoomEgressResponse; +import studio.livepeer.livepeer.models.operations.StopRoomEgressRequest; +import studio.livepeer.livepeer.models.operations.StopRoomEgressRequestBuilder; +import studio.livepeer.livepeer.models.operations.StopRoomEgressResponse; +import studio.livepeer.livepeer.models.operations.UpdateRoomUserRequest; +import studio.livepeer.livepeer.models.operations.UpdateRoomUserRequestBuilder; +import studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; import studio.livepeer.livepeer.utils.SerializedBody; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to rooms api @@ -55,8 +85,8 @@ public class Room implements * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.CreateRoomRequestBuilder create() { - return new studio.livepeer.livepeer.models.operations.CreateRoomRequestBuilder(this); + public CreateRoomRequestBuilder create() { + return new CreateRoomRequestBuilder(this); } /** @@ -68,7 +98,7 @@ public studio.livepeer.livepeer.models.operations.CreateRoomRequestBuilder creat * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.CreateRoomResponse createDirect() throws Exception { + public CreateRoomResponse createDirect() throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -86,7 +116,10 @@ public studio.livepeer.livepeer.models.operations.CreateRoomResponse createDirec HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createRoom", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "createRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -94,18 +127,28 @@ public studio.livepeer.livepeer.models.operations.CreateRoomResponse createDirec if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createRoom", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "createRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createRoom", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "createRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createRoom", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "createRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -113,28 +156,28 @@ public studio.livepeer.livepeer.models.operations.CreateRoomResponse createDirec .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.CreateRoomResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.CreateRoomResponse + CreateRoomResponse.Builder _resBuilder = + CreateRoomResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.CreateRoomResponse _res = _resBuilder.build(); + CreateRoomResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.CreateRoomResponse _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withCreateRoomResponse(java.util.Optional.ofNullable(_out)); + _res.withCreateRoomResponse(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -143,28 +186,28 @@ public studio.livepeer.livepeer.models.operations.CreateRoomResponse createDirec _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -175,8 +218,8 @@ public studio.livepeer.livepeer.models.operations.CreateRoomResponse createDirec * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.GetRoomRequestBuilder get() { - return new studio.livepeer.livepeer.models.operations.GetRoomRequestBuilder(this); + public GetRoomRequestBuilder get() { + return new GetRoomRequestBuilder(this); } /** @@ -187,17 +230,17 @@ public studio.livepeer.livepeer.models.operations.GetRoomRequestBuilder get() { * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.GetRoomResponse get( + public GetRoomResponse get( String id) throws Exception { - studio.livepeer.livepeer.models.operations.GetRoomRequest request = - studio.livepeer.livepeer.models.operations.GetRoomRequest + GetRoomRequest request = + GetRoomRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetRoomRequest.class, + GetRoomRequest.class, _baseUrl, "/room/{id}", request, null); @@ -214,7 +257,10 @@ public studio.livepeer.livepeer.models.operations.GetRoomResponse get( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getRoom", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -222,18 +268,28 @@ public studio.livepeer.livepeer.models.operations.GetRoomResponse get( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getRoom", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getRoom", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getRoom", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -241,28 +297,28 @@ public studio.livepeer.livepeer.models.operations.GetRoomResponse get( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetRoomResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetRoomResponse + GetRoomResponse.Builder _resBuilder = + GetRoomResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetRoomResponse _res = _resBuilder.build(); + GetRoomResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Room _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withRoom(java.util.Optional.ofNullable(_out)); + _res.withRoom(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -271,28 +327,28 @@ public studio.livepeer.livepeer.models.operations.GetRoomResponse get( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -303,8 +359,8 @@ public studio.livepeer.livepeer.models.operations.GetRoomResponse get( * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.DeleteRoomRequestBuilder delete() { - return new studio.livepeer.livepeer.models.operations.DeleteRoomRequestBuilder(this); + public DeleteRoomRequestBuilder delete() { + return new DeleteRoomRequestBuilder(this); } /** @@ -315,17 +371,17 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomRequestBuilder delet * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.DeleteRoomResponse delete( + public DeleteRoomResponse delete( String id) throws Exception { - studio.livepeer.livepeer.models.operations.DeleteRoomRequest request = - studio.livepeer.livepeer.models.operations.DeleteRoomRequest + DeleteRoomRequest request = + DeleteRoomRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.DeleteRoomRequest.class, + DeleteRoomRequest.class, _baseUrl, "/room/{id}", request, null); @@ -342,7 +398,10 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomResponse delete( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteRoom", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "deleteRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -350,18 +409,28 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomResponse delete( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteRoom", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "deleteRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteRoom", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "deleteRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteRoom", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "deleteRoom", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -369,14 +438,14 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomResponse delete( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.DeleteRoomResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.DeleteRoomResponse + DeleteRoomResponse.Builder _resBuilder = + DeleteRoomResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.DeleteRoomResponse _res = _resBuilder.build(); + DeleteRoomResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -388,28 +457,28 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomResponse delete( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -423,8 +492,8 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomResponse delete( * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.StartRoomEgressRequestBuilder startEgress() { - return new studio.livepeer.livepeer.models.operations.StartRoomEgressRequestBuilder(this); + public StartRoomEgressRequestBuilder startEgress() { + return new StartRoomEgressRequestBuilder(this); } /** @@ -439,11 +508,11 @@ public studio.livepeer.livepeer.models.operations.StartRoomEgressRequestBuilder * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.StartRoomEgressResponse startEgress( + public StartRoomEgressResponse startEgress( String id, - studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload) throws Exception { - studio.livepeer.livepeer.models.operations.StartRoomEgressRequest request = - studio.livepeer.livepeer.models.operations.StartRoomEgressRequest + RoomEgressPayload roomEgressPayload) throws Exception { + StartRoomEgressRequest request = + StartRoomEgressRequest .builder() .id(id) .roomEgressPayload(roomEgressPayload) @@ -451,16 +520,21 @@ public studio.livepeer.livepeer.models.operations.StartRoomEgressResponse startE String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.StartRoomEgressRequest.class, + StartRoomEgressRequest.class, _baseUrl, "/room/{id}/egress", request, null); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "roomEgressPayload", "json", false); + _convertedRequest, + "roomEgressPayload", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -476,7 +550,10 @@ public studio.livepeer.livepeer.models.operations.StartRoomEgressResponse startE HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("startRoomEgress", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "startRoomEgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -484,18 +561,28 @@ public studio.livepeer.livepeer.models.operations.StartRoomEgressResponse startE if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("startRoomEgress", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "startRoomEgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("startRoomEgress", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "startRoomEgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("startRoomEgress", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "startRoomEgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -503,14 +590,14 @@ public studio.livepeer.livepeer.models.operations.StartRoomEgressResponse startE .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.StartRoomEgressResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.StartRoomEgressResponse + StartRoomEgressResponse.Builder _resBuilder = + StartRoomEgressResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.StartRoomEgressResponse _res = _resBuilder.build(); + StartRoomEgressResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -522,28 +609,28 @@ public studio.livepeer.livepeer.models.operations.StartRoomEgressResponse startE _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -554,8 +641,8 @@ public studio.livepeer.livepeer.models.operations.StartRoomEgressResponse startE * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.StopRoomEgressRequestBuilder stopEgress() { - return new studio.livepeer.livepeer.models.operations.StopRoomEgressRequestBuilder(this); + public StopRoomEgressRequestBuilder stopEgress() { + return new StopRoomEgressRequestBuilder(this); } /** @@ -566,17 +653,17 @@ public studio.livepeer.livepeer.models.operations.StopRoomEgressRequestBuilder s * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.StopRoomEgressResponse stopEgress( + public StopRoomEgressResponse stopEgress( String id) throws Exception { - studio.livepeer.livepeer.models.operations.StopRoomEgressRequest request = - studio.livepeer.livepeer.models.operations.StopRoomEgressRequest + StopRoomEgressRequest request = + StopRoomEgressRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.StopRoomEgressRequest.class, + StopRoomEgressRequest.class, _baseUrl, "/room/{id}/egress", request, null); @@ -593,7 +680,10 @@ public studio.livepeer.livepeer.models.operations.StopRoomEgressResponse stopEgr HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("stopRoomEgress", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "stopRoomEgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -601,18 +691,28 @@ public studio.livepeer.livepeer.models.operations.StopRoomEgressResponse stopEgr if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("stopRoomEgress", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "stopRoomEgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("stopRoomEgress", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "stopRoomEgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("stopRoomEgress", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "stopRoomEgress", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -620,14 +720,14 @@ public studio.livepeer.livepeer.models.operations.StopRoomEgressResponse stopEgr .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.StopRoomEgressResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.StopRoomEgressResponse + StopRoomEgressResponse.Builder _resBuilder = + StopRoomEgressResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.StopRoomEgressResponse _res = _resBuilder.build(); + StopRoomEgressResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -639,28 +739,28 @@ public studio.livepeer.livepeer.models.operations.StopRoomEgressResponse stopEgr _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -675,8 +775,8 @@ public studio.livepeer.livepeer.models.operations.StopRoomEgressResponse stopEgr * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.CreateRoomUserRequestBuilder createUser() { - return new studio.livepeer.livepeer.models.operations.CreateRoomUserRequestBuilder(this); + public CreateRoomUserRequestBuilder createUser() { + return new CreateRoomUserRequestBuilder(this); } /** @@ -692,11 +792,11 @@ public studio.livepeer.livepeer.models.operations.CreateRoomUserRequestBuilder c * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.CreateRoomUserResponse createUser( + public CreateRoomUserResponse createUser( String id, - studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload) throws Exception { - studio.livepeer.livepeer.models.operations.CreateRoomUserRequest request = - studio.livepeer.livepeer.models.operations.CreateRoomUserRequest + RoomUserPayload roomUserPayload) throws Exception { + CreateRoomUserRequest request = + CreateRoomUserRequest .builder() .id(id) .roomUserPayload(roomUserPayload) @@ -704,16 +804,21 @@ public studio.livepeer.livepeer.models.operations.CreateRoomUserResponse createU String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.CreateRoomUserRequest.class, + CreateRoomUserRequest.class, _baseUrl, "/room/{id}/user", request, null); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "roomUserPayload", "json", false); + _convertedRequest, + "roomUserPayload", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -729,7 +834,10 @@ public studio.livepeer.livepeer.models.operations.CreateRoomUserResponse createU HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "createRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -737,18 +845,28 @@ public studio.livepeer.livepeer.models.operations.CreateRoomUserResponse createU if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "createRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "createRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "createRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -756,28 +874,28 @@ public studio.livepeer.livepeer.models.operations.CreateRoomUserResponse createU .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.CreateRoomUserResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.CreateRoomUserResponse + CreateRoomUserResponse.Builder _resBuilder = + CreateRoomUserResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.CreateRoomUserResponse _res = _resBuilder.build(); + CreateRoomUserResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.RoomUserResponse _out = Utils.mapper().readValue( + RoomUserResponse _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withRoomUserResponse(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withRoomUserResponse(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -786,28 +904,28 @@ public studio.livepeer.livepeer.models.operations.CreateRoomUserResponse createU _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -818,8 +936,8 @@ public studio.livepeer.livepeer.models.operations.CreateRoomUserResponse createU * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.GetRoomUserRequestBuilder getUser() { - return new studio.livepeer.livepeer.models.operations.GetRoomUserRequestBuilder(this); + public GetRoomUserRequestBuilder getUser() { + return new GetRoomUserRequestBuilder(this); } /** @@ -831,11 +949,11 @@ public studio.livepeer.livepeer.models.operations.GetRoomUserRequestBuilder getU * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.GetRoomUserResponse getUser( + public GetRoomUserResponse getUser( String id, String userId) throws Exception { - studio.livepeer.livepeer.models.operations.GetRoomUserRequest request = - studio.livepeer.livepeer.models.operations.GetRoomUserRequest + GetRoomUserRequest request = + GetRoomUserRequest .builder() .id(id) .userId(userId) @@ -843,7 +961,7 @@ public studio.livepeer.livepeer.models.operations.GetRoomUserResponse getUser( String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetRoomUserRequest.class, + GetRoomUserRequest.class, _baseUrl, "/room/{id}/user/{userId}", request, null); @@ -860,7 +978,10 @@ public studio.livepeer.livepeer.models.operations.GetRoomUserResponse getUser( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -868,18 +989,28 @@ public studio.livepeer.livepeer.models.operations.GetRoomUserResponse getUser( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -887,28 +1018,28 @@ public studio.livepeer.livepeer.models.operations.GetRoomUserResponse getUser( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetRoomUserResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetRoomUserResponse + GetRoomUserResponse.Builder _resBuilder = + GetRoomUserResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetRoomUserResponse _res = _resBuilder.build(); + GetRoomUserResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.GetRoomUserResponse _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withGetRoomUserResponse(java.util.Optional.ofNullable(_out)); + _res.withGetRoomUserResponse(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -917,28 +1048,28 @@ public studio.livepeer.livepeer.models.operations.GetRoomUserResponse getUser( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -950,8 +1081,8 @@ public studio.livepeer.livepeer.models.operations.GetRoomUserResponse getUser( * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.UpdateRoomUserRequestBuilder updateUser() { - return new studio.livepeer.livepeer.models.operations.UpdateRoomUserRequestBuilder(this); + public UpdateRoomUserRequestBuilder updateUser() { + return new UpdateRoomUserRequestBuilder(this); } /** @@ -965,12 +1096,12 @@ public studio.livepeer.livepeer.models.operations.UpdateRoomUserRequestBuilder u * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateUser( + public UpdateRoomUserResponse updateUser( String id, String userId, - studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload) throws Exception { - studio.livepeer.livepeer.models.operations.UpdateRoomUserRequest request = - studio.livepeer.livepeer.models.operations.UpdateRoomUserRequest + RoomUserUpdatePayload roomUserUpdatePayload) throws Exception { + UpdateRoomUserRequest request = + UpdateRoomUserRequest .builder() .id(id) .userId(userId) @@ -979,16 +1110,21 @@ public studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateU String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.UpdateRoomUserRequest.class, + UpdateRoomUserRequest.class, _baseUrl, "/room/{id}/user/{userId}", request, null); HTTPRequest _req = new HTTPRequest(_url, "PUT"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "roomUserUpdatePayload", "json", false); + _convertedRequest, + "roomUserUpdatePayload", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -1004,7 +1140,10 @@ public studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateU HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("updateRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "updateRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1012,18 +1151,28 @@ public studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateU if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("updateRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "updateRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("updateRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "updateRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updateRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "updateRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1031,14 +1180,14 @@ public studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateU .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse + UpdateRoomUserResponse.Builder _resBuilder = + UpdateRoomUserResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse _res = _resBuilder.build(); + UpdateRoomUserResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -1050,28 +1199,28 @@ public studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateU _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -1082,8 +1231,8 @@ public studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateU * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.DeleteRoomUserRequestBuilder deleteUser() { - return new studio.livepeer.livepeer.models.operations.DeleteRoomUserRequestBuilder(this); + public DeleteRoomUserRequestBuilder deleteUser() { + return new DeleteRoomUserRequestBuilder(this); } /** @@ -1095,11 +1244,11 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomUserRequestBuilder d * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse deleteUser( + public DeleteRoomUserResponse deleteUser( String id, String userId) throws Exception { - studio.livepeer.livepeer.models.operations.DeleteRoomUserRequest request = - studio.livepeer.livepeer.models.operations.DeleteRoomUserRequest + DeleteRoomUserRequest request = + DeleteRoomUserRequest .builder() .id(id) .userId(userId) @@ -1107,7 +1256,7 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse deleteU String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.DeleteRoomUserRequest.class, + DeleteRoomUserRequest.class, _baseUrl, "/room/{id}/user/{userId}", request, null); @@ -1124,7 +1273,10 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse deleteU HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "deleteRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1132,18 +1284,28 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse deleteU if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "deleteRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "deleteRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteRoomUser", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "deleteRoomUser", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1151,14 +1313,14 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse deleteU .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse + DeleteRoomUserResponse.Builder _resBuilder = + DeleteRoomUserResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse _res = _resBuilder.build(); + DeleteRoomUserResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -1170,28 +1332,28 @@ public studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse deleteU _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/SDKConfiguration.java b/src/main/java/studio/livepeer/livepeer/SDKConfiguration.java index 9256119..ff21a6d 100644 --- a/src/main/java/studio/livepeer/livepeer/SDKConfiguration.java +++ b/src/main/java/studio/livepeer/livepeer/SDKConfiguration.java @@ -1,14 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; -import studio.livepeer.livepeer.utils.Hook.SdkInitData; +import java.lang.String; +import java.util.Optional; +import studio.livepeer.livepeer.hooks.SDKHooks; import studio.livepeer.livepeer.utils.HTTPClient; +import studio.livepeer.livepeer.utils.Hook.SdkInitData; +import studio.livepeer.livepeer.utils.Hooks; import studio.livepeer.livepeer.utils.RetryConfig; -import studio.livepeer.livepeer.models.components.Security; -import java.util.Optional; class SDKConfiguration { public SecuritySource securitySource; @@ -17,26 +19,26 @@ public Optional securitySource() { return Optional.ofNullable(securitySource); } public HTTPClient defaultClient; - public String serverUrl; + public String serverUrl; public int serverIdx = 0; public String language = "java"; public String openapiDocVersion = "1.0.0"; - public String sdkVersion = "0.3.0"; - public String genVersion = "2.342.6"; - public String userAgent = "speakeasy-sdk/java 0.3.0 2.342.6 1.0.0 studio.livepeer.livepeer"; + public String sdkVersion = "0.4.0"; + public String genVersion = "2.396.0"; + public String userAgent = "speakeasy-sdk/java 0.4.0 2.396.0 1.0.0 studio.livepeer.livepeer"; - private studio.livepeer.livepeer.utils.Hooks _hooks = createHooks(); + private Hooks _hooks = createHooks(); - private static studio.livepeer.livepeer.utils.Hooks createHooks() { - studio.livepeer.livepeer.utils.Hooks hooks = new studio.livepeer.livepeer.utils.Hooks(); + private static Hooks createHooks() { + Hooks hooks = new Hooks(); return hooks; } - public studio.livepeer.livepeer.utils.Hooks hooks() { + public Hooks hooks() { return _hooks; } - public void setHooks(studio.livepeer.livepeer.utils.Hooks hooks) { + public void setHooks(Hooks hooks) { this._hooks = hooks; } @@ -44,7 +46,7 @@ public void setHooks(studio.livepeer.livepeer.utils.Hooks hooks) { * Initializes state (for example hooks). **/ public void initialize() { - studio.livepeer.livepeer.hooks.SDKHooks.initialize(_hooks); + SDKHooks.initialize(_hooks); // apply the sdk init hook immediately SdkInitData data = _hooks.sdkInit(new SdkInitData(serverUrl, defaultClient)); this.serverUrl = data.baseUrl(); diff --git a/src/main/java/studio/livepeer/livepeer/SecuritySource.java b/src/main/java/studio/livepeer/livepeer/SecuritySource.java index ee6eba6..a8176b5 100644 --- a/src/main/java/studio/livepeer/livepeer/SecuritySource.java +++ b/src/main/java/studio/livepeer/livepeer/SecuritySource.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; diff --git a/src/main/java/studio/livepeer/livepeer/Session.java b/src/main/java/studio/livepeer/livepeer/Session.java index bc5121a..04836d1 100644 --- a/src/main/java/studio/livepeer/livepeer/Session.java +++ b/src/main/java/studio/livepeer/livepeer/Session.java @@ -1,30 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.Asset; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequest; +import studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse; +import studio.livepeer.livepeer.models.operations.GetSessionClipsRequest; +import studio.livepeer.livepeer.models.operations.GetSessionClipsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetSessionClipsResponse; +import studio.livepeer.livepeer.models.operations.GetSessionRequest; +import studio.livepeer.livepeer.models.operations.GetSessionRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetSessionResponse; +import studio.livepeer.livepeer.models.operations.GetSessionsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetSessionsResponse; +import studio.livepeer.livepeer.models.operations.Record; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to session api @@ -46,8 +55,8 @@ public class Session implements * Retrieve clips of a session * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetSessionClipsRequestBuilder getClips() { - return new studio.livepeer.livepeer.models.operations.GetSessionClipsRequestBuilder(this); + public GetSessionClipsRequestBuilder getClips() { + return new GetSessionClipsRequestBuilder(this); } /** @@ -56,17 +65,17 @@ public studio.livepeer.livepeer.models.operations.GetSessionClipsRequestBuilder * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetSessionClipsResponse getClips( + public GetSessionClipsResponse getClips( String id) throws Exception { - studio.livepeer.livepeer.models.operations.GetSessionClipsRequest request = - studio.livepeer.livepeer.models.operations.GetSessionClipsRequest + GetSessionClipsRequest request = + GetSessionClipsRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetSessionClipsRequest.class, + GetSessionClipsRequest.class, _baseUrl, "/session/{id}/clips", request, null); @@ -83,7 +92,10 @@ public studio.livepeer.livepeer.models.operations.GetSessionClipsResponse getCli HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getSessionClips", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getSessionClips", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -91,18 +103,28 @@ public studio.livepeer.livepeer.models.operations.GetSessionClipsResponse getCli if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getSessionClips", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getSessionClips", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getSessionClips", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getSessionClips", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSessionClips", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getSessionClips", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -110,28 +132,28 @@ public studio.livepeer.livepeer.models.operations.GetSessionClipsResponse getCli .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetSessionClipsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetSessionClipsResponse + GetSessionClipsResponse.Builder _resBuilder = + GetSessionClipsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetSessionClipsResponse _res = _resBuilder.build(); + GetSessionClipsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -140,28 +162,28 @@ public studio.livepeer.livepeer.models.operations.GetSessionClipsResponse getCli _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -170,8 +192,8 @@ public studio.livepeer.livepeer.models.operations.GetSessionClipsResponse getCli * Retrieve sessions * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetSessionsRequestBuilder getAll() { - return new studio.livepeer.livepeer.models.operations.GetSessionsRequestBuilder(this); + public GetSessionsRequestBuilder getAll() { + return new GetSessionsRequestBuilder(this); } /** @@ -179,7 +201,7 @@ public studio.livepeer.livepeer.models.operations.GetSessionsRequestBuilder getA * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetSessionsResponse getAllDirect() throws Exception { + public GetSessionsResponse getAllDirect() throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -197,7 +219,10 @@ public studio.livepeer.livepeer.models.operations.GetSessionsResponse getAllDire HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getSessions", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -205,18 +230,28 @@ public studio.livepeer.livepeer.models.operations.GetSessionsResponse getAllDire if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getSessions", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getSessions", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSessions", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -224,28 +259,28 @@ public studio.livepeer.livepeer.models.operations.GetSessionsResponse getAllDire .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetSessionsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetSessionsResponse + GetSessionsResponse.Builder _resBuilder = + GetSessionsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetSessionsResponse _res = _resBuilder.build(); + GetSessionsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -254,28 +289,28 @@ public studio.livepeer.livepeer.models.operations.GetSessionsResponse getAllDire _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -284,8 +319,8 @@ public studio.livepeer.livepeer.models.operations.GetSessionsResponse getAllDire * Retrieve a session * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetSessionRequestBuilder get() { - return new studio.livepeer.livepeer.models.operations.GetSessionRequestBuilder(this); + public GetSessionRequestBuilder get() { + return new GetSessionRequestBuilder(this); } /** @@ -294,17 +329,17 @@ public studio.livepeer.livepeer.models.operations.GetSessionRequestBuilder get() * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetSessionResponse get( + public GetSessionResponse get( String id) throws Exception { - studio.livepeer.livepeer.models.operations.GetSessionRequest request = - studio.livepeer.livepeer.models.operations.GetSessionRequest + GetSessionRequest request = + GetSessionRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetSessionRequest.class, + GetSessionRequest.class, _baseUrl, "/session/{id}", request, null); @@ -321,7 +356,10 @@ public studio.livepeer.livepeer.models.operations.GetSessionResponse get( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getSession", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getSession", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -329,18 +367,28 @@ public studio.livepeer.livepeer.models.operations.GetSessionResponse get( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getSession", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getSession", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getSession", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getSession", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getSession", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getSession", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -348,28 +396,28 @@ public studio.livepeer.livepeer.models.operations.GetSessionResponse get( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetSessionResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetSessionResponse + GetSessionResponse.Builder _resBuilder = + GetSessionResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetSessionResponse _res = _resBuilder.build(); + GetSessionResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Session _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withSession(java.util.Optional.ofNullable(_out)); + _res.withSession(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -378,28 +426,28 @@ public studio.livepeer.livepeer.models.operations.GetSessionResponse get( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -408,8 +456,8 @@ public studio.livepeer.livepeer.models.operations.GetSessionResponse get( * Retrieve Recorded Sessions * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequestBuilder getRecorded() { - return new studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequestBuilder(this); + public GetRecordedSessionsRequestBuilder getRecorded() { + return new GetRecordedSessionsRequestBuilder(this); } /** @@ -418,10 +466,11 @@ public studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequestBuil * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse getRecorded( + public GetRecordedSessionsResponse getRecorded( String parentId) throws Exception { return getRecorded(parentId, Optional.empty()); } + /** * Retrieve Recorded Sessions * @param parentId ID of the parent stream @@ -431,11 +480,11 @@ public studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse ge * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse getRecorded( + public GetRecordedSessionsResponse getRecorded( String parentId, - Optional record) throws Exception { - studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequest request = - studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequest + Optional record) throws Exception { + GetRecordedSessionsRequest request = + GetRecordedSessionsRequest .builder() .parentId(parentId) .record(record) @@ -443,7 +492,7 @@ public studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse ge String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequest.class, + GetRecordedSessionsRequest.class, _baseUrl, "/stream/{parentId}/sessions", request, null); @@ -454,7 +503,7 @@ public studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse ge this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - studio.livepeer.livepeer.models.operations.GetRecordedSessionsRequest.class, + GetRecordedSessionsRequest.class, request, null)); @@ -465,7 +514,10 @@ public studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse ge HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getRecordedSessions", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getRecordedSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -473,18 +525,28 @@ public studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse ge if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getRecordedSessions", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getRecordedSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getRecordedSessions", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getRecordedSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getRecordedSessions", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getRecordedSessions", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -492,28 +554,28 @@ public studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse ge .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse + GetRecordedSessionsResponse.Builder _resBuilder = + GetRecordedSessionsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse _res = _resBuilder.build(); + GetRecordedSessionsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -522,28 +584,28 @@ public studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse ge _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/Stream.java b/src/main/java/studio/livepeer/livepeer/Stream.java index b29d175..ef77c0f 100644 --- a/src/main/java/studio/livepeer/livepeer/Stream.java +++ b/src/main/java/studio/livepeer/livepeer/Stream.java @@ -1,31 +1,66 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.apache.http.NameValuePair; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.Asset; +import studio.livepeer.livepeer.models.components.ClipPayload; +import studio.livepeer.livepeer.models.components.NewStreamPayload; +import studio.livepeer.livepeer.models.components.StreamPatchPayload; +import studio.livepeer.livepeer.models.components.TargetAddPayload; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequest; +import studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequestBuilder; +import studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse; +import studio.livepeer.livepeer.models.operations.CreateClipData; +import studio.livepeer.livepeer.models.operations.CreateClipRequestBuilder; +import studio.livepeer.livepeer.models.operations.CreateClipResponse; +import studio.livepeer.livepeer.models.operations.CreateStreamRequestBuilder; +import studio.livepeer.livepeer.models.operations.CreateStreamResponse; +import studio.livepeer.livepeer.models.operations.DeleteStreamRequest; +import studio.livepeer.livepeer.models.operations.DeleteStreamRequestBuilder; +import studio.livepeer.livepeer.models.operations.DeleteStreamResponse; +import studio.livepeer.livepeer.models.operations.GetClipsRequest; +import studio.livepeer.livepeer.models.operations.GetClipsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetClipsResponse; +import studio.livepeer.livepeer.models.operations.GetStreamRequest; +import studio.livepeer.livepeer.models.operations.GetStreamRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetStreamResponse; +import studio.livepeer.livepeer.models.operations.GetStreamsRequest; +import studio.livepeer.livepeer.models.operations.GetStreamsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetStreamsResponse; +import studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRequest; +import studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRequestBuilder; +import studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; +import studio.livepeer.livepeer.models.operations.StartPullStreamRequest; +import studio.livepeer.livepeer.models.operations.StartPullStreamRequestBuilder; +import studio.livepeer.livepeer.models.operations.StartPullStreamResponse; +import studio.livepeer.livepeer.models.operations.TerminateStreamRequest; +import studio.livepeer.livepeer.models.operations.TerminateStreamRequestBuilder; +import studio.livepeer.livepeer.models.operations.TerminateStreamResponse; +import studio.livepeer.livepeer.models.operations.UpdateStreamRequest; +import studio.livepeer.livepeer.models.operations.UpdateStreamRequestBuilder; +import studio.livepeer.livepeer.models.operations.UpdateStreamResponse; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; import studio.livepeer.livepeer.utils.SerializedBody; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to livestream api @@ -68,8 +103,8 @@ public class Stream implements * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.CreateStreamRequestBuilder create() { - return new studio.livepeer.livepeer.models.operations.CreateStreamRequestBuilder(this); + public CreateStreamRequestBuilder create() { + return new CreateStreamRequestBuilder(this); } /** @@ -92,18 +127,23 @@ public studio.livepeer.livepeer.models.operations.CreateStreamRequestBuilder cre * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.CreateStreamResponse create( - studio.livepeer.livepeer.models.components.NewStreamPayload request) throws Exception { + public CreateStreamResponse create( + NewStreamPayload request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, "/stream"); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "request", "json", false); + _convertedRequest, + "request", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -119,7 +159,10 @@ public studio.livepeer.livepeer.models.operations.CreateStreamResponse create( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createStream", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "createStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -127,18 +170,28 @@ public studio.livepeer.livepeer.models.operations.CreateStreamResponse create( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "createStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "createStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createStream", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "createStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -146,28 +199,28 @@ public studio.livepeer.livepeer.models.operations.CreateStreamResponse create( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.CreateStreamResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.CreateStreamResponse + CreateStreamResponse.Builder _resBuilder = + CreateStreamResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.CreateStreamResponse _res = _resBuilder.build(); + CreateStreamResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Stream _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withStream(java.util.Optional.ofNullable(_out)); + _res.withStream(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -176,28 +229,28 @@ public studio.livepeer.livepeer.models.operations.CreateStreamResponse create( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -206,8 +259,8 @@ public studio.livepeer.livepeer.models.operations.CreateStreamResponse create( * Retrieve streams * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetStreamsRequestBuilder getAll() { - return new studio.livepeer.livepeer.models.operations.GetStreamsRequestBuilder(this); + public GetStreamsRequestBuilder getAll() { + return new GetStreamsRequestBuilder(this); } /** @@ -215,19 +268,20 @@ public studio.livepeer.livepeer.models.operations.GetStreamsRequestBuilder getAl * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetStreamsResponse getAllDirect() throws Exception { + public GetStreamsResponse getAllDirect() throws Exception { return getAll(Optional.empty()); } + /** * Retrieve streams * @param streamsonly * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetStreamsResponse getAll( - Optional streamsonly) throws Exception { - studio.livepeer.livepeer.models.operations.GetStreamsRequest request = - studio.livepeer.livepeer.models.operations.GetStreamsRequest + public GetStreamsResponse getAll( + Optional streamsonly) throws Exception { + GetStreamsRequest request = + GetStreamsRequest .builder() .streamsonly(streamsonly) .build(); @@ -243,7 +297,7 @@ public studio.livepeer.livepeer.models.operations.GetStreamsResponse getAll( this.sdkConfiguration.userAgent); _req.addQueryParams(Utils.getQueryParams( - studio.livepeer.livepeer.models.operations.GetStreamsRequest.class, + GetStreamsRequest.class, request, null)); @@ -254,7 +308,10 @@ public studio.livepeer.livepeer.models.operations.GetStreamsResponse getAll( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getStreams", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getStreams", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -262,18 +319,28 @@ public studio.livepeer.livepeer.models.operations.GetStreamsResponse getAll( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getStreams", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getStreams", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getStreams", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getStreams", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getStreams", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getStreams", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -281,28 +348,28 @@ public studio.livepeer.livepeer.models.operations.GetStreamsResponse getAll( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetStreamsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetStreamsResponse + GetStreamsResponse.Builder _resBuilder = + GetStreamsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetStreamsResponse _res = _resBuilder.build(); + GetStreamsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -311,28 +378,28 @@ public studio.livepeer.livepeer.models.operations.GetStreamsResponse getAll( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -341,8 +408,8 @@ public studio.livepeer.livepeer.models.operations.GetStreamsResponse getAll( * Retrieve a stream * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetStreamRequestBuilder get() { - return new studio.livepeer.livepeer.models.operations.GetStreamRequestBuilder(this); + public GetStreamRequestBuilder get() { + return new GetStreamRequestBuilder(this); } /** @@ -351,17 +418,17 @@ public studio.livepeer.livepeer.models.operations.GetStreamRequestBuilder get() * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetStreamResponse get( + public GetStreamResponse get( String id) throws Exception { - studio.livepeer.livepeer.models.operations.GetStreamRequest request = - studio.livepeer.livepeer.models.operations.GetStreamRequest + GetStreamRequest request = + GetStreamRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetStreamRequest.class, + GetStreamRequest.class, _baseUrl, "/stream/{id}", request, null); @@ -378,7 +445,10 @@ public studio.livepeer.livepeer.models.operations.GetStreamResponse get( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getStream", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -386,18 +456,28 @@ public studio.livepeer.livepeer.models.operations.GetStreamResponse get( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getStream", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -405,28 +485,28 @@ public studio.livepeer.livepeer.models.operations.GetStreamResponse get( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetStreamResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetStreamResponse + GetStreamResponse.Builder _resBuilder = + GetStreamResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetStreamResponse _res = _resBuilder.build(); + GetStreamResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Stream _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withStream(java.util.Optional.ofNullable(_out)); + _res.withStream(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -435,28 +515,28 @@ public studio.livepeer.livepeer.models.operations.GetStreamResponse get( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -465,8 +545,8 @@ public studio.livepeer.livepeer.models.operations.GetStreamResponse get( * Update a stream * @return The call builder */ - public studio.livepeer.livepeer.models.operations.UpdateStreamRequestBuilder update() { - return new studio.livepeer.livepeer.models.operations.UpdateStreamRequestBuilder(this); + public UpdateStreamRequestBuilder update() { + return new UpdateStreamRequestBuilder(this); } /** @@ -476,11 +556,11 @@ public studio.livepeer.livepeer.models.operations.UpdateStreamRequestBuilder upd * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.UpdateStreamResponse update( + public UpdateStreamResponse update( String id, - studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload) throws Exception { - studio.livepeer.livepeer.models.operations.UpdateStreamRequest request = - studio.livepeer.livepeer.models.operations.UpdateStreamRequest + StreamPatchPayload streamPatchPayload) throws Exception { + UpdateStreamRequest request = + UpdateStreamRequest .builder() .id(id) .streamPatchPayload(streamPatchPayload) @@ -488,16 +568,21 @@ public studio.livepeer.livepeer.models.operations.UpdateStreamResponse update( String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.UpdateStreamRequest.class, + UpdateStreamRequest.class, _baseUrl, "/stream/{id}", request, null); HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "streamPatchPayload", "json", false); + _convertedRequest, + "streamPatchPayload", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -513,7 +598,10 @@ public studio.livepeer.livepeer.models.operations.UpdateStreamResponse update( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("updateStream", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "updateStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -521,18 +609,28 @@ public studio.livepeer.livepeer.models.operations.UpdateStreamResponse update( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("updateStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "updateStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("updateStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "updateStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updateStream", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "updateStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -540,14 +638,14 @@ public studio.livepeer.livepeer.models.operations.UpdateStreamResponse update( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.UpdateStreamResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.UpdateStreamResponse + UpdateStreamResponse.Builder _resBuilder = + UpdateStreamResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.UpdateStreamResponse _res = _resBuilder.build(); + UpdateStreamResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -559,28 +657,28 @@ public studio.livepeer.livepeer.models.operations.UpdateStreamResponse update( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -594,8 +692,8 @@ public studio.livepeer.livepeer.models.operations.UpdateStreamResponse update( * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.DeleteStreamRequestBuilder delete() { - return new studio.livepeer.livepeer.models.operations.DeleteStreamRequestBuilder(this); + public DeleteStreamRequestBuilder delete() { + return new DeleteStreamRequestBuilder(this); } /** @@ -609,17 +707,17 @@ public studio.livepeer.livepeer.models.operations.DeleteStreamRequestBuilder del * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.DeleteStreamResponse delete( + public DeleteStreamResponse delete( String id) throws Exception { - studio.livepeer.livepeer.models.operations.DeleteStreamRequest request = - studio.livepeer.livepeer.models.operations.DeleteStreamRequest + DeleteStreamRequest request = + DeleteStreamRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.DeleteStreamRequest.class, + DeleteStreamRequest.class, _baseUrl, "/stream/{id}", request, null); @@ -636,7 +734,10 @@ public studio.livepeer.livepeer.models.operations.DeleteStreamResponse delete( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteStream", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "deleteStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -644,18 +745,28 @@ public studio.livepeer.livepeer.models.operations.DeleteStreamResponse delete( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "deleteStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "deleteStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteStream", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "deleteStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -663,14 +774,14 @@ public studio.livepeer.livepeer.models.operations.DeleteStreamResponse delete( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.DeleteStreamResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.DeleteStreamResponse + DeleteStreamResponse.Builder _resBuilder = + DeleteStreamResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.DeleteStreamResponse _res = _resBuilder.build(); + DeleteStreamResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -682,28 +793,28 @@ public studio.livepeer.livepeer.models.operations.DeleteStreamResponse delete( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -721,8 +832,8 @@ public studio.livepeer.livepeer.models.operations.DeleteStreamResponse delete( * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.TerminateStreamRequestBuilder terminate() { - return new studio.livepeer.livepeer.models.operations.TerminateStreamRequestBuilder(this); + public TerminateStreamRequestBuilder terminate() { + return new TerminateStreamRequestBuilder(this); } /** @@ -740,17 +851,17 @@ public studio.livepeer.livepeer.models.operations.TerminateStreamRequestBuilder * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.TerminateStreamResponse terminate( + public TerminateStreamResponse terminate( String id) throws Exception { - studio.livepeer.livepeer.models.operations.TerminateStreamRequest request = - studio.livepeer.livepeer.models.operations.TerminateStreamRequest + TerminateStreamRequest request = + TerminateStreamRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.TerminateStreamRequest.class, + TerminateStreamRequest.class, _baseUrl, "/stream/{id}/terminate", request, null); @@ -767,7 +878,10 @@ public studio.livepeer.livepeer.models.operations.TerminateStreamResponse termin HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("terminateStream", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "terminateStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -775,18 +889,28 @@ public studio.livepeer.livepeer.models.operations.TerminateStreamResponse termin if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("terminateStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "terminateStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("terminateStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "terminateStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("terminateStream", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "terminateStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -794,14 +918,14 @@ public studio.livepeer.livepeer.models.operations.TerminateStreamResponse termin .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.TerminateStreamResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.TerminateStreamResponse + TerminateStreamResponse.Builder _resBuilder = + TerminateStreamResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.TerminateStreamResponse _res = _resBuilder.build(); + TerminateStreamResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -813,28 +937,28 @@ public studio.livepeer.livepeer.models.operations.TerminateStreamResponse termin _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -851,8 +975,8 @@ public studio.livepeer.livepeer.models.operations.TerminateStreamResponse termin * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.StartPullStreamRequestBuilder startPull() { - return new studio.livepeer.livepeer.models.operations.StartPullStreamRequestBuilder(this); + public StartPullStreamRequestBuilder startPull() { + return new StartPullStreamRequestBuilder(this); } /** @@ -869,17 +993,17 @@ public studio.livepeer.livepeer.models.operations.StartPullStreamRequestBuilder * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.StartPullStreamResponse startPull( + public StartPullStreamResponse startPull( String id) throws Exception { - studio.livepeer.livepeer.models.operations.StartPullStreamRequest request = - studio.livepeer.livepeer.models.operations.StartPullStreamRequest + StartPullStreamRequest request = + StartPullStreamRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.StartPullStreamRequest.class, + StartPullStreamRequest.class, _baseUrl, "/stream/{id}/start-pull", request, null); @@ -896,7 +1020,10 @@ public studio.livepeer.livepeer.models.operations.StartPullStreamResponse startP HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("startPullStream", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "startPullStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -904,18 +1031,28 @@ public studio.livepeer.livepeer.models.operations.StartPullStreamResponse startP if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("startPullStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "startPullStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("startPullStream", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "startPullStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("startPullStream", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "startPullStream", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -923,14 +1060,14 @@ public studio.livepeer.livepeer.models.operations.StartPullStreamResponse startP .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.StartPullStreamResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.StartPullStreamResponse + StartPullStreamResponse.Builder _resBuilder = + StartPullStreamResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.StartPullStreamResponse _res = _resBuilder.build(); + StartPullStreamResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -942,28 +1079,28 @@ public studio.livepeer.livepeer.models.operations.StartPullStreamResponse startP _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -972,8 +1109,8 @@ public studio.livepeer.livepeer.models.operations.StartPullStreamResponse startP * Create a clip * @return The call builder */ - public studio.livepeer.livepeer.models.operations.CreateClipRequestBuilder createClip() { - return new studio.livepeer.livepeer.models.operations.CreateClipRequestBuilder(this); + public CreateClipRequestBuilder createClip() { + return new CreateClipRequestBuilder(this); } /** @@ -982,18 +1119,23 @@ public studio.livepeer.livepeer.models.operations.CreateClipRequestBuilder creat * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.CreateClipResponse createClip( - studio.livepeer.livepeer.models.components.ClipPayload request) throws Exception { + public CreateClipResponse createClip( + ClipPayload request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, "/clip"); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "request", "json", false); + _convertedRequest, + "request", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -1009,7 +1151,10 @@ public studio.livepeer.livepeer.models.operations.CreateClipResponse createClip( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createClip", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "createClip", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1017,18 +1162,28 @@ public studio.livepeer.livepeer.models.operations.CreateClipResponse createClip( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createClip", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "createClip", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createClip", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "createClip", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createClip", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "createClip", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1036,28 +1191,28 @@ public studio.livepeer.livepeer.models.operations.CreateClipResponse createClip( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.CreateClipResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.CreateClipResponse + CreateClipResponse.Builder _resBuilder = + CreateClipResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.CreateClipResponse _res = _resBuilder.build(); + CreateClipResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.operations.CreateClipData _out = Utils.mapper().readValue( + CreateClipData _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -1066,28 +1221,28 @@ public studio.livepeer.livepeer.models.operations.CreateClipResponse createClip( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -1096,8 +1251,8 @@ public studio.livepeer.livepeer.models.operations.CreateClipResponse createClip( * Retrieve clips of a livestream * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetClipsRequestBuilder getClips() { - return new studio.livepeer.livepeer.models.operations.GetClipsRequestBuilder(this); + public GetClipsRequestBuilder getClips() { + return new GetClipsRequestBuilder(this); } /** @@ -1106,17 +1261,17 @@ public studio.livepeer.livepeer.models.operations.GetClipsRequestBuilder getClip * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetClipsResponse getClips( + public GetClipsResponse getClips( String id) throws Exception { - studio.livepeer.livepeer.models.operations.GetClipsRequest request = - studio.livepeer.livepeer.models.operations.GetClipsRequest + GetClipsRequest request = + GetClipsRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetClipsRequest.class, + GetClipsRequest.class, _baseUrl, "/stream/{id}/clips", request, null); @@ -1133,7 +1288,10 @@ public studio.livepeer.livepeer.models.operations.GetClipsResponse getClips( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getClips", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getClips", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1141,18 +1299,28 @@ public studio.livepeer.livepeer.models.operations.GetClipsResponse getClips( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getClips", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getClips", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getClips", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getClips", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getClips", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getClips", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1160,28 +1328,28 @@ public studio.livepeer.livepeer.models.operations.GetClipsResponse getClips( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetClipsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetClipsResponse + GetClipsResponse.Builder _resBuilder = + GetClipsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetClipsResponse _res = _resBuilder.build(); + GetClipsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -1190,28 +1358,28 @@ public studio.livepeer.livepeer.models.operations.GetClipsResponse getClips( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -1220,8 +1388,8 @@ public studio.livepeer.livepeer.models.operations.GetClipsResponse getClips( * Add a multistream target * @return The call builder */ - public studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequestBuilder addMultistreamTarget() { - return new studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequestBuilder(this); + public AddMultistreamTargetRequestBuilder addMultistreamTarget() { + return new AddMultistreamTargetRequestBuilder(this); } /** @@ -1231,11 +1399,11 @@ public studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequestBui * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse addMultistreamTarget( + public AddMultistreamTargetResponse addMultistreamTarget( String id, - studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload) throws Exception { - studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequest request = - studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequest + TargetAddPayload targetAddPayload) throws Exception { + AddMultistreamTargetRequest request = + AddMultistreamTargetRequest .builder() .id(id) .targetAddPayload(targetAddPayload) @@ -1243,16 +1411,21 @@ public studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse a String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.AddMultistreamTargetRequest.class, + AddMultistreamTargetRequest.class, _baseUrl, "/stream/{id}/create-multistream-target", request, null); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "targetAddPayload", "json", false); + _convertedRequest, + "targetAddPayload", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -1268,7 +1441,10 @@ public studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse a HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("addMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "addMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1276,18 +1452,28 @@ public studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse a if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("addMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "addMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("addMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "addMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("addMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "addMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1295,14 +1481,14 @@ public studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse a .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse + AddMultistreamTargetResponse.Builder _resBuilder = + AddMultistreamTargetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse _res = _resBuilder.build(); + AddMultistreamTargetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -1314,28 +1500,28 @@ public studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse a _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -1344,8 +1530,8 @@ public studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse a * Remove a multistream target * @return The call builder */ - public studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRequestBuilder removeMultistreamTarget() { - return new studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRequestBuilder(this); + public RemoveMultistreamTargetRequestBuilder removeMultistreamTarget() { + return new RemoveMultistreamTargetRequestBuilder(this); } /** @@ -1355,11 +1541,11 @@ public studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRequest * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse removeMultistreamTarget( + public RemoveMultistreamTargetResponse removeMultistreamTarget( String id, String targetId) throws Exception { - studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRequest request = - studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRequest + RemoveMultistreamTargetRequest request = + RemoveMultistreamTargetRequest .builder() .id(id) .targetId(targetId) @@ -1367,7 +1553,7 @@ public studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRespons String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRequest.class, + RemoveMultistreamTargetRequest.class, _baseUrl, "/stream/{id}/multistream/{targetId}", request, null); @@ -1384,7 +1570,10 @@ public studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRespons HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("removeMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "removeMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -1392,18 +1581,28 @@ public studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRespons if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("removeMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "removeMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("removeMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "removeMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("removeMultistreamTarget", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "removeMultistreamTarget", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1411,14 +1610,14 @@ public studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRespons .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse + RemoveMultistreamTargetResponse.Builder _resBuilder = + RemoveMultistreamTargetResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetResponse _res = _resBuilder.build(); + RemoveMultistreamTargetResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { // no content @@ -1430,28 +1629,28 @@ public studio.livepeer.livepeer.models.operations.RemoveMultistreamTargetRespons _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/Task.java b/src/main/java/studio/livepeer/livepeer/Task.java index 0537fb0..fd634d9 100644 --- a/src/main/java/studio/livepeer/livepeer/Task.java +++ b/src/main/java/studio/livepeer/livepeer/Task.java @@ -1,29 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.GetTaskRequest; +import studio.livepeer.livepeer.models.operations.GetTaskRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetTaskResponse; +import studio.livepeer.livepeer.models.operations.GetTasksRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetTasksResponse; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to tasks api @@ -43,8 +45,8 @@ public class Task implements * Retrieve Tasks * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetTasksRequestBuilder getAll() { - return new studio.livepeer.livepeer.models.operations.GetTasksRequestBuilder(this); + public GetTasksRequestBuilder getAll() { + return new GetTasksRequestBuilder(this); } /** @@ -52,7 +54,7 @@ public studio.livepeer.livepeer.models.operations.GetTasksRequestBuilder getAll( * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetTasksResponse getAllDirect() throws Exception { + public GetTasksResponse getAllDirect() throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -70,7 +72,10 @@ public studio.livepeer.livepeer.models.operations.GetTasksResponse getAllDirect( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getTasks", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -78,18 +83,28 @@ public studio.livepeer.livepeer.models.operations.GetTasksResponse getAllDirect( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getTasks", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getTasks", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getTasks", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getTasks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -97,28 +112,28 @@ public studio.livepeer.livepeer.models.operations.GetTasksResponse getAllDirect( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetTasksResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetTasksResponse + GetTasksResponse.Builder _resBuilder = + GetTasksResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetTasksResponse _res = _resBuilder.build(); + GetTasksResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -127,28 +142,28 @@ public studio.livepeer.livepeer.models.operations.GetTasksResponse getAllDirect( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -157,8 +172,8 @@ public studio.livepeer.livepeer.models.operations.GetTasksResponse getAllDirect( * Retrieve a Task * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetTaskRequestBuilder get() { - return new studio.livepeer.livepeer.models.operations.GetTaskRequestBuilder(this); + public GetTaskRequestBuilder get() { + return new GetTaskRequestBuilder(this); } /** @@ -167,17 +182,17 @@ public studio.livepeer.livepeer.models.operations.GetTaskRequestBuilder get() { * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetTaskResponse get( + public GetTaskResponse get( String taskId) throws Exception { - studio.livepeer.livepeer.models.operations.GetTaskRequest request = - studio.livepeer.livepeer.models.operations.GetTaskRequest + GetTaskRequest request = + GetTaskRequest .builder() .taskId(taskId) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetTaskRequest.class, + GetTaskRequest.class, _baseUrl, "/task/{taskId}", request, null); @@ -194,7 +209,10 @@ public studio.livepeer.livepeer.models.operations.GetTaskResponse get( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getTask", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -202,18 +220,28 @@ public studio.livepeer.livepeer.models.operations.GetTaskResponse get( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getTask", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getTask", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getTask", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getTask", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -221,28 +249,28 @@ public studio.livepeer.livepeer.models.operations.GetTaskResponse get( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetTaskResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetTaskResponse + GetTaskResponse.Builder _resBuilder = + GetTaskResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetTaskResponse _res = _resBuilder.build(); + GetTaskResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Task _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withTask(java.util.Optional.ofNullable(_out)); + _res.withTask(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -251,7 +279,7 @@ public studio.livepeer.livepeer.models.operations.GetTaskResponse get( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { // no content @@ -261,7 +289,7 @@ public studio.livepeer.livepeer.models.operations.GetTaskResponse get( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/Transcode.java b/src/main/java/studio/livepeer/livepeer/Transcode.java index 0833961..c6b6668 100644 --- a/src/main/java/studio/livepeer/livepeer/Transcode.java +++ b/src/main/java/studio/livepeer/livepeer/Transcode.java @@ -1,30 +1,33 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.Task; +import studio.livepeer.livepeer.models.components.TranscodePayload; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; +import studio.livepeer.livepeer.models.operations.TranscodeVideoRequestBuilder; +import studio.livepeer.livepeer.models.operations.TranscodeVideoResponse; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; import studio.livepeer.livepeer.utils.SerializedBody; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to transcode api @@ -165,8 +168,8 @@ public class Transcode implements * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.TranscodeVideoRequestBuilder create() { - return new studio.livepeer.livepeer.models.operations.TranscodeVideoRequestBuilder(this); + public TranscodeVideoRequestBuilder create() { + return new TranscodeVideoRequestBuilder(this); } /** @@ -297,18 +300,23 @@ public studio.livepeer.livepeer.models.operations.TranscodeVideoRequestBuilder c * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.TranscodeVideoResponse create( - studio.livepeer.livepeer.models.components.TranscodePayload request) throws Exception { + public TranscodeVideoResponse create( + TranscodePayload request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, "/transcode"); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "request", "json", false); + _convertedRequest, + "request", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -324,7 +332,10 @@ public studio.livepeer.livepeer.models.operations.TranscodeVideoResponse create( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("transcodeVideo", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "transcodeVideo", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -332,18 +343,28 @@ public studio.livepeer.livepeer.models.operations.TranscodeVideoResponse create( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("transcodeVideo", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "transcodeVideo", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("transcodeVideo", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "transcodeVideo", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("transcodeVideo", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "transcodeVideo", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -351,28 +372,28 @@ public studio.livepeer.livepeer.models.operations.TranscodeVideoResponse create( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.TranscodeVideoResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.TranscodeVideoResponse + TranscodeVideoResponse.Builder _resBuilder = + TranscodeVideoResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.TranscodeVideoResponse _res = _resBuilder.build(); + TranscodeVideoResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.Task _out = Utils.mapper().readValue( + Task _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withTask(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withTask(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -381,28 +402,28 @@ public studio.livepeer.livepeer.models.operations.TranscodeVideoResponse create( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/Webhook.java b/src/main/java/studio/livepeer/livepeer/Webhook.java index 00b5645..8ca36b1 100644 --- a/src/main/java/studio/livepeer/livepeer/Webhook.java +++ b/src/main/java/studio/livepeer/livepeer/Webhook.java @@ -1,30 +1,53 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.models.components.WebhookInput; +import studio.livepeer.livepeer.models.components.WebhookLog; +import studio.livepeer.livepeer.models.errors.Error; import studio.livepeer.livepeer.models.errors.SDKError; +import studio.livepeer.livepeer.models.operations.CreateWebhookRequestBuilder; +import studio.livepeer.livepeer.models.operations.CreateWebhookResponse; +import studio.livepeer.livepeer.models.operations.DeleteWebhookRequest; +import studio.livepeer.livepeer.models.operations.DeleteWebhookRequestBuilder; +import studio.livepeer.livepeer.models.operations.DeleteWebhookResponse; +import studio.livepeer.livepeer.models.operations.GetWebhookLogRequest; +import studio.livepeer.livepeer.models.operations.GetWebhookLogRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetWebhookLogResponse; +import studio.livepeer.livepeer.models.operations.GetWebhookLogsRequest; +import studio.livepeer.livepeer.models.operations.GetWebhookLogsRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse; +import studio.livepeer.livepeer.models.operations.GetWebhookRequest; +import studio.livepeer.livepeer.models.operations.GetWebhookRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetWebhookResponse; +import studio.livepeer.livepeer.models.operations.GetWebhooksRequestBuilder; +import studio.livepeer.livepeer.models.operations.GetWebhooksResponse; +import studio.livepeer.livepeer.models.operations.ResendWebhookRequest; +import studio.livepeer.livepeer.models.operations.ResendWebhookRequestBuilder; +import studio.livepeer.livepeer.models.operations.ResendWebhookResponse; import studio.livepeer.livepeer.models.operations.SDKMethodInterfaces.*; +import studio.livepeer.livepeer.models.operations.UpdateWebhookRequest; +import studio.livepeer.livepeer.models.operations.UpdateWebhookRequestBuilder; +import studio.livepeer.livepeer.models.operations.UpdateWebhookResponse; import studio.livepeer.livepeer.utils.HTTPClient; import studio.livepeer.livepeer.utils.HTTPRequest; import studio.livepeer.livepeer.utils.Hook.AfterErrorContextImpl; import studio.livepeer.livepeer.utils.Hook.AfterSuccessContextImpl; import studio.livepeer.livepeer.utils.Hook.BeforeRequestContextImpl; -import studio.livepeer.livepeer.utils.JSON; -import studio.livepeer.livepeer.utils.Retries.NonRetryableException; import studio.livepeer.livepeer.utils.SerializedBody; -import studio.livepeer.livepeer.utils.Utils; +import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils; /** * Operations related to webhook api @@ -50,8 +73,8 @@ public class Webhook implements * Retrieve a Webhook * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetWebhooksRequestBuilder getAll() { - return new studio.livepeer.livepeer.models.operations.GetWebhooksRequestBuilder(this); + public GetWebhooksRequestBuilder getAll() { + return new GetWebhooksRequestBuilder(this); } /** @@ -59,7 +82,7 @@ public studio.livepeer.livepeer.models.operations.GetWebhooksRequestBuilder getA * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetWebhooksResponse getAllDirect() throws Exception { + public GetWebhooksResponse getAllDirect() throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -77,7 +100,10 @@ public studio.livepeer.livepeer.models.operations.GetWebhooksResponse getAllDire HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getWebhooks", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getWebhooks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -85,18 +111,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhooksResponse getAllDire if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getWebhooks", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getWebhooks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getWebhooks", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getWebhooks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getWebhooks", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getWebhooks", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -104,28 +140,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhooksResponse getAllDire .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetWebhooksResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetWebhooksResponse + GetWebhooksResponse.Builder _resBuilder = + GetWebhooksResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetWebhooksResponse _res = _resBuilder.build(); + GetWebhooksResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -134,28 +170,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhooksResponse getAllDire _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -166,8 +202,8 @@ public studio.livepeer.livepeer.models.operations.GetWebhooksResponse getAllDire * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.CreateWebhookRequestBuilder create() { - return new studio.livepeer.livepeer.models.operations.CreateWebhookRequestBuilder(this); + public CreateWebhookRequestBuilder create() { + return new CreateWebhookRequestBuilder(this); } /** @@ -178,18 +214,23 @@ public studio.livepeer.livepeer.models.operations.CreateWebhookRequestBuilder cr * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.CreateWebhookResponse create( - studio.livepeer.livepeer.models.components.WebhookInput request) throws Exception { + public CreateWebhookResponse create( + WebhookInput request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, "/webhook"); HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "request", "json", false); + _convertedRequest, + "request", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -205,7 +246,10 @@ public studio.livepeer.livepeer.models.operations.CreateWebhookResponse create( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("createWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "createWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -213,18 +257,28 @@ public studio.livepeer.livepeer.models.operations.CreateWebhookResponse create( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("createWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "createWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("createWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "createWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("createWebhook", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "createWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -232,28 +286,28 @@ public studio.livepeer.livepeer.models.operations.CreateWebhookResponse create( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.CreateWebhookResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.CreateWebhookResponse + CreateWebhookResponse.Builder _resBuilder = + CreateWebhookResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.CreateWebhookResponse _res = _resBuilder.build(); + CreateWebhookResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Webhook _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withWebhook(java.util.Optional.ofNullable(_out)); + _res.withWebhook(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -262,28 +316,28 @@ public studio.livepeer.livepeer.models.operations.CreateWebhookResponse create( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -292,8 +346,8 @@ public studio.livepeer.livepeer.models.operations.CreateWebhookResponse create( * Retrieve a webhook * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetWebhookRequestBuilder get() { - return new studio.livepeer.livepeer.models.operations.GetWebhookRequestBuilder(this); + public GetWebhookRequestBuilder get() { + return new GetWebhookRequestBuilder(this); } /** @@ -302,17 +356,17 @@ public studio.livepeer.livepeer.models.operations.GetWebhookRequestBuilder get() * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetWebhookResponse get( + public GetWebhookResponse get( String id) throws Exception { - studio.livepeer.livepeer.models.operations.GetWebhookRequest request = - studio.livepeer.livepeer.models.operations.GetWebhookRequest + GetWebhookRequest request = + GetWebhookRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetWebhookRequest.class, + GetWebhookRequest.class, _baseUrl, "/webhook/{id}", request, null); @@ -329,7 +383,10 @@ public studio.livepeer.livepeer.models.operations.GetWebhookResponse get( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -337,18 +394,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhookResponse get( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getWebhook", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -356,28 +423,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhookResponse get( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetWebhookResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetWebhookResponse + GetWebhookResponse.Builder _resBuilder = + GetWebhookResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetWebhookResponse _res = _resBuilder.build(); + GetWebhookResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Webhook _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withWebhook(java.util.Optional.ofNullable(_out)); + _res.withWebhook(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -386,28 +453,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhookResponse get( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -416,8 +483,8 @@ public studio.livepeer.livepeer.models.operations.GetWebhookResponse get( * Update a webhook * @return The call builder */ - public studio.livepeer.livepeer.models.operations.UpdateWebhookRequestBuilder update() { - return new studio.livepeer.livepeer.models.operations.UpdateWebhookRequestBuilder(this); + public UpdateWebhookRequestBuilder update() { + return new UpdateWebhookRequestBuilder(this); } /** @@ -427,11 +494,11 @@ public studio.livepeer.livepeer.models.operations.UpdateWebhookRequestBuilder up * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.UpdateWebhookResponse update( + public UpdateWebhookResponse update( String id, - studio.livepeer.livepeer.models.components.WebhookInput webhook) throws Exception { - studio.livepeer.livepeer.models.operations.UpdateWebhookRequest request = - studio.livepeer.livepeer.models.operations.UpdateWebhookRequest + WebhookInput webhook) throws Exception { + UpdateWebhookRequest request = + UpdateWebhookRequest .builder() .id(id) .webhook(webhook) @@ -439,16 +506,21 @@ public studio.livepeer.livepeer.models.operations.UpdateWebhookResponse update( String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.UpdateWebhookRequest.class, + UpdateWebhookRequest.class, _baseUrl, "/webhook/{id}", request, null); HTTPRequest _req = new HTTPRequest(_url, "PUT"); - Object _convertedRequest = Utils.convertToShape(request, Utils.JsonShape.DEFAULT, - new TypeReference() {}); + Object _convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, "webhook", "json", false); + _convertedRequest, + "webhook", + "json", + false); if (_serializedRequestBody == null) { throw new Exception("Request body is required"); } @@ -464,7 +536,10 @@ public studio.livepeer.livepeer.models.operations.UpdateWebhookResponse update( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("updateWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "updateWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -472,18 +547,28 @@ public studio.livepeer.livepeer.models.operations.UpdateWebhookResponse update( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("updateWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "updateWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("updateWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "updateWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("updateWebhook", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "updateWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -491,28 +576,28 @@ public studio.livepeer.livepeer.models.operations.UpdateWebhookResponse update( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.UpdateWebhookResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.UpdateWebhookResponse + UpdateWebhookResponse.Builder _resBuilder = + UpdateWebhookResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.UpdateWebhookResponse _res = _resBuilder.build(); + UpdateWebhookResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Webhook _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withWebhook(java.util.Optional.ofNullable(_out)); + _res.withWebhook(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -521,28 +606,28 @@ public studio.livepeer.livepeer.models.operations.UpdateWebhookResponse update( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -551,8 +636,8 @@ public studio.livepeer.livepeer.models.operations.UpdateWebhookResponse update( * Delete a webhook * @return The call builder */ - public studio.livepeer.livepeer.models.operations.DeleteWebhookRequestBuilder delete() { - return new studio.livepeer.livepeer.models.operations.DeleteWebhookRequestBuilder(this); + public DeleteWebhookRequestBuilder delete() { + return new DeleteWebhookRequestBuilder(this); } /** @@ -561,17 +646,17 @@ public studio.livepeer.livepeer.models.operations.DeleteWebhookRequestBuilder de * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.DeleteWebhookResponse delete( + public DeleteWebhookResponse delete( String id) throws Exception { - studio.livepeer.livepeer.models.operations.DeleteWebhookRequest request = - studio.livepeer.livepeer.models.operations.DeleteWebhookRequest + DeleteWebhookRequest request = + DeleteWebhookRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.DeleteWebhookRequest.class, + DeleteWebhookRequest.class, _baseUrl, "/webhook/{id}", request, null); @@ -588,7 +673,10 @@ public studio.livepeer.livepeer.models.operations.DeleteWebhookResponse delete( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("deleteWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "deleteWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -596,18 +684,28 @@ public studio.livepeer.livepeer.models.operations.DeleteWebhookResponse delete( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("deleteWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "deleteWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("deleteWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "deleteWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("deleteWebhook", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "deleteWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -615,28 +713,28 @@ public studio.livepeer.livepeer.models.operations.DeleteWebhookResponse delete( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.DeleteWebhookResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.DeleteWebhookResponse + DeleteWebhookResponse.Builder _resBuilder = + DeleteWebhookResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.DeleteWebhookResponse _res = _resBuilder.build(); + DeleteWebhookResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { studio.livepeer.livepeer.models.components.Webhook _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), new TypeReference() {}); - _res.withWebhook(java.util.Optional.ofNullable(_out)); + _res.withWebhook(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -645,28 +743,28 @@ public studio.livepeer.livepeer.models.operations.DeleteWebhookResponse delete( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -675,8 +773,8 @@ public studio.livepeer.livepeer.models.operations.DeleteWebhookResponse delete( * Retrieve webhook logs * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetWebhookLogsRequestBuilder getLogs() { - return new studio.livepeer.livepeer.models.operations.GetWebhookLogsRequestBuilder(this); + public GetWebhookLogsRequestBuilder getLogs() { + return new GetWebhookLogsRequestBuilder(this); } /** @@ -685,17 +783,17 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogsRequestBuilder g * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse getLogs( + public GetWebhookLogsResponse getLogs( String id) throws Exception { - studio.livepeer.livepeer.models.operations.GetWebhookLogsRequest request = - studio.livepeer.livepeer.models.operations.GetWebhookLogsRequest + GetWebhookLogsRequest request = + GetWebhookLogsRequest .builder() .id(id) .build(); String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetWebhookLogsRequest.class, + GetWebhookLogsRequest.class, _baseUrl, "/webhook/{id}/log", request, null); @@ -712,7 +810,10 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse getLogs HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getWebhookLogs", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getWebhookLogs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -720,18 +821,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse getLogs if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getWebhookLogs", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getWebhookLogs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getWebhookLogs", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getWebhookLogs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getWebhookLogs", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getWebhookLogs", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -739,28 +850,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse getLogs .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse + GetWebhookLogsResponse.Builder _resBuilder = + GetWebhookLogsResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse _res = _resBuilder.build(); + GetWebhookLogsResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - java.util.List _out = Utils.mapper().readValue( + List _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withData(java.util.Optional.ofNullable(_out)); + new TypeReference>() {}); + _res.withData(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -769,28 +880,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse getLogs _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -799,8 +910,8 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogsResponse getLogs * Retrieve a webhook log * @return The call builder */ - public studio.livepeer.livepeer.models.operations.GetWebhookLogRequestBuilder getLog() { - return new studio.livepeer.livepeer.models.operations.GetWebhookLogRequestBuilder(this); + public GetWebhookLogRequestBuilder getLog() { + return new GetWebhookLogRequestBuilder(this); } /** @@ -810,11 +921,11 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogRequestBuilder ge * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.GetWebhookLogResponse getLog( + public GetWebhookLogResponse getLog( String id, String logId) throws Exception { - studio.livepeer.livepeer.models.operations.GetWebhookLogRequest request = - studio.livepeer.livepeer.models.operations.GetWebhookLogRequest + GetWebhookLogRequest request = + GetWebhookLogRequest .builder() .id(id) .logId(logId) @@ -822,7 +933,7 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogResponse getLog( String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.GetWebhookLogRequest.class, + GetWebhookLogRequest.class, _baseUrl, "/webhook/{id}/log/{logId}", request, null); @@ -839,7 +950,10 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogResponse getLog( HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("getWebhookLog", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "getWebhookLog", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -847,18 +961,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogResponse getLog( if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("getWebhookLog", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "getWebhookLog", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("getWebhookLog", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "getWebhookLog", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("getWebhookLog", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "getWebhookLog", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -866,28 +990,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogResponse getLog( .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.GetWebhookLogResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.GetWebhookLogResponse + GetWebhookLogResponse.Builder _resBuilder = + GetWebhookLogResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.GetWebhookLogResponse _res = _resBuilder.build(); + GetWebhookLogResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.WebhookLog _out = Utils.mapper().readValue( + WebhookLog _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withWebhookLog(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withWebhookLog(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -896,28 +1020,28 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogResponse getLog( _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } @@ -930,8 +1054,8 @@ public studio.livepeer.livepeer.models.operations.GetWebhookLogResponse getLog( * * @return The call builder */ - public studio.livepeer.livepeer.models.operations.ResendWebhookRequestBuilder resendLog() { - return new studio.livepeer.livepeer.models.operations.ResendWebhookRequestBuilder(this); + public ResendWebhookRequestBuilder resendLog() { + return new ResendWebhookRequestBuilder(this); } /** @@ -945,11 +1069,11 @@ public studio.livepeer.livepeer.models.operations.ResendWebhookRequestBuilder re * @return The response from the API call * @throws Exception if the API call fails */ - public studio.livepeer.livepeer.models.operations.ResendWebhookResponse resendLog( + public ResendWebhookResponse resendLog( String id, String logId) throws Exception { - studio.livepeer.livepeer.models.operations.ResendWebhookRequest request = - studio.livepeer.livepeer.models.operations.ResendWebhookRequest + ResendWebhookRequest request = + ResendWebhookRequest .builder() .id(id) .logId(logId) @@ -957,7 +1081,7 @@ public studio.livepeer.livepeer.models.operations.ResendWebhookResponse resendLo String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( - studio.livepeer.livepeer.models.operations.ResendWebhookRequest.class, + ResendWebhookRequest.class, _baseUrl, "/webhook/{id}/log/{logId}/resend", request, null); @@ -974,7 +1098,10 @@ public studio.livepeer.livepeer.models.operations.ResendWebhookResponse resendLo HttpRequest _r = sdkConfiguration.hooks() .beforeRequest( - new BeforeRequestContextImpl("resendWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new BeforeRequestContextImpl( + "resendWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _req.build()); HttpResponse _httpRes; try { @@ -982,18 +1109,28 @@ public studio.livepeer.livepeer.models.operations.ResendWebhookResponse resendLo if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { _httpRes = sdkConfiguration.hooks() .afterError( - new AfterErrorContextImpl("resendWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterErrorContextImpl( + "resendWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.of(_httpRes), Optional.empty()); } else { _httpRes = sdkConfiguration.hooks() .afterSuccess( - new AfterSuccessContextImpl("resendWebhook", Optional.empty(), sdkConfiguration.securitySource()), + new AfterSuccessContextImpl( + "resendWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), _httpRes); } } catch (Exception _e) { _httpRes = sdkConfiguration.hooks() - .afterError(new AfterErrorContextImpl("resendWebhook", Optional.empty(), sdkConfiguration.securitySource()), + .afterError( + new AfterErrorContextImpl( + "resendWebhook", + Optional.of(List.of()), + sdkConfiguration.securitySource()), Optional.empty(), Optional.of(_e)); } @@ -1001,28 +1138,28 @@ public studio.livepeer.livepeer.models.operations.ResendWebhookResponse resendLo .headers() .firstValue("Content-Type") .orElse("application/octet-stream"); - studio.livepeer.livepeer.models.operations.ResendWebhookResponse.Builder _resBuilder = - studio.livepeer.livepeer.models.operations.ResendWebhookResponse + ResendWebhookResponse.Builder _resBuilder = + ResendWebhookResponse .builder() .contentType(_contentType) .statusCode(_httpRes.statusCode()) .rawResponse(_httpRes); - studio.livepeer.livepeer.models.operations.ResendWebhookResponse _res = _resBuilder.build(); + ResendWebhookResponse _res = _resBuilder.build(); if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.components.WebhookLog _out = Utils.mapper().readValue( + WebhookLog _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withWebhookLog(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withWebhookLog(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { @@ -1031,28 +1168,28 @@ public studio.livepeer.livepeer.models.operations.ResendWebhookResponse resendLo _httpRes, _httpRes.statusCode(), "API error occurred", - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } if (Utils.statusCodeMatches(_httpRes.statusCode(), "default")) { if (Utils.contentTypeMatches(_contentType, "application/json")) { - studio.livepeer.livepeer.models.errors.Error _out = Utils.mapper().readValue( + Error _out = Utils.mapper().readValue( Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withError(java.util.Optional.ofNullable(_out)); + new TypeReference() {}); + _res.withError(Optional.ofNullable(_out)); return _res; } else { throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected content-type received: " + _contentType, - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } throw new SDKError( _httpRes, _httpRes.statusCode(), "Unexpected status code received: " + _httpRes.statusCode(), - Utils.toByteArrayAndClose(_httpRes.body())); + Utils.extractByteArrayFromBody(_httpRes)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Asset.java b/src/main/java/studio/livepeer/livepeer/models/components/Asset.java index ee08455..e1f5442 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Asset.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Asset.java @@ -1,24 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class Asset { @JsonProperty("id") @@ -36,7 +39,7 @@ public class Asset { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("playbackId") - private Optional playbackId; + private Optional playbackId; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. @@ -44,21 +47,21 @@ public class Asset { @JsonInclude(Include.NON_ABSENT) @JsonProperty("userId") @Deprecated - private Optional userId; + private Optional userId; /** * URL for HLS playback. **It is recommended to not use this URL**, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("playbackUrl") - private Optional playbackUrl; + private Optional playbackUrl; /** * The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("downloadUrl") - private Optional downloadUrl; + private Optional downloadUrl; /** * Whether the playback policy for an asset or stream is public or signed @@ -75,15 +78,16 @@ public class Asset { private Optional creatorId; /** - * Requested profiles for the asset to be transcoded into. Currently - * only supported for livestream recording assets, configured through - * the `stream.recordingSpec` field. If this is not present it means - * that default profiles were derived from the input metadata. + * Requested profiles for the asset to be transcoded into. Configured + * on the upload APIs payload or through the `stream.recordingSpec` + * field for recordings. If not specified, default profiles are derived + * based on the source input. If this is a recording, the source will + * not be present in this list but will be available for playback. * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private Optional> profiles; + private Optional> profiles; @JsonInclude(Include.NON_ABSENT) @JsonProperty("storage") @@ -108,35 +112,35 @@ public class Asset { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("projectId") - private Optional projectId; + private Optional projectId; /** * Timestamp (in milliseconds) at which asset was created */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; /** * Name of the token used to create this object */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdByTokenName") - private Optional createdByTokenName; + private Optional createdByTokenName; /** * Size of the asset in bytes */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; /** * Hash of the asset */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("hash") - private JsonNullable> hash; + private JsonNullable> hash; /** * Video metadata @@ -149,22 +153,22 @@ public class Asset { public Asset( @JsonProperty("id") String id, @JsonProperty("type") Optional type, - @JsonProperty("playbackId") Optional playbackId, - @JsonProperty("userId") Optional userId, - @JsonProperty("playbackUrl") Optional playbackUrl, - @JsonProperty("downloadUrl") Optional downloadUrl, + @JsonProperty("playbackId") Optional playbackId, + @JsonProperty("userId") Optional userId, + @JsonProperty("playbackUrl") Optional playbackUrl, + @JsonProperty("downloadUrl") Optional downloadUrl, @JsonProperty("playbackPolicy") JsonNullable playbackPolicy, @JsonProperty("source") Source source, @JsonProperty("creatorId") Optional creatorId, - @JsonProperty("profiles") Optional> profiles, + @JsonProperty("profiles") Optional> profiles, @JsonProperty("storage") Optional storage, @JsonProperty("status") Optional status, @JsonProperty("name") String name, - @JsonProperty("projectId") Optional projectId, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("createdByTokenName") Optional createdByTokenName, - @JsonProperty("size") Optional size, - @JsonProperty("hash") JsonNullable> hash, + @JsonProperty("projectId") Optional projectId, + @JsonProperty("createdAt") Optional createdAt, + @JsonProperty("createdByTokenName") Optional createdByTokenName, + @JsonProperty("size") Optional size, + @JsonProperty("hash") JsonNullable> hash, @JsonProperty("videoSpec") Optional videoSpec) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(type, "type"); @@ -230,38 +234,34 @@ public Optional type() { /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playbackId() { - return (Optional) playbackId; + return playbackId; } /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - @SuppressWarnings("unchecked") @JsonIgnore public Optional userId() { - return (Optional) userId; + return userId; } /** * URL for HLS playback. **It is recommended to not use this URL**, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8). */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playbackUrl() { - return (Optional) playbackUrl; + return playbackUrl; } /** * The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional downloadUrl() { - return (Optional) downloadUrl; + return downloadUrl; } /** @@ -285,16 +285,17 @@ public Optional creatorId() { } /** - * Requested profiles for the asset to be transcoded into. Currently - * only supported for livestream recording assets, configured through - * the `stream.recordingSpec` field. If this is not present it means - * that default profiles were derived from the input metadata. + * Requested profiles for the asset to be transcoded into. Configured + * on the upload APIs payload or through the `stream.recordingSpec` + * field for recordings. If not specified, default profiles are derived + * based on the source input. If this is a recording, the source will + * not be present in this list but will be available for playback. * */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> profiles() { - return (Optional>) profiles; + public Optional> profiles() { + return (Optional>) profiles; } @SuppressWarnings("unchecked") @@ -324,37 +325,33 @@ public String name() { /** * The ID of the project */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional projectId() { - return (Optional) projectId; + return projectId; } /** * Timestamp (in milliseconds) at which asset was created */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } /** * Name of the token used to create this object */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdByTokenName() { - return (Optional) createdByTokenName; + return createdByTokenName; } /** * Size of the asset in bytes */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } /** @@ -362,8 +359,8 @@ public Optional size() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable> hash() { - return (JsonNullable>) hash; + public JsonNullable> hash() { + return (JsonNullable>) hash; } /** @@ -415,7 +412,7 @@ public Asset withPlaybackId(String playbackId) { /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ - public Asset withPlaybackId(Optional playbackId) { + public Asset withPlaybackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -435,7 +432,7 @@ public Asset withUserId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Asset withUserId(Optional userId) { + public Asset withUserId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -453,7 +450,7 @@ public Asset withPlaybackUrl(String playbackUrl) { /** * URL for HLS playback. **It is recommended to not use this URL**, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8). */ - public Asset withPlaybackUrl(Optional playbackUrl) { + public Asset withPlaybackUrl(Optional playbackUrl) { Utils.checkNotNull(playbackUrl, "playbackUrl"); this.playbackUrl = playbackUrl; return this; @@ -471,7 +468,7 @@ public Asset withDownloadUrl(String downloadUrl) { /** * The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. */ - public Asset withDownloadUrl(Optional downloadUrl) { + public Asset withDownloadUrl(Optional downloadUrl) { Utils.checkNotNull(downloadUrl, "downloadUrl"); this.downloadUrl = downloadUrl; return this; @@ -514,26 +511,28 @@ public Asset withCreatorId(Optional creatorId) { } /** - * Requested profiles for the asset to be transcoded into. Currently - * only supported for livestream recording assets, configured through - * the `stream.recordingSpec` field. If this is not present it means - * that default profiles were derived from the input metadata. + * Requested profiles for the asset to be transcoded into. Configured + * on the upload APIs payload or through the `stream.recordingSpec` + * field for recordings. If not specified, default profiles are derived + * based on the source input. If this is a recording, the source will + * not be present in this list but will be available for playback. * */ - public Asset withProfiles(java.util.List profiles) { + public Asset withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } /** - * Requested profiles for the asset to be transcoded into. Currently - * only supported for livestream recording assets, configured through - * the `stream.recordingSpec` field. If this is not present it means - * that default profiles were derived from the input metadata. + * Requested profiles for the asset to be transcoded into. Configured + * on the upload APIs payload or through the `stream.recordingSpec` + * field for recordings. If not specified, default profiles are derived + * based on the source input. If this is a recording, the source will + * not be present in this list but will be available for playback. * */ - public Asset withProfiles(Optional> profiles) { + public Asset withProfiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -591,7 +590,7 @@ public Asset withProjectId(String projectId) { /** * The ID of the project */ - public Asset withProjectId(Optional projectId) { + public Asset withProjectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; @@ -609,7 +608,7 @@ public Asset withCreatedAt(double createdAt) { /** * Timestamp (in milliseconds) at which asset was created */ - public Asset withCreatedAt(Optional createdAt) { + public Asset withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -627,7 +626,7 @@ public Asset withCreatedByTokenName(String createdByTokenName) { /** * Name of the token used to create this object */ - public Asset withCreatedByTokenName(Optional createdByTokenName) { + public Asset withCreatedByTokenName(Optional createdByTokenName) { Utils.checkNotNull(createdByTokenName, "createdByTokenName"); this.createdByTokenName = createdByTokenName; return this; @@ -645,7 +644,7 @@ public Asset withSize(double size) { /** * Size of the asset in bytes */ - public Asset withSize(Optional size) { + public Asset withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -654,7 +653,7 @@ public Asset withSize(Optional size) { /** * Hash of the asset */ - public Asset withHash(java.util.List hash) { + public Asset withHash(List hash) { Utils.checkNotNull(hash, "hash"); this.hash = JsonNullable.of(hash); return this; @@ -663,7 +662,7 @@ public Asset withHash(java.util.List hash) { /** * Hash of the asset */ - public Asset withHash(JsonNullable> hash) { + public Asset withHash(JsonNullable> hash) { Utils.checkNotNull(hash, "hash"); this.hash = hash; return this; @@ -697,30 +696,30 @@ public boolean equals(java.lang.Object o) { } Asset other = (Asset) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.playbackId, other.playbackId) && - java.util.Objects.deepEquals(this.userId, other.userId) && - java.util.Objects.deepEquals(this.playbackUrl, other.playbackUrl) && - java.util.Objects.deepEquals(this.downloadUrl, other.downloadUrl) && - java.util.Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && - java.util.Objects.deepEquals(this.source, other.source) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.storage, other.storage) && - java.util.Objects.deepEquals(this.status, other.status) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.projectId, other.projectId) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.createdByTokenName, other.createdByTokenName) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.hash, other.hash) && - java.util.Objects.deepEquals(this.videoSpec, other.videoSpec); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.userId, other.userId) && + Objects.deepEquals(this.playbackUrl, other.playbackUrl) && + Objects.deepEquals(this.downloadUrl, other.downloadUrl) && + Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && + Objects.deepEquals(this.source, other.source) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.storage, other.storage) && + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.projectId, other.projectId) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.createdByTokenName, other.createdByTokenName) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.hash, other.hash) && + Objects.deepEquals(this.videoSpec, other.videoSpec); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, type, playbackId, @@ -772,14 +771,14 @@ public final static class Builder { private Optional type = Optional.empty(); - private Optional playbackId = Optional.empty(); + private Optional playbackId = Optional.empty(); @Deprecated - private Optional userId = Optional.empty(); + private Optional userId = Optional.empty(); - private Optional playbackUrl = Optional.empty(); + private Optional playbackUrl = Optional.empty(); - private Optional downloadUrl = Optional.empty(); + private Optional downloadUrl = Optional.empty(); private JsonNullable playbackPolicy = JsonNullable.undefined(); @@ -787,7 +786,7 @@ public final static class Builder { private Optional creatorId = Optional.empty(); - private Optional> profiles = Optional.empty(); + private Optional> profiles = Optional.empty(); private Optional storage = Optional.empty(); @@ -795,15 +794,15 @@ public final static class Builder { private String name; - private Optional projectId = Optional.empty(); + private Optional projectId = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); - private Optional createdByTokenName = Optional.empty(); + private Optional createdByTokenName = Optional.empty(); - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private JsonNullable> hash = JsonNullable.undefined(); + private JsonNullable> hash = JsonNullable.undefined(); private Optional videoSpec = Optional.empty(); @@ -847,7 +846,7 @@ public Builder playbackId(String playbackId) { /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ - public Builder playbackId(Optional playbackId) { + public Builder playbackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -867,7 +866,7 @@ public Builder userId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Builder userId(Optional userId) { + public Builder userId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -885,7 +884,7 @@ public Builder playbackUrl(String playbackUrl) { /** * URL for HLS playback. **It is recommended to not use this URL**, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8). */ - public Builder playbackUrl(Optional playbackUrl) { + public Builder playbackUrl(Optional playbackUrl) { Utils.checkNotNull(playbackUrl, "playbackUrl"); this.playbackUrl = playbackUrl; return this; @@ -903,7 +902,7 @@ public Builder downloadUrl(String downloadUrl) { /** * The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. */ - public Builder downloadUrl(Optional downloadUrl) { + public Builder downloadUrl(Optional downloadUrl) { Utils.checkNotNull(downloadUrl, "downloadUrl"); this.downloadUrl = downloadUrl; return this; @@ -946,26 +945,28 @@ public Builder creatorId(Optional creatorId) { } /** - * Requested profiles for the asset to be transcoded into. Currently - * only supported for livestream recording assets, configured through - * the `stream.recordingSpec` field. If this is not present it means - * that default profiles were derived from the input metadata. + * Requested profiles for the asset to be transcoded into. Configured + * on the upload APIs payload or through the `stream.recordingSpec` + * field for recordings. If not specified, default profiles are derived + * based on the source input. If this is a recording, the source will + * not be present in this list but will be available for playback. * */ - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } /** - * Requested profiles for the asset to be transcoded into. Currently - * only supported for livestream recording assets, configured through - * the `stream.recordingSpec` field. If this is not present it means - * that default profiles were derived from the input metadata. + * Requested profiles for the asset to be transcoded into. Configured + * on the upload APIs payload or through the `stream.recordingSpec` + * field for recordings. If not specified, default profiles are derived + * based on the source input. If this is a recording, the source will + * not be present in this list but will be available for playback. * */ - public Builder profiles(Optional> profiles) { + public Builder profiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -1023,7 +1024,7 @@ public Builder projectId(String projectId) { /** * The ID of the project */ - public Builder projectId(Optional projectId) { + public Builder projectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; @@ -1041,7 +1042,7 @@ public Builder createdAt(double createdAt) { /** * Timestamp (in milliseconds) at which asset was created */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -1059,7 +1060,7 @@ public Builder createdByTokenName(String createdByTokenName) { /** * Name of the token used to create this object */ - public Builder createdByTokenName(Optional createdByTokenName) { + public Builder createdByTokenName(Optional createdByTokenName) { Utils.checkNotNull(createdByTokenName, "createdByTokenName"); this.createdByTokenName = createdByTokenName; return this; @@ -1077,7 +1078,7 @@ public Builder size(double size) { /** * Size of the asset in bytes */ - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -1086,7 +1087,7 @@ public Builder size(Optional size) { /** * Hash of the asset */ - public Builder hash(java.util.List hash) { + public Builder hash(List hash) { Utils.checkNotNull(hash, "hash"); this.hash = JsonNullable.of(hash); return this; @@ -1095,7 +1096,7 @@ public Builder hash(java.util.List hash) { /** * Hash of the asset */ - public Builder hash(JsonNullable> hash) { + public Builder hash(JsonNullable> hash) { Utils.checkNotNull(hash, "hash"); this.hash = hash; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetIpfs.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetIpfs.java index 6d1f7e0..873dd5b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetIpfs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetIpfs.java @@ -1,23 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class AssetIpfs { @JsonInclude(Include.NON_ABSENT) @@ -26,7 +28,7 @@ public class AssetIpfs { @JsonInclude(Include.NON_ABSENT) @JsonProperty("$ref") - private Optional dollarRef; + private Optional dollarRef; @JsonInclude(Include.NON_ABSENT) @JsonProperty("nftMetadata") @@ -39,14 +41,14 @@ public class AssetIpfs { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonCreator public AssetIpfs( @JsonProperty("spec") Optional spec, - @JsonProperty("$ref") Optional dollarRef, + @JsonProperty("$ref") Optional dollarRef, @JsonProperty("nftMetadata") Optional nftMetadata, - @JsonProperty("updatedAt") Optional updatedAt) { + @JsonProperty("updatedAt") Optional updatedAt) { Utils.checkNotNull(spec, "spec"); Utils.checkNotNull(dollarRef, "dollarRef"); Utils.checkNotNull(nftMetadata, "nftMetadata"); @@ -69,8 +71,8 @@ public Optional spec() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional dollarRef() { - return (Optional) dollarRef; + public Optional dollarRef() { + return (Optional) dollarRef; } @SuppressWarnings("unchecked") @@ -84,10 +86,9 @@ public Optional nftMetadata() { * updated * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } public final static Builder builder() { @@ -106,13 +107,13 @@ public AssetIpfs withSpec(Optional spec) { return this; } - public AssetIpfs withDollarRef(java.lang.Object dollarRef) { + public AssetIpfs withDollarRef(Object dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = Optional.ofNullable(dollarRef); return this; } - public AssetIpfs withDollarRef(Optional dollarRef) { + public AssetIpfs withDollarRef(Optional dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = dollarRef; return this; @@ -146,7 +147,7 @@ public AssetIpfs withUpdatedAt(double updatedAt) { * updated * */ - public AssetIpfs withUpdatedAt(Optional updatedAt) { + public AssetIpfs withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -162,15 +163,15 @@ public boolean equals(java.lang.Object o) { } AssetIpfs other = (AssetIpfs) o; return - java.util.Objects.deepEquals(this.spec, other.spec) && - java.util.Objects.deepEquals(this.dollarRef, other.dollarRef) && - java.util.Objects.deepEquals(this.nftMetadata, other.nftMetadata) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt); + Objects.deepEquals(this.spec, other.spec) && + Objects.deepEquals(this.dollarRef, other.dollarRef) && + Objects.deepEquals(this.nftMetadata, other.nftMetadata) && + Objects.deepEquals(this.updatedAt, other.updatedAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( spec, dollarRef, nftMetadata, @@ -190,11 +191,11 @@ public final static class Builder { private Optional spec = Optional.empty(); - private Optional dollarRef = Optional.empty(); + private Optional dollarRef = Optional.empty(); private Optional nftMetadata = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -212,13 +213,13 @@ public Builder spec(Optional spec) { return this; } - public Builder dollarRef(java.lang.Object dollarRef) { + public Builder dollarRef(Object dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = Optional.ofNullable(dollarRef); return this; } - public Builder dollarRef(Optional dollarRef) { + public Builder dollarRef(Optional dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = dollarRef; return this; @@ -252,7 +253,7 @@ public Builder updatedAt(double updatedAt) { * updated * */ - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadata.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadata.java index 21f2863..49754ef 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadata.java @@ -1,18 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * AssetNftMetadata - Additional data to add to the NFT metadata exported to * IPFS. Will be deep merged with the default metadata @@ -45,7 +43,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadataTemplate.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadataTemplate.java index 17b2887..dfb8f9d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadataTemplate.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetNftMetadataTemplate.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * AssetNftMetadataTemplate - Name of the NFT metadata template to export. 'player' diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetPatchPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetPatchPayload.java index cf7eac2..9122183 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetPatchPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetPatchPayload.java @@ -1,24 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class AssetPatchPayload { /** @@ -27,7 +27,7 @@ public class AssetPatchPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("creatorId") @@ -46,7 +46,7 @@ public class AssetPatchPayload { @JsonCreator public AssetPatchPayload( - @JsonProperty("name") Optional name, + @JsonProperty("name") Optional name, @JsonProperty("creatorId") Optional creatorId, @JsonProperty("playbackPolicy") JsonNullable playbackPolicy, @JsonProperty("storage") Optional storage) { @@ -68,10 +68,9 @@ public AssetPatchPayload() { * The name of the asset. This is not necessarily the filename - it can be a custom name or title. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } @SuppressWarnings("unchecked") @@ -113,7 +112,7 @@ public AssetPatchPayload withName(String name) { * The name of the asset. This is not necessarily the filename - it can be a custom name or title. * */ - public AssetPatchPayload withName(Optional name) { + public AssetPatchPayload withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -171,15 +170,15 @@ public boolean equals(java.lang.Object o) { } AssetPatchPayload other = (AssetPatchPayload) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && - java.util.Objects.deepEquals(this.storage, other.storage); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && + Objects.deepEquals(this.storage, other.storage); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, creatorId, playbackPolicy, @@ -197,7 +196,7 @@ public String toString() { public final static class Builder { - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); private Optional creatorId = Optional.empty(); @@ -223,7 +222,7 @@ public Builder name(String name) { * The name of the asset. This is not necessarily the filename - it can be a custom name or title. * */ - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetPhase.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetPhase.java index 2c622c6..6a52795 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetPhase.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetPhase.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * AssetPhase - Phase of the asset diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetSource3Type.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetSource3Type.java index d2f6b7a..46e95db 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetSource3Type.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetSource3Type.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum AssetSource3Type { DIRECT_UPLOAD("directUpload"), diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetSourceType.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetSourceType.java index 43f001a..ff33a4a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetSourceType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetSourceType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum AssetSourceType { RECORDING("recording"); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java index 5336b93..6cb5a01 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetSpec.java @@ -1,24 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; + public class AssetSpec { /** @@ -141,13 +142,13 @@ public boolean equals(java.lang.Object o) { } AssetSpec other = (AssetSpec) o; return - java.util.Objects.deepEquals(this.nftMetadataTemplate, other.nftMetadataTemplate) && - java.util.Objects.deepEquals(this.nftMetadata, other.nftMetadata); + Objects.deepEquals(this.nftMetadataTemplate, other.nftMetadataTemplate) && + Objects.deepEquals(this.nftMetadata, other.nftMetadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( nftMetadataTemplate, nftMetadata); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetStatus.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetStatus.java index a9c0d3b..48da496 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetStatus.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetStatus.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * AssetStatus - Status of the asset */ @@ -40,21 +40,21 @@ public class AssetStatus { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("progress") - private Optional progress; + private Optional progress; /** * Error message if the asset creation failed. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("errorMessage") - private Optional errorMessage; + private Optional errorMessage; @JsonCreator public AssetStatus( @JsonProperty("phase") AssetPhase phase, @JsonProperty("updatedAt") double updatedAt, - @JsonProperty("progress") Optional progress, - @JsonProperty("errorMessage") Optional errorMessage) { + @JsonProperty("progress") Optional progress, + @JsonProperty("errorMessage") Optional errorMessage) { Utils.checkNotNull(phase, "phase"); Utils.checkNotNull(updatedAt, "updatedAt"); Utils.checkNotNull(progress, "progress"); @@ -90,19 +90,17 @@ public double updatedAt() { /** * Current progress of the task creating this asset. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional progress() { - return (Optional) progress; + return progress; } /** * Error message if the asset creation failed. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional errorMessage() { - return (Optional) errorMessage; + return errorMessage; } public final static Builder builder() { @@ -139,7 +137,7 @@ public AssetStatus withProgress(double progress) { /** * Current progress of the task creating this asset. */ - public AssetStatus withProgress(Optional progress) { + public AssetStatus withProgress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; @@ -157,7 +155,7 @@ public AssetStatus withErrorMessage(String errorMessage) { /** * Error message if the asset creation failed. */ - public AssetStatus withErrorMessage(Optional errorMessage) { + public AssetStatus withErrorMessage(Optional errorMessage) { Utils.checkNotNull(errorMessage, "errorMessage"); this.errorMessage = errorMessage; return this; @@ -173,15 +171,15 @@ public boolean equals(java.lang.Object o) { } AssetStatus other = (AssetStatus) o; return - java.util.Objects.deepEquals(this.phase, other.phase) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.progress, other.progress) && - java.util.Objects.deepEquals(this.errorMessage, other.errorMessage); + Objects.deepEquals(this.phase, other.phase) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.progress, other.progress) && + Objects.deepEquals(this.errorMessage, other.errorMessage); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( phase, updatedAt, progress, @@ -203,9 +201,9 @@ public final static class Builder { private Double updatedAt; - private Optional progress = Optional.empty(); + private Optional progress = Optional.empty(); - private Optional errorMessage = Optional.empty(); + private Optional errorMessage = Optional.empty(); private Builder() { // force use of static builder() method @@ -241,7 +239,7 @@ public Builder progress(double progress) { /** * Current progress of the task creating this asset. */ - public Builder progress(Optional progress) { + public Builder progress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; @@ -259,7 +257,7 @@ public Builder errorMessage(String errorMessage) { /** * Error message if the asset creation failed. */ - public Builder errorMessage(Optional errorMessage) { + public Builder errorMessage(Optional errorMessage) { Utils.checkNotNull(errorMessage, "errorMessage"); this.errorMessage = errorMessage; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetStorage.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetStorage.java index 5b1e497..8d55d94 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetStorage.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetStorage.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class AssetStorage { @JsonInclude(Include.NON_ABSENT) @@ -92,13 +92,13 @@ public boolean equals(java.lang.Object o) { } AssetStorage other = (AssetStorage) o; return - java.util.Objects.deepEquals(this.ipfs, other.ipfs) && - java.util.Objects.deepEquals(this.status, other.status); + Objects.deepEquals(this.ipfs, other.ipfs) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ipfs, status); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetType.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetType.java index 288cc5a..030f928 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * AssetType - Type of the asset. diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AssetVideoSpecType.java b/src/main/java/studio/livepeer/livepeer/models/components/AssetVideoSpecType.java index 8c95e07..975e776 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AssetVideoSpecType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AssetVideoSpecType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * AssetVideoSpecType - type of track diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Attestation.java b/src/main/java/studio/livepeer/livepeer/models/components/Attestation.java index 7b1a6aa..055c1d4 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Attestation.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Attestation.java @@ -1,28 +1,29 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Attestation { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; /** * Video Metadata EIP-712 primaryType @@ -53,7 +54,7 @@ public class Attestation { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("signatureType") @@ -65,12 +66,12 @@ public class Attestation { @JsonCreator public Attestation( - @JsonProperty("id") Optional id, + @JsonProperty("id") Optional id, @JsonProperty("primaryType") PrimaryType primaryType, @JsonProperty("domain") Domain domain, @JsonProperty("message") Message message, @JsonProperty("signature") String signature, - @JsonProperty("createdAt") Optional createdAt, + @JsonProperty("createdAt") Optional createdAt, @JsonProperty("signatureType") Optional signatureType, @JsonProperty("storage") Optional storage) { Utils.checkNotNull(id, "id"); @@ -99,10 +100,9 @@ public Attestation( this(Optional.empty(), primaryType, domain, message, signature, Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } /** @@ -140,10 +140,9 @@ public String signature() { /** * Timestamp (in milliseconds) at which the object was created */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } @SuppressWarnings("unchecked") @@ -168,7 +167,7 @@ public Attestation withId(String id) { return this; } - public Attestation withId(Optional id) { + public Attestation withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -222,7 +221,7 @@ public Attestation withCreatedAt(double createdAt) { /** * Timestamp (in milliseconds) at which the object was created */ - public Attestation withCreatedAt(Optional createdAt) { + public Attestation withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -262,19 +261,19 @@ public boolean equals(java.lang.Object o) { } Attestation other = (Attestation) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.primaryType, other.primaryType) && - java.util.Objects.deepEquals(this.domain, other.domain) && - java.util.Objects.deepEquals(this.message, other.message) && - java.util.Objects.deepEquals(this.signature, other.signature) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.signatureType, other.signatureType) && - java.util.Objects.deepEquals(this.storage, other.storage); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.primaryType, other.primaryType) && + Objects.deepEquals(this.domain, other.domain) && + Objects.deepEquals(this.message, other.message) && + Objects.deepEquals(this.signature, other.signature) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.signatureType, other.signatureType) && + Objects.deepEquals(this.storage, other.storage); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, primaryType, domain, @@ -300,7 +299,7 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private PrimaryType primaryType; @@ -310,7 +309,7 @@ public final static class Builder { private String signature; - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); private Optional signatureType = Optional.empty(); @@ -326,7 +325,7 @@ public Builder id(String id) { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -380,7 +379,7 @@ public Builder createdAt(double createdAt) { /** * Timestamp (in milliseconds) at which the object was created */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AttestationIpfs.java b/src/main/java/studio/livepeer/livepeer/models/components/AttestationIpfs.java index 558351f..f1007b3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AttestationIpfs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AttestationIpfs.java @@ -1,28 +1,30 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class AttestationIpfs { @JsonInclude(Include.NON_ABSENT) @JsonProperty("$ref") - private Optional dollarRef; + private Optional dollarRef; /** * Timestamp (in milliseconds) at which IPFS export task was updated @@ -30,12 +32,12 @@ public class AttestationIpfs { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; @JsonCreator public AttestationIpfs( - @JsonProperty("$ref") Optional dollarRef, - @JsonProperty("updatedAt") Optional updatedAt) { + @JsonProperty("$ref") Optional dollarRef, + @JsonProperty("updatedAt") Optional updatedAt) { Utils.checkNotNull(dollarRef, "dollarRef"); Utils.checkNotNull(updatedAt, "updatedAt"); this.dollarRef = dollarRef; @@ -48,31 +50,30 @@ public AttestationIpfs() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional dollarRef() { - return (Optional) dollarRef; + public Optional dollarRef() { + return (Optional) dollarRef; } /** * Timestamp (in milliseconds) at which IPFS export task was updated * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } public final static Builder builder() { return new Builder(); } - public AttestationIpfs withDollarRef(java.lang.Object dollarRef) { + public AttestationIpfs withDollarRef(Object dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = Optional.ofNullable(dollarRef); return this; } - public AttestationIpfs withDollarRef(Optional dollarRef) { + public AttestationIpfs withDollarRef(Optional dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = dollarRef; return this; @@ -92,7 +93,7 @@ public AttestationIpfs withUpdatedAt(double updatedAt) { * Timestamp (in milliseconds) at which IPFS export task was updated * */ - public AttestationIpfs withUpdatedAt(Optional updatedAt) { + public AttestationIpfs withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -108,13 +109,13 @@ public boolean equals(java.lang.Object o) { } AttestationIpfs other = (AttestationIpfs) o; return - java.util.Objects.deepEquals(this.dollarRef, other.dollarRef) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt); + Objects.deepEquals(this.dollarRef, other.dollarRef) && + Objects.deepEquals(this.updatedAt, other.updatedAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( dollarRef, updatedAt); } @@ -128,21 +129,21 @@ public String toString() { public final static class Builder { - private Optional dollarRef = Optional.empty(); + private Optional dollarRef = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); private Builder() { // force use of static builder() method } - public Builder dollarRef(java.lang.Object dollarRef) { + public Builder dollarRef(Object dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = Optional.ofNullable(dollarRef); return this; } - public Builder dollarRef(Optional dollarRef) { + public Builder dollarRef(Optional dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = dollarRef; return this; @@ -162,7 +163,7 @@ public Builder updatedAt(double updatedAt) { * Timestamp (in milliseconds) at which IPFS export task was updated * */ - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/AttestationStorage.java b/src/main/java/studio/livepeer/livepeer/models/components/AttestationStorage.java index d26b603..6184a80 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/AttestationStorage.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/AttestationStorage.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class AttestationStorage { @JsonInclude(Include.NON_ABSENT) @@ -92,13 +92,13 @@ public boolean equals(java.lang.Object o) { } AttestationStorage other = (AttestationStorage) o; return - java.util.Objects.deepEquals(this.ipfs, other.ipfs) && - java.util.Objects.deepEquals(this.status, other.status); + Objects.deepEquals(this.ipfs, other.ipfs) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ipfs, status); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Attestations.java b/src/main/java/studio/livepeer/livepeer/models/components/Attestations.java index d024b5e..c511313 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Attestations.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Attestations.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class Attestations { @JsonProperty("role") @@ -69,13 +68,13 @@ public boolean equals(java.lang.Object o) { } Attestations other = (Attestations) o; return - java.util.Objects.deepEquals(this.role, other.role) && - java.util.Objects.deepEquals(this.address, other.address); + Objects.deepEquals(this.role, other.role) && + Objects.deepEquals(this.address, other.address); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( role, address); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/CatalystPipelineStrategy.java b/src/main/java/studio/livepeer/livepeer/models/components/CatalystPipelineStrategy.java index af0c42c..5c99c5d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/CatalystPipelineStrategy.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/CatalystPipelineStrategy.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * CatalystPipelineStrategy - Force to use a specific strategy in the Catalyst pipeline. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Clip.java b/src/main/java/studio/livepeer/livepeer/models/components/Clip.java index 9d16e0a..37440f8 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Clip.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Clip.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Clip { /** @@ -25,7 +25,7 @@ public class Clip { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") - private Optional url; + private Optional url; /** * Strategy to use for clipping the asset. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. @@ -46,22 +46,22 @@ public class Clip { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sessionId") - private Optional sessionId; + private Optional sessionId; /** * ID of the input asset or stream */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("inputId") - private Optional inputId; + private Optional inputId; @JsonCreator public Clip( - @JsonProperty("url") Optional url, + @JsonProperty("url") Optional url, @JsonProperty("clipStrategy") Optional clipStrategy, @JsonProperty("catalystPipelineStrategy") Optional catalystPipelineStrategy, - @JsonProperty("sessionId") Optional sessionId, - @JsonProperty("inputId") Optional inputId) { + @JsonProperty("sessionId") Optional sessionId, + @JsonProperty("inputId") Optional inputId) { Utils.checkNotNull(url, "url"); Utils.checkNotNull(clipStrategy, "clipStrategy"); Utils.checkNotNull(catalystPipelineStrategy, "catalystPipelineStrategy"); @@ -81,10 +81,9 @@ public Clip() { /** * URL of the asset to "clip" */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional url() { - return (Optional) url; + return url; } /** @@ -108,19 +107,17 @@ public Optional catalystPipelineStrategy() { /** * ID of the session */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sessionId() { - return (Optional) sessionId; + return sessionId; } /** * ID of the input asset or stream */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional inputId() { - return (Optional) inputId; + return inputId; } public final static Builder builder() { @@ -139,7 +136,7 @@ public Clip withUrl(String url) { /** * URL of the asset to "clip" */ - public Clip withUrl(Optional url) { + public Clip withUrl(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -193,7 +190,7 @@ public Clip withSessionId(String sessionId) { /** * ID of the session */ - public Clip withSessionId(Optional sessionId) { + public Clip withSessionId(Optional sessionId) { Utils.checkNotNull(sessionId, "sessionId"); this.sessionId = sessionId; return this; @@ -211,7 +208,7 @@ public Clip withInputId(String inputId) { /** * ID of the input asset or stream */ - public Clip withInputId(Optional inputId) { + public Clip withInputId(Optional inputId) { Utils.checkNotNull(inputId, "inputId"); this.inputId = inputId; return this; @@ -227,16 +224,16 @@ public boolean equals(java.lang.Object o) { } Clip other = (Clip) o; return - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.clipStrategy, other.clipStrategy) && - java.util.Objects.deepEquals(this.catalystPipelineStrategy, other.catalystPipelineStrategy) && - java.util.Objects.deepEquals(this.sessionId, other.sessionId) && - java.util.Objects.deepEquals(this.inputId, other.inputId); + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.clipStrategy, other.clipStrategy) && + Objects.deepEquals(this.catalystPipelineStrategy, other.catalystPipelineStrategy) && + Objects.deepEquals(this.sessionId, other.sessionId) && + Objects.deepEquals(this.inputId, other.inputId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( url, clipStrategy, catalystPipelineStrategy, @@ -256,15 +253,15 @@ public String toString() { public final static class Builder { - private Optional url = Optional.empty(); + private Optional url = Optional.empty(); private Optional clipStrategy = Optional.empty(); private Optional catalystPipelineStrategy = Optional.empty(); - private Optional sessionId = Optional.empty(); + private Optional sessionId = Optional.empty(); - private Optional inputId = Optional.empty(); + private Optional inputId = Optional.empty(); private Builder() { // force use of static builder() method @@ -282,7 +279,7 @@ public Builder url(String url) { /** * URL of the asset to "clip" */ - public Builder url(Optional url) { + public Builder url(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -336,7 +333,7 @@ public Builder sessionId(String sessionId) { /** * ID of the session */ - public Builder sessionId(Optional sessionId) { + public Builder sessionId(Optional sessionId) { Utils.checkNotNull(sessionId, "sessionId"); this.sessionId = sessionId; return this; @@ -354,7 +351,7 @@ public Builder inputId(String inputId) { /** * ID of the input asset or stream */ - public Builder inputId(Optional inputId) { + public Builder inputId(Optional inputId) { Utils.checkNotNull(inputId, "inputId"); this.inputId = inputId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/ClipPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/ClipPayload.java index a2ef390..7cebbdc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/ClipPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/ClipPayload.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class ClipPayload { /** @@ -37,29 +37,29 @@ public class ClipPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("endTime") - private Optional endTime; + private Optional endTime; /** * The optional friendly name of the clip to create. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; /** * The optional session ID of the stream to clip. This can be used to clip _recordings_ - if it is not specified, it will clip the ongoing livestream. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sessionId") - private Optional sessionId; + private Optional sessionId; @JsonCreator public ClipPayload( @JsonProperty("playbackId") String playbackId, @JsonProperty("startTime") double startTime, - @JsonProperty("endTime") Optional endTime, - @JsonProperty("name") Optional name, - @JsonProperty("sessionId") Optional sessionId) { + @JsonProperty("endTime") Optional endTime, + @JsonProperty("name") Optional name, + @JsonProperty("sessionId") Optional sessionId) { Utils.checkNotNull(playbackId, "playbackId"); Utils.checkNotNull(startTime, "startTime"); Utils.checkNotNull(endTime, "endTime"); @@ -97,28 +97,25 @@ public double startTime() { /** * The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional endTime() { - return (Optional) endTime; + return endTime; } /** * The optional friendly name of the clip to create. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } /** * The optional session ID of the stream to clip. This can be used to clip _recordings_ - if it is not specified, it will clip the ongoing livestream. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sessionId() { - return (Optional) sessionId; + return sessionId; } public final static Builder builder() { @@ -155,7 +152,7 @@ public ClipPayload withEndTime(double endTime) { /** * The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ - public ClipPayload withEndTime(Optional endTime) { + public ClipPayload withEndTime(Optional endTime) { Utils.checkNotNull(endTime, "endTime"); this.endTime = endTime; return this; @@ -173,7 +170,7 @@ public ClipPayload withName(String name) { /** * The optional friendly name of the clip to create. */ - public ClipPayload withName(Optional name) { + public ClipPayload withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -191,7 +188,7 @@ public ClipPayload withSessionId(String sessionId) { /** * The optional session ID of the stream to clip. This can be used to clip _recordings_ - if it is not specified, it will clip the ongoing livestream. */ - public ClipPayload withSessionId(Optional sessionId) { + public ClipPayload withSessionId(Optional sessionId) { Utils.checkNotNull(sessionId, "sessionId"); this.sessionId = sessionId; return this; @@ -207,16 +204,16 @@ public boolean equals(java.lang.Object o) { } ClipPayload other = (ClipPayload) o; return - java.util.Objects.deepEquals(this.playbackId, other.playbackId) && - java.util.Objects.deepEquals(this.startTime, other.startTime) && - java.util.Objects.deepEquals(this.endTime, other.endTime) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.sessionId, other.sessionId); + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.startTime, other.startTime) && + Objects.deepEquals(this.endTime, other.endTime) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.sessionId, other.sessionId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playbackId, startTime, endTime, @@ -240,11 +237,11 @@ public final static class Builder { private Double startTime; - private Optional endTime = Optional.empty(); + private Optional endTime = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional sessionId = Optional.empty(); + private Optional sessionId = Optional.empty(); private Builder() { // force use of static builder() method @@ -280,7 +277,7 @@ public Builder endTime(double endTime) { /** * The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ - public Builder endTime(Optional endTime) { + public Builder endTime(Optional endTime) { Utils.checkNotNull(endTime, "endTime"); this.endTime = endTime; return this; @@ -298,7 +295,7 @@ public Builder name(String name) { /** * The optional friendly name of the clip to create. */ - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -316,7 +313,7 @@ public Builder sessionId(String sessionId) { /** * The optional session ID of the stream to clip. This can be used to clip _recordings_ - if it is not specified, it will clip the ongoing livestream. */ - public Builder sessionId(Optional sessionId) { + public Builder sessionId(Optional sessionId) { Utils.checkNotNull(sessionId, "sessionId"); this.sessionId = sessionId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/ClipStrategy.java b/src/main/java/studio/livepeer/livepeer/models/components/ClipStrategy.java index f51acb5..0456974 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/ClipStrategy.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/ClipStrategy.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * ClipStrategy - Strategy to use for clipping the asset. If not specified, the default strategy that Catalyst is configured for will be used. This field only available for admin users, and is only used for E2E testing. */ @@ -28,27 +28,27 @@ public class ClipStrategy { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("startTime") - private Optional startTime; + private Optional startTime; /** * The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("endTime") - private Optional endTime; + private Optional endTime; /** * The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("playbackId") - private Optional playbackId; + private Optional playbackId; @JsonCreator public ClipStrategy( - @JsonProperty("startTime") Optional startTime, - @JsonProperty("endTime") Optional endTime, - @JsonProperty("playbackId") Optional playbackId) { + @JsonProperty("startTime") Optional startTime, + @JsonProperty("endTime") Optional endTime, + @JsonProperty("playbackId") Optional playbackId) { Utils.checkNotNull(startTime, "startTime"); Utils.checkNotNull(endTime, "endTime"); Utils.checkNotNull(playbackId, "playbackId"); @@ -64,28 +64,25 @@ public ClipStrategy() { /** * The start timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional startTime() { - return (Optional) startTime; + return startTime; } /** * The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional endTime() { - return (Optional) endTime; + return endTime; } /** * The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playbackId() { - return (Optional) playbackId; + return playbackId; } public final static Builder builder() { @@ -104,7 +101,7 @@ public ClipStrategy withStartTime(double startTime) { /** * The start timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ - public ClipStrategy withStartTime(Optional startTime) { + public ClipStrategy withStartTime(Optional startTime) { Utils.checkNotNull(startTime, "startTime"); this.startTime = startTime; return this; @@ -122,7 +119,7 @@ public ClipStrategy withEndTime(double endTime) { /** * The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ - public ClipStrategy withEndTime(Optional endTime) { + public ClipStrategy withEndTime(Optional endTime) { Utils.checkNotNull(endTime, "endTime"); this.endTime = endTime; return this; @@ -140,7 +137,7 @@ public ClipStrategy withPlaybackId(String playbackId) { /** * The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. */ - public ClipStrategy withPlaybackId(Optional playbackId) { + public ClipStrategy withPlaybackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -156,14 +153,14 @@ public boolean equals(java.lang.Object o) { } ClipStrategy other = (ClipStrategy) o; return - java.util.Objects.deepEquals(this.startTime, other.startTime) && - java.util.Objects.deepEquals(this.endTime, other.endTime) && - java.util.Objects.deepEquals(this.playbackId, other.playbackId); + Objects.deepEquals(this.startTime, other.startTime) && + Objects.deepEquals(this.endTime, other.endTime) && + Objects.deepEquals(this.playbackId, other.playbackId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( startTime, endTime, playbackId); @@ -179,11 +176,11 @@ public String toString() { public final static class Builder { - private Optional startTime = Optional.empty(); + private Optional startTime = Optional.empty(); - private Optional endTime = Optional.empty(); + private Optional endTime = Optional.empty(); - private Optional playbackId = Optional.empty(); + private Optional playbackId = Optional.empty(); private Builder() { // force use of static builder() method @@ -201,7 +198,7 @@ public Builder startTime(double startTime) { /** * The start timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ - public Builder startTime(Optional startTime) { + public Builder startTime(Optional startTime) { Utils.checkNotNull(startTime, "startTime"); this.startTime = startTime; return this; @@ -219,7 +216,7 @@ public Builder endTime(double endTime) { /** * The end timestamp of the clip in Unix milliseconds. _See the ClipTrigger in the UI Kit for an example of how this is calculated (for HLS, it uses `Program Date-Time` tags, and for WebRTC, it uses the latency from server to client at stream startup)._ */ - public Builder endTime(Optional endTime) { + public Builder endTime(Optional endTime) { Utils.checkNotNull(endTime, "endTime"); this.endTime = endTime; return this; @@ -237,7 +234,7 @@ public Builder playbackId(String playbackId) { /** * The playback ID of the stream or stream recording to clip. Asset playback IDs are not supported yet. */ - public Builder playbackId(Optional playbackId) { + public Builder playbackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Content.java b/src/main/java/studio/livepeer/livepeer/models/components/Content.java index cbd1f7d..b3fcda6 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Content.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Content.java @@ -1,18 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Content - File content to store into IPFS */ @@ -42,7 +40,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/CreateRoomResponse.java b/src/main/java/studio/livepeer/livepeer/models/components/CreateRoomResponse.java index 2881e3a..7cc86a7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/CreateRoomResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/CreateRoomResponse.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class CreateRoomResponse { /** @@ -25,11 +24,11 @@ public class CreateRoomResponse { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonCreator public CreateRoomResponse( - @JsonProperty("id") Optional id) { + @JsonProperty("id") Optional id) { Utils.checkNotNull(id, "id"); this.id = id; } @@ -41,10 +40,9 @@ public CreateRoomResponse() { /** * The ID of the room */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } public final static Builder builder() { @@ -63,7 +61,7 @@ public CreateRoomResponse withId(String id) { /** * The ID of the room */ - public CreateRoomResponse withId(Optional id) { + public CreateRoomResponse withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -79,12 +77,12 @@ public boolean equals(java.lang.Object o) { } CreateRoomResponse other = (CreateRoomResponse) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } @@ -96,7 +94,7 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -114,7 +112,7 @@ public Builder id(String id) { /** * The ID of the room */ - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java b/src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java index 125d2ba..210f53c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/CreatorId.java @@ -1,31 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; @JsonDeserialize(using = CreatorId._Deserializer.class) public class CreatorId { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private CreatorId(TypedObject value) { @@ -40,7 +37,7 @@ public static CreatorId of(CreatorId1 value) { /** * Returns an instance of one of these types: *
    - *
  • {@code CreatorId1}
  • + *
  • {@code studio.livepeer.livepeer.models.components.CreatorId1}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -67,20 +64,20 @@ public boolean equals(java.lang.Object o) { return false; } CreatorId other = (CreatorId) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(CreatorId.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/CreatorId1.java b/src/main/java/studio/livepeer/livepeer/models/components/CreatorId1.java index 97d04ac..30f26e4 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/CreatorId1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/CreatorId1.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class CreatorId1 { @JsonProperty("type") @@ -78,13 +77,13 @@ public boolean equals(java.lang.Object o) { } CreatorId1 other = (CreatorId1) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.value, other.value); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.value, other.value); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, value); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/CreatorIdType.java b/src/main/java/studio/livepeer/livepeer/models/components/CreatorIdType.java index bfd1428..b8f5c4c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/CreatorIdType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/CreatorIdType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum CreatorIdType { UNVERIFIED("unverified"); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Credentials.java b/src/main/java/studio/livepeer/livepeer/models/components/Credentials.java index 4f21380..d14b183 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Credentials.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Credentials.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Credentials - Credentials for the private input video storage */ @@ -90,13 +89,13 @@ public boolean equals(java.lang.Object o) { } Credentials other = (Credentials) o; return - java.util.Objects.deepEquals(this.accessKeyId, other.accessKeyId) && - java.util.Objects.deepEquals(this.secretAccessKey, other.secretAccessKey); + Objects.deepEquals(this.accessKeyId, other.accessKeyId) && + Objects.deepEquals(this.secretAccessKey, other.secretAccessKey); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( accessKeyId, secretAccessKey); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Custom.java b/src/main/java/studio/livepeer/livepeer/models/components/Custom.java index c52e745..71daf05 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Custom.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Custom.java @@ -1,23 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; + /** * Custom - custom URL parameters for the export task */ @@ -35,20 +37,20 @@ public class Custom { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("method") - private Optional method; + private Optional method; /** * Headers to add to the export request */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("headers") - private Optional> headers; + private Optional> headers; @JsonCreator public Custom( @JsonProperty("url") String url, - @JsonProperty("method") Optional method, - @JsonProperty("headers") Optional> headers) { + @JsonProperty("method") Optional method, + @JsonProperty("headers") Optional> headers) { Utils.checkNotNull(url, "url"); Utils.checkNotNull(method, "method"); Utils.checkNotNull(headers, "headers"); @@ -73,10 +75,9 @@ public String url() { /** * Method to use on the export request */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional method() { - return (Optional) method; + return method; } /** @@ -84,8 +85,8 @@ public Optional method() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> headers() { - return (Optional>) headers; + public Optional> headers() { + return (Optional>) headers; } public final static Builder builder() { @@ -113,7 +114,7 @@ public Custom withMethod(String method) { /** * Method to use on the export request */ - public Custom withMethod(Optional method) { + public Custom withMethod(Optional method) { Utils.checkNotNull(method, "method"); this.method = method; return this; @@ -122,7 +123,7 @@ public Custom withMethod(Optional method) { /** * Headers to add to the export request */ - public Custom withHeaders(java.util.Map headers) { + public Custom withHeaders(Map headers) { Utils.checkNotNull(headers, "headers"); this.headers = Optional.ofNullable(headers); return this; @@ -131,7 +132,7 @@ public Custom withHeaders(java.util.Map headers) { /** * Headers to add to the export request */ - public Custom withHeaders(Optional> headers) { + public Custom withHeaders(Optional> headers) { Utils.checkNotNull(headers, "headers"); this.headers = headers; return this; @@ -147,14 +148,14 @@ public boolean equals(java.lang.Object o) { } Custom other = (Custom) o; return - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.method, other.method) && - java.util.Objects.deepEquals(this.headers, other.headers); + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.method, other.method) && + Objects.deepEquals(this.headers, other.headers); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( url, method, headers); @@ -172,9 +173,9 @@ public final static class Builder { private String url; - private Optional method; + private Optional method; - private Optional> headers = Optional.empty(); + private Optional> headers = Optional.empty(); private Builder() { // force use of static builder() method @@ -201,7 +202,7 @@ public Builder method(String method) { /** * Method to use on the export request */ - public Builder method(Optional method) { + public Builder method(Optional method) { Utils.checkNotNull(method, "method"); this.method = method; return this; @@ -210,7 +211,7 @@ public Builder method(Optional method) { /** * Headers to add to the export request */ - public Builder headers(java.util.Map headers) { + public Builder headers(Map headers) { Utils.checkNotNull(headers, "headers"); this.headers = Optional.ofNullable(headers); return this; @@ -219,7 +220,7 @@ public Builder headers(java.util.Map headers) { /** * Headers to add to the export request */ - public Builder headers(Optional> headers) { + public Builder headers(Optional> headers) { Utils.checkNotNull(headers, "headers"); this.headers = headers; return this; @@ -235,11 +236,11 @@ public Custom build() { headers); } - private static final LazySingletonValue> _SINGLETON_VALUE_Method = + private static final LazySingletonValue> _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", "\"PUT\"", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Domain.java b/src/main/java/studio/livepeer/livepeer/models/components/Domain.java index 8b9fa5b..6593b52 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Domain.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Domain.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Domain - Video Metadata EIP-712 domain */ @@ -72,13 +71,13 @@ public boolean equals(java.lang.Object o) { } Domain other = (Domain) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.version, other.version); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.version, other.version); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, version); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/DvrPlayback.java b/src/main/java/studio/livepeer/livepeer/models/components/DvrPlayback.java index c345ff8..d76b645 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/DvrPlayback.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/DvrPlayback.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class DvrPlayback { @JsonInclude(Include.NON_ABSENT) @@ -30,18 +30,18 @@ public class DvrPlayback { @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") - private Optional url; + private Optional url; @JsonInclude(Include.NON_ABSENT) @JsonProperty("error") - private Optional error; + private Optional error; @JsonCreator public DvrPlayback( @JsonProperty("hrn") Optional hrn, @JsonProperty("type") Optional type, - @JsonProperty("url") Optional url, - @JsonProperty("error") Optional error) { + @JsonProperty("url") Optional url, + @JsonProperty("error") Optional error) { Utils.checkNotNull(hrn, "hrn"); Utils.checkNotNull(type, "type"); Utils.checkNotNull(url, "url"); @@ -68,16 +68,14 @@ public Optional type() { return (Optional) type; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional url() { - return (Optional) url; + return url; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional error() { - return (Optional) error; + return error; } public final static Builder builder() { @@ -114,7 +112,7 @@ public DvrPlayback withUrl(String url) { return this; } - public DvrPlayback withUrl(Optional url) { + public DvrPlayback withUrl(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -126,7 +124,7 @@ public DvrPlayback withError(String error) { return this; } - public DvrPlayback withError(Optional error) { + public DvrPlayback withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -142,15 +140,15 @@ public boolean equals(java.lang.Object o) { } DvrPlayback other = (DvrPlayback) o; return - java.util.Objects.deepEquals(this.hrn, other.hrn) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.hrn, other.hrn) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( hrn, type, url, @@ -172,9 +170,9 @@ public final static class Builder { private Optional type = Optional.empty(); - private Optional url = Optional.empty(); + private Optional url = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -210,7 +208,7 @@ public Builder url(String url) { return this; } - public Builder url(Optional url) { + public Builder url(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -222,7 +220,7 @@ public Builder error(String error) { return this; } - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Encoder.java b/src/main/java/studio/livepeer/livepeer/models/components/Encoder.java index e222feb..8eba76c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Encoder.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Encoder.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum Encoder { H264("H.264"); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Encryption.java b/src/main/java/studio/livepeer/livepeer/models/components/Encryption.java index 965b15a..d476b67 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Encryption.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Encryption.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class Encryption { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } Encryption other = (Encryption) o; return - java.util.Objects.deepEquals(this.encryptedKey, other.encryptedKey); + Objects.deepEquals(this.encryptedKey, other.encryptedKey); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( encryptedKey); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/EncryptionOutput.java b/src/main/java/studio/livepeer/livepeer/models/components/EncryptionOutput.java index d006ae9..13d1d9d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/EncryptionOutput.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/EncryptionOutput.java @@ -1,19 +1,17 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class EncryptionOutput { @JsonCreator @@ -39,7 +37,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Events.java b/src/main/java/studio/livepeer/livepeer/models/components/Events.java index 7e9c132..e05df66 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Events.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Events.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum Events { STREAM_STARTED("stream.started"), diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Export.java b/src/main/java/studio/livepeer/livepeer/models/components/Export.java index f0c45fe..b1e08e1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Export.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Export.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * Export - Output of the export task */ @@ -70,12 +70,12 @@ public boolean equals(java.lang.Object o) { } Export other = (Export) o; return - java.util.Objects.deepEquals(this.ipfs, other.ipfs); + Objects.deepEquals(this.ipfs, other.ipfs); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ipfs); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/ExportData.java b/src/main/java/studio/livepeer/livepeer/models/components/ExportData.java index 5e5b033..12b5252 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/ExportData.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/ExportData.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * ExportData - Output of the export data task */ @@ -70,12 +70,12 @@ public boolean equals(java.lang.Object o) { } ExportData other = (ExportData) o; return - java.util.Objects.deepEquals(this.ipfs, other.ipfs); + Objects.deepEquals(this.ipfs, other.ipfs); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ipfs); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java b/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java index 057cfd5..6e9c745 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams.java @@ -1,25 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * ExportTaskParams - Parameters for the export task @@ -28,7 +25,7 @@ @JsonDeserialize(using = ExportTaskParams._Deserializer.class) public class ExportTaskParams { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private ExportTaskParams(TypedObject value) { @@ -48,8 +45,8 @@ public static ExportTaskParams of(ExportTaskParams2 value) { /** * Returns an instance of one of these types: *

    - *
  • {@code ExportTaskParams1}
  • - *
  • {@code ExportTaskParams2}
  • + *
  • {@code studio.livepeer.livepeer.models.components.ExportTaskParams1}
  • + *
  • {@code studio.livepeer.livepeer.models.components.ExportTaskParams2}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -76,21 +73,21 @@ public boolean equals(java.lang.Object o) { return false; } ExportTaskParams other = (ExportTaskParams) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(ExportTaskParams.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams1.java b/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams1.java index 3d9d3a5..521fa7f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams1.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class ExportTaskParams1 { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } ExportTaskParams1 other = (ExportTaskParams1) o; return - java.util.Objects.deepEquals(this.custom, other.custom); + Objects.deepEquals(this.custom, other.custom); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( custom); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams2.java b/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams2.java index a3aad02..678aa8e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams2.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/ExportTaskParams2.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class ExportTaskParams2 { @JsonProperty("ipfs") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } ExportTaskParams2 other = (ExportTaskParams2) o; return - java.util.Objects.deepEquals(this.ipfs, other.ipfs); + Objects.deepEquals(this.ipfs, other.ipfs); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ipfs); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/FfmpegProfile.java b/src/main/java/studio/livepeer/livepeer/models/components/FfmpegProfile.java index 3a75346..813166d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/FfmpegProfile.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/FfmpegProfile.java @@ -1,22 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * FfmpegProfile - Transcode profile */ @@ -40,7 +41,7 @@ public class FfmpegProfile { @JsonInclude(Include.NON_ABSENT) @JsonProperty("fpsDen") - private Optional fpsDen; + private Optional fpsDen; /** * Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it. @@ -48,11 +49,11 @@ public class FfmpegProfile { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("quality") - private Optional quality; + private Optional quality; @JsonInclude(Include.NON_ABSENT) @JsonProperty("gop") - private Optional gop; + private Optional gop; @JsonInclude(Include.NON_ABSENT) @JsonProperty("profile") @@ -69,9 +70,9 @@ public FfmpegProfile( @JsonProperty("height") long height, @JsonProperty("bitrate") long bitrate, @JsonProperty("fps") long fps, - @JsonProperty("fpsDen") Optional fpsDen, - @JsonProperty("quality") Optional quality, - @JsonProperty("gop") Optional gop, + @JsonProperty("fpsDen") Optional fpsDen, + @JsonProperty("quality") Optional quality, + @JsonProperty("gop") Optional gop, @JsonProperty("profile") Optional profile, @JsonProperty("encoder") Optional encoder) { Utils.checkNotNull(width, "width"); @@ -130,26 +131,23 @@ public long fps() { return fps; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional fpsDen() { - return (Optional) fpsDen; + return fpsDen; } /** * Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional quality() { - return (Optional) quality; + return quality; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional gop() { - return (Optional) gop; + return gop; } @SuppressWarnings("unchecked") @@ -204,7 +202,7 @@ public FfmpegProfile withFpsDen(long fpsDen) { return this; } - public FfmpegProfile withFpsDen(Optional fpsDen) { + public FfmpegProfile withFpsDen(Optional fpsDen) { Utils.checkNotNull(fpsDen, "fpsDen"); this.fpsDen = fpsDen; return this; @@ -224,7 +222,7 @@ public FfmpegProfile withQuality(long quality) { * Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it. * */ - public FfmpegProfile withQuality(Optional quality) { + public FfmpegProfile withQuality(Optional quality) { Utils.checkNotNull(quality, "quality"); this.quality = quality; return this; @@ -236,7 +234,7 @@ public FfmpegProfile withGop(String gop) { return this; } - public FfmpegProfile withGop(Optional gop) { + public FfmpegProfile withGop(Optional gop) { Utils.checkNotNull(gop, "gop"); this.gop = gop; return this; @@ -276,21 +274,21 @@ public boolean equals(java.lang.Object o) { } FfmpegProfile other = (FfmpegProfile) o; return - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.fps, other.fps) && - java.util.Objects.deepEquals(this.fpsDen, other.fpsDen) && - java.util.Objects.deepEquals(this.quality, other.quality) && - java.util.Objects.deepEquals(this.gop, other.gop) && - java.util.Objects.deepEquals(this.profile, other.profile) && - java.util.Objects.deepEquals(this.encoder, other.encoder); + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.fps, other.fps) && + Objects.deepEquals(this.fpsDen, other.fpsDen) && + Objects.deepEquals(this.quality, other.quality) && + Objects.deepEquals(this.gop, other.gop) && + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.encoder, other.encoder); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( width, name, height, @@ -330,11 +328,11 @@ public final static class Builder { private Long fps; - private Optional fpsDen = Optional.empty(); + private Optional fpsDen = Optional.empty(); - private Optional quality = Optional.empty(); + private Optional quality = Optional.empty(); - private Optional gop = Optional.empty(); + private Optional gop = Optional.empty(); private Optional profile = Optional.empty(); @@ -380,7 +378,7 @@ public Builder fpsDen(long fpsDen) { return this; } - public Builder fpsDen(Optional fpsDen) { + public Builder fpsDen(Optional fpsDen) { Utils.checkNotNull(fpsDen, "fpsDen"); this.fpsDen = fpsDen; return this; @@ -400,7 +398,7 @@ public Builder quality(long quality) { * Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it. * */ - public Builder quality(Optional quality) { + public Builder quality(Optional quality) { Utils.checkNotNull(quality, "quality"); this.quality = quality; return this; @@ -412,7 +410,7 @@ public Builder gop(String gop) { return this; } - public Builder gop(Optional gop) { + public Builder gop(Optional gop) { Utils.checkNotNull(gop, "gop"); this.gop = gop; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Fmp4.java b/src/main/java/studio/livepeer/livepeer/models/components/Fmp4.java index e99dd0e..74815dc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Fmp4.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Fmp4.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Fmp4 - FMP4 output format */ @@ -64,12 +63,12 @@ public boolean equals(java.lang.Object o) { } Fmp4 other = (Fmp4) o; return - java.util.Objects.deepEquals(this.path, other.path); + Objects.deepEquals(this.path, other.path); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( path); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java index 36f7900..c2f7667 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/GetRoomUserResponse.java @@ -1,24 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; + public class GetRoomUserResponse { /** @@ -26,43 +28,43 @@ public class GetRoomUserResponse { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; /** * Timestamp (in milliseconds) at which the user joined */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("joinedAt") - private Optional joinedAt; + private Optional joinedAt; /** * The display name of the user */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; /** * Whether a user is allowed to publish audio/video tracks */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("isPublisher") - private Optional isPublisher; + private Optional isPublisher; /** * User defined payload to store for the participant */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata") - private Optional metadata; + private Optional metadata; @JsonCreator public GetRoomUserResponse( - @JsonProperty("id") Optional id, - @JsonProperty("joinedAt") Optional joinedAt, - @JsonProperty("name") Optional name, - @JsonProperty("isPublisher") Optional isPublisher, - @JsonProperty("metadata") Optional metadata) { + @JsonProperty("id") Optional id, + @JsonProperty("joinedAt") Optional joinedAt, + @JsonProperty("name") Optional name, + @JsonProperty("isPublisher") Optional isPublisher, + @JsonProperty("metadata") Optional metadata) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(joinedAt, "joinedAt"); Utils.checkNotNull(name, "name"); @@ -82,46 +84,41 @@ public GetRoomUserResponse() { /** * The ID of the user */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } /** * Timestamp (in milliseconds) at which the user joined */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional joinedAt() { - return (Optional) joinedAt; + return joinedAt; } /** * The display name of the user */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } /** * Whether a user is allowed to publish audio/video tracks */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional isPublisher() { - return (Optional) isPublisher; + return isPublisher; } /** * User defined payload to store for the participant */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional metadata() { - return (Optional) metadata; + return metadata; } public final static Builder builder() { @@ -140,7 +137,7 @@ public GetRoomUserResponse withId(String id) { /** * The ID of the user */ - public GetRoomUserResponse withId(Optional id) { + public GetRoomUserResponse withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -158,7 +155,7 @@ public GetRoomUserResponse withJoinedAt(long joinedAt) { /** * Timestamp (in milliseconds) at which the user joined */ - public GetRoomUserResponse withJoinedAt(Optional joinedAt) { + public GetRoomUserResponse withJoinedAt(Optional joinedAt) { Utils.checkNotNull(joinedAt, "joinedAt"); this.joinedAt = joinedAt; return this; @@ -176,7 +173,7 @@ public GetRoomUserResponse withName(String name) { /** * The display name of the user */ - public GetRoomUserResponse withName(Optional name) { + public GetRoomUserResponse withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -194,7 +191,7 @@ public GetRoomUserResponse withIsPublisher(boolean isPublisher) { /** * Whether a user is allowed to publish audio/video tracks */ - public GetRoomUserResponse withIsPublisher(Optional isPublisher) { + public GetRoomUserResponse withIsPublisher(Optional isPublisher) { Utils.checkNotNull(isPublisher, "isPublisher"); this.isPublisher = isPublisher; return this; @@ -212,7 +209,7 @@ public GetRoomUserResponse withMetadata(String metadata) { /** * User defined payload to store for the participant */ - public GetRoomUserResponse withMetadata(Optional metadata) { + public GetRoomUserResponse withMetadata(Optional metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -228,16 +225,16 @@ public boolean equals(java.lang.Object o) { } GetRoomUserResponse other = (GetRoomUserResponse) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.joinedAt, other.joinedAt) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.isPublisher, other.isPublisher) && - java.util.Objects.deepEquals(this.metadata, other.metadata); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.joinedAt, other.joinedAt) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.isPublisher, other.isPublisher) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, joinedAt, name, @@ -257,15 +254,15 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional joinedAt = Optional.empty(); + private Optional joinedAt = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional isPublisher; + private Optional isPublisher; - private Optional metadata = Optional.empty(); + private Optional metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -283,7 +280,7 @@ public Builder id(String id) { /** * The ID of the user */ - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -301,7 +298,7 @@ public Builder joinedAt(long joinedAt) { /** * Timestamp (in milliseconds) at which the user joined */ - public Builder joinedAt(Optional joinedAt) { + public Builder joinedAt(Optional joinedAt) { Utils.checkNotNull(joinedAt, "joinedAt"); this.joinedAt = joinedAt; return this; @@ -319,7 +316,7 @@ public Builder name(String name) { /** * The display name of the user */ - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -337,7 +334,7 @@ public Builder isPublisher(boolean isPublisher) { /** * Whether a user is allowed to publish audio/video tracks */ - public Builder isPublisher(Optional isPublisher) { + public Builder isPublisher(Optional isPublisher) { Utils.checkNotNull(isPublisher, "isPublisher"); this.isPublisher = isPublisher; return this; @@ -355,7 +352,7 @@ public Builder metadata(String metadata) { /** * User defined payload to store for the participant */ - public Builder metadata(Optional metadata) { + public Builder metadata(Optional metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -373,11 +370,11 @@ public GetRoomUserResponse build() { metadata); } - private static final LazySingletonValue> _SINGLETON_VALUE_IsPublisher = + private static final LazySingletonValue> _SINGLETON_VALUE_IsPublisher = new LazySingletonValue<>( "isPublisher", "true", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Hash.java b/src/main/java/studio/livepeer/livepeer/models/components/Hash.java index 9fa3770..6d78f60 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Hash.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Hash.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Hash { /** @@ -25,19 +24,19 @@ public class Hash { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("hash") - private Optional hash; + private Optional hash; /** * Hash algorithm used to compute the hash */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("algorithm") - private Optional algorithm; + private Optional algorithm; @JsonCreator public Hash( - @JsonProperty("hash") Optional hash, - @JsonProperty("algorithm") Optional algorithm) { + @JsonProperty("hash") Optional hash, + @JsonProperty("algorithm") Optional algorithm) { Utils.checkNotNull(hash, "hash"); Utils.checkNotNull(algorithm, "algorithm"); this.hash = hash; @@ -51,19 +50,17 @@ public Hash() { /** * Hash of the asset */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional hash() { - return (Optional) hash; + return hash; } /** * Hash algorithm used to compute the hash */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional algorithm() { - return (Optional) algorithm; + return algorithm; } public final static Builder builder() { @@ -82,7 +79,7 @@ public Hash withHash(String hash) { /** * Hash of the asset */ - public Hash withHash(Optional hash) { + public Hash withHash(Optional hash) { Utils.checkNotNull(hash, "hash"); this.hash = hash; return this; @@ -100,7 +97,7 @@ public Hash withAlgorithm(String algorithm) { /** * Hash algorithm used to compute the hash */ - public Hash withAlgorithm(Optional algorithm) { + public Hash withAlgorithm(Optional algorithm) { Utils.checkNotNull(algorithm, "algorithm"); this.algorithm = algorithm; return this; @@ -116,13 +113,13 @@ public boolean equals(java.lang.Object o) { } Hash other = (Hash) o; return - java.util.Objects.deepEquals(this.hash, other.hash) && - java.util.Objects.deepEquals(this.algorithm, other.algorithm); + Objects.deepEquals(this.hash, other.hash) && + Objects.deepEquals(this.algorithm, other.algorithm); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( hash, algorithm); } @@ -136,9 +133,9 @@ public String toString() { public final static class Builder { - private Optional hash = Optional.empty(); + private Optional hash = Optional.empty(); - private Optional algorithm = Optional.empty(); + private Optional algorithm = Optional.empty(); private Builder() { // force use of static builder() method @@ -156,7 +153,7 @@ public Builder hash(String hash) { /** * Hash of the asset */ - public Builder hash(Optional hash) { + public Builder hash(Optional hash) { Utils.checkNotNull(hash, "hash"); this.hash = hash; return this; @@ -174,7 +171,7 @@ public Builder algorithm(String algorithm) { /** * Hash algorithm used to compute the hash */ - public Builder algorithm(Optional algorithm) { + public Builder algorithm(Optional algorithm) { Utils.checkNotNull(algorithm, "algorithm"); this.algorithm = algorithm; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Hls.java b/src/main/java/studio/livepeer/livepeer/models/components/Hls.java index 24465f5..628daf3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Hls.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Hls.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Hls - HLS output format */ @@ -64,12 +63,12 @@ public boolean equals(java.lang.Object o) { } Hls other = (Hls) o; return - java.util.Objects.deepEquals(this.path, other.path); + Objects.deepEquals(this.path, other.path); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( path); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Hrn.java b/src/main/java/studio/livepeer/livepeer/models/components/Hrn.java index b532c3d..b5164a0 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Hrn.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Hrn.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * Hrn - Human Readable Name @@ -24,6 +17,7 @@ public enum Hrn { WEB_RTCH264("WebRTC (H264)"), FLV_H264("FLV (H264)"), THUMBNAIL_JPEG("Thumbnail (JPEG)"), + THUMBNAIL_PNG("Thumbnail (PNG)"), THUMBNAILS("Thumbnails"); @JsonValue diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Input.java b/src/main/java/studio/livepeer/livepeer/models/components/Input.java index a4a7995..d041a61 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Input.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Input.java @@ -1,31 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; @JsonDeserialize(using = Input._Deserializer.class) public class Input { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private Input(TypedObject value) { @@ -45,8 +42,8 @@ public static Input of(Input2 value) { /** * Returns an instance of one of these types: *

    - *
  • {@code Input1}
  • - *
  • {@code Input2}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Input1}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Input2}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -73,21 +70,21 @@ public boolean equals(java.lang.Object o) { return false; } Input other = (Input) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Input.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Input1.java b/src/main/java/studio/livepeer/livepeer/models/components/Input1.java index 0a4b6c7..82e62fa 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Input1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Input1.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Input1 - URL input video */ @@ -64,12 +63,12 @@ public boolean equals(java.lang.Object o) { } Input1 other = (Input1) o; return - java.util.Objects.deepEquals(this.url, other.url); + Objects.deepEquals(this.url, other.url); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( url); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Input2.java b/src/main/java/studio/livepeer/livepeer/models/components/Input2.java index b6002e1..cda9795 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Input2.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Input2.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Input2 - S3-like storage input video */ @@ -174,16 +173,16 @@ public boolean equals(java.lang.Object o) { } Input2 other = (Input2) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.endpoint, other.endpoint) && - java.util.Objects.deepEquals(this.bucket, other.bucket) && - java.util.Objects.deepEquals(this.path, other.path) && - java.util.Objects.deepEquals(this.credentials, other.credentials); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.endpoint, other.endpoint) && + Objects.deepEquals(this.bucket, other.bucket) && + Objects.deepEquals(this.path, other.path) && + Objects.deepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, endpoint, bucket, diff --git a/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java b/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java index 1ebc8a5..72bc429 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId.java @@ -1,31 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; @JsonDeserialize(using = InputCreatorId._Deserializer.class) public class InputCreatorId { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private InputCreatorId(TypedObject value) { @@ -45,8 +42,8 @@ public static InputCreatorId of(String value) { /** * Returns an instance of one of these types: *

    - *
  • {@code InputCreatorId1}
  • - *
  • {@code String}
  • + *
  • {@code studio.livepeer.livepeer.models.components.InputCreatorId1}
  • + *
  • {@code java.lang.String}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -73,21 +70,21 @@ public boolean equals(java.lang.Object o) { return false; } InputCreatorId other = (InputCreatorId) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(InputCreatorId.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId1.java b/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId1.java index 60a0810..48f7e4b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorId1.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class InputCreatorId1 { @JsonProperty("type") @@ -69,13 +68,13 @@ public boolean equals(java.lang.Object o) { } InputCreatorId1 other = (InputCreatorId1) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.value, other.value); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.value, other.value); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, value); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorIdType.java b/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorIdType.java index 77cb3d5..25b405d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorIdType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/InputCreatorIdType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum InputCreatorIdType { UNVERIFIED("unverified"); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/InputType.java b/src/main/java/studio/livepeer/livepeer/models/components/InputType.java index 4ac6c61..da0a8fd 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/InputType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/InputType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * InputType - Type of service. This is optional and defaults to `url` if diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java b/src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java index 46c42d7..7107a71 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Ipfs.java @@ -1,25 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * Ipfs - Set to true to make default export to IPFS. To customize the @@ -31,7 +28,7 @@ @JsonDeserialize(using = Ipfs._Deserializer.class) public class Ipfs { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private Ipfs(TypedObject value) { @@ -45,13 +42,13 @@ public static Ipfs of(Ipfs1 value) { public static Ipfs of(boolean value) { Utils.checkNotNull(value, "value"); - return new Ipfs(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new Ipfs(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *

    - *
  • {@code Ipfs1}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Ipfs1}
  • *
  • {@code boolean}
  • *
* @@ -79,21 +76,21 @@ public boolean equals(java.lang.Object o) { return false; } Ipfs other = (Ipfs) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Ipfs.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Ipfs1.java b/src/main/java/studio/livepeer/livepeer/models/components/Ipfs1.java index 374ba7d..b61a480 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Ipfs1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Ipfs1.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class Ipfs1 { @JsonInclude(Include.NON_ABSENT) @@ -67,12 +67,12 @@ public boolean equals(java.lang.Object o) { } Ipfs1 other = (Ipfs1) o; return - java.util.Objects.deepEquals(this.spec, other.spec); + Objects.deepEquals(this.spec, other.spec); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( spec); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/IpfsExportParams.java b/src/main/java/studio/livepeer/livepeer/models/components/IpfsExportParams.java index b99a5f3..b242502 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/IpfsExportParams.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/IpfsExportParams.java @@ -1,28 +1,29 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class IpfsExportParams { @JsonInclude(Include.NON_ABSENT) @JsonProperty("$ref") - private Optional dollarRef; + private Optional dollarRef; /** * Custom credentials for the Piñata service. Must have either @@ -35,7 +36,7 @@ public class IpfsExportParams { @JsonCreator public IpfsExportParams( - @JsonProperty("$ref") Optional dollarRef, + @JsonProperty("$ref") Optional dollarRef, @JsonProperty("pinata") Optional pinata) { Utils.checkNotNull(dollarRef, "dollarRef"); Utils.checkNotNull(pinata, "pinata"); @@ -49,8 +50,8 @@ public IpfsExportParams() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional dollarRef() { - return (Optional) dollarRef; + public Optional dollarRef() { + return (Optional) dollarRef; } /** @@ -68,13 +69,13 @@ public final static Builder builder() { return new Builder(); } - public IpfsExportParams withDollarRef(java.lang.Object dollarRef) { + public IpfsExportParams withDollarRef(Object dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = Optional.ofNullable(dollarRef); return this; } - public IpfsExportParams withDollarRef(Optional dollarRef) { + public IpfsExportParams withDollarRef(Optional dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = dollarRef; return this; @@ -112,13 +113,13 @@ public boolean equals(java.lang.Object o) { } IpfsExportParams other = (IpfsExportParams) o; return - java.util.Objects.deepEquals(this.dollarRef, other.dollarRef) && - java.util.Objects.deepEquals(this.pinata, other.pinata); + Objects.deepEquals(this.dollarRef, other.dollarRef) && + Objects.deepEquals(this.pinata, other.pinata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( dollarRef, pinata); } @@ -132,7 +133,7 @@ public String toString() { public final static class Builder { - private Optional dollarRef = Optional.empty(); + private Optional dollarRef = Optional.empty(); private Optional pinata = Optional.empty(); @@ -140,13 +141,13 @@ private Builder() { // force use of static builder() method } - public Builder dollarRef(java.lang.Object dollarRef) { + public Builder dollarRef(Object dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = Optional.ofNullable(dollarRef); return this; } - public Builder dollarRef(Optional dollarRef) { + public Builder dollarRef(Optional dollarRef) { Utils.checkNotNull(dollarRef, "dollarRef"); this.dollarRef = dollarRef; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/IpfsFileInfo.java b/src/main/java/studio/livepeer/livepeer/models/components/IpfsFileInfo.java index 5497f1d..cf4da8c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/IpfsFileInfo.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/IpfsFileInfo.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class IpfsFileInfo { /** @@ -31,20 +30,20 @@ public class IpfsFileInfo { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") - private Optional url; + private Optional url; /** * URL to access file via HTTP through an IPFS gateway */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("gatewayUrl") - private Optional gatewayUrl; + private Optional gatewayUrl; @JsonCreator public IpfsFileInfo( @JsonProperty("cid") String cid, - @JsonProperty("url") Optional url, - @JsonProperty("gatewayUrl") Optional gatewayUrl) { + @JsonProperty("url") Optional url, + @JsonProperty("gatewayUrl") Optional gatewayUrl) { Utils.checkNotNull(cid, "cid"); Utils.checkNotNull(url, "url"); Utils.checkNotNull(gatewayUrl, "gatewayUrl"); @@ -69,19 +68,17 @@ public String cid() { /** * URL with IPFS scheme for the file */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional url() { - return (Optional) url; + return url; } /** * URL to access file via HTTP through an IPFS gateway */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional gatewayUrl() { - return (Optional) gatewayUrl; + return gatewayUrl; } public final static Builder builder() { @@ -109,7 +106,7 @@ public IpfsFileInfo withUrl(String url) { /** * URL with IPFS scheme for the file */ - public IpfsFileInfo withUrl(Optional url) { + public IpfsFileInfo withUrl(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -127,7 +124,7 @@ public IpfsFileInfo withGatewayUrl(String gatewayUrl) { /** * URL to access file via HTTP through an IPFS gateway */ - public IpfsFileInfo withGatewayUrl(Optional gatewayUrl) { + public IpfsFileInfo withGatewayUrl(Optional gatewayUrl) { Utils.checkNotNull(gatewayUrl, "gatewayUrl"); this.gatewayUrl = gatewayUrl; return this; @@ -143,14 +140,14 @@ public boolean equals(java.lang.Object o) { } IpfsFileInfo other = (IpfsFileInfo) o; return - java.util.Objects.deepEquals(this.cid, other.cid) && - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.gatewayUrl, other.gatewayUrl); + Objects.deepEquals(this.cid, other.cid) && + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.gatewayUrl, other.gatewayUrl); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( cid, url, gatewayUrl); @@ -168,9 +165,9 @@ public final static class Builder { private String cid; - private Optional url = Optional.empty(); + private Optional url = Optional.empty(); - private Optional gatewayUrl = Optional.empty(); + private Optional gatewayUrl = Optional.empty(); private Builder() { // force use of static builder() method @@ -197,7 +194,7 @@ public Builder url(String url) { /** * URL with IPFS scheme for the file */ - public Builder url(Optional url) { + public Builder url(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -215,7 +212,7 @@ public Builder gatewayUrl(String gatewayUrl) { /** * URL to access file via HTTP through an IPFS gateway */ - public Builder gatewayUrl(Optional gatewayUrl) { + public Builder gatewayUrl(Optional gatewayUrl) { Utils.checkNotNull(gatewayUrl, "gatewayUrl"); this.gatewayUrl = gatewayUrl; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java b/src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java index 0b26ccc..8814a3b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/IsMobile.java @@ -1,25 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * IsMobile - Indicates whether the stream will be pulled from a mobile source. @@ -28,7 +25,7 @@ @JsonDeserialize(using = IsMobile._Deserializer.class) public class IsMobile { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private IsMobile(TypedObject value) { @@ -42,13 +39,13 @@ public static IsMobile of(One value) { public static IsMobile of(boolean value) { Utils.checkNotNull(value, "value"); - return new IsMobile(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new IsMobile(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
    - *
  • {@code One}
  • + *
  • {@code studio.livepeer.livepeer.models.components.One}
  • *
  • {@code boolean}
  • *
* @@ -76,21 +73,21 @@ public boolean equals(java.lang.Object o) { return false; } IsMobile other = (IsMobile) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(IsMobile.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/IsMobile1.java b/src/main/java/studio/livepeer/livepeer/models/components/IsMobile1.java index ee20ec8..fc164a3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/IsMobile1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/IsMobile1.java @@ -1,19 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; /** * IsMobile1 - 0: not mobile, 1: mobile screen share, 2: mobile camera. diff --git a/src/main/java/studio/livepeer/livepeer/models/components/LastFailure.java b/src/main/java/studio/livepeer/livepeer/models/components/LastFailure.java index 4eaa68c..ce1179b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/LastFailure.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/LastFailure.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * LastFailure - failure timestamp and error message with status code */ @@ -28,35 +28,35 @@ public class LastFailure { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timestamp") - private Optional timestamp; + private Optional timestamp; /** * Webhook failure error message */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("error") - private Optional error; + private Optional error; /** * Webhook failure response */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("response") - private Optional response; + private Optional response; /** * Webhook failure status code */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("statusCode") - private Optional statusCode; + private Optional statusCode; @JsonCreator public LastFailure( - @JsonProperty("timestamp") Optional timestamp, - @JsonProperty("error") Optional error, - @JsonProperty("response") Optional response, - @JsonProperty("statusCode") Optional statusCode) { + @JsonProperty("timestamp") Optional timestamp, + @JsonProperty("error") Optional error, + @JsonProperty("response") Optional response, + @JsonProperty("statusCode") Optional statusCode) { Utils.checkNotNull(timestamp, "timestamp"); Utils.checkNotNull(error, "error"); Utils.checkNotNull(response, "response"); @@ -74,37 +74,33 @@ public LastFailure() { /** * Timestamp (in milliseconds) at which the webhook last failed */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional timestamp() { - return (Optional) timestamp; + return timestamp; } /** * Webhook failure error message */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional error() { - return (Optional) error; + return error; } /** * Webhook failure response */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional response() { - return (Optional) response; + return response; } /** * Webhook failure status code */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional statusCode() { - return (Optional) statusCode; + return statusCode; } public final static Builder builder() { @@ -123,7 +119,7 @@ public LastFailure withTimestamp(double timestamp) { /** * Timestamp (in milliseconds) at which the webhook last failed */ - public LastFailure withTimestamp(Optional timestamp) { + public LastFailure withTimestamp(Optional timestamp) { Utils.checkNotNull(timestamp, "timestamp"); this.timestamp = timestamp; return this; @@ -141,7 +137,7 @@ public LastFailure withError(String error) { /** * Webhook failure error message */ - public LastFailure withError(Optional error) { + public LastFailure withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -159,7 +155,7 @@ public LastFailure withResponse(String response) { /** * Webhook failure response */ - public LastFailure withResponse(Optional response) { + public LastFailure withResponse(Optional response) { Utils.checkNotNull(response, "response"); this.response = response; return this; @@ -177,7 +173,7 @@ public LastFailure withStatusCode(double statusCode) { /** * Webhook failure status code */ - public LastFailure withStatusCode(Optional statusCode) { + public LastFailure withStatusCode(Optional statusCode) { Utils.checkNotNull(statusCode, "statusCode"); this.statusCode = statusCode; return this; @@ -193,15 +189,15 @@ public boolean equals(java.lang.Object o) { } LastFailure other = (LastFailure) o; return - java.util.Objects.deepEquals(this.timestamp, other.timestamp) && - java.util.Objects.deepEquals(this.error, other.error) && - java.util.Objects.deepEquals(this.response, other.response) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode); + Objects.deepEquals(this.timestamp, other.timestamp) && + Objects.deepEquals(this.error, other.error) && + Objects.deepEquals(this.response, other.response) && + Objects.deepEquals(this.statusCode, other.statusCode); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( timestamp, error, response, @@ -219,13 +215,13 @@ public String toString() { public final static class Builder { - private Optional timestamp = Optional.empty(); + private Optional timestamp = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); - private Optional response = Optional.empty(); + private Optional response = Optional.empty(); - private Optional statusCode = Optional.empty(); + private Optional statusCode = Optional.empty(); private Builder() { // force use of static builder() method @@ -243,7 +239,7 @@ public Builder timestamp(double timestamp) { /** * Timestamp (in milliseconds) at which the webhook last failed */ - public Builder timestamp(Optional timestamp) { + public Builder timestamp(Optional timestamp) { Utils.checkNotNull(timestamp, "timestamp"); this.timestamp = timestamp; return this; @@ -261,7 +257,7 @@ public Builder error(String error) { /** * Webhook failure error message */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -279,7 +275,7 @@ public Builder response(String response) { /** * Webhook failure response */ - public Builder response(Optional response) { + public Builder response(Optional response) { Utils.checkNotNull(response, "response"); this.response = response; return this; @@ -297,7 +293,7 @@ public Builder statusCode(double statusCode) { /** * Webhook failure status code */ - public Builder statusCode(Optional statusCode) { + public Builder statusCode(Optional statusCode) { Utils.checkNotNull(statusCode, "statusCode"); this.statusCode = statusCode; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Live.java b/src/main/java/studio/livepeer/livepeer/models/components/Live.java index b3ba48c..71b18e9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Live.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Live.java @@ -1,19 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; public enum Live { ZERO(0L), diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Location.java b/src/main/java/studio/livepeer/livepeer/models/components/Location.java index 6726a39..56ab88a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Location.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Location.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Location - Approximate location of the pull source. The location is used to * determine the closest Livepeer region to pull the stream from. @@ -97,13 +97,13 @@ public boolean equals(java.lang.Object o) { } Location other = (Location) o; return - java.util.Objects.deepEquals(this.lat, other.lat) && - java.util.Objects.deepEquals(this.lon, other.lon); + Objects.deepEquals(this.lat, other.lat) && + Objects.deepEquals(this.lon, other.lon); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( lat, lon); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Message.java b/src/main/java/studio/livepeer/livepeer/models/components/Message.java index 773d23d..22aa0cc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Message.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Message.java @@ -1,19 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Message - Video Metadata EIP-712 message content */ @@ -24,7 +25,7 @@ public class Message { private String video; @JsonProperty("attestations") - private java.util.List attestations; + private List attestations; @JsonProperty("signer") private String signer; @@ -35,7 +36,7 @@ public class Message { @JsonCreator public Message( @JsonProperty("video") String video, - @JsonProperty("attestations") java.util.List attestations, + @JsonProperty("attestations") List attestations, @JsonProperty("signer") String signer, @JsonProperty("timestamp") double timestamp) { Utils.checkNotNull(video, "video"); @@ -54,7 +55,7 @@ public String video() { } @JsonIgnore - public java.util.List attestations() { + public List attestations() { return attestations; } @@ -78,7 +79,7 @@ public Message withVideo(String video) { return this; } - public Message withAttestations(java.util.List attestations) { + public Message withAttestations(List attestations) { Utils.checkNotNull(attestations, "attestations"); this.attestations = attestations; return this; @@ -106,15 +107,15 @@ public boolean equals(java.lang.Object o) { } Message other = (Message) o; return - java.util.Objects.deepEquals(this.video, other.video) && - java.util.Objects.deepEquals(this.attestations, other.attestations) && - java.util.Objects.deepEquals(this.signer, other.signer) && - java.util.Objects.deepEquals(this.timestamp, other.timestamp); + Objects.deepEquals(this.video, other.video) && + Objects.deepEquals(this.attestations, other.attestations) && + Objects.deepEquals(this.signer, other.signer) && + Objects.deepEquals(this.timestamp, other.timestamp); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( video, attestations, signer, @@ -134,7 +135,7 @@ public final static class Builder { private String video; - private java.util.List attestations; + private List attestations; private String signer; @@ -150,7 +151,7 @@ public Builder video(String video) { return this; } - public Builder attestations(java.util.List attestations) { + public Builder attestations(List attestations) { Utils.checkNotNull(attestations, "attestations"); this.attestations = attestations; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Meta.java b/src/main/java/studio/livepeer/livepeer/models/components/Meta.java index a1f0445..e61a2ca 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Meta.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Meta.java @@ -1,24 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class Meta { @JsonInclude(Include.NON_ABSENT) @@ -33,11 +34,11 @@ public class Meta { private JsonNullable playbackPolicy; @JsonProperty("source") - private java.util.List source; + private List source; @JsonInclude(Include.NON_ABSENT) @JsonProperty("dvrPlayback") - private Optional> dvrPlayback; + private Optional> dvrPlayback; @JsonInclude(Include.NON_ABSENT) @JsonProperty("attestation") @@ -47,8 +48,8 @@ public class Meta { public Meta( @JsonProperty("live") Optional live, @JsonProperty("playbackPolicy") JsonNullable playbackPolicy, - @JsonProperty("source") java.util.List source, - @JsonProperty("dvrPlayback") Optional> dvrPlayback, + @JsonProperty("source") List source, + @JsonProperty("dvrPlayback") Optional> dvrPlayback, @JsonProperty("attestation") Optional attestation) { Utils.checkNotNull(live, "live"); Utils.checkNotNull(playbackPolicy, "playbackPolicy"); @@ -63,7 +64,7 @@ public Meta( } public Meta( - java.util.List source) { + List source) { this(Optional.empty(), JsonNullable.undefined(), source, Optional.empty(), Optional.empty()); } @@ -83,14 +84,14 @@ public JsonNullable playbackPolicy() { } @JsonIgnore - public java.util.List source() { + public List source() { return source; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> dvrPlayback() { - return (Optional>) dvrPlayback; + public Optional> dvrPlayback() { + return (Optional>) dvrPlayback; } @SuppressWarnings("unchecked") @@ -133,19 +134,19 @@ public Meta withPlaybackPolicy(JsonNullable playbackPo return this; } - public Meta withSource(java.util.List source) { + public Meta withSource(List source) { Utils.checkNotNull(source, "source"); this.source = source; return this; } - public Meta withDvrPlayback(java.util.List dvrPlayback) { + public Meta withDvrPlayback(List dvrPlayback) { Utils.checkNotNull(dvrPlayback, "dvrPlayback"); this.dvrPlayback = Optional.ofNullable(dvrPlayback); return this; } - public Meta withDvrPlayback(Optional> dvrPlayback) { + public Meta withDvrPlayback(Optional> dvrPlayback) { Utils.checkNotNull(dvrPlayback, "dvrPlayback"); this.dvrPlayback = dvrPlayback; return this; @@ -173,16 +174,16 @@ public boolean equals(java.lang.Object o) { } Meta other = (Meta) o; return - java.util.Objects.deepEquals(this.live, other.live) && - java.util.Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && - java.util.Objects.deepEquals(this.source, other.source) && - java.util.Objects.deepEquals(this.dvrPlayback, other.dvrPlayback) && - java.util.Objects.deepEquals(this.attestation, other.attestation); + Objects.deepEquals(this.live, other.live) && + Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && + Objects.deepEquals(this.source, other.source) && + Objects.deepEquals(this.dvrPlayback, other.dvrPlayback) && + Objects.deepEquals(this.attestation, other.attestation); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( live, playbackPolicy, source, @@ -206,9 +207,9 @@ public final static class Builder { private JsonNullable playbackPolicy = JsonNullable.undefined(); - private java.util.List source; + private List source; - private Optional> dvrPlayback = Optional.empty(); + private Optional> dvrPlayback = Optional.empty(); private Optional attestation = Optional.empty(); @@ -246,19 +247,19 @@ public Builder playbackPolicy(JsonNullable playbackPol return this; } - public Builder source(java.util.List source) { + public Builder source(List source) { Utils.checkNotNull(source, "source"); this.source = source; return this; } - public Builder dvrPlayback(java.util.List dvrPlayback) { + public Builder dvrPlayback(List dvrPlayback) { Utils.checkNotNull(dvrPlayback, "dvrPlayback"); this.dvrPlayback = Optional.ofNullable(dvrPlayback); return this; } - public Builder dvrPlayback(Optional> dvrPlayback) { + public Builder dvrPlayback(Optional> dvrPlayback) { Utils.checkNotNull(dvrPlayback, "dvrPlayback"); this.dvrPlayback = dvrPlayback; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Mp4.java b/src/main/java/studio/livepeer/livepeer/models/components/Mp4.java index 90f983f..95e3239 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Mp4.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Mp4.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Mp4 - MP4 output format */ @@ -64,12 +63,12 @@ public boolean equals(java.lang.Object o) { } Mp4 other = (Mp4) o; return - java.util.Objects.deepEquals(this.path, other.path); + Objects.deepEquals(this.path, other.path); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( path); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Multistream.java b/src/main/java/studio/livepeer/livepeer/models/components/Multistream.java index e5d15c2..1993c18 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Multistream.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Multistream.java @@ -1,23 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Multistream { /** @@ -27,11 +28,11 @@ public class Multistream { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("targets") - private Optional> targets; + private Optional> targets; @JsonCreator public Multistream( - @JsonProperty("targets") Optional> targets) { + @JsonProperty("targets") Optional> targets) { Utils.checkNotNull(targets, "targets"); this.targets = targets; } @@ -47,8 +48,8 @@ public Multistream() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> targets() { - return (Optional>) targets; + public Optional> targets() { + return (Optional>) targets; } public final static Builder builder() { @@ -60,7 +61,7 @@ public final static Builder builder() { * streamed to * */ - public Multistream withTargets(java.util.List targets) { + public Multistream withTargets(List targets) { Utils.checkNotNull(targets, "targets"); this.targets = Optional.ofNullable(targets); return this; @@ -71,7 +72,7 @@ public Multistream withTargets(java.util.List targets) { * streamed to * */ - public Multistream withTargets(Optional> targets) { + public Multistream withTargets(Optional> targets) { Utils.checkNotNull(targets, "targets"); this.targets = targets; return this; @@ -87,12 +88,12 @@ public boolean equals(java.lang.Object o) { } Multistream other = (Multistream) o; return - java.util.Objects.deepEquals(this.targets, other.targets); + Objects.deepEquals(this.targets, other.targets); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( targets); } @@ -104,7 +105,7 @@ public String toString() { public final static class Builder { - private Optional> targets = Optional.empty(); + private Optional> targets = Optional.empty(); private Builder() { // force use of static builder() method @@ -115,7 +116,7 @@ private Builder() { * streamed to * */ - public Builder targets(java.util.List targets) { + public Builder targets(List targets) { Utils.checkNotNull(targets, "targets"); this.targets = Optional.ofNullable(targets); return this; @@ -126,7 +127,7 @@ public Builder targets(java.util.List targets) { * streamed to * */ - public Builder targets(Optional> targets) { + public Builder targets(Optional> targets) { Utils.checkNotNull(targets, "targets"); this.targets = targets; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTarget.java b/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTarget.java index b89a2a0..c9d0528 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTarget.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTarget.java @@ -1,32 +1,34 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import java.lang.Boolean; import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class MultistreamTarget { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. @@ -34,7 +36,7 @@ public class MultistreamTarget { @JsonInclude(Include.NON_ABSENT) @JsonProperty("userId") @Deprecated - private Optional userId; + private Optional userId; /** * If true then this multistream target will not be used for pushing @@ -43,7 +45,7 @@ public class MultistreamTarget { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disabled") - private Optional disabled; + private Optional disabled; /** * Timestamp (in milliseconds) at which multistream target object was @@ -52,15 +54,15 @@ public class MultistreamTarget { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; @JsonCreator public MultistreamTarget( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("userId") Optional userId, - @JsonProperty("disabled") Optional disabled, - @JsonProperty("createdAt") Optional createdAt) { + @JsonProperty("id") Optional id, + @JsonProperty("name") Optional name, + @JsonProperty("userId") Optional userId, + @JsonProperty("disabled") Optional disabled, + @JsonProperty("createdAt") Optional createdAt) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(userId, "userId"); @@ -77,26 +79,23 @@ public MultistreamTarget() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - @SuppressWarnings("unchecked") @JsonIgnore public Optional userId() { - return (Optional) userId; + return userId; } /** @@ -104,10 +103,9 @@ public Optional userId() { * even if it is configured in a stream object. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional disabled() { - return (Optional) disabled; + return disabled; } /** @@ -115,10 +113,9 @@ public Optional disabled() { * created * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } public final static Builder builder() { @@ -131,7 +128,7 @@ public MultistreamTarget withId(String id) { return this; } - public MultistreamTarget withId(Optional id) { + public MultistreamTarget withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -143,7 +140,7 @@ public MultistreamTarget withName(String name) { return this; } - public MultistreamTarget withName(Optional name) { + public MultistreamTarget withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -163,7 +160,7 @@ public MultistreamTarget withUserId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public MultistreamTarget withUserId(Optional userId) { + public MultistreamTarget withUserId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -185,7 +182,7 @@ public MultistreamTarget withDisabled(boolean disabled) { * even if it is configured in a stream object. * */ - public MultistreamTarget withDisabled(Optional disabled) { + public MultistreamTarget withDisabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; @@ -207,7 +204,7 @@ public MultistreamTarget withCreatedAt(double createdAt) { * created * */ - public MultistreamTarget withCreatedAt(Optional createdAt) { + public MultistreamTarget withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -223,16 +220,16 @@ public boolean equals(java.lang.Object o) { } MultistreamTarget other = (MultistreamTarget) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.userId, other.userId) && - java.util.Objects.deepEquals(this.disabled, other.disabled) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.userId, other.userId) && + Objects.deepEquals(this.disabled, other.disabled) && + Objects.deepEquals(this.createdAt, other.createdAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, name, userId, @@ -252,16 +249,16 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); @Deprecated - private Optional userId = Optional.empty(); + private Optional userId = Optional.empty(); - private Optional disabled = Optional.empty(); + private Optional disabled = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -273,7 +270,7 @@ public Builder id(String id) { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -285,7 +282,7 @@ public Builder name(String name) { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -305,7 +302,7 @@ public Builder userId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Builder userId(Optional userId) { + public Builder userId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -327,7 +324,7 @@ public Builder disabled(boolean disabled) { * even if it is configured in a stream object. * */ - public Builder disabled(Optional disabled) { + public Builder disabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; @@ -349,7 +346,7 @@ public Builder createdAt(double createdAt) { * created * */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetInput.java b/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetInput.java index 1cde76e..75ca94e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetInput.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetInput.java @@ -1,28 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class MultistreamTargetInput { @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; /** * Livepeer-compatible multistream target URL (RTMP(S) or SRT) @@ -37,13 +37,13 @@ public class MultistreamTargetInput { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disabled") - private Optional disabled; + private Optional disabled; @JsonCreator public MultistreamTargetInput( - @JsonProperty("name") Optional name, + @JsonProperty("name") Optional name, @JsonProperty("url") String url, - @JsonProperty("disabled") Optional disabled) { + @JsonProperty("disabled") Optional disabled) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(url, "url"); Utils.checkNotNull(disabled, "disabled"); @@ -57,10 +57,9 @@ public MultistreamTargetInput( this(Optional.empty(), url, Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } /** @@ -76,10 +75,9 @@ public String url() { * even if it is configured in a stream object. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional disabled() { - return (Optional) disabled; + return disabled; } public final static Builder builder() { @@ -92,7 +90,7 @@ public MultistreamTargetInput withName(String name) { return this; } - public MultistreamTargetInput withName(Optional name) { + public MultistreamTargetInput withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -123,7 +121,7 @@ public MultistreamTargetInput withDisabled(boolean disabled) { * even if it is configured in a stream object. * */ - public MultistreamTargetInput withDisabled(Optional disabled) { + public MultistreamTargetInput withDisabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; @@ -139,14 +137,14 @@ public boolean equals(java.lang.Object o) { } MultistreamTargetInput other = (MultistreamTargetInput) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.disabled, other.disabled); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.disabled, other.disabled); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, url, disabled); @@ -162,11 +160,11 @@ public String toString() { public final static class Builder { - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); private String url; - private Optional disabled = Optional.empty(); + private Optional disabled = Optional.empty(); private Builder() { // force use of static builder() method @@ -178,7 +176,7 @@ public Builder name(String name) { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -209,7 +207,7 @@ public Builder disabled(boolean disabled) { * even if it is configured in a stream object. * */ - public Builder disabled(Optional disabled) { + public Builder disabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetPatchPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetPatchPayload.java index a9ca5b4..aae8daf 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetPatchPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/MultistreamTargetPatchPayload.java @@ -1,28 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class MultistreamTargetPatchPayload { @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; /** * Livepeer-compatible multistream target URL (RTMP(S) or SRT) @@ -37,13 +37,13 @@ public class MultistreamTargetPatchPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disabled") - private Optional disabled; + private Optional disabled; @JsonCreator public MultistreamTargetPatchPayload( - @JsonProperty("name") Optional name, + @JsonProperty("name") Optional name, @JsonProperty("url") String url, - @JsonProperty("disabled") Optional disabled) { + @JsonProperty("disabled") Optional disabled) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(url, "url"); Utils.checkNotNull(disabled, "disabled"); @@ -57,10 +57,9 @@ public MultistreamTargetPatchPayload( this(Optional.empty(), url, Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } /** @@ -76,10 +75,9 @@ public String url() { * even if it is configured in a stream object. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional disabled() { - return (Optional) disabled; + return disabled; } public final static Builder builder() { @@ -92,7 +90,7 @@ public MultistreamTargetPatchPayload withName(String name) { return this; } - public MultistreamTargetPatchPayload withName(Optional name) { + public MultistreamTargetPatchPayload withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -123,7 +121,7 @@ public MultistreamTargetPatchPayload withDisabled(boolean disabled) { * even if it is configured in a stream object. * */ - public MultistreamTargetPatchPayload withDisabled(Optional disabled) { + public MultistreamTargetPatchPayload withDisabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; @@ -139,14 +137,14 @@ public boolean equals(java.lang.Object o) { } MultistreamTargetPatchPayload other = (MultistreamTargetPatchPayload) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.disabled, other.disabled); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.disabled, other.disabled); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, url, disabled); @@ -162,11 +160,11 @@ public String toString() { public final static class Builder { - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); private String url; - private Optional disabled = Optional.empty(); + private Optional disabled = Optional.empty(); private Builder() { // force use of static builder() method @@ -178,7 +176,7 @@ public Builder name(String name) { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -209,7 +207,7 @@ public Builder disabled(boolean disabled) { * even if it is configured in a stream object. * */ - public Builder disabled(Optional disabled) { + public Builder disabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Name.java b/src/main/java/studio/livepeer/livepeer/models/components/Name.java index e3a3a37..778be94 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Name.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Name.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum Name { VERIFIABLE_VIDEO("Verifiable Video"); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetFromUrlPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetFromUrlPayload.java index 8bca43b..82877a1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetFromUrlPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetFromUrlPayload.java @@ -1,24 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class NewAssetFromUrlPayload { /** @@ -33,7 +36,7 @@ public class NewAssetFromUrlPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("staticMp4") - private Optional staticMp4; + private Optional staticMp4; /** * Whether the playback policy for an asset or stream is public or signed @@ -68,31 +71,31 @@ public class NewAssetFromUrlPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("c2pa") - private Optional c2pa; + private Optional c2pa; @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private JsonNullable> profiles; + private JsonNullable> profiles; /** * How many seconds the duration of each output segment should be */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("targetSegmentSizeSecs") - private Optional targetSegmentSizeSecs; + private Optional targetSegmentSizeSecs; @JsonCreator public NewAssetFromUrlPayload( @JsonProperty("name") String name, - @JsonProperty("staticMp4") Optional staticMp4, + @JsonProperty("staticMp4") Optional staticMp4, @JsonProperty("playbackPolicy") JsonNullable playbackPolicy, @JsonProperty("creatorId") Optional creatorId, @JsonProperty("storage") Optional storage, @JsonProperty("url") String url, @JsonProperty("encryption") Optional encryption, - @JsonProperty("c2pa") Optional c2pa, - @JsonProperty("profiles") JsonNullable> profiles, - @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs) { + @JsonProperty("c2pa") Optional c2pa, + @JsonProperty("profiles") JsonNullable> profiles, + @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(staticMp4, "staticMp4"); Utils.checkNotNull(playbackPolicy, "playbackPolicy"); @@ -133,10 +136,9 @@ public String name() { /** * Whether to generate MP4s for the asset. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional staticMp4() { - return (Optional) staticMp4; + return staticMp4; } /** @@ -180,25 +182,23 @@ public Optional encryption() { /** * Decides if the output video should include C2PA signature */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional c2pa() { - return (Optional) c2pa; + return c2pa; } @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable> profiles() { - return (JsonNullable>) profiles; + public JsonNullable> profiles() { + return (JsonNullable>) profiles; } /** * How many seconds the duration of each output segment should be */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional targetSegmentSizeSecs() { - return (Optional) targetSegmentSizeSecs; + return targetSegmentSizeSecs; } public final static Builder builder() { @@ -227,7 +227,7 @@ public NewAssetFromUrlPayload withStaticMp4(boolean staticMp4) { /** * Whether to generate MP4s for the asset. */ - public NewAssetFromUrlPayload withStaticMp4(Optional staticMp4) { + public NewAssetFromUrlPayload withStaticMp4(Optional staticMp4) { Utils.checkNotNull(staticMp4, "staticMp4"); this.staticMp4 = staticMp4; return this; @@ -311,19 +311,19 @@ public NewAssetFromUrlPayload withC2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public NewAssetFromUrlPayload withC2pa(Optional c2pa) { + public NewAssetFromUrlPayload withC2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; } - public NewAssetFromUrlPayload withProfiles(java.util.List profiles) { + public NewAssetFromUrlPayload withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = JsonNullable.of(profiles); return this; } - public NewAssetFromUrlPayload withProfiles(JsonNullable> profiles) { + public NewAssetFromUrlPayload withProfiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -341,7 +341,7 @@ public NewAssetFromUrlPayload withTargetSegmentSizeSecs(double targetSegmentSize /** * How many seconds the duration of each output segment should be */ - public NewAssetFromUrlPayload withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public NewAssetFromUrlPayload withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; @@ -357,21 +357,21 @@ public boolean equals(java.lang.Object o) { } NewAssetFromUrlPayload other = (NewAssetFromUrlPayload) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.staticMp4, other.staticMp4) && - java.util.Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.storage, other.storage) && - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.encryption, other.encryption) && - java.util.Objects.deepEquals(this.c2pa, other.c2pa) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.staticMp4, other.staticMp4) && + Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.storage, other.storage) && + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.encryption, other.encryption) && + Objects.deepEquals(this.c2pa, other.c2pa) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, staticMp4, playbackPolicy, @@ -403,7 +403,7 @@ public final static class Builder { private String name; - private Optional staticMp4 = Optional.empty(); + private Optional staticMp4 = Optional.empty(); private JsonNullable playbackPolicy = JsonNullable.undefined(); @@ -415,11 +415,11 @@ public final static class Builder { private Optional encryption = Optional.empty(); - private Optional c2pa = Optional.empty(); + private Optional c2pa = Optional.empty(); - private JsonNullable> profiles = JsonNullable.undefined(); + private JsonNullable> profiles = JsonNullable.undefined(); - private Optional targetSegmentSizeSecs = Optional.empty(); + private Optional targetSegmentSizeSecs = Optional.empty(); private Builder() { // force use of static builder() method @@ -447,7 +447,7 @@ public Builder staticMp4(boolean staticMp4) { /** * Whether to generate MP4s for the asset. */ - public Builder staticMp4(Optional staticMp4) { + public Builder staticMp4(Optional staticMp4) { Utils.checkNotNull(staticMp4, "staticMp4"); this.staticMp4 = staticMp4; return this; @@ -531,19 +531,19 @@ public Builder c2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public Builder c2pa(Optional c2pa) { + public Builder c2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; } - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = JsonNullable.of(profiles); return this; } - public Builder profiles(JsonNullable> profiles) { + public Builder profiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -561,7 +561,7 @@ public Builder targetSegmentSizeSecs(double targetSegmentSizeSecs) { /** * How many seconds the duration of each output segment should be */ - public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayload.java index d2934ce..85d515c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayload.java @@ -1,24 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class NewAssetPayload { /** @@ -33,7 +36,7 @@ public class NewAssetPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("staticMp4") - private Optional staticMp4; + private Optional staticMp4; /** * Whether the playback policy for an asset or stream is public or signed @@ -59,30 +62,30 @@ public class NewAssetPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("c2pa") - private Optional c2pa; + private Optional c2pa; @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private JsonNullable> profiles; + private JsonNullable> profiles; /** * How many seconds the duration of each output segment should be */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("targetSegmentSizeSecs") - private Optional targetSegmentSizeSecs; + private Optional targetSegmentSizeSecs; @JsonCreator public NewAssetPayload( @JsonProperty("name") String name, - @JsonProperty("staticMp4") Optional staticMp4, + @JsonProperty("staticMp4") Optional staticMp4, @JsonProperty("playbackPolicy") JsonNullable playbackPolicy, @JsonProperty("creatorId") Optional creatorId, @JsonProperty("storage") Optional storage, @JsonProperty("encryption") Optional encryption, - @JsonProperty("c2pa") Optional c2pa, - @JsonProperty("profiles") JsonNullable> profiles, - @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs) { + @JsonProperty("c2pa") Optional c2pa, + @JsonProperty("profiles") JsonNullable> profiles, + @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(staticMp4, "staticMp4"); Utils.checkNotNull(playbackPolicy, "playbackPolicy"); @@ -120,10 +123,9 @@ public String name() { /** * Whether to generate MP4s for the asset. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional staticMp4() { - return (Optional) staticMp4; + return staticMp4; } /** @@ -156,25 +158,23 @@ public Optional encryption() { /** * Decides if the output video should include C2PA signature */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional c2pa() { - return (Optional) c2pa; + return c2pa; } @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable> profiles() { - return (JsonNullable>) profiles; + public JsonNullable> profiles() { + return (JsonNullable>) profiles; } /** * How many seconds the duration of each output segment should be */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional targetSegmentSizeSecs() { - return (Optional) targetSegmentSizeSecs; + return targetSegmentSizeSecs; } public final static Builder builder() { @@ -203,7 +203,7 @@ public NewAssetPayload withStaticMp4(boolean staticMp4) { /** * Whether to generate MP4s for the asset. */ - public NewAssetPayload withStaticMp4(Optional staticMp4) { + public NewAssetPayload withStaticMp4(Optional staticMp4) { Utils.checkNotNull(staticMp4, "staticMp4"); this.staticMp4 = staticMp4; return this; @@ -275,19 +275,19 @@ public NewAssetPayload withC2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public NewAssetPayload withC2pa(Optional c2pa) { + public NewAssetPayload withC2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; } - public NewAssetPayload withProfiles(java.util.List profiles) { + public NewAssetPayload withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = JsonNullable.of(profiles); return this; } - public NewAssetPayload withProfiles(JsonNullable> profiles) { + public NewAssetPayload withProfiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -305,7 +305,7 @@ public NewAssetPayload withTargetSegmentSizeSecs(double targetSegmentSizeSecs) { /** * How many seconds the duration of each output segment should be */ - public NewAssetPayload withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public NewAssetPayload withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; @@ -321,20 +321,20 @@ public boolean equals(java.lang.Object o) { } NewAssetPayload other = (NewAssetPayload) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.staticMp4, other.staticMp4) && - java.util.Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.storage, other.storage) && - java.util.Objects.deepEquals(this.encryption, other.encryption) && - java.util.Objects.deepEquals(this.c2pa, other.c2pa) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.staticMp4, other.staticMp4) && + Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.storage, other.storage) && + Objects.deepEquals(this.encryption, other.encryption) && + Objects.deepEquals(this.c2pa, other.c2pa) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, staticMp4, playbackPolicy, @@ -364,7 +364,7 @@ public final static class Builder { private String name; - private Optional staticMp4 = Optional.empty(); + private Optional staticMp4 = Optional.empty(); private JsonNullable playbackPolicy = JsonNullable.undefined(); @@ -374,11 +374,11 @@ public final static class Builder { private Optional encryption = Optional.empty(); - private Optional c2pa = Optional.empty(); + private Optional c2pa = Optional.empty(); - private JsonNullable> profiles = JsonNullable.undefined(); + private JsonNullable> profiles = JsonNullable.undefined(); - private Optional targetSegmentSizeSecs = Optional.empty(); + private Optional targetSegmentSizeSecs = Optional.empty(); private Builder() { // force use of static builder() method @@ -406,7 +406,7 @@ public Builder staticMp4(boolean staticMp4) { /** * Whether to generate MP4s for the asset. */ - public Builder staticMp4(Optional staticMp4) { + public Builder staticMp4(Optional staticMp4) { Utils.checkNotNull(staticMp4, "staticMp4"); this.staticMp4 = staticMp4; return this; @@ -478,19 +478,19 @@ public Builder c2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public Builder c2pa(Optional c2pa) { + public Builder c2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; } - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = JsonNullable.of(profiles); return this; } - public Builder profiles(JsonNullable> profiles) { + public Builder profiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -508,7 +508,7 @@ public Builder targetSegmentSizeSecs(double targetSegmentSizeSecs) { /** * How many seconds the duration of each output segment should be */ - public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadEncryption.java b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadEncryption.java index c88275b..bab8b92 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadEncryption.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadEncryption.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class NewAssetPayloadEncryption { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } NewAssetPayloadEncryption other = (NewAssetPayloadEncryption) o; return - java.util.Objects.deepEquals(this.encryptedKey, other.encryptedKey); + Objects.deepEquals(this.encryptedKey, other.encryptedKey); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( encryptedKey); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java index 203b6f3..25bd771 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs.java @@ -1,25 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * NewAssetPayloadIpfs - Set to true to make default export to IPFS. To customize the @@ -31,7 +28,7 @@ @JsonDeserialize(using = NewAssetPayloadIpfs._Deserializer.class) public class NewAssetPayloadIpfs { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private NewAssetPayloadIpfs(TypedObject value) { @@ -45,13 +42,13 @@ public static NewAssetPayloadIpfs of(NewAssetPayloadIpfs1 value) { public static NewAssetPayloadIpfs of(boolean value) { Utils.checkNotNull(value, "value"); - return new NewAssetPayloadIpfs(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new NewAssetPayloadIpfs(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
    - *
  • {@code NewAssetPayloadIpfs1}
  • + *
  • {@code studio.livepeer.livepeer.models.components.NewAssetPayloadIpfs1}
  • *
  • {@code boolean}
  • *
* @@ -79,21 +76,21 @@ public boolean equals(java.lang.Object o) { return false; } NewAssetPayloadIpfs other = (NewAssetPayloadIpfs) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(NewAssetPayloadIpfs.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs1.java b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs1.java index 7160bbd..797e6c2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadIpfs1.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class NewAssetPayloadIpfs1 { @JsonInclude(Include.NON_ABSENT) @@ -67,12 +67,12 @@ public boolean equals(java.lang.Object o) { } NewAssetPayloadIpfs1 other = (NewAssetPayloadIpfs1) o; return - java.util.Objects.deepEquals(this.spec, other.spec); + Objects.deepEquals(this.spec, other.spec); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( spec); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadStorage.java b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadStorage.java index 4355dbb..2bace34 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadStorage.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NewAssetPayloadStorage.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class NewAssetPayloadStorage { /** @@ -91,12 +91,12 @@ public boolean equals(java.lang.Object o) { } NewAssetPayloadStorage other = (NewAssetPayloadStorage) o; return - java.util.Objects.deepEquals(this.ipfs, other.ipfs); + Objects.deepEquals(this.ipfs, other.ipfs); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ipfs); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayload.java index 61fd7dc..ac9be87 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayload.java @@ -1,24 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class NewStreamPayload { @JsonProperty("name") @@ -46,7 +49,7 @@ public class NewStreamPayload { @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private JsonNullable> profiles; + private JsonNullable> profiles; /** * Should this stream be recorded? Uses default settings. For more @@ -55,16 +58,11 @@ public class NewStreamPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("record") - private Optional record; + private Optional record; - /** - * Configuration for recording the stream. This can only be set if - * `record` is true. - * - */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("recordingSpec") - private Optional recordingSpec; + private Optional recordingSpec; @JsonInclude(Include.NON_ABSENT) @JsonProperty("multistream") @@ -75,7 +73,7 @@ public class NewStreamPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("userTags") - private Optional> userTags; + private Optional> userTags; @JsonCreator public NewStreamPayload( @@ -83,11 +81,11 @@ public NewStreamPayload( @JsonProperty("pull") Optional pull, @JsonProperty("creatorId") Optional creatorId, @JsonProperty("playbackPolicy") JsonNullable playbackPolicy, - @JsonProperty("profiles") JsonNullable> profiles, - @JsonProperty("record") Optional record, - @JsonProperty("recordingSpec") Optional recordingSpec, + @JsonProperty("profiles") JsonNullable> profiles, + @JsonProperty("record") Optional record, + @JsonProperty("recordingSpec") Optional recordingSpec, @JsonProperty("multistream") Optional multistream, - @JsonProperty("userTags") Optional> userTags) { + @JsonProperty("userTags") Optional> userTags) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(pull, "pull"); Utils.checkNotNull(creatorId, "creatorId"); @@ -146,8 +144,8 @@ public JsonNullable playbackPolicy() { @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable> profiles() { - return (JsonNullable>) profiles; + public JsonNullable> profiles() { + return (JsonNullable>) profiles; } /** @@ -155,21 +153,15 @@ public JsonNullable> profiles() { * customization, create and configure an object store. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional record() { - return (Optional) record; + return record; } - /** - * Configuration for recording the stream. This can only be set if - * `record` is true. - * - */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional recordingSpec() { - return (Optional) recordingSpec; + public Optional recordingSpec() { + return (Optional) recordingSpec; } @SuppressWarnings("unchecked") @@ -183,8 +175,8 @@ public Optional multistream() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> userTags() { - return (Optional>) userTags; + public Optional> userTags() { + return (Optional>) userTags; } public final static Builder builder() { @@ -249,13 +241,13 @@ public NewStreamPayload withPlaybackPolicy(JsonNullable profiles) { + public NewStreamPayload withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = JsonNullable.of(profiles); return this; } - public NewStreamPayload withProfiles(JsonNullable> profiles) { + public NewStreamPayload withProfiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -277,29 +269,19 @@ public NewStreamPayload withRecord(boolean record) { * customization, create and configure an object store. * */ - public NewStreamPayload withRecord(Optional record) { + public NewStreamPayload withRecord(Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; } - /** - * Configuration for recording the stream. This can only be set if - * `record` is true. - * - */ - public NewStreamPayload withRecordingSpec(RecordingSpec recordingSpec) { + public NewStreamPayload withRecordingSpec(NewStreamPayloadRecordingSpec recordingSpec) { Utils.checkNotNull(recordingSpec, "recordingSpec"); this.recordingSpec = Optional.ofNullable(recordingSpec); return this; } - /** - * Configuration for recording the stream. This can only be set if - * `record` is true. - * - */ - public NewStreamPayload withRecordingSpec(Optional recordingSpec) { + public NewStreamPayload withRecordingSpec(Optional recordingSpec) { Utils.checkNotNull(recordingSpec, "recordingSpec"); this.recordingSpec = recordingSpec; return this; @@ -320,7 +302,7 @@ public NewStreamPayload withMultistream(Optional multistr /** * User input tags associated with the stream */ - public NewStreamPayload withUserTags(java.util.Map userTags) { + public NewStreamPayload withUserTags(Map userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = Optional.ofNullable(userTags); return this; @@ -329,7 +311,7 @@ public NewStreamPayload withUserTags(java.util.Map userTags) { /** * User input tags associated with the stream */ - public NewStreamPayload withUserTags(Optional> userTags) { + public NewStreamPayload withUserTags(Optional> userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = userTags; return this; @@ -345,20 +327,20 @@ public boolean equals(java.lang.Object o) { } NewStreamPayload other = (NewStreamPayload) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.pull, other.pull) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.record, other.record) && - java.util.Objects.deepEquals(this.recordingSpec, other.recordingSpec) && - java.util.Objects.deepEquals(this.multistream, other.multistream) && - java.util.Objects.deepEquals(this.userTags, other.userTags); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.pull, other.pull) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.record, other.record) && + Objects.deepEquals(this.recordingSpec, other.recordingSpec) && + Objects.deepEquals(this.multistream, other.multistream) && + Objects.deepEquals(this.userTags, other.userTags); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, pull, creatorId, @@ -394,15 +376,15 @@ public final static class Builder { private JsonNullable playbackPolicy = JsonNullable.undefined(); - private JsonNullable> profiles = JsonNullable.undefined(); + private JsonNullable> profiles = JsonNullable.undefined(); - private Optional record = Optional.empty(); + private Optional record = Optional.empty(); - private Optional recordingSpec = Optional.empty(); + private Optional recordingSpec = Optional.empty(); private Optional multistream = Optional.empty(); - private Optional> userTags = Optional.empty(); + private Optional> userTags = Optional.empty(); private Builder() { // force use of static builder() method @@ -466,13 +448,13 @@ public Builder playbackPolicy(JsonNullable playbackPol return this; } - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = JsonNullable.of(profiles); return this; } - public Builder profiles(JsonNullable> profiles) { + public Builder profiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -494,29 +476,19 @@ public Builder record(boolean record) { * customization, create and configure an object store. * */ - public Builder record(Optional record) { + public Builder record(Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; } - /** - * Configuration for recording the stream. This can only be set if - * `record` is true. - * - */ - public Builder recordingSpec(RecordingSpec recordingSpec) { + public Builder recordingSpec(NewStreamPayloadRecordingSpec recordingSpec) { Utils.checkNotNull(recordingSpec, "recordingSpec"); this.recordingSpec = Optional.ofNullable(recordingSpec); return this; } - /** - * Configuration for recording the stream. This can only be set if - * `record` is true. - * - */ - public Builder recordingSpec(Optional recordingSpec) { + public Builder recordingSpec(Optional recordingSpec) { Utils.checkNotNull(recordingSpec, "recordingSpec"); this.recordingSpec = recordingSpec; return this; @@ -537,7 +509,7 @@ public Builder multistream(Optional multistream) { /** * User input tags associated with the stream */ - public Builder userTags(java.util.Map userTags) { + public Builder userTags(Map userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = Optional.ofNullable(userTags); return this; @@ -546,7 +518,7 @@ public Builder userTags(java.util.Map userTags) { /** * User input tags associated with the stream */ - public Builder userTags(Optional> userTags) { + public Builder userTags(Optional> userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = userTags; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayloadRecordingSpec.java b/src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayloadRecordingSpec.java new file mode 100644 index 0000000..e734fa2 --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/models/components/NewStreamPayloadRecordingSpec.java @@ -0,0 +1,112 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.models.components; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; +import studio.livepeer.livepeer.utils.Utils; + + +public class NewStreamPayloadRecordingSpec { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("profiles") + private JsonNullable> profiles; + + @JsonCreator + public NewStreamPayloadRecordingSpec( + @JsonProperty("profiles") JsonNullable> profiles) { + Utils.checkNotNull(profiles, "profiles"); + this.profiles = profiles; + } + + public NewStreamPayloadRecordingSpec() { + this(JsonNullable.undefined()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> profiles() { + return (JsonNullable>) profiles; + } + + public final static Builder builder() { + return new Builder(); + } + + public NewStreamPayloadRecordingSpec withProfiles(List profiles) { + Utils.checkNotNull(profiles, "profiles"); + this.profiles = JsonNullable.of(profiles); + return this; + } + + public NewStreamPayloadRecordingSpec withProfiles(JsonNullable> profiles) { + Utils.checkNotNull(profiles, "profiles"); + this.profiles = profiles; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NewStreamPayloadRecordingSpec other = (NewStreamPayloadRecordingSpec) o; + return + Objects.deepEquals(this.profiles, other.profiles); + } + + @Override + public int hashCode() { + return Objects.hash( + profiles); + } + + @Override + public String toString() { + return Utils.toString(NewStreamPayloadRecordingSpec.class, + "profiles", profiles); + } + + public final static class Builder { + + private JsonNullable> profiles = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + public Builder profiles(List profiles) { + Utils.checkNotNull(profiles, "profiles"); + this.profiles = JsonNullable.of(profiles); + return this; + } + + public Builder profiles(JsonNullable> profiles) { + Utils.checkNotNull(profiles, "profiles"); + this.profiles = profiles; + return this; + } + + public NewStreamPayloadRecordingSpec build() { + return new NewStreamPayloadRecordingSpec( + profiles); + } + } +} + diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NftMetadata.java b/src/main/java/studio/livepeer/livepeer/models/components/NftMetadata.java index 101a50c..313d307 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NftMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NftMetadata.java @@ -1,18 +1,16 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * NftMetadata - Additional data to add to the NFT metadata exported to * IPFS. Will be deep merged with the default metadata @@ -45,7 +43,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/NftMetadataTemplate.java b/src/main/java/studio/livepeer/livepeer/models/components/NftMetadataTemplate.java index 0034d0e..fed50ae 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/NftMetadataTemplate.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/NftMetadataTemplate.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * NftMetadataTemplate - Name of the NFT metadata template to export. 'player' diff --git a/src/main/java/studio/livepeer/livepeer/models/components/One.java b/src/main/java/studio/livepeer/livepeer/models/components/One.java index 32b736a..c2c7d50 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/One.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/One.java @@ -1,19 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; /** * One - 0: not mobile, 1: mobile screen share, 2: mobile camera. diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Output.java b/src/main/java/studio/livepeer/livepeer/models/components/Output.java index 8bd7278..170848e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Output.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Output.java @@ -1,22 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * Output - Output of the task */ @@ -28,7 +30,7 @@ public class Output { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("upload") - private Optional> upload; + private Optional> upload; /** * Output of the export task @@ -46,7 +48,7 @@ public class Output { @JsonCreator public Output( - @JsonProperty("upload") Optional> upload, + @JsonProperty("upload") Optional> upload, @JsonProperty("export") Optional export, @JsonProperty("exportData") Optional exportData) { Utils.checkNotNull(upload, "upload"); @@ -66,8 +68,8 @@ public Output() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> upload() { - return (Optional>) upload; + public Optional> upload() { + return (Optional>) upload; } /** @@ -95,7 +97,7 @@ public final static Builder builder() { /** * Output of the upload task */ - public Output withUpload(java.util.Map upload) { + public Output withUpload(Map upload) { Utils.checkNotNull(upload, "upload"); this.upload = Optional.ofNullable(upload); return this; @@ -104,7 +106,7 @@ public Output withUpload(java.util.Map upload) { /** * Output of the upload task */ - public Output withUpload(Optional> upload) { + public Output withUpload(Optional> upload) { Utils.checkNotNull(upload, "upload"); this.upload = upload; return this; @@ -156,14 +158,14 @@ public boolean equals(java.lang.Object o) { } Output other = (Output) o; return - java.util.Objects.deepEquals(this.upload, other.upload) && - java.util.Objects.deepEquals(this.export, other.export) && - java.util.Objects.deepEquals(this.exportData, other.exportData); + Objects.deepEquals(this.upload, other.upload) && + Objects.deepEquals(this.export, other.export) && + Objects.deepEquals(this.exportData, other.exportData); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( upload, export, exportData); @@ -179,7 +181,7 @@ public String toString() { public final static class Builder { - private Optional> upload = Optional.empty(); + private Optional> upload = Optional.empty(); private Optional export = Optional.empty(); @@ -192,7 +194,7 @@ private Builder() { /** * Output of the upload task */ - public Builder upload(java.util.Map upload) { + public Builder upload(Map upload) { Utils.checkNotNull(upload, "upload"); this.upload = Optional.ofNullable(upload); return this; @@ -201,7 +203,7 @@ public Builder upload(java.util.Map upload) { /** * Output of the upload task */ - public Builder upload(Optional> upload) { + public Builder upload(Optional> upload) { Utils.checkNotNull(upload, "upload"); this.upload = upload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Outputs.java b/src/main/java/studio/livepeer/livepeer/models/components/Outputs.java index f250f6c..9007ee1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Outputs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Outputs.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * Outputs - Output formats */ @@ -156,14 +156,14 @@ public boolean equals(java.lang.Object o) { } Outputs other = (Outputs) o; return - java.util.Objects.deepEquals(this.hls, other.hls) && - java.util.Objects.deepEquals(this.mp4, other.mp4) && - java.util.Objects.deepEquals(this.fmp4, other.fmp4); + Objects.deepEquals(this.hls, other.hls) && + Objects.deepEquals(this.mp4, other.mp4) && + Objects.deepEquals(this.fmp4, other.fmp4); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( hls, mp4, fmp4); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Params.java b/src/main/java/studio/livepeer/livepeer/models/components/Params.java index ba8539f..6a2b323 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Params.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Params.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * Params - Parameters of the task */ @@ -218,16 +218,16 @@ public boolean equals(java.lang.Object o) { } Params other = (Params) o; return - java.util.Objects.deepEquals(this.upload, other.upload) && - java.util.Objects.deepEquals(this.export, other.export) && - java.util.Objects.deepEquals(this.exportData, other.exportData) && - java.util.Objects.deepEquals(this.transcodeFile, other.transcodeFile) && - java.util.Objects.deepEquals(this.clip, other.clip); + Objects.deepEquals(this.upload, other.upload) && + Objects.deepEquals(this.export, other.export) && + Objects.deepEquals(this.exportData, other.exportData) && + Objects.deepEquals(this.transcodeFile, other.transcodeFile) && + Objects.deepEquals(this.clip, other.clip); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( upload, export, exportData, diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Participants.java b/src/main/java/studio/livepeer/livepeer/models/components/Participants.java index f9cfd0d..e00267f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Participants.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Participants.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Participants { /** @@ -25,35 +25,35 @@ public class Participants { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("identity") - private Optional identity; + private Optional identity; /** * user defined participant name */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; /** * the time the participant joined */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("joinedAt") - private Optional joinedAt; + private Optional joinedAt; /** * the time the participant left */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("leftAt") - private Optional leftAt; + private Optional leftAt; @JsonCreator public Participants( - @JsonProperty("identity") Optional identity, - @JsonProperty("name") Optional name, - @JsonProperty("joinedAt") Optional joinedAt, - @JsonProperty("leftAt") Optional leftAt) { + @JsonProperty("identity") Optional identity, + @JsonProperty("name") Optional name, + @JsonProperty("joinedAt") Optional joinedAt, + @JsonProperty("leftAt") Optional leftAt) { Utils.checkNotNull(identity, "identity"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(joinedAt, "joinedAt"); @@ -71,37 +71,33 @@ public Participants() { /** * participant ID */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional identity() { - return (Optional) identity; + return identity; } /** * user defined participant name */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } /** * the time the participant joined */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional joinedAt() { - return (Optional) joinedAt; + return joinedAt; } /** * the time the participant left */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional leftAt() { - return (Optional) leftAt; + return leftAt; } public final static Builder builder() { @@ -120,7 +116,7 @@ public Participants withIdentity(String identity) { /** * participant ID */ - public Participants withIdentity(Optional identity) { + public Participants withIdentity(Optional identity) { Utils.checkNotNull(identity, "identity"); this.identity = identity; return this; @@ -138,7 +134,7 @@ public Participants withName(String name) { /** * user defined participant name */ - public Participants withName(Optional name) { + public Participants withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -156,7 +152,7 @@ public Participants withJoinedAt(long joinedAt) { /** * the time the participant joined */ - public Participants withJoinedAt(Optional joinedAt) { + public Participants withJoinedAt(Optional joinedAt) { Utils.checkNotNull(joinedAt, "joinedAt"); this.joinedAt = joinedAt; return this; @@ -174,7 +170,7 @@ public Participants withLeftAt(long leftAt) { /** * the time the participant left */ - public Participants withLeftAt(Optional leftAt) { + public Participants withLeftAt(Optional leftAt) { Utils.checkNotNull(leftAt, "leftAt"); this.leftAt = leftAt; return this; @@ -190,15 +186,15 @@ public boolean equals(java.lang.Object o) { } Participants other = (Participants) o; return - java.util.Objects.deepEquals(this.identity, other.identity) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.joinedAt, other.joinedAt) && - java.util.Objects.deepEquals(this.leftAt, other.leftAt); + Objects.deepEquals(this.identity, other.identity) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.joinedAt, other.joinedAt) && + Objects.deepEquals(this.leftAt, other.leftAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( identity, name, joinedAt, @@ -216,13 +212,13 @@ public String toString() { public final static class Builder { - private Optional identity = Optional.empty(); + private Optional identity = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional joinedAt = Optional.empty(); + private Optional joinedAt = Optional.empty(); - private Optional leftAt = Optional.empty(); + private Optional leftAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -240,7 +236,7 @@ public Builder identity(String identity) { /** * participant ID */ - public Builder identity(Optional identity) { + public Builder identity(Optional identity) { Utils.checkNotNull(identity, "identity"); this.identity = identity; return this; @@ -258,7 +254,7 @@ public Builder name(String name) { /** * user defined participant name */ - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -276,7 +272,7 @@ public Builder joinedAt(long joinedAt) { /** * the time the participant joined */ - public Builder joinedAt(Optional joinedAt) { + public Builder joinedAt(Optional joinedAt) { Utils.checkNotNull(joinedAt, "joinedAt"); this.joinedAt = joinedAt; return this; @@ -294,7 +290,7 @@ public Builder leftAt(long leftAt) { /** * the time the participant left */ - public Builder leftAt(Optional leftAt) { + public Builder leftAt(Optional leftAt) { Utils.checkNotNull(leftAt, "leftAt"); this.leftAt = leftAt; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Phase.java b/src/main/java/studio/livepeer/livepeer/models/components/Phase.java index ae94dd7..3cc3ef7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Phase.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Phase.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * Phase - Phase of the asset storage diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Pinata.java b/src/main/java/studio/livepeer/livepeer/models/components/Pinata.java index 0e35bf4..15cc2da 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Pinata.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Pinata.java @@ -1,25 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * Pinata - Custom credentials for the Piñata service. Must have either @@ -30,7 +27,7 @@ @JsonDeserialize(using = Pinata._Deserializer.class) public class Pinata { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private Pinata(TypedObject value) { @@ -50,8 +47,8 @@ public static Pinata of(Pinata2 value) { /** * Returns an instance of one of these types: *
    - *
  • {@code Pinata1}
  • - *
  • {@code Pinata2}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Pinata1}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Pinata2}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -78,21 +75,21 @@ public boolean equals(java.lang.Object o) { return false; } Pinata other = (Pinata) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Pinata.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Pinata1.java b/src/main/java/studio/livepeer/livepeer/models/components/Pinata1.java index 9a4f889..6911ca8 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Pinata1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Pinata1.java @@ -1,19 +1,17 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class Pinata1 { @JsonCreator @@ -39,7 +37,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Pinata2.java b/src/main/java/studio/livepeer/livepeer/models/components/Pinata2.java index e28ced4..9e1db41 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Pinata2.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Pinata2.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class Pinata2 { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } Pinata2 other = (Pinata2) o; return - java.util.Objects.deepEquals(this.apiKey, other.apiKey); + Objects.deepEquals(this.apiKey, other.apiKey); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( apiKey); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfo.java b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfo.java index b58cf61..2484e94 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfo.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfo.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class PlaybackInfo { @JsonProperty("type") @@ -69,13 +68,13 @@ public boolean equals(java.lang.Object o) { } PlaybackInfo other = (PlaybackInfo) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.meta, other.meta); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.meta, other.meta); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, meta); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoHrn.java b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoHrn.java index d8ec5f9..12a5924 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoHrn.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoHrn.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum PlaybackInfoHrn { HLS_TS("HLS (TS)"); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaDvrPlaybackType.java b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaDvrPlaybackType.java index b93dbe2..a3ee079 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaDvrPlaybackType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaDvrPlaybackType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum PlaybackInfoMetaDvrPlaybackType { HTML5_APPLICATION_VND_APPLE_MPEGURL("html5/application/vnd.apple.mpegurl"); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaType.java b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaType.java index 62ae00f..6f3ffe6 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoMetaType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum PlaybackInfoMetaType { HTML5_APPLICATION_VND_APPLE_MPEGURL("html5/application/vnd.apple.mpegurl"), @@ -21,6 +14,7 @@ public enum PlaybackInfoMetaType { HTML5_VIDEO_H264("html5/video/h264"), VIDEO_X_FLV("video/x-flv"), IMAGE_JPEG("image/jpeg"), + IMAGE_PNG("image/png"), TEXT_VTT("text/vtt"); @JsonValue diff --git a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoSource.java b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoSource.java index 61322e2..6c7a1f0 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoSource.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoSource.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class PlaybackInfoSource { /** @@ -34,29 +34,29 @@ public class PlaybackInfoSource { @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") - private Optional size; + private Optional size; @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; @JsonCreator public PlaybackInfoSource( @JsonProperty("hrn") Hrn hrn, @JsonProperty("type") PlaybackInfoMetaType type, @JsonProperty("url") String url, - @JsonProperty("size") Optional size, - @JsonProperty("width") Optional width, - @JsonProperty("height") Optional height, - @JsonProperty("bitrate") Optional bitrate) { + @JsonProperty("size") Optional size, + @JsonProperty("width") Optional width, + @JsonProperty("height") Optional height, + @JsonProperty("bitrate") Optional bitrate) { Utils.checkNotNull(hrn, "hrn"); Utils.checkNotNull(type, "type"); Utils.checkNotNull(url, "url"); @@ -98,28 +98,24 @@ public String url() { return url; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional size() { - return (Optional) size; + return size; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } public final static Builder builder() { @@ -153,7 +149,7 @@ public PlaybackInfoSource withSize(double size) { return this; } - public PlaybackInfoSource withSize(Optional size) { + public PlaybackInfoSource withSize(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -165,7 +161,7 @@ public PlaybackInfoSource withWidth(double width) { return this; } - public PlaybackInfoSource withWidth(Optional width) { + public PlaybackInfoSource withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -177,7 +173,7 @@ public PlaybackInfoSource withHeight(double height) { return this; } - public PlaybackInfoSource withHeight(Optional height) { + public PlaybackInfoSource withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -189,7 +185,7 @@ public PlaybackInfoSource withBitrate(double bitrate) { return this; } - public PlaybackInfoSource withBitrate(Optional bitrate) { + public PlaybackInfoSource withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -205,18 +201,18 @@ public boolean equals(java.lang.Object o) { } PlaybackInfoSource other = (PlaybackInfoSource) o; return - java.util.Objects.deepEquals(this.hrn, other.hrn) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.size, other.size) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate); + Objects.deepEquals(this.hrn, other.hrn) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.size, other.size) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.bitrate, other.bitrate); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( hrn, type, url, @@ -246,13 +242,13 @@ public final static class Builder { private String url; - private Optional size = Optional.empty(); + private Optional size = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); private Builder() { // force use of static builder() method @@ -285,7 +281,7 @@ public Builder size(double size) { return this; } - public Builder size(Optional size) { + public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; @@ -297,7 +293,7 @@ public Builder width(double width) { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -309,7 +305,7 @@ public Builder height(double height) { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -321,7 +317,7 @@ public Builder bitrate(double bitrate) { return this; } - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoType.java b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoType.java index 38462d3..107d739 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackInfoType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum PlaybackInfoType { LIVE("live"), diff --git a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackPolicy.java b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackPolicy.java index 7c19fc7..3d42da6 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/PlaybackPolicy.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/PlaybackPolicy.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * PlaybackPolicy - Whether the playback policy for an asset or stream is public or signed */ @@ -31,14 +35,14 @@ public class PlaybackPolicy { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("webhookId") - private Optional webhookId; + private Optional webhookId; /** * User-defined webhook context */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("webhookContext") - private Optional> webhookContext; + private Optional> webhookContext; /** * Interval (in seconds) at which the playback policy should be @@ -47,22 +51,22 @@ public class PlaybackPolicy { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("refreshInterval") - private Optional refreshInterval; + private Optional refreshInterval; /** * List of allowed origins for CORS playback (<scheme>://<hostname>:<port>, <scheme>://<hostname>) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowedOrigins") - private Optional> allowedOrigins; + private Optional> allowedOrigins; @JsonCreator public PlaybackPolicy( @JsonProperty("type") Type type, - @JsonProperty("webhookId") Optional webhookId, - @JsonProperty("webhookContext") Optional> webhookContext, - @JsonProperty("refreshInterval") Optional refreshInterval, - @JsonProperty("allowedOrigins") Optional> allowedOrigins) { + @JsonProperty("webhookId") Optional webhookId, + @JsonProperty("webhookContext") Optional> webhookContext, + @JsonProperty("refreshInterval") Optional refreshInterval, + @JsonProperty("allowedOrigins") Optional> allowedOrigins) { Utils.checkNotNull(type, "type"); Utils.checkNotNull(webhookId, "webhookId"); Utils.checkNotNull(webhookContext, "webhookContext"); @@ -88,10 +92,9 @@ public Type type() { /** * ID of the webhook to use for playback policy */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional webhookId() { - return (Optional) webhookId; + return webhookId; } /** @@ -99,8 +102,8 @@ public Optional webhookId() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> webhookContext() { - return (Optional>) webhookContext; + public Optional> webhookContext() { + return (Optional>) webhookContext; } /** @@ -108,10 +111,9 @@ public Optional> webhookContext() { * refreshed (default 600 seconds) * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional refreshInterval() { - return (Optional) refreshInterval; + return refreshInterval; } /** @@ -119,8 +121,8 @@ public Optional refreshInterval() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> allowedOrigins() { - return (Optional>) allowedOrigins; + public Optional> allowedOrigins() { + return (Optional>) allowedOrigins; } public final static Builder builder() { @@ -145,7 +147,7 @@ public PlaybackPolicy withWebhookId(String webhookId) { /** * ID of the webhook to use for playback policy */ - public PlaybackPolicy withWebhookId(Optional webhookId) { + public PlaybackPolicy withWebhookId(Optional webhookId) { Utils.checkNotNull(webhookId, "webhookId"); this.webhookId = webhookId; return this; @@ -154,7 +156,7 @@ public PlaybackPolicy withWebhookId(Optional webhookId) { /** * User-defined webhook context */ - public PlaybackPolicy withWebhookContext(java.util.Map webhookContext) { + public PlaybackPolicy withWebhookContext(Map webhookContext) { Utils.checkNotNull(webhookContext, "webhookContext"); this.webhookContext = Optional.ofNullable(webhookContext); return this; @@ -163,7 +165,7 @@ public PlaybackPolicy withWebhookContext(java.util.Map /** * User-defined webhook context */ - public PlaybackPolicy withWebhookContext(Optional> webhookContext) { + public PlaybackPolicy withWebhookContext(Optional> webhookContext) { Utils.checkNotNull(webhookContext, "webhookContext"); this.webhookContext = webhookContext; return this; @@ -185,7 +187,7 @@ public PlaybackPolicy withRefreshInterval(double refreshInterval) { * refreshed (default 600 seconds) * */ - public PlaybackPolicy withRefreshInterval(Optional refreshInterval) { + public PlaybackPolicy withRefreshInterval(Optional refreshInterval) { Utils.checkNotNull(refreshInterval, "refreshInterval"); this.refreshInterval = refreshInterval; return this; @@ -194,7 +196,7 @@ public PlaybackPolicy withRefreshInterval(Optional refreshInte /** * List of allowed origins for CORS playback (<scheme>://<hostname>:<port>, <scheme>://<hostname>) */ - public PlaybackPolicy withAllowedOrigins(java.util.List allowedOrigins) { + public PlaybackPolicy withAllowedOrigins(List allowedOrigins) { Utils.checkNotNull(allowedOrigins, "allowedOrigins"); this.allowedOrigins = Optional.ofNullable(allowedOrigins); return this; @@ -203,7 +205,7 @@ public PlaybackPolicy withAllowedOrigins(java.util.List allowedOrigins) /** * List of allowed origins for CORS playback (<scheme>://<hostname>:<port>, <scheme>://<hostname>) */ - public PlaybackPolicy withAllowedOrigins(Optional> allowedOrigins) { + public PlaybackPolicy withAllowedOrigins(Optional> allowedOrigins) { Utils.checkNotNull(allowedOrigins, "allowedOrigins"); this.allowedOrigins = allowedOrigins; return this; @@ -219,16 +221,16 @@ public boolean equals(java.lang.Object o) { } PlaybackPolicy other = (PlaybackPolicy) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.webhookId, other.webhookId) && - java.util.Objects.deepEquals(this.webhookContext, other.webhookContext) && - java.util.Objects.deepEquals(this.refreshInterval, other.refreshInterval) && - java.util.Objects.deepEquals(this.allowedOrigins, other.allowedOrigins); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.webhookId, other.webhookId) && + Objects.deepEquals(this.webhookContext, other.webhookContext) && + Objects.deepEquals(this.refreshInterval, other.refreshInterval) && + Objects.deepEquals(this.allowedOrigins, other.allowedOrigins); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, webhookId, webhookContext, @@ -250,13 +252,13 @@ public final static class Builder { private Type type; - private Optional webhookId = Optional.empty(); + private Optional webhookId = Optional.empty(); - private Optional> webhookContext = Optional.empty(); + private Optional> webhookContext = Optional.empty(); - private Optional refreshInterval = Optional.empty(); + private Optional refreshInterval = Optional.empty(); - private Optional> allowedOrigins = Optional.empty(); + private Optional> allowedOrigins = Optional.empty(); private Builder() { // force use of static builder() method @@ -280,7 +282,7 @@ public Builder webhookId(String webhookId) { /** * ID of the webhook to use for playback policy */ - public Builder webhookId(Optional webhookId) { + public Builder webhookId(Optional webhookId) { Utils.checkNotNull(webhookId, "webhookId"); this.webhookId = webhookId; return this; @@ -289,7 +291,7 @@ public Builder webhookId(Optional webhookId) { /** * User-defined webhook context */ - public Builder webhookContext(java.util.Map webhookContext) { + public Builder webhookContext(Map webhookContext) { Utils.checkNotNull(webhookContext, "webhookContext"); this.webhookContext = Optional.ofNullable(webhookContext); return this; @@ -298,7 +300,7 @@ public Builder webhookContext(java.util.Map webhookCon /** * User-defined webhook context */ - public Builder webhookContext(Optional> webhookContext) { + public Builder webhookContext(Optional> webhookContext) { Utils.checkNotNull(webhookContext, "webhookContext"); this.webhookContext = webhookContext; return this; @@ -320,7 +322,7 @@ public Builder refreshInterval(double refreshInterval) { * refreshed (default 600 seconds) * */ - public Builder refreshInterval(Optional refreshInterval) { + public Builder refreshInterval(Optional refreshInterval) { Utils.checkNotNull(refreshInterval, "refreshInterval"); this.refreshInterval = refreshInterval; return this; @@ -329,7 +331,7 @@ public Builder refreshInterval(Optional refreshInterval) { /** * List of allowed origins for CORS playback (<scheme>://<hostname>:<port>, <scheme>://<hostname>) */ - public Builder allowedOrigins(java.util.List allowedOrigins) { + public Builder allowedOrigins(List allowedOrigins) { Utils.checkNotNull(allowedOrigins, "allowedOrigins"); this.allowedOrigins = Optional.ofNullable(allowedOrigins); return this; @@ -338,7 +340,7 @@ public Builder allowedOrigins(java.util.List allowedOrigins) { /** * List of allowed origins for CORS playback (<scheme>://<hostname>:<port>, <scheme>://<hostname>) */ - public Builder allowedOrigins(Optional> allowedOrigins) { + public Builder allowedOrigins(Optional> allowedOrigins) { Utils.checkNotNull(allowedOrigins, "allowedOrigins"); this.allowedOrigins = allowedOrigins; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/PrimaryType.java b/src/main/java/studio/livepeer/livepeer/models/components/PrimaryType.java index 2647dbd..535e5b2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/PrimaryType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/PrimaryType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * PrimaryType - Video Metadata EIP-712 primaryType diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Profile.java b/src/main/java/studio/livepeer/livepeer/models/components/Profile.java index 3286ec4..0efad04 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Profile.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Profile.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum Profile { H264_BASELINE("H264Baseline"), diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Pull.java b/src/main/java/studio/livepeer/livepeer/models/components/Pull.java index 1884f5f..c5bfdff 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Pull.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Pull.java @@ -1,22 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * Pull - Configuration for a stream that should be actively pulled from an * external source, rather than pushed to Livepeer. If specified, the @@ -36,7 +37,7 @@ public class Pull { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("headers") - private Optional> headers; + private Optional> headers; /** * Indicates whether the stream will be pulled from a mobile source. @@ -56,7 +57,7 @@ public class Pull { @JsonCreator public Pull( @JsonProperty("source") String source, - @JsonProperty("headers") Optional> headers, + @JsonProperty("headers") Optional> headers, @JsonProperty("isMobile") Optional isMobile, @JsonProperty("location") Optional location) { Utils.checkNotNull(source, "source"); @@ -87,8 +88,8 @@ public String source() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> headers() { - return (Optional>) headers; + public Optional> headers() { + return (Optional>) headers; } /** @@ -126,7 +127,7 @@ public Pull withSource(String source) { /** * Headers to be sent with the request to the pull source. */ - public Pull withHeaders(java.util.Map headers) { + public Pull withHeaders(Map headers) { Utils.checkNotNull(headers, "headers"); this.headers = Optional.ofNullable(headers); return this; @@ -135,7 +136,7 @@ public Pull withHeaders(java.util.Map headers) { /** * Headers to be sent with the request to the pull source. */ - public Pull withHeaders(Optional> headers) { + public Pull withHeaders(Optional> headers) { Utils.checkNotNull(headers, "headers"); this.headers = headers; return this; @@ -189,15 +190,15 @@ public boolean equals(java.lang.Object o) { } Pull other = (Pull) o; return - java.util.Objects.deepEquals(this.source, other.source) && - java.util.Objects.deepEquals(this.headers, other.headers) && - java.util.Objects.deepEquals(this.isMobile, other.isMobile) && - java.util.Objects.deepEquals(this.location, other.location); + Objects.deepEquals(this.source, other.source) && + Objects.deepEquals(this.headers, other.headers) && + Objects.deepEquals(this.isMobile, other.isMobile) && + Objects.deepEquals(this.location, other.location); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( source, headers, isMobile, @@ -217,7 +218,7 @@ public final static class Builder { private String source; - private Optional> headers = Optional.empty(); + private Optional> headers = Optional.empty(); private Optional isMobile = Optional.empty(); @@ -239,7 +240,7 @@ public Builder source(String source) { /** * Headers to be sent with the request to the pull source. */ - public Builder headers(java.util.Map headers) { + public Builder headers(Map headers) { Utils.checkNotNull(headers, "headers"); this.headers = Optional.ofNullable(headers); return this; @@ -248,7 +249,7 @@ public Builder headers(java.util.Map headers) { /** * Headers to be sent with the request to the pull source. */ - public Builder headers(Optional> headers) { + public Builder headers(Optional> headers) { Utils.checkNotNull(headers, "headers"); this.headers = headers; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/RealtimeViewershipMetric.java b/src/main/java/studio/livepeer/livepeer/models/components/RealtimeViewershipMetric.java new file mode 100644 index 0000000..575b2a3 --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/models/components/RealtimeViewershipMetric.java @@ -0,0 +1,397 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.models.components; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Double; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import studio.livepeer.livepeer.utils.Utils; + +/** + * RealtimeViewershipMetric - An individual metric about realtime viewership of a stream/asset. + * + */ + +public class RealtimeViewershipMetric { + + /** + * The playback ID associated with the metric. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("playbackId") + private Optional playbackId; + + /** + * The device used by the viewer. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("device") + private Optional device; + + /** + * The browser used by the viewer. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("browser") + private Optional browser; + + /** + * The country where the viewer is located. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("country") + private Optional country; + + /** + * The number of views for the stream/asset. + */ + @JsonProperty("viewCount") + private long viewCount; + + /** + * The error rate for the stream/asset. + */ + @JsonProperty("errorRate") + private double errorRate; + + @JsonCreator + public RealtimeViewershipMetric( + @JsonProperty("playbackId") Optional playbackId, + @JsonProperty("device") Optional device, + @JsonProperty("browser") Optional browser, + @JsonProperty("country") Optional country, + @JsonProperty("viewCount") long viewCount, + @JsonProperty("errorRate") double errorRate) { + Utils.checkNotNull(playbackId, "playbackId"); + Utils.checkNotNull(device, "device"); + Utils.checkNotNull(browser, "browser"); + Utils.checkNotNull(country, "country"); + Utils.checkNotNull(viewCount, "viewCount"); + Utils.checkNotNull(errorRate, "errorRate"); + this.playbackId = playbackId; + this.device = device; + this.browser = browser; + this.country = country; + this.viewCount = viewCount; + this.errorRate = errorRate; + } + + public RealtimeViewershipMetric( + long viewCount, + double errorRate) { + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), viewCount, errorRate); + } + + /** + * The playback ID associated with the metric. + */ + @JsonIgnore + public Optional playbackId() { + return playbackId; + } + + /** + * The device used by the viewer. + */ + @JsonIgnore + public Optional device() { + return device; + } + + /** + * The browser used by the viewer. + */ + @JsonIgnore + public Optional browser() { + return browser; + } + + /** + * The country where the viewer is located. + */ + @JsonIgnore + public Optional country() { + return country; + } + + /** + * The number of views for the stream/asset. + */ + @JsonIgnore + public long viewCount() { + return viewCount; + } + + /** + * The error rate for the stream/asset. + */ + @JsonIgnore + public double errorRate() { + return errorRate; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The playback ID associated with the metric. + */ + public RealtimeViewershipMetric withPlaybackId(String playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = Optional.ofNullable(playbackId); + return this; + } + + /** + * The playback ID associated with the metric. + */ + public RealtimeViewershipMetric withPlaybackId(Optional playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = playbackId; + return this; + } + + /** + * The device used by the viewer. + */ + public RealtimeViewershipMetric withDevice(String device) { + Utils.checkNotNull(device, "device"); + this.device = Optional.ofNullable(device); + return this; + } + + /** + * The device used by the viewer. + */ + public RealtimeViewershipMetric withDevice(Optional device) { + Utils.checkNotNull(device, "device"); + this.device = device; + return this; + } + + /** + * The browser used by the viewer. + */ + public RealtimeViewershipMetric withBrowser(String browser) { + Utils.checkNotNull(browser, "browser"); + this.browser = Optional.ofNullable(browser); + return this; + } + + /** + * The browser used by the viewer. + */ + public RealtimeViewershipMetric withBrowser(Optional browser) { + Utils.checkNotNull(browser, "browser"); + this.browser = browser; + return this; + } + + /** + * The country where the viewer is located. + */ + public RealtimeViewershipMetric withCountry(String country) { + Utils.checkNotNull(country, "country"); + this.country = Optional.ofNullable(country); + return this; + } + + /** + * The country where the viewer is located. + */ + public RealtimeViewershipMetric withCountry(Optional country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The number of views for the stream/asset. + */ + public RealtimeViewershipMetric withViewCount(long viewCount) { + Utils.checkNotNull(viewCount, "viewCount"); + this.viewCount = viewCount; + return this; + } + + /** + * The error rate for the stream/asset. + */ + public RealtimeViewershipMetric withErrorRate(double errorRate) { + Utils.checkNotNull(errorRate, "errorRate"); + this.errorRate = errorRate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RealtimeViewershipMetric other = (RealtimeViewershipMetric) o; + return + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.device, other.device) && + Objects.deepEquals(this.browser, other.browser) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.viewCount, other.viewCount) && + Objects.deepEquals(this.errorRate, other.errorRate); + } + + @Override + public int hashCode() { + return Objects.hash( + playbackId, + device, + browser, + country, + viewCount, + errorRate); + } + + @Override + public String toString() { + return Utils.toString(RealtimeViewershipMetric.class, + "playbackId", playbackId, + "device", device, + "browser", browser, + "country", country, + "viewCount", viewCount, + "errorRate", errorRate); + } + + public final static class Builder { + + private Optional playbackId = Optional.empty(); + + private Optional device = Optional.empty(); + + private Optional browser = Optional.empty(); + + private Optional country = Optional.empty(); + + private Long viewCount; + + private Double errorRate; + + private Builder() { + // force use of static builder() method + } + + /** + * The playback ID associated with the metric. + */ + public Builder playbackId(String playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = Optional.ofNullable(playbackId); + return this; + } + + /** + * The playback ID associated with the metric. + */ + public Builder playbackId(Optional playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = playbackId; + return this; + } + + /** + * The device used by the viewer. + */ + public Builder device(String device) { + Utils.checkNotNull(device, "device"); + this.device = Optional.ofNullable(device); + return this; + } + + /** + * The device used by the viewer. + */ + public Builder device(Optional device) { + Utils.checkNotNull(device, "device"); + this.device = device; + return this; + } + + /** + * The browser used by the viewer. + */ + public Builder browser(String browser) { + Utils.checkNotNull(browser, "browser"); + this.browser = Optional.ofNullable(browser); + return this; + } + + /** + * The browser used by the viewer. + */ + public Builder browser(Optional browser) { + Utils.checkNotNull(browser, "browser"); + this.browser = browser; + return this; + } + + /** + * The country where the viewer is located. + */ + public Builder country(String country) { + Utils.checkNotNull(country, "country"); + this.country = Optional.ofNullable(country); + return this; + } + + /** + * The country where the viewer is located. + */ + public Builder country(Optional country) { + Utils.checkNotNull(country, "country"); + this.country = country; + return this; + } + + /** + * The number of views for the stream/asset. + */ + public Builder viewCount(long viewCount) { + Utils.checkNotNull(viewCount, "viewCount"); + this.viewCount = viewCount; + return this; + } + + /** + * The error rate for the stream/asset. + */ + public Builder errorRate(double errorRate) { + Utils.checkNotNull(errorRate, "errorRate"); + this.errorRate = errorRate; + return this; + } + + public RealtimeViewershipMetric build() { + return new RealtimeViewershipMetric( + playbackId, + device, + browser, + country, + viewCount, + errorRate); + } + } +} + diff --git a/src/main/java/studio/livepeer/livepeer/models/components/RecordingSpec.java b/src/main/java/studio/livepeer/livepeer/models/components/RecordingSpec.java index dd12726..3516802 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/RecordingSpec.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/RecordingSpec.java @@ -1,86 +1,58 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; -/** - * RecordingSpec - Configuration for recording the stream. This can only be set if - * `record` is true. - * - */ + public class RecordingSpec { - /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. - * - */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private Optional> profiles; + private JsonNullable> profiles; @JsonCreator public RecordingSpec( - @JsonProperty("profiles") Optional> profiles) { + @JsonProperty("profiles") JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; } public RecordingSpec() { - this(Optional.empty()); + this(JsonNullable.undefined()); } - /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. - * - */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> profiles() { - return (Optional>) profiles; + public JsonNullable> profiles() { + return (JsonNullable>) profiles; } public final static Builder builder() { return new Builder(); } - /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. - * - */ - public RecordingSpec withProfiles(java.util.List profiles) { + public RecordingSpec withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); - this.profiles = Optional.ofNullable(profiles); + this.profiles = JsonNullable.of(profiles); return this; } - /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. - * - */ - public RecordingSpec withProfiles(Optional> profiles) { + public RecordingSpec withProfiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -96,12 +68,12 @@ public boolean equals(java.lang.Object o) { } RecordingSpec other = (RecordingSpec) o; return - java.util.Objects.deepEquals(this.profiles, other.profiles); + Objects.deepEquals(this.profiles, other.profiles); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( profiles); } @@ -113,31 +85,19 @@ public String toString() { public final static class Builder { - private Optional> profiles = Optional.empty(); + private JsonNullable> profiles = JsonNullable.undefined(); private Builder() { // force use of static builder() method } - /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. - * - */ - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); - this.profiles = Optional.ofNullable(profiles); + this.profiles = JsonNullable.of(profiles); return this; } - /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. - * - */ - public Builder profiles(Optional> profiles) { + public Builder profiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java b/src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java index 2fc0d0b..d3f6102 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/RecordingStatus.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * RecordingStatus - The status of the recording process of this stream session. diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Renditions.java b/src/main/java/studio/livepeer/livepeer/models/components/Renditions.java index c900fcf..5a71797 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Renditions.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Renditions.java @@ -1,19 +1,17 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class Renditions { @JsonCreator @@ -39,7 +37,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Request.java b/src/main/java/studio/livepeer/livepeer/models/components/Request.java index 55e5856..24c3f96 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Request.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Request.java @@ -1,23 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Request { /** @@ -25,35 +26,35 @@ public class Request { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") - private Optional url; + private Optional url; /** * HTTP request method */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("method") - private Optional method; + private Optional method; /** * HTTP request headers */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("headers") - private Optional> headers; + private Optional> headers; /** * request body */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("body") - private Optional body; + private Optional body; @JsonCreator public Request( - @JsonProperty("url") Optional url, - @JsonProperty("method") Optional method, - @JsonProperty("headers") Optional> headers, - @JsonProperty("body") Optional body) { + @JsonProperty("url") Optional url, + @JsonProperty("method") Optional method, + @JsonProperty("headers") Optional> headers, + @JsonProperty("body") Optional body) { Utils.checkNotNull(url, "url"); Utils.checkNotNull(method, "method"); Utils.checkNotNull(headers, "headers"); @@ -71,19 +72,17 @@ public Request() { /** * URL used for the request */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional url() { - return (Optional) url; + return url; } /** * HTTP request method */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional method() { - return (Optional) method; + return method; } /** @@ -91,17 +90,16 @@ public Optional method() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> headers() { - return (Optional>) headers; + public Optional> headers() { + return (Optional>) headers; } /** * request body */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional body() { - return (Optional) body; + return body; } public final static Builder builder() { @@ -120,7 +118,7 @@ public Request withUrl(String url) { /** * URL used for the request */ - public Request withUrl(Optional url) { + public Request withUrl(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -138,7 +136,7 @@ public Request withMethod(String method) { /** * HTTP request method */ - public Request withMethod(Optional method) { + public Request withMethod(Optional method) { Utils.checkNotNull(method, "method"); this.method = method; return this; @@ -147,7 +145,7 @@ public Request withMethod(Optional method) { /** * HTTP request headers */ - public Request withHeaders(java.util.Map headers) { + public Request withHeaders(Map headers) { Utils.checkNotNull(headers, "headers"); this.headers = Optional.ofNullable(headers); return this; @@ -156,7 +154,7 @@ public Request withHeaders(java.util.Map headers) { /** * HTTP request headers */ - public Request withHeaders(Optional> headers) { + public Request withHeaders(Optional> headers) { Utils.checkNotNull(headers, "headers"); this.headers = headers; return this; @@ -174,7 +172,7 @@ public Request withBody(String body) { /** * request body */ - public Request withBody(Optional body) { + public Request withBody(Optional body) { Utils.checkNotNull(body, "body"); this.body = body; return this; @@ -190,15 +188,15 @@ public boolean equals(java.lang.Object o) { } Request other = (Request) o; return - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.method, other.method) && - java.util.Objects.deepEquals(this.headers, other.headers) && - java.util.Objects.deepEquals(this.body, other.body); + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.method, other.method) && + Objects.deepEquals(this.headers, other.headers) && + Objects.deepEquals(this.body, other.body); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( url, method, headers, @@ -216,13 +214,13 @@ public String toString() { public final static class Builder { - private Optional url = Optional.empty(); + private Optional url = Optional.empty(); - private Optional method = Optional.empty(); + private Optional method = Optional.empty(); - private Optional> headers = Optional.empty(); + private Optional> headers = Optional.empty(); - private Optional body = Optional.empty(); + private Optional body = Optional.empty(); private Builder() { // force use of static builder() method @@ -240,7 +238,7 @@ public Builder url(String url) { /** * URL used for the request */ - public Builder url(Optional url) { + public Builder url(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -258,7 +256,7 @@ public Builder method(String method) { /** * HTTP request method */ - public Builder method(Optional method) { + public Builder method(Optional method) { Utils.checkNotNull(method, "method"); this.method = method; return this; @@ -267,7 +265,7 @@ public Builder method(Optional method) { /** * HTTP request headers */ - public Builder headers(java.util.Map headers) { + public Builder headers(Map headers) { Utils.checkNotNull(headers, "headers"); this.headers = Optional.ofNullable(headers); return this; @@ -276,7 +274,7 @@ public Builder headers(java.util.Map headers) { /** * HTTP request headers */ - public Builder headers(Optional> headers) { + public Builder headers(Optional> headers) { Utils.checkNotNull(headers, "headers"); this.headers = headers; return this; @@ -294,7 +292,7 @@ public Builder body(String body) { /** * request body */ - public Builder body(Optional body) { + public Builder body(Optional body) { Utils.checkNotNull(body, "body"); this.body = body; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Response.java b/src/main/java/studio/livepeer/livepeer/models/components/Response.java index 08c829d..d000dbb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Response.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Response.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Response { /** @@ -25,27 +25,27 @@ public class Response { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("body") - private Optional body; + private Optional body; /** * HTTP status code */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") - private Optional status; + private Optional status; /** * response status text */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("statusText") - private Optional statusText; + private Optional statusText; @JsonCreator public Response( - @JsonProperty("body") Optional body, - @JsonProperty("status") Optional status, - @JsonProperty("statusText") Optional statusText) { + @JsonProperty("body") Optional body, + @JsonProperty("status") Optional status, + @JsonProperty("statusText") Optional statusText) { Utils.checkNotNull(body, "body"); Utils.checkNotNull(status, "status"); Utils.checkNotNull(statusText, "statusText"); @@ -61,28 +61,25 @@ public Response() { /** * response body */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional body() { - return (Optional) body; + return body; } /** * HTTP status code */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional status() { - return (Optional) status; + return status; } /** * response status text */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional statusText() { - return (Optional) statusText; + return statusText; } public final static Builder builder() { @@ -101,7 +98,7 @@ public Response withBody(String body) { /** * response body */ - public Response withBody(Optional body) { + public Response withBody(Optional body) { Utils.checkNotNull(body, "body"); this.body = body; return this; @@ -119,7 +116,7 @@ public Response withStatus(double status) { /** * HTTP status code */ - public Response withStatus(Optional status) { + public Response withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -137,7 +134,7 @@ public Response withStatusText(String statusText) { /** * response status text */ - public Response withStatusText(Optional statusText) { + public Response withStatusText(Optional statusText) { Utils.checkNotNull(statusText, "statusText"); this.statusText = statusText; return this; @@ -153,14 +150,14 @@ public boolean equals(java.lang.Object o) { } Response other = (Response) o; return - java.util.Objects.deepEquals(this.body, other.body) && - java.util.Objects.deepEquals(this.status, other.status) && - java.util.Objects.deepEquals(this.statusText, other.statusText); + Objects.deepEquals(this.body, other.body) && + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.statusText, other.statusText); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( body, status, statusText); @@ -176,11 +173,11 @@ public String toString() { public final static class Builder { - private Optional body = Optional.empty(); + private Optional body = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); - private Optional statusText = Optional.empty(); + private Optional statusText = Optional.empty(); private Builder() { // force use of static builder() method @@ -198,7 +195,7 @@ public Builder body(String body) { /** * response body */ - public Builder body(Optional body) { + public Builder body(Optional body) { Utils.checkNotNull(body, "body"); this.body = body; return this; @@ -216,7 +213,7 @@ public Builder status(double status) { /** * HTTP status code */ - public Builder status(Optional status) { + public Builder status(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -234,7 +231,7 @@ public Builder statusText(String statusText) { /** * response status text */ - public Builder statusText(Optional statusText) { + public Builder statusText(Optional statusText) { Utils.checkNotNull(statusText, "statusText"); this.statusText = statusText; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Room.java b/src/main/java/studio/livepeer/livepeer/models/components/Room.java index 4130a23..6244c4a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Room.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Room.java @@ -1,23 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Room { /** @@ -31,32 +32,32 @@ public class Room { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; /** * Timestamp (in milliseconds) at which room was updated */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedAt") - private Optional updatedAt; + private Optional updatedAt; /** * internal ID for egress output */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("egressId") - private Optional egressId; + private Optional egressId; @JsonProperty("participants") - private java.util.Map participants; + private Map participants; @JsonCreator public Room( @JsonProperty("id") String id, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("egressId") Optional egressId, - @JsonProperty("participants") java.util.Map participants) { + @JsonProperty("createdAt") Optional createdAt, + @JsonProperty("updatedAt") Optional updatedAt, + @JsonProperty("egressId") Optional egressId, + @JsonProperty("participants") Map participants) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(updatedAt, "updatedAt"); @@ -71,7 +72,7 @@ public Room( public Room( String id, - java.util.Map participants) { + Map participants) { this(id, Optional.empty(), Optional.empty(), Optional.empty(), participants); } @@ -86,32 +87,29 @@ public String id() { /** * Timestamp (in milliseconds) at which the room was created */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } /** * Timestamp (in milliseconds) at which room was updated */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional updatedAt() { - return (Optional) updatedAt; + return updatedAt; } /** * internal ID for egress output */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional egressId() { - return (Optional) egressId; + return egressId; } @JsonIgnore - public java.util.Map participants() { + public Map participants() { return participants; } @@ -140,7 +138,7 @@ public Room withCreatedAt(double createdAt) { /** * Timestamp (in milliseconds) at which the room was created */ - public Room withCreatedAt(Optional createdAt) { + public Room withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -158,7 +156,7 @@ public Room withUpdatedAt(double updatedAt) { /** * Timestamp (in milliseconds) at which room was updated */ - public Room withUpdatedAt(Optional updatedAt) { + public Room withUpdatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -176,13 +174,13 @@ public Room withEgressId(String egressId) { /** * internal ID for egress output */ - public Room withEgressId(Optional egressId) { + public Room withEgressId(Optional egressId) { Utils.checkNotNull(egressId, "egressId"); this.egressId = egressId; return this; } - public Room withParticipants(java.util.Map participants) { + public Room withParticipants(Map participants) { Utils.checkNotNull(participants, "participants"); this.participants = participants; return this; @@ -198,16 +196,16 @@ public boolean equals(java.lang.Object o) { } Room other = (Room) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.egressId, other.egressId) && - java.util.Objects.deepEquals(this.participants, other.participants); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.egressId, other.egressId) && + Objects.deepEquals(this.participants, other.participants); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, createdAt, updatedAt, @@ -229,13 +227,13 @@ public final static class Builder { private String id; - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); - private Optional updatedAt = Optional.empty(); + private Optional updatedAt = Optional.empty(); - private Optional egressId = Optional.empty(); + private Optional egressId = Optional.empty(); - private java.util.Map participants; + private Map participants; private Builder() { // force use of static builder() method @@ -262,7 +260,7 @@ public Builder createdAt(double createdAt) { /** * Timestamp (in milliseconds) at which the room was created */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -280,7 +278,7 @@ public Builder updatedAt(double updatedAt) { /** * Timestamp (in milliseconds) at which room was updated */ - public Builder updatedAt(Optional updatedAt) { + public Builder updatedAt(Optional updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -298,13 +296,13 @@ public Builder egressId(String egressId) { /** * internal ID for egress output */ - public Builder egressId(Optional egressId) { + public Builder egressId(Optional egressId) { Utils.checkNotNull(egressId, "egressId"); this.egressId = egressId; return this; } - public Builder participants(java.util.Map participants) { + public Builder participants(Map participants) { Utils.checkNotNull(participants, "participants"); this.participants = participants; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/RoomEgressPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/RoomEgressPayload.java index 1add70b..0d7a006 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/RoomEgressPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/RoomEgressPayload.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class RoomEgressPayload { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } RoomEgressPayload other = (RoomEgressPayload) o; return - java.util.Objects.deepEquals(this.streamId, other.streamId); + Objects.deepEquals(this.streamId, other.streamId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( streamId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/RoomUserPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/RoomUserPayload.java index e8c613e..9e29fc7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/RoomUserPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/RoomUserPayload.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class RoomUserPayload { /** @@ -31,28 +31,28 @@ public class RoomUserPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("canPublish") - private Optional canPublish; + private Optional canPublish; /** * Whether a user is allowed to publish data messages to the room */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("canPublishData") - private Optional canPublishData; + private Optional canPublishData; /** * User defined payload to store for the participant */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata") - private Optional metadata; + private Optional metadata; @JsonCreator public RoomUserPayload( @JsonProperty("name") String name, - @JsonProperty("canPublish") Optional canPublish, - @JsonProperty("canPublishData") Optional canPublishData, - @JsonProperty("metadata") Optional metadata) { + @JsonProperty("canPublish") Optional canPublish, + @JsonProperty("canPublishData") Optional canPublishData, + @JsonProperty("metadata") Optional metadata) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(canPublish, "canPublish"); Utils.checkNotNull(canPublishData, "canPublishData"); @@ -79,28 +79,25 @@ public String name() { /** * Whether a user is allowed to publish audio/video tracks */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional canPublish() { - return (Optional) canPublish; + return canPublish; } /** * Whether a user is allowed to publish data messages to the room */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional canPublishData() { - return (Optional) canPublishData; + return canPublishData; } /** * User defined payload to store for the participant */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional metadata() { - return (Optional) metadata; + return metadata; } public final static Builder builder() { @@ -128,7 +125,7 @@ public RoomUserPayload withCanPublish(boolean canPublish) { /** * Whether a user is allowed to publish audio/video tracks */ - public RoomUserPayload withCanPublish(Optional canPublish) { + public RoomUserPayload withCanPublish(Optional canPublish) { Utils.checkNotNull(canPublish, "canPublish"); this.canPublish = canPublish; return this; @@ -146,7 +143,7 @@ public RoomUserPayload withCanPublishData(boolean canPublishData) { /** * Whether a user is allowed to publish data messages to the room */ - public RoomUserPayload withCanPublishData(Optional canPublishData) { + public RoomUserPayload withCanPublishData(Optional canPublishData) { Utils.checkNotNull(canPublishData, "canPublishData"); this.canPublishData = canPublishData; return this; @@ -164,7 +161,7 @@ public RoomUserPayload withMetadata(String metadata) { /** * User defined payload to store for the participant */ - public RoomUserPayload withMetadata(Optional metadata) { + public RoomUserPayload withMetadata(Optional metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -180,15 +177,15 @@ public boolean equals(java.lang.Object o) { } RoomUserPayload other = (RoomUserPayload) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.canPublish, other.canPublish) && - java.util.Objects.deepEquals(this.canPublishData, other.canPublishData) && - java.util.Objects.deepEquals(this.metadata, other.metadata); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.canPublish, other.canPublish) && + Objects.deepEquals(this.canPublishData, other.canPublishData) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, canPublish, canPublishData, @@ -208,11 +205,11 @@ public final static class Builder { private String name; - private Optional canPublish = Optional.empty(); + private Optional canPublish = Optional.empty(); - private Optional canPublishData = Optional.empty(); + private Optional canPublishData = Optional.empty(); - private Optional metadata = Optional.empty(); + private Optional metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -239,7 +236,7 @@ public Builder canPublish(boolean canPublish) { /** * Whether a user is allowed to publish audio/video tracks */ - public Builder canPublish(Optional canPublish) { + public Builder canPublish(Optional canPublish) { Utils.checkNotNull(canPublish, "canPublish"); this.canPublish = canPublish; return this; @@ -257,7 +254,7 @@ public Builder canPublishData(boolean canPublishData) { /** * Whether a user is allowed to publish data messages to the room */ - public Builder canPublishData(Optional canPublishData) { + public Builder canPublishData(Optional canPublishData) { Utils.checkNotNull(canPublishData, "canPublishData"); this.canPublishData = canPublishData; return this; @@ -275,7 +272,7 @@ public Builder metadata(String metadata) { /** * User defined payload to store for the participant */ - public Builder metadata(Optional metadata) { + public Builder metadata(Optional metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/RoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/components/RoomUserResponse.java index 57babf9..a29271c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/RoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/RoomUserResponse.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class RoomUserResponse { /** @@ -25,27 +24,27 @@ public class RoomUserResponse { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; /** * Joining URL - use this for Livepeer's default meeting app (see the multiparticipant streaming guide for more info). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("joinUrl") - private Optional joinUrl; + private Optional joinUrl; /** * Joining JWT - this can be used if you have a custom meeting app (see the multiparticipant streaming guide for more info). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("token") - private Optional token; + private Optional token; @JsonCreator public RoomUserResponse( - @JsonProperty("id") Optional id, - @JsonProperty("joinUrl") Optional joinUrl, - @JsonProperty("token") Optional token) { + @JsonProperty("id") Optional id, + @JsonProperty("joinUrl") Optional joinUrl, + @JsonProperty("token") Optional token) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(joinUrl, "joinUrl"); Utils.checkNotNull(token, "token"); @@ -61,28 +60,25 @@ public RoomUserResponse() { /** * The ID of the user */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } /** * Joining URL - use this for Livepeer's default meeting app (see the multiparticipant streaming guide for more info). */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional joinUrl() { - return (Optional) joinUrl; + return joinUrl; } /** * Joining JWT - this can be used if you have a custom meeting app (see the multiparticipant streaming guide for more info). */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional token() { - return (Optional) token; + return token; } public final static Builder builder() { @@ -101,7 +97,7 @@ public RoomUserResponse withId(String id) { /** * The ID of the user */ - public RoomUserResponse withId(Optional id) { + public RoomUserResponse withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -119,7 +115,7 @@ public RoomUserResponse withJoinUrl(String joinUrl) { /** * Joining URL - use this for Livepeer's default meeting app (see the multiparticipant streaming guide for more info). */ - public RoomUserResponse withJoinUrl(Optional joinUrl) { + public RoomUserResponse withJoinUrl(Optional joinUrl) { Utils.checkNotNull(joinUrl, "joinUrl"); this.joinUrl = joinUrl; return this; @@ -137,7 +133,7 @@ public RoomUserResponse withToken(String token) { /** * Joining JWT - this can be used if you have a custom meeting app (see the multiparticipant streaming guide for more info). */ - public RoomUserResponse withToken(Optional token) { + public RoomUserResponse withToken(Optional token) { Utils.checkNotNull(token, "token"); this.token = token; return this; @@ -153,14 +149,14 @@ public boolean equals(java.lang.Object o) { } RoomUserResponse other = (RoomUserResponse) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.joinUrl, other.joinUrl) && - java.util.Objects.deepEquals(this.token, other.token); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.joinUrl, other.joinUrl) && + Objects.deepEquals(this.token, other.token); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, joinUrl, token); @@ -176,11 +172,11 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional joinUrl = Optional.empty(); + private Optional joinUrl = Optional.empty(); - private Optional token = Optional.empty(); + private Optional token = Optional.empty(); private Builder() { // force use of static builder() method @@ -198,7 +194,7 @@ public Builder id(String id) { /** * The ID of the user */ - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -216,7 +212,7 @@ public Builder joinUrl(String joinUrl) { /** * Joining URL - use this for Livepeer's default meeting app (see the multiparticipant streaming guide for more info). */ - public Builder joinUrl(Optional joinUrl) { + public Builder joinUrl(Optional joinUrl) { Utils.checkNotNull(joinUrl, "joinUrl"); this.joinUrl = joinUrl; return this; @@ -234,7 +230,7 @@ public Builder token(String token) { /** * Joining JWT - this can be used if you have a custom meeting app (see the multiparticipant streaming guide for more info). */ - public Builder token(Optional token) { + public Builder token(Optional token) { Utils.checkNotNull(token, "token"); this.token = token; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java b/src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java index 5c7ebfc..cfaa2ec 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/RoomUserUpdatePayload.java @@ -1,24 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; + public class RoomUserUpdatePayload { /** @@ -26,27 +27,27 @@ public class RoomUserUpdatePayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("canPublish") - private Optional canPublish; + private Optional canPublish; /** * Whether a user is allowed to publish data messages to the room */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("canPublishData") - private Optional canPublishData; + private Optional canPublishData; /** * User defined payload to store for the participant */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata") - private Optional metadata; + private Optional metadata; @JsonCreator public RoomUserUpdatePayload( - @JsonProperty("canPublish") Optional canPublish, - @JsonProperty("canPublishData") Optional canPublishData, - @JsonProperty("metadata") Optional metadata) { + @JsonProperty("canPublish") Optional canPublish, + @JsonProperty("canPublishData") Optional canPublishData, + @JsonProperty("metadata") Optional metadata) { Utils.checkNotNull(canPublish, "canPublish"); Utils.checkNotNull(canPublishData, "canPublishData"); Utils.checkNotNull(metadata, "metadata"); @@ -62,28 +63,25 @@ public RoomUserUpdatePayload() { /** * Whether a user is allowed to publish audio/video tracks (i.e. their microphone and webcam) */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional canPublish() { - return (Optional) canPublish; + return canPublish; } /** * Whether a user is allowed to publish data messages to the room */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional canPublishData() { - return (Optional) canPublishData; + return canPublishData; } /** * User defined payload to store for the participant */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional metadata() { - return (Optional) metadata; + return metadata; } public final static Builder builder() { @@ -102,7 +100,7 @@ public RoomUserUpdatePayload withCanPublish(boolean canPublish) { /** * Whether a user is allowed to publish audio/video tracks (i.e. their microphone and webcam) */ - public RoomUserUpdatePayload withCanPublish(Optional canPublish) { + public RoomUserUpdatePayload withCanPublish(Optional canPublish) { Utils.checkNotNull(canPublish, "canPublish"); this.canPublish = canPublish; return this; @@ -120,7 +118,7 @@ public RoomUserUpdatePayload withCanPublishData(boolean canPublishData) { /** * Whether a user is allowed to publish data messages to the room */ - public RoomUserUpdatePayload withCanPublishData(Optional canPublishData) { + public RoomUserUpdatePayload withCanPublishData(Optional canPublishData) { Utils.checkNotNull(canPublishData, "canPublishData"); this.canPublishData = canPublishData; return this; @@ -138,7 +136,7 @@ public RoomUserUpdatePayload withMetadata(String metadata) { /** * User defined payload to store for the participant */ - public RoomUserUpdatePayload withMetadata(Optional metadata) { + public RoomUserUpdatePayload withMetadata(Optional metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -154,14 +152,14 @@ public boolean equals(java.lang.Object o) { } RoomUserUpdatePayload other = (RoomUserUpdatePayload) o; return - java.util.Objects.deepEquals(this.canPublish, other.canPublish) && - java.util.Objects.deepEquals(this.canPublishData, other.canPublishData) && - java.util.Objects.deepEquals(this.metadata, other.metadata); + Objects.deepEquals(this.canPublish, other.canPublish) && + Objects.deepEquals(this.canPublishData, other.canPublishData) && + Objects.deepEquals(this.metadata, other.metadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( canPublish, canPublishData, metadata); @@ -177,11 +175,11 @@ public String toString() { public final static class Builder { - private Optional canPublish; + private Optional canPublish; - private Optional canPublishData; + private Optional canPublishData; - private Optional metadata = Optional.empty(); + private Optional metadata = Optional.empty(); private Builder() { // force use of static builder() method @@ -199,7 +197,7 @@ public Builder canPublish(boolean canPublish) { /** * Whether a user is allowed to publish audio/video tracks (i.e. their microphone and webcam) */ - public Builder canPublish(Optional canPublish) { + public Builder canPublish(Optional canPublish) { Utils.checkNotNull(canPublish, "canPublish"); this.canPublish = canPublish; return this; @@ -217,7 +215,7 @@ public Builder canPublishData(boolean canPublishData) { /** * Whether a user is allowed to publish data messages to the room */ - public Builder canPublishData(Optional canPublishData) { + public Builder canPublishData(Optional canPublishData) { Utils.checkNotNull(canPublishData, "canPublishData"); this.canPublishData = canPublishData; return this; @@ -235,7 +233,7 @@ public Builder metadata(String metadata) { /** * User defined payload to store for the participant */ - public Builder metadata(Optional metadata) { + public Builder metadata(Optional metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = metadata; return this; @@ -254,17 +252,17 @@ public RoomUserUpdatePayload build() { metadata); } - private static final LazySingletonValue> _SINGLETON_VALUE_CanPublish = + private static final LazySingletonValue> _SINGLETON_VALUE_CanPublish = new LazySingletonValue<>( "canPublish", "true", - new TypeReference>() {}); + new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_CanPublishData = + private static final LazySingletonValue> _SINGLETON_VALUE_CanPublishData = new LazySingletonValue<>( "canPublishData", "true", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Security.java b/src/main/java/studio/livepeer/livepeer/models/components/Security.java index 2bd6113..7183964 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Security.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Security.java @@ -1,21 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class Security { @SpeakeasyMetadata("security:scheme=true,type=http,subtype=bearer,name=Authorization") @@ -53,12 +51,12 @@ public boolean equals(java.lang.Object o) { } Security other = (Security) o; return - java.util.Objects.deepEquals(this.apiKey, other.apiKey); + Objects.deepEquals(this.apiKey, other.apiKey); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( apiKey); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Session.java b/src/main/java/studio/livepeer/livepeer/models/components/Session.java index a7576b7..490e556 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Session.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Session.java @@ -1,29 +1,33 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import java.lang.Boolean; import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class Session { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. @@ -31,7 +35,7 @@ public class Session { @JsonInclude(Include.NON_ABSENT) @JsonProperty("kind") @Deprecated - private Optional kind; + private Optional kind; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. @@ -39,93 +43,93 @@ public class Session { @JsonInclude(Include.NON_ABSENT) @JsonProperty("userId") @Deprecated - private Optional userId; + private Optional userId; @JsonProperty("name") private String name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastSeen") - private Optional lastSeen; + private Optional lastSeen; @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceSegments") - private Optional sourceSegments; + private Optional sourceSegments; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcodedSegments") - private Optional transcodedSegments; + private Optional transcodedSegments; /** * Duration of all the source segments, sec */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceSegmentsDuration") - private Optional sourceSegmentsDuration; + private Optional sourceSegmentsDuration; /** * Duration of all the transcoded segments, sec */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcodedSegmentsDuration") - private Optional transcodedSegmentsDuration; + private Optional transcodedSegmentsDuration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceBytes") - private Optional sourceBytes; + private Optional sourceBytes; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcodedBytes") - private Optional transcodedBytes; + private Optional transcodedBytes; /** * Rate at which sourceBytes increases (bytes/second) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ingestRate") - private Optional ingestRate; + private Optional ingestRate; /** * Rate at which transcodedBytes increases (bytes/second) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("outgoingRate") - private Optional outgoingRate; + private Optional outgoingRate; /** * Indicates whether the stream is healthy or not. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("isHealthy") - private JsonNullable isHealthy; + private JsonNullable isHealthy; /** * A string array of human-readable errors describing issues affecting the stream, if any. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("issues") - private JsonNullable> issues; + private JsonNullable> issues; /** * Timestamp (in milliseconds) at which stream object was created */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; /** * Points to parent stream object */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentId") - private Optional parentId; + private Optional parentId; /** * The ID of the project */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("projectId") - private Optional projectId; + private Optional projectId; /** * Whether the stream should be recorded. Uses default settings. For more customization, create and configure an object store. @@ -133,7 +137,7 @@ public class Session { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("record") - private Optional record; + private Optional record; /** * The status of the recording process of this stream session. @@ -147,25 +151,31 @@ public class Session { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("recordingUrl") - private Optional recordingUrl; + private Optional recordingUrl; /** * The URL for the stream session recording packaged in an MP4. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("mp4Url") - private Optional mp4Url; + private Optional mp4Url; /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("playbackId") - private Optional playbackId; + private Optional playbackId; + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private Optional> profiles; + private Optional> profiles; /** * Configuration for recording the stream. This can only be set if @@ -178,30 +188,30 @@ public class Session { @JsonCreator public Session( - @JsonProperty("id") Optional id, - @JsonProperty("kind") Optional kind, - @JsonProperty("userId") Optional userId, + @JsonProperty("id") Optional id, + @JsonProperty("kind") Optional kind, + @JsonProperty("userId") Optional userId, @JsonProperty("name") String name, - @JsonProperty("lastSeen") Optional lastSeen, - @JsonProperty("sourceSegments") Optional sourceSegments, - @JsonProperty("transcodedSegments") Optional transcodedSegments, - @JsonProperty("sourceSegmentsDuration") Optional sourceSegmentsDuration, - @JsonProperty("transcodedSegmentsDuration") Optional transcodedSegmentsDuration, - @JsonProperty("sourceBytes") Optional sourceBytes, - @JsonProperty("transcodedBytes") Optional transcodedBytes, - @JsonProperty("ingestRate") Optional ingestRate, - @JsonProperty("outgoingRate") Optional outgoingRate, - @JsonProperty("isHealthy") JsonNullable isHealthy, - @JsonProperty("issues") JsonNullable> issues, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("parentId") Optional parentId, - @JsonProperty("projectId") Optional projectId, - @JsonProperty("record") Optional record, + @JsonProperty("lastSeen") Optional lastSeen, + @JsonProperty("sourceSegments") Optional sourceSegments, + @JsonProperty("transcodedSegments") Optional transcodedSegments, + @JsonProperty("sourceSegmentsDuration") Optional sourceSegmentsDuration, + @JsonProperty("transcodedSegmentsDuration") Optional transcodedSegmentsDuration, + @JsonProperty("sourceBytes") Optional sourceBytes, + @JsonProperty("transcodedBytes") Optional transcodedBytes, + @JsonProperty("ingestRate") Optional ingestRate, + @JsonProperty("outgoingRate") Optional outgoingRate, + @JsonProperty("isHealthy") JsonNullable isHealthy, + @JsonProperty("issues") JsonNullable> issues, + @JsonProperty("createdAt") Optional createdAt, + @JsonProperty("parentId") Optional parentId, + @JsonProperty("projectId") Optional projectId, + @JsonProperty("record") Optional record, @JsonProperty("recordingStatus") Optional recordingStatus, - @JsonProperty("recordingUrl") Optional recordingUrl, - @JsonProperty("mp4Url") Optional mp4Url, - @JsonProperty("playbackId") Optional playbackId, - @JsonProperty("profiles") Optional> profiles, + @JsonProperty("recordingUrl") Optional recordingUrl, + @JsonProperty("mp4Url") Optional mp4Url, + @JsonProperty("playbackId") Optional playbackId, + @JsonProperty("profiles") Optional> profiles, @JsonProperty("recordingSpec") Optional recordingSpec) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(kind, "kind"); @@ -260,30 +270,27 @@ public Session( this(Optional.empty(), Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - @SuppressWarnings("unchecked") @JsonIgnore public Optional kind() { - return (Optional) kind; + return kind; } /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - @SuppressWarnings("unchecked") @JsonIgnore public Optional userId() { - return (Optional) userId; + return userId; } @JsonIgnore @@ -291,79 +298,69 @@ public String name() { return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastSeen() { - return (Optional) lastSeen; + return lastSeen; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceSegments() { - return (Optional) sourceSegments; + return sourceSegments; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcodedSegments() { - return (Optional) transcodedSegments; + return transcodedSegments; } /** * Duration of all the source segments, sec */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceSegmentsDuration() { - return (Optional) sourceSegmentsDuration; + return sourceSegmentsDuration; } /** * Duration of all the transcoded segments, sec */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcodedSegmentsDuration() { - return (Optional) transcodedSegmentsDuration; + return transcodedSegmentsDuration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceBytes() { - return (Optional) sourceBytes; + return sourceBytes; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcodedBytes() { - return (Optional) transcodedBytes; + return transcodedBytes; } /** * Rate at which sourceBytes increases (bytes/second) */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional ingestRate() { - return (Optional) ingestRate; + return ingestRate; } /** * Rate at which transcodedBytes increases (bytes/second) */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional outgoingRate() { - return (Optional) outgoingRate; + return outgoingRate; } /** * Indicates whether the stream is healthy or not. */ - @SuppressWarnings("unchecked") @JsonIgnore public JsonNullable isHealthy() { - return (JsonNullable) isHealthy; + return isHealthy; } /** @@ -371,45 +368,41 @@ public JsonNullable isHealthy() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable> issues() { - return (JsonNullable>) issues; + public JsonNullable> issues() { + return (JsonNullable>) issues; } /** * Timestamp (in milliseconds) at which stream object was created */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } /** * Points to parent stream object */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentId() { - return (Optional) parentId; + return parentId; } /** * The ID of the project */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional projectId() { - return (Optional) projectId; + return projectId; } /** * Whether the stream should be recorded. Uses default settings. For more customization, create and configure an object store. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional record() { - return (Optional) record; + return record; } /** @@ -424,34 +417,37 @@ public Optional recordingStatus() { /** * URL for accessing the recording of this stream session. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional recordingUrl() { - return (Optional) recordingUrl; + return recordingUrl; } /** * The URL for the stream session recording packaged in an MP4. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional mp4Url() { - return (Optional) mp4Url; + return mp4Url; } /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playbackId() { - return (Optional) playbackId; + return playbackId; } + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> profiles() { - return (Optional>) profiles; + public Optional> profiles() { + return (Optional>) profiles; } /** @@ -475,7 +471,7 @@ public Session withId(String id) { return this; } - public Session withId(Optional id) { + public Session withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -495,7 +491,7 @@ public Session withKind(String kind) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Session withKind(Optional kind) { + public Session withKind(Optional kind) { Utils.checkNotNull(kind, "kind"); this.kind = kind; return this; @@ -515,7 +511,7 @@ public Session withUserId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Session withUserId(Optional userId) { + public Session withUserId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -533,7 +529,7 @@ public Session withLastSeen(double lastSeen) { return this; } - public Session withLastSeen(Optional lastSeen) { + public Session withLastSeen(Optional lastSeen) { Utils.checkNotNull(lastSeen, "lastSeen"); this.lastSeen = lastSeen; return this; @@ -545,7 +541,7 @@ public Session withSourceSegments(double sourceSegments) { return this; } - public Session withSourceSegments(Optional sourceSegments) { + public Session withSourceSegments(Optional sourceSegments) { Utils.checkNotNull(sourceSegments, "sourceSegments"); this.sourceSegments = sourceSegments; return this; @@ -557,7 +553,7 @@ public Session withTranscodedSegments(double transcodedSegments) { return this; } - public Session withTranscodedSegments(Optional transcodedSegments) { + public Session withTranscodedSegments(Optional transcodedSegments) { Utils.checkNotNull(transcodedSegments, "transcodedSegments"); this.transcodedSegments = transcodedSegments; return this; @@ -575,7 +571,7 @@ public Session withSourceSegmentsDuration(double sourceSegmentsDuration) { /** * Duration of all the source segments, sec */ - public Session withSourceSegmentsDuration(Optional sourceSegmentsDuration) { + public Session withSourceSegmentsDuration(Optional sourceSegmentsDuration) { Utils.checkNotNull(sourceSegmentsDuration, "sourceSegmentsDuration"); this.sourceSegmentsDuration = sourceSegmentsDuration; return this; @@ -593,7 +589,7 @@ public Session withTranscodedSegmentsDuration(double transcodedSegmentsDuration) /** * Duration of all the transcoded segments, sec */ - public Session withTranscodedSegmentsDuration(Optional transcodedSegmentsDuration) { + public Session withTranscodedSegmentsDuration(Optional transcodedSegmentsDuration) { Utils.checkNotNull(transcodedSegmentsDuration, "transcodedSegmentsDuration"); this.transcodedSegmentsDuration = transcodedSegmentsDuration; return this; @@ -605,7 +601,7 @@ public Session withSourceBytes(double sourceBytes) { return this; } - public Session withSourceBytes(Optional sourceBytes) { + public Session withSourceBytes(Optional sourceBytes) { Utils.checkNotNull(sourceBytes, "sourceBytes"); this.sourceBytes = sourceBytes; return this; @@ -617,7 +613,7 @@ public Session withTranscodedBytes(double transcodedBytes) { return this; } - public Session withTranscodedBytes(Optional transcodedBytes) { + public Session withTranscodedBytes(Optional transcodedBytes) { Utils.checkNotNull(transcodedBytes, "transcodedBytes"); this.transcodedBytes = transcodedBytes; return this; @@ -635,7 +631,7 @@ public Session withIngestRate(double ingestRate) { /** * Rate at which sourceBytes increases (bytes/second) */ - public Session withIngestRate(Optional ingestRate) { + public Session withIngestRate(Optional ingestRate) { Utils.checkNotNull(ingestRate, "ingestRate"); this.ingestRate = ingestRate; return this; @@ -653,7 +649,7 @@ public Session withOutgoingRate(double outgoingRate) { /** * Rate at which transcodedBytes increases (bytes/second) */ - public Session withOutgoingRate(Optional outgoingRate) { + public Session withOutgoingRate(Optional outgoingRate) { Utils.checkNotNull(outgoingRate, "outgoingRate"); this.outgoingRate = outgoingRate; return this; @@ -671,7 +667,7 @@ public Session withIsHealthy(boolean isHealthy) { /** * Indicates whether the stream is healthy or not. */ - public Session withIsHealthy(JsonNullable isHealthy) { + public Session withIsHealthy(JsonNullable isHealthy) { Utils.checkNotNull(isHealthy, "isHealthy"); this.isHealthy = isHealthy; return this; @@ -680,7 +676,7 @@ public Session withIsHealthy(JsonNullable isHealthy) { /** * A string array of human-readable errors describing issues affecting the stream, if any. */ - public Session withIssues(java.util.List issues) { + public Session withIssues(List issues) { Utils.checkNotNull(issues, "issues"); this.issues = JsonNullable.of(issues); return this; @@ -689,7 +685,7 @@ public Session withIssues(java.util.List issues) { /** * A string array of human-readable errors describing issues affecting the stream, if any. */ - public Session withIssues(JsonNullable> issues) { + public Session withIssues(JsonNullable> issues) { Utils.checkNotNull(issues, "issues"); this.issues = issues; return this; @@ -707,7 +703,7 @@ public Session withCreatedAt(double createdAt) { /** * Timestamp (in milliseconds) at which stream object was created */ - public Session withCreatedAt(Optional createdAt) { + public Session withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -725,7 +721,7 @@ public Session withParentId(String parentId) { /** * Points to parent stream object */ - public Session withParentId(Optional parentId) { + public Session withParentId(Optional parentId) { Utils.checkNotNull(parentId, "parentId"); this.parentId = parentId; return this; @@ -743,7 +739,7 @@ public Session withProjectId(String projectId) { /** * The ID of the project */ - public Session withProjectId(Optional projectId) { + public Session withProjectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; @@ -763,7 +759,7 @@ public Session withRecord(boolean record) { * Whether the stream should be recorded. Uses default settings. For more customization, create and configure an object store. * */ - public Session withRecord(Optional record) { + public Session withRecord(Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; @@ -799,7 +795,7 @@ public Session withRecordingUrl(String recordingUrl) { /** * URL for accessing the recording of this stream session. */ - public Session withRecordingUrl(Optional recordingUrl) { + public Session withRecordingUrl(Optional recordingUrl) { Utils.checkNotNull(recordingUrl, "recordingUrl"); this.recordingUrl = recordingUrl; return this; @@ -817,7 +813,7 @@ public Session withMp4Url(String mp4Url) { /** * The URL for the stream session recording packaged in an MP4. */ - public Session withMp4Url(Optional mp4Url) { + public Session withMp4Url(Optional mp4Url) { Utils.checkNotNull(mp4Url, "mp4Url"); this.mp4Url = mp4Url; return this; @@ -835,19 +831,31 @@ public Session withPlaybackId(String playbackId) { /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ - public Session withPlaybackId(Optional playbackId) { + public Session withPlaybackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; } - public Session withProfiles(java.util.List profiles) { + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ + public Session withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public Session withProfiles(Optional> profiles) { + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ + public Session withProfiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -885,36 +893,36 @@ public boolean equals(java.lang.Object o) { } Session other = (Session) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.kind, other.kind) && - java.util.Objects.deepEquals(this.userId, other.userId) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.lastSeen, other.lastSeen) && - java.util.Objects.deepEquals(this.sourceSegments, other.sourceSegments) && - java.util.Objects.deepEquals(this.transcodedSegments, other.transcodedSegments) && - java.util.Objects.deepEquals(this.sourceSegmentsDuration, other.sourceSegmentsDuration) && - java.util.Objects.deepEquals(this.transcodedSegmentsDuration, other.transcodedSegmentsDuration) && - java.util.Objects.deepEquals(this.sourceBytes, other.sourceBytes) && - java.util.Objects.deepEquals(this.transcodedBytes, other.transcodedBytes) && - java.util.Objects.deepEquals(this.ingestRate, other.ingestRate) && - java.util.Objects.deepEquals(this.outgoingRate, other.outgoingRate) && - java.util.Objects.deepEquals(this.isHealthy, other.isHealthy) && - java.util.Objects.deepEquals(this.issues, other.issues) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.parentId, other.parentId) && - java.util.Objects.deepEquals(this.projectId, other.projectId) && - java.util.Objects.deepEquals(this.record, other.record) && - java.util.Objects.deepEquals(this.recordingStatus, other.recordingStatus) && - java.util.Objects.deepEquals(this.recordingUrl, other.recordingUrl) && - java.util.Objects.deepEquals(this.mp4Url, other.mp4Url) && - java.util.Objects.deepEquals(this.playbackId, other.playbackId) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.recordingSpec, other.recordingSpec); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.kind, other.kind) && + Objects.deepEquals(this.userId, other.userId) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.lastSeen, other.lastSeen) && + Objects.deepEquals(this.sourceSegments, other.sourceSegments) && + Objects.deepEquals(this.transcodedSegments, other.transcodedSegments) && + Objects.deepEquals(this.sourceSegmentsDuration, other.sourceSegmentsDuration) && + Objects.deepEquals(this.transcodedSegmentsDuration, other.transcodedSegmentsDuration) && + Objects.deepEquals(this.sourceBytes, other.sourceBytes) && + Objects.deepEquals(this.transcodedBytes, other.transcodedBytes) && + Objects.deepEquals(this.ingestRate, other.ingestRate) && + Objects.deepEquals(this.outgoingRate, other.outgoingRate) && + Objects.deepEquals(this.isHealthy, other.isHealthy) && + Objects.deepEquals(this.issues, other.issues) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.parentId, other.parentId) && + Objects.deepEquals(this.projectId, other.projectId) && + Objects.deepEquals(this.record, other.record) && + Objects.deepEquals(this.recordingStatus, other.recordingStatus) && + Objects.deepEquals(this.recordingUrl, other.recordingUrl) && + Objects.deepEquals(this.mp4Url, other.mp4Url) && + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.recordingSpec, other.recordingSpec); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, kind, userId, @@ -974,55 +982,55 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); @Deprecated - private Optional kind = Optional.empty(); + private Optional kind = Optional.empty(); @Deprecated - private Optional userId = Optional.empty(); + private Optional userId = Optional.empty(); private String name; - private Optional lastSeen = Optional.empty(); + private Optional lastSeen = Optional.empty(); - private Optional sourceSegments = Optional.empty(); + private Optional sourceSegments = Optional.empty(); - private Optional transcodedSegments = Optional.empty(); + private Optional transcodedSegments = Optional.empty(); - private Optional sourceSegmentsDuration = Optional.empty(); + private Optional sourceSegmentsDuration = Optional.empty(); - private Optional transcodedSegmentsDuration = Optional.empty(); + private Optional transcodedSegmentsDuration = Optional.empty(); - private Optional sourceBytes = Optional.empty(); + private Optional sourceBytes = Optional.empty(); - private Optional transcodedBytes = Optional.empty(); + private Optional transcodedBytes = Optional.empty(); - private Optional ingestRate = Optional.empty(); + private Optional ingestRate = Optional.empty(); - private Optional outgoingRate = Optional.empty(); + private Optional outgoingRate = Optional.empty(); - private JsonNullable isHealthy = JsonNullable.undefined(); + private JsonNullable isHealthy = JsonNullable.undefined(); - private JsonNullable> issues = JsonNullable.undefined(); + private JsonNullable> issues = JsonNullable.undefined(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); - private Optional parentId = Optional.empty(); + private Optional parentId = Optional.empty(); - private Optional projectId = Optional.empty(); + private Optional projectId = Optional.empty(); - private Optional record = Optional.empty(); + private Optional record = Optional.empty(); private Optional recordingStatus = Optional.empty(); - private Optional recordingUrl = Optional.empty(); + private Optional recordingUrl = Optional.empty(); - private Optional mp4Url = Optional.empty(); + private Optional mp4Url = Optional.empty(); - private Optional playbackId = Optional.empty(); + private Optional playbackId = Optional.empty(); - private Optional> profiles = Optional.empty(); + private Optional> profiles = Optional.empty(); private Optional recordingSpec = Optional.empty(); @@ -1036,7 +1044,7 @@ public Builder id(String id) { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -1056,7 +1064,7 @@ public Builder kind(String kind) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Builder kind(Optional kind) { + public Builder kind(Optional kind) { Utils.checkNotNull(kind, "kind"); this.kind = kind; return this; @@ -1076,7 +1084,7 @@ public Builder userId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Builder userId(Optional userId) { + public Builder userId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -1094,7 +1102,7 @@ public Builder lastSeen(double lastSeen) { return this; } - public Builder lastSeen(Optional lastSeen) { + public Builder lastSeen(Optional lastSeen) { Utils.checkNotNull(lastSeen, "lastSeen"); this.lastSeen = lastSeen; return this; @@ -1106,7 +1114,7 @@ public Builder sourceSegments(double sourceSegments) { return this; } - public Builder sourceSegments(Optional sourceSegments) { + public Builder sourceSegments(Optional sourceSegments) { Utils.checkNotNull(sourceSegments, "sourceSegments"); this.sourceSegments = sourceSegments; return this; @@ -1118,7 +1126,7 @@ public Builder transcodedSegments(double transcodedSegments) { return this; } - public Builder transcodedSegments(Optional transcodedSegments) { + public Builder transcodedSegments(Optional transcodedSegments) { Utils.checkNotNull(transcodedSegments, "transcodedSegments"); this.transcodedSegments = transcodedSegments; return this; @@ -1136,7 +1144,7 @@ public Builder sourceSegmentsDuration(double sourceSegmentsDuration) { /** * Duration of all the source segments, sec */ - public Builder sourceSegmentsDuration(Optional sourceSegmentsDuration) { + public Builder sourceSegmentsDuration(Optional sourceSegmentsDuration) { Utils.checkNotNull(sourceSegmentsDuration, "sourceSegmentsDuration"); this.sourceSegmentsDuration = sourceSegmentsDuration; return this; @@ -1154,7 +1162,7 @@ public Builder transcodedSegmentsDuration(double transcodedSegmentsDuration) { /** * Duration of all the transcoded segments, sec */ - public Builder transcodedSegmentsDuration(Optional transcodedSegmentsDuration) { + public Builder transcodedSegmentsDuration(Optional transcodedSegmentsDuration) { Utils.checkNotNull(transcodedSegmentsDuration, "transcodedSegmentsDuration"); this.transcodedSegmentsDuration = transcodedSegmentsDuration; return this; @@ -1166,7 +1174,7 @@ public Builder sourceBytes(double sourceBytes) { return this; } - public Builder sourceBytes(Optional sourceBytes) { + public Builder sourceBytes(Optional sourceBytes) { Utils.checkNotNull(sourceBytes, "sourceBytes"); this.sourceBytes = sourceBytes; return this; @@ -1178,7 +1186,7 @@ public Builder transcodedBytes(double transcodedBytes) { return this; } - public Builder transcodedBytes(Optional transcodedBytes) { + public Builder transcodedBytes(Optional transcodedBytes) { Utils.checkNotNull(transcodedBytes, "transcodedBytes"); this.transcodedBytes = transcodedBytes; return this; @@ -1196,7 +1204,7 @@ public Builder ingestRate(double ingestRate) { /** * Rate at which sourceBytes increases (bytes/second) */ - public Builder ingestRate(Optional ingestRate) { + public Builder ingestRate(Optional ingestRate) { Utils.checkNotNull(ingestRate, "ingestRate"); this.ingestRate = ingestRate; return this; @@ -1214,7 +1222,7 @@ public Builder outgoingRate(double outgoingRate) { /** * Rate at which transcodedBytes increases (bytes/second) */ - public Builder outgoingRate(Optional outgoingRate) { + public Builder outgoingRate(Optional outgoingRate) { Utils.checkNotNull(outgoingRate, "outgoingRate"); this.outgoingRate = outgoingRate; return this; @@ -1232,7 +1240,7 @@ public Builder isHealthy(boolean isHealthy) { /** * Indicates whether the stream is healthy or not. */ - public Builder isHealthy(JsonNullable isHealthy) { + public Builder isHealthy(JsonNullable isHealthy) { Utils.checkNotNull(isHealthy, "isHealthy"); this.isHealthy = isHealthy; return this; @@ -1241,7 +1249,7 @@ public Builder isHealthy(JsonNullable isHealthy) { /** * A string array of human-readable errors describing issues affecting the stream, if any. */ - public Builder issues(java.util.List issues) { + public Builder issues(List issues) { Utils.checkNotNull(issues, "issues"); this.issues = JsonNullable.of(issues); return this; @@ -1250,7 +1258,7 @@ public Builder issues(java.util.List issues) { /** * A string array of human-readable errors describing issues affecting the stream, if any. */ - public Builder issues(JsonNullable> issues) { + public Builder issues(JsonNullable> issues) { Utils.checkNotNull(issues, "issues"); this.issues = issues; return this; @@ -1268,7 +1276,7 @@ public Builder createdAt(double createdAt) { /** * Timestamp (in milliseconds) at which stream object was created */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -1286,7 +1294,7 @@ public Builder parentId(String parentId) { /** * Points to parent stream object */ - public Builder parentId(Optional parentId) { + public Builder parentId(Optional parentId) { Utils.checkNotNull(parentId, "parentId"); this.parentId = parentId; return this; @@ -1304,7 +1312,7 @@ public Builder projectId(String projectId) { /** * The ID of the project */ - public Builder projectId(Optional projectId) { + public Builder projectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; @@ -1324,7 +1332,7 @@ public Builder record(boolean record) { * Whether the stream should be recorded. Uses default settings. For more customization, create and configure an object store. * */ - public Builder record(Optional record) { + public Builder record(Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; @@ -1360,7 +1368,7 @@ public Builder recordingUrl(String recordingUrl) { /** * URL for accessing the recording of this stream session. */ - public Builder recordingUrl(Optional recordingUrl) { + public Builder recordingUrl(Optional recordingUrl) { Utils.checkNotNull(recordingUrl, "recordingUrl"); this.recordingUrl = recordingUrl; return this; @@ -1378,7 +1386,7 @@ public Builder mp4Url(String mp4Url) { /** * The URL for the stream session recording packaged in an MP4. */ - public Builder mp4Url(Optional mp4Url) { + public Builder mp4Url(Optional mp4Url) { Utils.checkNotNull(mp4Url, "mp4Url"); this.mp4Url = mp4Url; return this; @@ -1396,19 +1404,31 @@ public Builder playbackId(String playbackId) { /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ - public Builder playbackId(Optional playbackId) { + public Builder playbackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; } - public Builder profiles(java.util.List profiles) { + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public Builder profiles(Optional> profiles) { + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ + public Builder profiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/SignatureType.java b/src/main/java/studio/livepeer/livepeer/models/components/SignatureType.java index f9ba9a4..e8779f7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/SignatureType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/SignatureType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum SignatureType { EIP712("eip712"), diff --git a/src/main/java/studio/livepeer/livepeer/models/components/SigningKey.java b/src/main/java/studio/livepeer/livepeer/models/components/SigningKey.java index 8e5524c..002e047 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/SigningKey.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/SigningKey.java @@ -1,35 +1,37 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import java.lang.Boolean; import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class SigningKey { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; /** * Name of the signing key */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. @@ -37,21 +39,21 @@ public class SigningKey { @JsonInclude(Include.NON_ABSENT) @JsonProperty("userId") @Deprecated - private Optional userId; + private Optional userId; /** * Timestamp (in milliseconds) at which the signing-key was created */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; /** * Timestamp (in milliseconds) at which the signing-key was last used */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastSeen") - private Optional lastSeen; + private Optional lastSeen; @JsonProperty("publicKey") private String publicKey; @@ -61,25 +63,25 @@ public class SigningKey { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disabled") - private Optional disabled; + private Optional disabled; /** * The ID of the project */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("projectId") - private Optional projectId; + private Optional projectId; @JsonCreator public SigningKey( - @JsonProperty("id") Optional id, - @JsonProperty("name") Optional name, - @JsonProperty("userId") Optional userId, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("lastSeen") Optional lastSeen, + @JsonProperty("id") Optional id, + @JsonProperty("name") Optional name, + @JsonProperty("userId") Optional userId, + @JsonProperty("createdAt") Optional createdAt, + @JsonProperty("lastSeen") Optional lastSeen, @JsonProperty("publicKey") String publicKey, - @JsonProperty("disabled") Optional disabled, - @JsonProperty("projectId") Optional projectId) { + @JsonProperty("disabled") Optional disabled, + @JsonProperty("projectId") Optional projectId) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(userId, "userId"); @@ -103,47 +105,42 @@ public SigningKey( this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), publicKey, Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } /** * Name of the signing key */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - @SuppressWarnings("unchecked") @JsonIgnore public Optional userId() { - return (Optional) userId; + return userId; } /** * Timestamp (in milliseconds) at which the signing-key was created */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } /** * Timestamp (in milliseconds) at which the signing-key was last used */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastSeen() { - return (Optional) lastSeen; + return lastSeen; } @JsonIgnore @@ -154,19 +151,17 @@ public String publicKey() { /** * Disable the signing key to allow rotation safely */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional disabled() { - return (Optional) disabled; + return disabled; } /** * The ID of the project */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional projectId() { - return (Optional) projectId; + return projectId; } public final static Builder builder() { @@ -179,7 +174,7 @@ public SigningKey withId(String id) { return this; } - public SigningKey withId(Optional id) { + public SigningKey withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -197,7 +192,7 @@ public SigningKey withName(String name) { /** * Name of the signing key */ - public SigningKey withName(Optional name) { + public SigningKey withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -217,7 +212,7 @@ public SigningKey withUserId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public SigningKey withUserId(Optional userId) { + public SigningKey withUserId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -235,7 +230,7 @@ public SigningKey withCreatedAt(double createdAt) { /** * Timestamp (in milliseconds) at which the signing-key was created */ - public SigningKey withCreatedAt(Optional createdAt) { + public SigningKey withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -253,7 +248,7 @@ public SigningKey withLastSeen(double lastSeen) { /** * Timestamp (in milliseconds) at which the signing-key was last used */ - public SigningKey withLastSeen(Optional lastSeen) { + public SigningKey withLastSeen(Optional lastSeen) { Utils.checkNotNull(lastSeen, "lastSeen"); this.lastSeen = lastSeen; return this; @@ -277,7 +272,7 @@ public SigningKey withDisabled(boolean disabled) { /** * Disable the signing key to allow rotation safely */ - public SigningKey withDisabled(Optional disabled) { + public SigningKey withDisabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; @@ -295,7 +290,7 @@ public SigningKey withProjectId(String projectId) { /** * The ID of the project */ - public SigningKey withProjectId(Optional projectId) { + public SigningKey withProjectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; @@ -311,19 +306,19 @@ public boolean equals(java.lang.Object o) { } SigningKey other = (SigningKey) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.userId, other.userId) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.lastSeen, other.lastSeen) && - java.util.Objects.deepEquals(this.publicKey, other.publicKey) && - java.util.Objects.deepEquals(this.disabled, other.disabled) && - java.util.Objects.deepEquals(this.projectId, other.projectId); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.userId, other.userId) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.lastSeen, other.lastSeen) && + Objects.deepEquals(this.publicKey, other.publicKey) && + Objects.deepEquals(this.disabled, other.disabled) && + Objects.deepEquals(this.projectId, other.projectId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, name, userId, @@ -349,22 +344,22 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); @Deprecated - private Optional userId = Optional.empty(); + private Optional userId = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); - private Optional lastSeen = Optional.empty(); + private Optional lastSeen = Optional.empty(); private String publicKey; - private Optional disabled = Optional.empty(); + private Optional disabled = Optional.empty(); - private Optional projectId = Optional.empty(); + private Optional projectId = Optional.empty(); private Builder() { // force use of static builder() method @@ -376,7 +371,7 @@ public Builder id(String id) { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -394,7 +389,7 @@ public Builder name(String name) { /** * Name of the signing key */ - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -414,7 +409,7 @@ public Builder userId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Builder userId(Optional userId) { + public Builder userId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -432,7 +427,7 @@ public Builder createdAt(double createdAt) { /** * Timestamp (in milliseconds) at which the signing-key was created */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -450,7 +445,7 @@ public Builder lastSeen(double lastSeen) { /** * Timestamp (in milliseconds) at which the signing-key was last used */ - public Builder lastSeen(Optional lastSeen) { + public Builder lastSeen(Optional lastSeen) { Utils.checkNotNull(lastSeen, "lastSeen"); this.lastSeen = lastSeen; return this; @@ -474,7 +469,7 @@ public Builder disabled(boolean disabled) { /** * Disable the signing key to allow rotation safely */ - public Builder disabled(Optional disabled) { + public Builder disabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; @@ -492,7 +487,7 @@ public Builder projectId(String projectId) { /** * The ID of the project */ - public Builder projectId(Optional projectId) { + public Builder projectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Source.java b/src/main/java/studio/livepeer/livepeer/models/components/Source.java index 8307a18..1faf4ea 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Source.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Source.java @@ -1,31 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; @JsonDeserialize(using = Source._Deserializer.class) public class Source { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private Source(TypedObject value) { @@ -50,9 +47,9 @@ public static Source of(Source3 value) { /** * Returns an instance of one of these types: *

    - *
  • {@code Source1}
  • - *
  • {@code Two}
  • - *
  • {@code Source3}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Source1}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Two}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Source3}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -79,22 +76,22 @@ public boolean equals(java.lang.Object o) { return false; } Source other = (Source) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Source.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Source1.java b/src/main/java/studio/livepeer/livepeer/models/components/Source1.java index 607d1ac..c03e873 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Source1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Source1.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Source1 { @JsonProperty("type") @@ -34,7 +34,7 @@ public class Source1 { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("gatewayUrl") - private Optional gatewayUrl; + private Optional gatewayUrl; @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption") @@ -44,7 +44,7 @@ public class Source1 { public Source1( @JsonProperty("type") SourceType type, @JsonProperty("url") String url, - @JsonProperty("gatewayUrl") Optional gatewayUrl, + @JsonProperty("gatewayUrl") Optional gatewayUrl, @JsonProperty("encryption") Optional encryption) { Utils.checkNotNull(type, "type"); Utils.checkNotNull(url, "url"); @@ -78,10 +78,9 @@ public String url() { /** * Gateway URL from asset if parsed from provided URL on upload. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional gatewayUrl() { - return (Optional) gatewayUrl; + return gatewayUrl; } @SuppressWarnings("unchecked") @@ -121,7 +120,7 @@ public Source1 withGatewayUrl(String gatewayUrl) { /** * Gateway URL from asset if parsed from provided URL on upload. */ - public Source1 withGatewayUrl(Optional gatewayUrl) { + public Source1 withGatewayUrl(Optional gatewayUrl) { Utils.checkNotNull(gatewayUrl, "gatewayUrl"); this.gatewayUrl = gatewayUrl; return this; @@ -149,15 +148,15 @@ public boolean equals(java.lang.Object o) { } Source1 other = (Source1) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.gatewayUrl, other.gatewayUrl) && - java.util.Objects.deepEquals(this.encryption, other.encryption); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.gatewayUrl, other.gatewayUrl) && + Objects.deepEquals(this.encryption, other.encryption); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, url, gatewayUrl, @@ -179,7 +178,7 @@ public final static class Builder { private String url; - private Optional gatewayUrl = Optional.empty(); + private Optional gatewayUrl = Optional.empty(); private Optional encryption = Optional.empty(); @@ -214,7 +213,7 @@ public Builder gatewayUrl(String gatewayUrl) { /** * Gateway URL from asset if parsed from provided URL on upload. */ - public Builder gatewayUrl(Optional gatewayUrl) { + public Builder gatewayUrl(Optional gatewayUrl) { Utils.checkNotNull(gatewayUrl, "gatewayUrl"); this.gatewayUrl = gatewayUrl; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Source3.java b/src/main/java/studio/livepeer/livepeer/models/components/Source3.java index e56bf9a..8cb3b68 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Source3.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Source3.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Source3 { @JsonProperty("type") @@ -32,45 +32,45 @@ public class Source3 { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceId") - private Optional sourceId; + private Optional sourceId; /** * ID of the session from which this asset was created. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sessionId") - private Optional sessionId; + private Optional sessionId; /** * Playback ID of the asset or stream from which this asset was created. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("playbackId") - private Optional playbackId; + private Optional playbackId; /** * ID of the requester from which this asset was created. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("requesterId") - private Optional requesterId; + private Optional requesterId; /** * ID of the asset from which this asset was created. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("assetId") - private Optional assetId; + private Optional assetId; @JsonCreator public Source3( @JsonProperty("type") AssetSource3Type type, @JsonProperty("encryption") Optional encryption, - @JsonProperty("sourceId") Optional sourceId, - @JsonProperty("sessionId") Optional sessionId, - @JsonProperty("playbackId") Optional playbackId, - @JsonProperty("requesterId") Optional requesterId, - @JsonProperty("assetId") Optional assetId) { + @JsonProperty("sourceId") Optional sourceId, + @JsonProperty("sessionId") Optional sessionId, + @JsonProperty("playbackId") Optional playbackId, + @JsonProperty("requesterId") Optional requesterId, + @JsonProperty("assetId") Optional assetId) { Utils.checkNotNull(type, "type"); Utils.checkNotNull(encryption, "encryption"); Utils.checkNotNull(sourceId, "sourceId"); @@ -106,46 +106,41 @@ public Optional encryption() { /** * ID of the asset or stream from which this asset was created. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceId() { - return (Optional) sourceId; + return sourceId; } /** * ID of the session from which this asset was created. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sessionId() { - return (Optional) sessionId; + return sessionId; } /** * Playback ID of the asset or stream from which this asset was created. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playbackId() { - return (Optional) playbackId; + return playbackId; } /** * ID of the requester from which this asset was created. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional requesterId() { - return (Optional) requesterId; + return requesterId; } /** * ID of the asset from which this asset was created. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional assetId() { - return (Optional) assetId; + return assetId; } public final static Builder builder() { @@ -182,7 +177,7 @@ public Source3 withSourceId(String sourceId) { /** * ID of the asset or stream from which this asset was created. */ - public Source3 withSourceId(Optional sourceId) { + public Source3 withSourceId(Optional sourceId) { Utils.checkNotNull(sourceId, "sourceId"); this.sourceId = sourceId; return this; @@ -200,7 +195,7 @@ public Source3 withSessionId(String sessionId) { /** * ID of the session from which this asset was created. */ - public Source3 withSessionId(Optional sessionId) { + public Source3 withSessionId(Optional sessionId) { Utils.checkNotNull(sessionId, "sessionId"); this.sessionId = sessionId; return this; @@ -218,7 +213,7 @@ public Source3 withPlaybackId(String playbackId) { /** * Playback ID of the asset or stream from which this asset was created. */ - public Source3 withPlaybackId(Optional playbackId) { + public Source3 withPlaybackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -236,7 +231,7 @@ public Source3 withRequesterId(String requesterId) { /** * ID of the requester from which this asset was created. */ - public Source3 withRequesterId(Optional requesterId) { + public Source3 withRequesterId(Optional requesterId) { Utils.checkNotNull(requesterId, "requesterId"); this.requesterId = requesterId; return this; @@ -254,7 +249,7 @@ public Source3 withAssetId(String assetId) { /** * ID of the asset from which this asset was created. */ - public Source3 withAssetId(Optional assetId) { + public Source3 withAssetId(Optional assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; @@ -270,18 +265,18 @@ public boolean equals(java.lang.Object o) { } Source3 other = (Source3) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.encryption, other.encryption) && - java.util.Objects.deepEquals(this.sourceId, other.sourceId) && - java.util.Objects.deepEquals(this.sessionId, other.sessionId) && - java.util.Objects.deepEquals(this.playbackId, other.playbackId) && - java.util.Objects.deepEquals(this.requesterId, other.requesterId) && - java.util.Objects.deepEquals(this.assetId, other.assetId); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.encryption, other.encryption) && + Objects.deepEquals(this.sourceId, other.sourceId) && + Objects.deepEquals(this.sessionId, other.sessionId) && + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.requesterId, other.requesterId) && + Objects.deepEquals(this.assetId, other.assetId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, encryption, sourceId, @@ -309,15 +304,15 @@ public final static class Builder { private Optional encryption = Optional.empty(); - private Optional sourceId = Optional.empty(); + private Optional sourceId = Optional.empty(); - private Optional sessionId = Optional.empty(); + private Optional sessionId = Optional.empty(); - private Optional playbackId = Optional.empty(); + private Optional playbackId = Optional.empty(); - private Optional requesterId = Optional.empty(); + private Optional requesterId = Optional.empty(); - private Optional assetId = Optional.empty(); + private Optional assetId = Optional.empty(); private Builder() { // force use of static builder() method @@ -353,7 +348,7 @@ public Builder sourceId(String sourceId) { /** * ID of the asset or stream from which this asset was created. */ - public Builder sourceId(Optional sourceId) { + public Builder sourceId(Optional sourceId) { Utils.checkNotNull(sourceId, "sourceId"); this.sourceId = sourceId; return this; @@ -371,7 +366,7 @@ public Builder sessionId(String sessionId) { /** * ID of the session from which this asset was created. */ - public Builder sessionId(Optional sessionId) { + public Builder sessionId(Optional sessionId) { Utils.checkNotNull(sessionId, "sessionId"); this.sessionId = sessionId; return this; @@ -389,7 +384,7 @@ public Builder playbackId(String playbackId) { /** * Playback ID of the asset or stream from which this asset was created. */ - public Builder playbackId(Optional playbackId) { + public Builder playbackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -407,7 +402,7 @@ public Builder requesterId(String requesterId) { /** * ID of the requester from which this asset was created. */ - public Builder requesterId(Optional requesterId) { + public Builder requesterId(Optional requesterId) { Utils.checkNotNull(requesterId, "requesterId"); this.requesterId = requesterId; return this; @@ -425,7 +420,7 @@ public Builder assetId(String assetId) { /** * ID of the asset from which this asset was created. */ - public Builder assetId(Optional assetId) { + public Builder assetId(Optional assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/SourceType.java b/src/main/java/studio/livepeer/livepeer/models/components/SourceType.java index b15346e..951a103 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/SourceType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/SourceType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum SourceType { URL("url"); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Spec.java b/src/main/java/studio/livepeer/livepeer/models/components/Spec.java index 20e808f..ccfe255 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Spec.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Spec.java @@ -1,24 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; + public class Spec { /** @@ -141,13 +142,13 @@ public boolean equals(java.lang.Object o) { } Spec other = (Spec) o; return - java.util.Objects.deepEquals(this.nftMetadataTemplate, other.nftMetadataTemplate) && - java.util.Objects.deepEquals(this.nftMetadata, other.nftMetadata); + Objects.deepEquals(this.nftMetadataTemplate, other.nftMetadataTemplate) && + Objects.deepEquals(this.nftMetadata, other.nftMetadata); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( nftMetadataTemplate, nftMetadata); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Status.java b/src/main/java/studio/livepeer/livepeer/models/components/Status.java index 4dad5d7..ad57134 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Status.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Status.java @@ -1,22 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * Status - status of webhook */ @@ -37,12 +38,12 @@ public class Status { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastTriggeredAt") - private Optional lastTriggeredAt; + private Optional lastTriggeredAt; @JsonCreator public Status( @JsonProperty("lastFailure") Optional lastFailure, - @JsonProperty("lastTriggeredAt") Optional lastTriggeredAt) { + @JsonProperty("lastTriggeredAt") Optional lastTriggeredAt) { Utils.checkNotNull(lastFailure, "lastFailure"); Utils.checkNotNull(lastTriggeredAt, "lastTriggeredAt"); this.lastFailure = lastFailure; @@ -67,10 +68,9 @@ public Optional lastFailure() { * triggered * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastTriggeredAt() { - return (Optional) lastTriggeredAt; + return lastTriggeredAt; } public final static Builder builder() { @@ -111,7 +111,7 @@ public Status withLastTriggeredAt(double lastTriggeredAt) { * triggered * */ - public Status withLastTriggeredAt(Optional lastTriggeredAt) { + public Status withLastTriggeredAt(Optional lastTriggeredAt) { Utils.checkNotNull(lastTriggeredAt, "lastTriggeredAt"); this.lastTriggeredAt = lastTriggeredAt; return this; @@ -127,13 +127,13 @@ public boolean equals(java.lang.Object o) { } Status other = (Status) o; return - java.util.Objects.deepEquals(this.lastFailure, other.lastFailure) && - java.util.Objects.deepEquals(this.lastTriggeredAt, other.lastTriggeredAt); + Objects.deepEquals(this.lastFailure, other.lastFailure) && + Objects.deepEquals(this.lastTriggeredAt, other.lastTriggeredAt); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( lastFailure, lastTriggeredAt); } @@ -149,7 +149,7 @@ public final static class Builder { private Optional lastFailure = Optional.empty(); - private Optional lastTriggeredAt = Optional.empty(); + private Optional lastTriggeredAt = Optional.empty(); private Builder() { // force use of static builder() method @@ -189,7 +189,7 @@ public Builder lastTriggeredAt(double lastTriggeredAt) { * triggered * */ - public Builder lastTriggeredAt(Optional lastTriggeredAt) { + public Builder lastTriggeredAt(Optional lastTriggeredAt) { Utils.checkNotNull(lastTriggeredAt, "lastTriggeredAt"); this.lastTriggeredAt = lastTriggeredAt; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Storage.java b/src/main/java/studio/livepeer/livepeer/models/components/Storage.java index aefb891..5f51c6f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Storage.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Storage.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class Storage { /** @@ -91,12 +91,12 @@ public boolean equals(java.lang.Object o) { } Storage other = (Storage) o; return - java.util.Objects.deepEquals(this.ipfs, other.ipfs); + Objects.deepEquals(this.ipfs, other.ipfs); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( ipfs); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Storage1.java b/src/main/java/studio/livepeer/livepeer/models/components/Storage1.java index f136661..3299884 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Storage1.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Storage1.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Storage1 - Storage for the output files */ @@ -142,15 +141,15 @@ public boolean equals(java.lang.Object o) { } Storage1 other = (Storage1) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.endpoint, other.endpoint) && - java.util.Objects.deepEquals(this.bucket, other.bucket) && - java.util.Objects.deepEquals(this.credentials, other.credentials); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.endpoint, other.endpoint) && + Objects.deepEquals(this.bucket, other.bucket) && + Objects.deepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, endpoint, bucket, diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Storage2.java b/src/main/java/studio/livepeer/livepeer/models/components/Storage2.java index 8eec781..2a3c404 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Storage2.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Storage2.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * Storage2 - Storage for the output files */ @@ -96,13 +95,13 @@ public boolean equals(java.lang.Object o) { } Storage2 other = (Storage2) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.credentials, other.credentials); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, credentials); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StorageCredentials.java b/src/main/java/studio/livepeer/livepeer/models/components/StorageCredentials.java index cac49e7..122cb18 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StorageCredentials.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StorageCredentials.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * StorageCredentials - Credentials for the output video storage */ @@ -90,13 +89,13 @@ public boolean equals(java.lang.Object o) { } StorageCredentials other = (StorageCredentials) o; return - java.util.Objects.deepEquals(this.accessKeyId, other.accessKeyId) && - java.util.Objects.deepEquals(this.secretAccessKey, other.secretAccessKey); + Objects.deepEquals(this.accessKeyId, other.accessKeyId) && + Objects.deepEquals(this.secretAccessKey, other.secretAccessKey); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( accessKeyId, secretAccessKey); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StorageStatus.java b/src/main/java/studio/livepeer/livepeer/models/components/StorageStatus.java index 5459527..aee5bc9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StorageStatus.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StorageStatus.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class StorageStatus { /** @@ -31,14 +31,14 @@ public class StorageStatus { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("progress") - private Optional progress; + private Optional progress; /** * Error message if the last storage changed failed. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("errorMessage") - private Optional errorMessage; + private Optional errorMessage; @JsonProperty("tasks") private Tasks tasks; @@ -46,8 +46,8 @@ public class StorageStatus { @JsonCreator public StorageStatus( @JsonProperty("phase") Phase phase, - @JsonProperty("progress") Optional progress, - @JsonProperty("errorMessage") Optional errorMessage, + @JsonProperty("progress") Optional progress, + @JsonProperty("errorMessage") Optional errorMessage, @JsonProperty("tasks") Tasks tasks) { Utils.checkNotNull(phase, "phase"); Utils.checkNotNull(progress, "progress"); @@ -76,19 +76,17 @@ public Phase phase() { /** * Current progress of the task updating the storage. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional progress() { - return (Optional) progress; + return progress; } /** * Error message if the last storage changed failed. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional errorMessage() { - return (Optional) errorMessage; + return errorMessage; } @JsonIgnore @@ -121,7 +119,7 @@ public StorageStatus withProgress(double progress) { /** * Current progress of the task updating the storage. */ - public StorageStatus withProgress(Optional progress) { + public StorageStatus withProgress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; @@ -139,7 +137,7 @@ public StorageStatus withErrorMessage(String errorMessage) { /** * Error message if the last storage changed failed. */ - public StorageStatus withErrorMessage(Optional errorMessage) { + public StorageStatus withErrorMessage(Optional errorMessage) { Utils.checkNotNull(errorMessage, "errorMessage"); this.errorMessage = errorMessage; return this; @@ -161,15 +159,15 @@ public boolean equals(java.lang.Object o) { } StorageStatus other = (StorageStatus) o; return - java.util.Objects.deepEquals(this.phase, other.phase) && - java.util.Objects.deepEquals(this.progress, other.progress) && - java.util.Objects.deepEquals(this.errorMessage, other.errorMessage) && - java.util.Objects.deepEquals(this.tasks, other.tasks); + Objects.deepEquals(this.phase, other.phase) && + Objects.deepEquals(this.progress, other.progress) && + Objects.deepEquals(this.errorMessage, other.errorMessage) && + Objects.deepEquals(this.tasks, other.tasks); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( phase, progress, errorMessage, @@ -189,9 +187,9 @@ public final static class Builder { private Phase phase; - private Optional progress = Optional.empty(); + private Optional progress = Optional.empty(); - private Optional errorMessage = Optional.empty(); + private Optional errorMessage = Optional.empty(); private Tasks tasks; @@ -220,7 +218,7 @@ public Builder progress(double progress) { /** * Current progress of the task updating the storage. */ - public Builder progress(Optional progress) { + public Builder progress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; @@ -238,7 +236,7 @@ public Builder errorMessage(String errorMessage) { /** * Error message if the last storage changed failed. */ - public Builder errorMessage(Optional errorMessage) { + public Builder errorMessage(Optional errorMessage) { Utils.checkNotNull(errorMessage, "errorMessage"); this.errorMessage = errorMessage; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StorageType.java b/src/main/java/studio/livepeer/livepeer/models/components/StorageType.java index 210a6b9..588c079 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StorageType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StorageType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * StorageType - Type of service used for output files diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Stream.java b/src/main/java/studio/livepeer/livepeer/models/components/Stream.java index 5e9d668..a237dda 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Stream.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Stream.java @@ -1,29 +1,34 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import java.lang.Boolean; import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class Stream { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonProperty("name") private String name; @@ -34,7 +39,7 @@ public class Stream { @JsonInclude(Include.NON_ABSENT) @JsonProperty("kind") @Deprecated - private Optional kind; + private Optional kind; @JsonInclude(Include.NON_ABSENT) @JsonProperty("creatorId") @@ -45,104 +50,104 @@ public class Stream { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("userTags") - private Optional> userTags; + private Optional> userTags; @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastSeen") - private Optional lastSeen; + private Optional lastSeen; @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceSegments") - private Optional sourceSegments; + private Optional sourceSegments; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcodedSegments") - private Optional transcodedSegments; + private Optional transcodedSegments; /** * Duration of all the source segments, sec */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceSegmentsDuration") - private Optional sourceSegmentsDuration; + private Optional sourceSegmentsDuration; /** * Duration of all the transcoded segments, sec */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcodedSegmentsDuration") - private Optional transcodedSegmentsDuration; + private Optional transcodedSegmentsDuration; @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceBytes") - private Optional sourceBytes; + private Optional sourceBytes; @JsonInclude(Include.NON_ABSENT) @JsonProperty("transcodedBytes") - private Optional transcodedBytes; + private Optional transcodedBytes; /** * Rate at which sourceBytes increases (bytes/second) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ingestRate") - private Optional ingestRate; + private Optional ingestRate; /** * Rate at which transcodedBytes increases (bytes/second) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("outgoingRate") - private Optional outgoingRate; + private Optional outgoingRate; /** * If currently active */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("isActive") - private Optional isActive; + private Optional isActive; /** * Indicates whether the stream is healthy or not. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("isHealthy") - private JsonNullable isHealthy; + private JsonNullable isHealthy; /** * A string array of human-readable errors describing issues affecting the stream, if any. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("issues") - private JsonNullable> issues; + private JsonNullable> issues; /** * Name of the token used to create this object */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdByTokenName") - private Optional createdByTokenName; + private Optional createdByTokenName; /** * Timestamp (in milliseconds) at which stream object was created */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; /** * Points to parent stream object */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentId") - private Optional parentId; + private Optional parentId; /** * Used to form RTMP ingest URL */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamKey") - private Optional streamKey; + private Optional streamKey; /** * Configuration for a stream that should be actively pulled from an @@ -158,7 +163,7 @@ public class Stream { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("playbackId") - private Optional playbackId; + private Optional playbackId; /** * Whether the playback policy for an asset or stream is public or signed @@ -167,16 +172,22 @@ public class Stream { @JsonProperty("playbackPolicy") private JsonNullable playbackPolicy; + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private Optional> profiles; + private Optional> profiles; /** * The ID of the project */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("projectId") - private Optional projectId; + private Optional projectId; /** * Should this stream be recorded? Uses default settings. For more @@ -185,7 +196,7 @@ public class Stream { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("record") - private Optional record; + private Optional record; /** * Configuration for recording the stream. This can only be set if @@ -205,14 +216,14 @@ public class Stream { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("suspended") - private Optional suspended; + private Optional suspended; /** * Timestamp (in milliseconds) when the stream was last terminated */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastTerminatedAt") - private JsonNullable lastTerminatedAt; + private JsonNullable lastTerminatedAt; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. @@ -220,7 +231,7 @@ public class Stream { @JsonInclude(Include.NON_ABSENT) @JsonProperty("userId") @Deprecated - private Optional userId; + private Optional userId; @JsonInclude(Include.NON_ABSENT) @JsonProperty("renditions") @@ -228,38 +239,38 @@ public class Stream { @JsonCreator public Stream( - @JsonProperty("id") Optional id, + @JsonProperty("id") Optional id, @JsonProperty("name") String name, - @JsonProperty("kind") Optional kind, + @JsonProperty("kind") Optional kind, @JsonProperty("creatorId") Optional creatorId, - @JsonProperty("userTags") Optional> userTags, - @JsonProperty("lastSeen") Optional lastSeen, - @JsonProperty("sourceSegments") Optional sourceSegments, - @JsonProperty("transcodedSegments") Optional transcodedSegments, - @JsonProperty("sourceSegmentsDuration") Optional sourceSegmentsDuration, - @JsonProperty("transcodedSegmentsDuration") Optional transcodedSegmentsDuration, - @JsonProperty("sourceBytes") Optional sourceBytes, - @JsonProperty("transcodedBytes") Optional transcodedBytes, - @JsonProperty("ingestRate") Optional ingestRate, - @JsonProperty("outgoingRate") Optional outgoingRate, - @JsonProperty("isActive") Optional isActive, - @JsonProperty("isHealthy") JsonNullable isHealthy, - @JsonProperty("issues") JsonNullable> issues, - @JsonProperty("createdByTokenName") Optional createdByTokenName, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("parentId") Optional parentId, - @JsonProperty("streamKey") Optional streamKey, + @JsonProperty("userTags") Optional> userTags, + @JsonProperty("lastSeen") Optional lastSeen, + @JsonProperty("sourceSegments") Optional sourceSegments, + @JsonProperty("transcodedSegments") Optional transcodedSegments, + @JsonProperty("sourceSegmentsDuration") Optional sourceSegmentsDuration, + @JsonProperty("transcodedSegmentsDuration") Optional transcodedSegmentsDuration, + @JsonProperty("sourceBytes") Optional sourceBytes, + @JsonProperty("transcodedBytes") Optional transcodedBytes, + @JsonProperty("ingestRate") Optional ingestRate, + @JsonProperty("outgoingRate") Optional outgoingRate, + @JsonProperty("isActive") Optional isActive, + @JsonProperty("isHealthy") JsonNullable isHealthy, + @JsonProperty("issues") JsonNullable> issues, + @JsonProperty("createdByTokenName") Optional createdByTokenName, + @JsonProperty("createdAt") Optional createdAt, + @JsonProperty("parentId") Optional parentId, + @JsonProperty("streamKey") Optional streamKey, @JsonProperty("pull") Optional pull, - @JsonProperty("playbackId") Optional playbackId, + @JsonProperty("playbackId") Optional playbackId, @JsonProperty("playbackPolicy") JsonNullable playbackPolicy, - @JsonProperty("profiles") Optional> profiles, - @JsonProperty("projectId") Optional projectId, - @JsonProperty("record") Optional record, + @JsonProperty("profiles") Optional> profiles, + @JsonProperty("projectId") Optional projectId, + @JsonProperty("record") Optional record, @JsonProperty("recordingSpec") Optional recordingSpec, @JsonProperty("multistream") Optional multistream, - @JsonProperty("suspended") Optional suspended, - @JsonProperty("lastTerminatedAt") JsonNullable lastTerminatedAt, - @JsonProperty("userId") Optional userId, + @JsonProperty("suspended") Optional suspended, + @JsonProperty("lastTerminatedAt") JsonNullable lastTerminatedAt, + @JsonProperty("userId") Optional userId, @JsonProperty("renditions") Optional renditions) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(name, "name"); @@ -334,10 +345,9 @@ public Stream( this(Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } @JsonIgnore @@ -349,10 +359,9 @@ public String name() { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - @SuppressWarnings("unchecked") @JsonIgnore public Optional kind() { - return (Optional) kind; + return kind; } @SuppressWarnings("unchecked") @@ -366,92 +375,81 @@ public Optional creatorId() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> userTags() { - return (Optional>) userTags; + public Optional> userTags() { + return (Optional>) userTags; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional lastSeen() { - return (Optional) lastSeen; + return lastSeen; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceSegments() { - return (Optional) sourceSegments; + return sourceSegments; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcodedSegments() { - return (Optional) transcodedSegments; + return transcodedSegments; } /** * Duration of all the source segments, sec */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceSegmentsDuration() { - return (Optional) sourceSegmentsDuration; + return sourceSegmentsDuration; } /** * Duration of all the transcoded segments, sec */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcodedSegmentsDuration() { - return (Optional) transcodedSegmentsDuration; + return transcodedSegmentsDuration; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional sourceBytes() { - return (Optional) sourceBytes; + return sourceBytes; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional transcodedBytes() { - return (Optional) transcodedBytes; + return transcodedBytes; } /** * Rate at which sourceBytes increases (bytes/second) */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional ingestRate() { - return (Optional) ingestRate; + return ingestRate; } /** * Rate at which transcodedBytes increases (bytes/second) */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional outgoingRate() { - return (Optional) outgoingRate; + return outgoingRate; } /** * If currently active */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional isActive() { - return (Optional) isActive; + return isActive; } /** * Indicates whether the stream is healthy or not. */ - @SuppressWarnings("unchecked") @JsonIgnore public JsonNullable isHealthy() { - return (JsonNullable) isHealthy; + return isHealthy; } /** @@ -459,44 +457,40 @@ public JsonNullable isHealthy() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable> issues() { - return (JsonNullable>) issues; + public JsonNullable> issues() { + return (JsonNullable>) issues; } /** * Name of the token used to create this object */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdByTokenName() { - return (Optional) createdByTokenName; + return createdByTokenName; } /** * Timestamp (in milliseconds) at which stream object was created */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } /** * Points to parent stream object */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional parentId() { - return (Optional) parentId; + return parentId; } /** * Used to form RTMP ingest URL */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamKey() { - return (Optional) streamKey; + return streamKey; } /** @@ -513,10 +507,9 @@ public Optional pull() { /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playbackId() { - return (Optional) playbackId; + return playbackId; } /** @@ -528,19 +521,24 @@ public JsonNullable playbackPolicy() { return (JsonNullable) playbackPolicy; } + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> profiles() { - return (Optional>) profiles; + public Optional> profiles() { + return (Optional>) profiles; } /** * The ID of the project */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional projectId() { - return (Optional) projectId; + return projectId; } /** @@ -548,10 +546,9 @@ public Optional projectId() { * customization, create and configure an object store. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional record() { - return (Optional) record; + return record; } /** @@ -574,29 +571,26 @@ public Optional multistream() { /** * If currently suspended */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional suspended() { - return (Optional) suspended; + return suspended; } /** * Timestamp (in milliseconds) when the stream was last terminated */ - @SuppressWarnings("unchecked") @JsonIgnore public JsonNullable lastTerminatedAt() { - return (JsonNullable) lastTerminatedAt; + return lastTerminatedAt; } /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - @SuppressWarnings("unchecked") @JsonIgnore public Optional userId() { - return (Optional) userId; + return userId; } @SuppressWarnings("unchecked") @@ -615,7 +609,7 @@ public Stream withId(String id) { return this; } - public Stream withId(Optional id) { + public Stream withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -641,7 +635,7 @@ public Stream withKind(String kind) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Stream withKind(Optional kind) { + public Stream withKind(Optional kind) { Utils.checkNotNull(kind, "kind"); this.kind = kind; return this; @@ -662,7 +656,7 @@ public Stream withCreatorId(Optional creatorId) { /** * User input tags associated with the stream */ - public Stream withUserTags(java.util.Map userTags) { + public Stream withUserTags(Map userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = Optional.ofNullable(userTags); return this; @@ -671,7 +665,7 @@ public Stream withUserTags(java.util.Map userTags) { /** * User input tags associated with the stream */ - public Stream withUserTags(Optional> userTags) { + public Stream withUserTags(Optional> userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = userTags; return this; @@ -683,7 +677,7 @@ public Stream withLastSeen(double lastSeen) { return this; } - public Stream withLastSeen(Optional lastSeen) { + public Stream withLastSeen(Optional lastSeen) { Utils.checkNotNull(lastSeen, "lastSeen"); this.lastSeen = lastSeen; return this; @@ -695,7 +689,7 @@ public Stream withSourceSegments(double sourceSegments) { return this; } - public Stream withSourceSegments(Optional sourceSegments) { + public Stream withSourceSegments(Optional sourceSegments) { Utils.checkNotNull(sourceSegments, "sourceSegments"); this.sourceSegments = sourceSegments; return this; @@ -707,7 +701,7 @@ public Stream withTranscodedSegments(double transcodedSegments) { return this; } - public Stream withTranscodedSegments(Optional transcodedSegments) { + public Stream withTranscodedSegments(Optional transcodedSegments) { Utils.checkNotNull(transcodedSegments, "transcodedSegments"); this.transcodedSegments = transcodedSegments; return this; @@ -725,7 +719,7 @@ public Stream withSourceSegmentsDuration(double sourceSegmentsDuration) { /** * Duration of all the source segments, sec */ - public Stream withSourceSegmentsDuration(Optional sourceSegmentsDuration) { + public Stream withSourceSegmentsDuration(Optional sourceSegmentsDuration) { Utils.checkNotNull(sourceSegmentsDuration, "sourceSegmentsDuration"); this.sourceSegmentsDuration = sourceSegmentsDuration; return this; @@ -743,7 +737,7 @@ public Stream withTranscodedSegmentsDuration(double transcodedSegmentsDuration) /** * Duration of all the transcoded segments, sec */ - public Stream withTranscodedSegmentsDuration(Optional transcodedSegmentsDuration) { + public Stream withTranscodedSegmentsDuration(Optional transcodedSegmentsDuration) { Utils.checkNotNull(transcodedSegmentsDuration, "transcodedSegmentsDuration"); this.transcodedSegmentsDuration = transcodedSegmentsDuration; return this; @@ -755,7 +749,7 @@ public Stream withSourceBytes(double sourceBytes) { return this; } - public Stream withSourceBytes(Optional sourceBytes) { + public Stream withSourceBytes(Optional sourceBytes) { Utils.checkNotNull(sourceBytes, "sourceBytes"); this.sourceBytes = sourceBytes; return this; @@ -767,7 +761,7 @@ public Stream withTranscodedBytes(double transcodedBytes) { return this; } - public Stream withTranscodedBytes(Optional transcodedBytes) { + public Stream withTranscodedBytes(Optional transcodedBytes) { Utils.checkNotNull(transcodedBytes, "transcodedBytes"); this.transcodedBytes = transcodedBytes; return this; @@ -785,7 +779,7 @@ public Stream withIngestRate(double ingestRate) { /** * Rate at which sourceBytes increases (bytes/second) */ - public Stream withIngestRate(Optional ingestRate) { + public Stream withIngestRate(Optional ingestRate) { Utils.checkNotNull(ingestRate, "ingestRate"); this.ingestRate = ingestRate; return this; @@ -803,7 +797,7 @@ public Stream withOutgoingRate(double outgoingRate) { /** * Rate at which transcodedBytes increases (bytes/second) */ - public Stream withOutgoingRate(Optional outgoingRate) { + public Stream withOutgoingRate(Optional outgoingRate) { Utils.checkNotNull(outgoingRate, "outgoingRate"); this.outgoingRate = outgoingRate; return this; @@ -821,7 +815,7 @@ public Stream withIsActive(boolean isActive) { /** * If currently active */ - public Stream withIsActive(Optional isActive) { + public Stream withIsActive(Optional isActive) { Utils.checkNotNull(isActive, "isActive"); this.isActive = isActive; return this; @@ -839,7 +833,7 @@ public Stream withIsHealthy(boolean isHealthy) { /** * Indicates whether the stream is healthy or not. */ - public Stream withIsHealthy(JsonNullable isHealthy) { + public Stream withIsHealthy(JsonNullable isHealthy) { Utils.checkNotNull(isHealthy, "isHealthy"); this.isHealthy = isHealthy; return this; @@ -848,7 +842,7 @@ public Stream withIsHealthy(JsonNullable isHealthy) { /** * A string array of human-readable errors describing issues affecting the stream, if any. */ - public Stream withIssues(java.util.List issues) { + public Stream withIssues(List issues) { Utils.checkNotNull(issues, "issues"); this.issues = JsonNullable.of(issues); return this; @@ -857,7 +851,7 @@ public Stream withIssues(java.util.List issues) { /** * A string array of human-readable errors describing issues affecting the stream, if any. */ - public Stream withIssues(JsonNullable> issues) { + public Stream withIssues(JsonNullable> issues) { Utils.checkNotNull(issues, "issues"); this.issues = issues; return this; @@ -875,7 +869,7 @@ public Stream withCreatedByTokenName(String createdByTokenName) { /** * Name of the token used to create this object */ - public Stream withCreatedByTokenName(Optional createdByTokenName) { + public Stream withCreatedByTokenName(Optional createdByTokenName) { Utils.checkNotNull(createdByTokenName, "createdByTokenName"); this.createdByTokenName = createdByTokenName; return this; @@ -893,7 +887,7 @@ public Stream withCreatedAt(double createdAt) { /** * Timestamp (in milliseconds) at which stream object was created */ - public Stream withCreatedAt(Optional createdAt) { + public Stream withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -911,7 +905,7 @@ public Stream withParentId(String parentId) { /** * Points to parent stream object */ - public Stream withParentId(Optional parentId) { + public Stream withParentId(Optional parentId) { Utils.checkNotNull(parentId, "parentId"); this.parentId = parentId; return this; @@ -929,7 +923,7 @@ public Stream withStreamKey(String streamKey) { /** * Used to form RTMP ingest URL */ - public Stream withStreamKey(Optional streamKey) { + public Stream withStreamKey(Optional streamKey) { Utils.checkNotNull(streamKey, "streamKey"); this.streamKey = streamKey; return this; @@ -969,7 +963,7 @@ public Stream withPlaybackId(String playbackId) { /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ - public Stream withPlaybackId(Optional playbackId) { + public Stream withPlaybackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -993,13 +987,25 @@ public Stream withPlaybackPolicy(JsonNullable playback return this; } - public Stream withProfiles(java.util.List profiles) { + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ + public Stream withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public Stream withProfiles(Optional> profiles) { + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ + public Stream withProfiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -1017,7 +1023,7 @@ public Stream withProjectId(String projectId) { /** * The ID of the project */ - public Stream withProjectId(Optional projectId) { + public Stream withProjectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; @@ -1039,7 +1045,7 @@ public Stream withRecord(boolean record) { * customization, create and configure an object store. * */ - public Stream withRecord(Optional record) { + public Stream withRecord(Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; @@ -1091,7 +1097,7 @@ public Stream withSuspended(boolean suspended) { /** * If currently suspended */ - public Stream withSuspended(Optional suspended) { + public Stream withSuspended(Optional suspended) { Utils.checkNotNull(suspended, "suspended"); this.suspended = suspended; return this; @@ -1109,7 +1115,7 @@ public Stream withLastTerminatedAt(double lastTerminatedAt) { /** * Timestamp (in milliseconds) when the stream was last terminated */ - public Stream withLastTerminatedAt(JsonNullable lastTerminatedAt) { + public Stream withLastTerminatedAt(JsonNullable lastTerminatedAt) { Utils.checkNotNull(lastTerminatedAt, "lastTerminatedAt"); this.lastTerminatedAt = lastTerminatedAt; return this; @@ -1129,7 +1135,7 @@ public Stream withUserId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Stream withUserId(Optional userId) { + public Stream withUserId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -1157,44 +1163,44 @@ public boolean equals(java.lang.Object o) { } Stream other = (Stream) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.kind, other.kind) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.userTags, other.userTags) && - java.util.Objects.deepEquals(this.lastSeen, other.lastSeen) && - java.util.Objects.deepEquals(this.sourceSegments, other.sourceSegments) && - java.util.Objects.deepEquals(this.transcodedSegments, other.transcodedSegments) && - java.util.Objects.deepEquals(this.sourceSegmentsDuration, other.sourceSegmentsDuration) && - java.util.Objects.deepEquals(this.transcodedSegmentsDuration, other.transcodedSegmentsDuration) && - java.util.Objects.deepEquals(this.sourceBytes, other.sourceBytes) && - java.util.Objects.deepEquals(this.transcodedBytes, other.transcodedBytes) && - java.util.Objects.deepEquals(this.ingestRate, other.ingestRate) && - java.util.Objects.deepEquals(this.outgoingRate, other.outgoingRate) && - java.util.Objects.deepEquals(this.isActive, other.isActive) && - java.util.Objects.deepEquals(this.isHealthy, other.isHealthy) && - java.util.Objects.deepEquals(this.issues, other.issues) && - java.util.Objects.deepEquals(this.createdByTokenName, other.createdByTokenName) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.parentId, other.parentId) && - java.util.Objects.deepEquals(this.streamKey, other.streamKey) && - java.util.Objects.deepEquals(this.pull, other.pull) && - java.util.Objects.deepEquals(this.playbackId, other.playbackId) && - java.util.Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.projectId, other.projectId) && - java.util.Objects.deepEquals(this.record, other.record) && - java.util.Objects.deepEquals(this.recordingSpec, other.recordingSpec) && - java.util.Objects.deepEquals(this.multistream, other.multistream) && - java.util.Objects.deepEquals(this.suspended, other.suspended) && - java.util.Objects.deepEquals(this.lastTerminatedAt, other.lastTerminatedAt) && - java.util.Objects.deepEquals(this.userId, other.userId) && - java.util.Objects.deepEquals(this.renditions, other.renditions); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.kind, other.kind) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.userTags, other.userTags) && + Objects.deepEquals(this.lastSeen, other.lastSeen) && + Objects.deepEquals(this.sourceSegments, other.sourceSegments) && + Objects.deepEquals(this.transcodedSegments, other.transcodedSegments) && + Objects.deepEquals(this.sourceSegmentsDuration, other.sourceSegmentsDuration) && + Objects.deepEquals(this.transcodedSegmentsDuration, other.transcodedSegmentsDuration) && + Objects.deepEquals(this.sourceBytes, other.sourceBytes) && + Objects.deepEquals(this.transcodedBytes, other.transcodedBytes) && + Objects.deepEquals(this.ingestRate, other.ingestRate) && + Objects.deepEquals(this.outgoingRate, other.outgoingRate) && + Objects.deepEquals(this.isActive, other.isActive) && + Objects.deepEquals(this.isHealthy, other.isHealthy) && + Objects.deepEquals(this.issues, other.issues) && + Objects.deepEquals(this.createdByTokenName, other.createdByTokenName) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.parentId, other.parentId) && + Objects.deepEquals(this.streamKey, other.streamKey) && + Objects.deepEquals(this.pull, other.pull) && + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.projectId, other.projectId) && + Objects.deepEquals(this.record, other.record) && + Objects.deepEquals(this.recordingSpec, other.recordingSpec) && + Objects.deepEquals(this.multistream, other.multistream) && + Objects.deepEquals(this.suspended, other.suspended) && + Objects.deepEquals(this.lastTerminatedAt, other.lastTerminatedAt) && + Objects.deepEquals(this.userId, other.userId) && + Objects.deepEquals(this.renditions, other.renditions); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, name, kind, @@ -1270,71 +1276,71 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private String name; @Deprecated - private Optional kind = Optional.empty(); + private Optional kind = Optional.empty(); private Optional creatorId = Optional.empty(); - private Optional> userTags = Optional.empty(); + private Optional> userTags = Optional.empty(); - private Optional lastSeen = Optional.empty(); + private Optional lastSeen = Optional.empty(); - private Optional sourceSegments = Optional.empty(); + private Optional sourceSegments = Optional.empty(); - private Optional transcodedSegments = Optional.empty(); + private Optional transcodedSegments = Optional.empty(); - private Optional sourceSegmentsDuration = Optional.empty(); + private Optional sourceSegmentsDuration = Optional.empty(); - private Optional transcodedSegmentsDuration = Optional.empty(); + private Optional transcodedSegmentsDuration = Optional.empty(); - private Optional sourceBytes = Optional.empty(); + private Optional sourceBytes = Optional.empty(); - private Optional transcodedBytes = Optional.empty(); + private Optional transcodedBytes = Optional.empty(); - private Optional ingestRate = Optional.empty(); + private Optional ingestRate = Optional.empty(); - private Optional outgoingRate = Optional.empty(); + private Optional outgoingRate = Optional.empty(); - private Optional isActive = Optional.empty(); + private Optional isActive = Optional.empty(); - private JsonNullable isHealthy = JsonNullable.undefined(); + private JsonNullable isHealthy = JsonNullable.undefined(); - private JsonNullable> issues = JsonNullable.undefined(); + private JsonNullable> issues = JsonNullable.undefined(); - private Optional createdByTokenName = Optional.empty(); + private Optional createdByTokenName = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); - private Optional parentId = Optional.empty(); + private Optional parentId = Optional.empty(); - private Optional streamKey = Optional.empty(); + private Optional streamKey = Optional.empty(); private Optional pull = Optional.empty(); - private Optional playbackId = Optional.empty(); + private Optional playbackId = Optional.empty(); private JsonNullable playbackPolicy = JsonNullable.undefined(); - private Optional> profiles = Optional.empty(); + private Optional> profiles = Optional.empty(); - private Optional projectId = Optional.empty(); + private Optional projectId = Optional.empty(); - private Optional record = Optional.empty(); + private Optional record = Optional.empty(); private Optional recordingSpec = Optional.empty(); private Optional multistream = Optional.empty(); - private Optional suspended = Optional.empty(); + private Optional suspended = Optional.empty(); - private JsonNullable lastTerminatedAt = JsonNullable.undefined(); + private JsonNullable lastTerminatedAt = JsonNullable.undefined(); @Deprecated - private Optional userId = Optional.empty(); + private Optional userId = Optional.empty(); private Optional renditions = Optional.empty(); @@ -1348,7 +1354,7 @@ public Builder id(String id) { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -1374,7 +1380,7 @@ public Builder kind(String kind) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Builder kind(Optional kind) { + public Builder kind(Optional kind) { Utils.checkNotNull(kind, "kind"); this.kind = kind; return this; @@ -1395,7 +1401,7 @@ public Builder creatorId(Optional creatorId) { /** * User input tags associated with the stream */ - public Builder userTags(java.util.Map userTags) { + public Builder userTags(Map userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = Optional.ofNullable(userTags); return this; @@ -1404,7 +1410,7 @@ public Builder userTags(java.util.Map userTags) { /** * User input tags associated with the stream */ - public Builder userTags(Optional> userTags) { + public Builder userTags(Optional> userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = userTags; return this; @@ -1416,7 +1422,7 @@ public Builder lastSeen(double lastSeen) { return this; } - public Builder lastSeen(Optional lastSeen) { + public Builder lastSeen(Optional lastSeen) { Utils.checkNotNull(lastSeen, "lastSeen"); this.lastSeen = lastSeen; return this; @@ -1428,7 +1434,7 @@ public Builder sourceSegments(double sourceSegments) { return this; } - public Builder sourceSegments(Optional sourceSegments) { + public Builder sourceSegments(Optional sourceSegments) { Utils.checkNotNull(sourceSegments, "sourceSegments"); this.sourceSegments = sourceSegments; return this; @@ -1440,7 +1446,7 @@ public Builder transcodedSegments(double transcodedSegments) { return this; } - public Builder transcodedSegments(Optional transcodedSegments) { + public Builder transcodedSegments(Optional transcodedSegments) { Utils.checkNotNull(transcodedSegments, "transcodedSegments"); this.transcodedSegments = transcodedSegments; return this; @@ -1458,7 +1464,7 @@ public Builder sourceSegmentsDuration(double sourceSegmentsDuration) { /** * Duration of all the source segments, sec */ - public Builder sourceSegmentsDuration(Optional sourceSegmentsDuration) { + public Builder sourceSegmentsDuration(Optional sourceSegmentsDuration) { Utils.checkNotNull(sourceSegmentsDuration, "sourceSegmentsDuration"); this.sourceSegmentsDuration = sourceSegmentsDuration; return this; @@ -1476,7 +1482,7 @@ public Builder transcodedSegmentsDuration(double transcodedSegmentsDuration) { /** * Duration of all the transcoded segments, sec */ - public Builder transcodedSegmentsDuration(Optional transcodedSegmentsDuration) { + public Builder transcodedSegmentsDuration(Optional transcodedSegmentsDuration) { Utils.checkNotNull(transcodedSegmentsDuration, "transcodedSegmentsDuration"); this.transcodedSegmentsDuration = transcodedSegmentsDuration; return this; @@ -1488,7 +1494,7 @@ public Builder sourceBytes(double sourceBytes) { return this; } - public Builder sourceBytes(Optional sourceBytes) { + public Builder sourceBytes(Optional sourceBytes) { Utils.checkNotNull(sourceBytes, "sourceBytes"); this.sourceBytes = sourceBytes; return this; @@ -1500,7 +1506,7 @@ public Builder transcodedBytes(double transcodedBytes) { return this; } - public Builder transcodedBytes(Optional transcodedBytes) { + public Builder transcodedBytes(Optional transcodedBytes) { Utils.checkNotNull(transcodedBytes, "transcodedBytes"); this.transcodedBytes = transcodedBytes; return this; @@ -1518,7 +1524,7 @@ public Builder ingestRate(double ingestRate) { /** * Rate at which sourceBytes increases (bytes/second) */ - public Builder ingestRate(Optional ingestRate) { + public Builder ingestRate(Optional ingestRate) { Utils.checkNotNull(ingestRate, "ingestRate"); this.ingestRate = ingestRate; return this; @@ -1536,7 +1542,7 @@ public Builder outgoingRate(double outgoingRate) { /** * Rate at which transcodedBytes increases (bytes/second) */ - public Builder outgoingRate(Optional outgoingRate) { + public Builder outgoingRate(Optional outgoingRate) { Utils.checkNotNull(outgoingRate, "outgoingRate"); this.outgoingRate = outgoingRate; return this; @@ -1554,7 +1560,7 @@ public Builder isActive(boolean isActive) { /** * If currently active */ - public Builder isActive(Optional isActive) { + public Builder isActive(Optional isActive) { Utils.checkNotNull(isActive, "isActive"); this.isActive = isActive; return this; @@ -1572,7 +1578,7 @@ public Builder isHealthy(boolean isHealthy) { /** * Indicates whether the stream is healthy or not. */ - public Builder isHealthy(JsonNullable isHealthy) { + public Builder isHealthy(JsonNullable isHealthy) { Utils.checkNotNull(isHealthy, "isHealthy"); this.isHealthy = isHealthy; return this; @@ -1581,7 +1587,7 @@ public Builder isHealthy(JsonNullable isHealthy) { /** * A string array of human-readable errors describing issues affecting the stream, if any. */ - public Builder issues(java.util.List issues) { + public Builder issues(List issues) { Utils.checkNotNull(issues, "issues"); this.issues = JsonNullable.of(issues); return this; @@ -1590,7 +1596,7 @@ public Builder issues(java.util.List issues) { /** * A string array of human-readable errors describing issues affecting the stream, if any. */ - public Builder issues(JsonNullable> issues) { + public Builder issues(JsonNullable> issues) { Utils.checkNotNull(issues, "issues"); this.issues = issues; return this; @@ -1608,7 +1614,7 @@ public Builder createdByTokenName(String createdByTokenName) { /** * Name of the token used to create this object */ - public Builder createdByTokenName(Optional createdByTokenName) { + public Builder createdByTokenName(Optional createdByTokenName) { Utils.checkNotNull(createdByTokenName, "createdByTokenName"); this.createdByTokenName = createdByTokenName; return this; @@ -1626,7 +1632,7 @@ public Builder createdAt(double createdAt) { /** * Timestamp (in milliseconds) at which stream object was created */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -1644,7 +1650,7 @@ public Builder parentId(String parentId) { /** * Points to parent stream object */ - public Builder parentId(Optional parentId) { + public Builder parentId(Optional parentId) { Utils.checkNotNull(parentId, "parentId"); this.parentId = parentId; return this; @@ -1662,7 +1668,7 @@ public Builder streamKey(String streamKey) { /** * Used to form RTMP ingest URL */ - public Builder streamKey(Optional streamKey) { + public Builder streamKey(Optional streamKey) { Utils.checkNotNull(streamKey, "streamKey"); this.streamKey = streamKey; return this; @@ -1702,7 +1708,7 @@ public Builder playbackId(String playbackId) { /** * The playback ID to use with the Playback Info endpoint to retrieve playback URLs. */ - public Builder playbackId(Optional playbackId) { + public Builder playbackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -1726,13 +1732,25 @@ public Builder playbackPolicy(JsonNullable playbackPol return this; } - public Builder profiles(java.util.List profiles) { + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public Builder profiles(Optional> profiles) { + /** + * Profiles to transcode the stream into. If not specified, a default + * set of profiles will be used with 240p, 360p, 480p and 720p + * resolutions. Keep in mind that the source rendition is always kept. + * + */ + public Builder profiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -1750,7 +1768,7 @@ public Builder projectId(String projectId) { /** * The ID of the project */ - public Builder projectId(Optional projectId) { + public Builder projectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; @@ -1772,7 +1790,7 @@ public Builder record(boolean record) { * customization, create and configure an object store. * */ - public Builder record(Optional record) { + public Builder record(Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; @@ -1824,7 +1842,7 @@ public Builder suspended(boolean suspended) { /** * If currently suspended */ - public Builder suspended(Optional suspended) { + public Builder suspended(Optional suspended) { Utils.checkNotNull(suspended, "suspended"); this.suspended = suspended; return this; @@ -1842,7 +1860,7 @@ public Builder lastTerminatedAt(double lastTerminatedAt) { /** * Timestamp (in milliseconds) when the stream was last terminated */ - public Builder lastTerminatedAt(JsonNullable lastTerminatedAt) { + public Builder lastTerminatedAt(JsonNullable lastTerminatedAt) { Utils.checkNotNull(lastTerminatedAt, "lastTerminatedAt"); this.lastTerminatedAt = lastTerminatedAt; return this; @@ -1862,7 +1880,7 @@ public Builder userId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Builder userId(Optional userId) { + public Builder userId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java index f11da28..de0f2c0 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamIsMobile.java @@ -1,25 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * StreamIsMobile - Indicates whether the stream will be pulled from a mobile source. @@ -28,7 +25,7 @@ @JsonDeserialize(using = StreamIsMobile._Deserializer.class) public class StreamIsMobile { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private StreamIsMobile(TypedObject value) { @@ -42,13 +39,13 @@ public static StreamIsMobile of(IsMobile1 value) { public static StreamIsMobile of(boolean value) { Utils.checkNotNull(value, "value"); - return new StreamIsMobile(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new StreamIsMobile(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *

    - *
  • {@code IsMobile1}
  • + *
  • {@code studio.livepeer.livepeer.models.components.IsMobile1}
  • *
  • {@code boolean}
  • *
* @@ -76,21 +73,21 @@ public boolean equals(java.lang.Object o) { return false; } StreamIsMobile other = (StreamIsMobile) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(StreamIsMobile.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StreamLocation.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamLocation.java index d79219c..e376411 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamLocation.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamLocation.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * StreamLocation - Approximate location of the pull source. The location is used to * determine the closest Livepeer region to pull the stream from. @@ -97,13 +97,13 @@ public boolean equals(java.lang.Object o) { } StreamLocation other = (StreamLocation) o; return - java.util.Objects.deepEquals(this.lat, other.lat) && - java.util.Objects.deepEquals(this.lon, other.lon); + Objects.deepEquals(this.lat, other.lat) && + Objects.deepEquals(this.lon, other.lon); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( lat, lon); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StreamMultistream.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamMultistream.java index 37d0dd7..417d92e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamMultistream.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamMultistream.java @@ -1,23 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class StreamMultistream { /** @@ -27,11 +28,11 @@ public class StreamMultistream { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("targets") - private Optional> targets; + private Optional> targets; @JsonCreator public StreamMultistream( - @JsonProperty("targets") Optional> targets) { + @JsonProperty("targets") Optional> targets) { Utils.checkNotNull(targets, "targets"); this.targets = targets; } @@ -47,8 +48,8 @@ public StreamMultistream() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> targets() { - return (Optional>) targets; + public Optional> targets() { + return (Optional>) targets; } public final static Builder builder() { @@ -60,7 +61,7 @@ public final static Builder builder() { * streamed to * */ - public StreamMultistream withTargets(java.util.List targets) { + public StreamMultistream withTargets(List targets) { Utils.checkNotNull(targets, "targets"); this.targets = Optional.ofNullable(targets); return this; @@ -71,7 +72,7 @@ public StreamMultistream withTargets(java.util.List targets) { * streamed to * */ - public StreamMultistream withTargets(Optional> targets) { + public StreamMultistream withTargets(Optional> targets) { Utils.checkNotNull(targets, "targets"); this.targets = targets; return this; @@ -87,12 +88,12 @@ public boolean equals(java.lang.Object o) { } StreamMultistream other = (StreamMultistream) o; return - java.util.Objects.deepEquals(this.targets, other.targets); + Objects.deepEquals(this.targets, other.targets); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( targets); } @@ -104,7 +105,7 @@ public String toString() { public final static class Builder { - private Optional> targets = Optional.empty(); + private Optional> targets = Optional.empty(); private Builder() { // force use of static builder() method @@ -115,7 +116,7 @@ private Builder() { * streamed to * */ - public Builder targets(java.util.List targets) { + public Builder targets(List targets) { Utils.checkNotNull(targets, "targets"); this.targets = Optional.ofNullable(targets); return this; @@ -126,7 +127,7 @@ public Builder targets(java.util.List targets) { * streamed to * */ - public Builder targets(Optional> targets) { + public Builder targets(Optional> targets) { Utils.checkNotNull(targets, "targets"); this.targets = targets; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java index 3af81af..ea3da9f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamPatchPayload.java @@ -1,24 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; import studio.livepeer.livepeer.utils.Utils; + public class StreamPatchPayload { @JsonInclude(Include.NON_ABSENT) @@ -32,14 +35,14 @@ public class StreamPatchPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("record") - private Optional record; + private Optional record; /** * If currently suspended */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("suspended") - private Optional suspended; + private Optional suspended; @JsonInclude(Include.NON_ABSENT) @JsonProperty("multistream") @@ -54,30 +57,36 @@ public class StreamPatchPayload { @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private JsonNullable> profiles; + private JsonNullable> profiles; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("recordingSpec") + private Optional recordingSpec; /** * User input tags associated with the stream */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("userTags") - private Optional> userTags; + private Optional> userTags; @JsonCreator public StreamPatchPayload( @JsonProperty("creatorId") Optional creatorId, - @JsonProperty("record") Optional record, - @JsonProperty("suspended") Optional suspended, + @JsonProperty("record") Optional record, + @JsonProperty("suspended") Optional suspended, @JsonProperty("multistream") Optional multistream, @JsonProperty("playbackPolicy") JsonNullable playbackPolicy, - @JsonProperty("profiles") JsonNullable> profiles, - @JsonProperty("userTags") Optional> userTags) { + @JsonProperty("profiles") JsonNullable> profiles, + @JsonProperty("recordingSpec") Optional recordingSpec, + @JsonProperty("userTags") Optional> userTags) { Utils.checkNotNull(creatorId, "creatorId"); Utils.checkNotNull(record, "record"); Utils.checkNotNull(suspended, "suspended"); Utils.checkNotNull(multistream, "multistream"); Utils.checkNotNull(playbackPolicy, "playbackPolicy"); Utils.checkNotNull(profiles, "profiles"); + Utils.checkNotNull(recordingSpec, "recordingSpec"); Utils.checkNotNull(userTags, "userTags"); this.creatorId = creatorId; this.record = record; @@ -85,11 +94,12 @@ public StreamPatchPayload( this.multistream = multistream; this.playbackPolicy = playbackPolicy; this.profiles = profiles; + this.recordingSpec = recordingSpec; this.userTags = userTags; } public StreamPatchPayload() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), Optional.empty()); } @SuppressWarnings("unchecked") @@ -103,19 +113,17 @@ public Optional creatorId() { * customization, create and configure an object store. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional record() { - return (Optional) record; + return record; } /** * If currently suspended */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional suspended() { - return (Optional) suspended; + return suspended; } @SuppressWarnings("unchecked") @@ -135,8 +143,14 @@ public JsonNullable playbackPolicy() { @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable> profiles() { - return (JsonNullable>) profiles; + public JsonNullable> profiles() { + return (JsonNullable>) profiles; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional recordingSpec() { + return (Optional) recordingSpec; } /** @@ -144,8 +158,8 @@ public JsonNullable> profiles() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> userTags() { - return (Optional>) userTags; + public Optional> userTags() { + return (Optional>) userTags; } public final static Builder builder() { @@ -180,7 +194,7 @@ public StreamPatchPayload withRecord(boolean record) { * customization, create and configure an object store. * */ - public StreamPatchPayload withRecord(Optional record) { + public StreamPatchPayload withRecord(Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; @@ -198,7 +212,7 @@ public StreamPatchPayload withSuspended(boolean suspended) { /** * If currently suspended */ - public StreamPatchPayload withSuspended(Optional suspended) { + public StreamPatchPayload withSuspended(Optional suspended) { Utils.checkNotNull(suspended, "suspended"); this.suspended = suspended; return this; @@ -234,22 +248,34 @@ public StreamPatchPayload withPlaybackPolicy(JsonNullable profiles) { + public StreamPatchPayload withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = JsonNullable.of(profiles); return this; } - public StreamPatchPayload withProfiles(JsonNullable> profiles) { + public StreamPatchPayload withProfiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; } + public StreamPatchPayload withRecordingSpec(RecordingSpec recordingSpec) { + Utils.checkNotNull(recordingSpec, "recordingSpec"); + this.recordingSpec = Optional.ofNullable(recordingSpec); + return this; + } + + public StreamPatchPayload withRecordingSpec(Optional recordingSpec) { + Utils.checkNotNull(recordingSpec, "recordingSpec"); + this.recordingSpec = recordingSpec; + return this; + } + /** * User input tags associated with the stream */ - public StreamPatchPayload withUserTags(java.util.Map userTags) { + public StreamPatchPayload withUserTags(Map userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = Optional.ofNullable(userTags); return this; @@ -258,7 +284,7 @@ public StreamPatchPayload withUserTags(java.util.Map userTags) /** * User input tags associated with the stream */ - public StreamPatchPayload withUserTags(Optional> userTags) { + public StreamPatchPayload withUserTags(Optional> userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = userTags; return this; @@ -274,24 +300,26 @@ public boolean equals(java.lang.Object o) { } StreamPatchPayload other = (StreamPatchPayload) o; return - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.record, other.record) && - java.util.Objects.deepEquals(this.suspended, other.suspended) && - java.util.Objects.deepEquals(this.multistream, other.multistream) && - java.util.Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.userTags, other.userTags); + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.record, other.record) && + Objects.deepEquals(this.suspended, other.suspended) && + Objects.deepEquals(this.multistream, other.multistream) && + Objects.deepEquals(this.playbackPolicy, other.playbackPolicy) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.recordingSpec, other.recordingSpec) && + Objects.deepEquals(this.userTags, other.userTags); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( creatorId, record, suspended, multistream, playbackPolicy, profiles, + recordingSpec, userTags); } @@ -304,6 +332,7 @@ public String toString() { "multistream", multistream, "playbackPolicy", playbackPolicy, "profiles", profiles, + "recordingSpec", recordingSpec, "userTags", userTags); } @@ -311,17 +340,19 @@ public final static class Builder { private Optional creatorId = Optional.empty(); - private Optional record = Optional.empty(); + private Optional record = Optional.empty(); - private Optional suspended = Optional.empty(); + private Optional suspended = Optional.empty(); private Optional multistream = Optional.empty(); private JsonNullable playbackPolicy = JsonNullable.undefined(); - private JsonNullable> profiles = JsonNullable.undefined(); + private JsonNullable> profiles = JsonNullable.undefined(); + + private Optional recordingSpec = Optional.empty(); - private Optional> userTags = Optional.empty(); + private Optional> userTags = Optional.empty(); private Builder() { // force use of static builder() method @@ -355,7 +386,7 @@ public Builder record(boolean record) { * customization, create and configure an object store. * */ - public Builder record(Optional record) { + public Builder record(Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; @@ -373,7 +404,7 @@ public Builder suspended(boolean suspended) { /** * If currently suspended */ - public Builder suspended(Optional suspended) { + public Builder suspended(Optional suspended) { Utils.checkNotNull(suspended, "suspended"); this.suspended = suspended; return this; @@ -409,22 +440,34 @@ public Builder playbackPolicy(JsonNullable playbackPol return this; } - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = JsonNullable.of(profiles); return this; } - public Builder profiles(JsonNullable> profiles) { + public Builder profiles(JsonNullable> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; } + public Builder recordingSpec(RecordingSpec recordingSpec) { + Utils.checkNotNull(recordingSpec, "recordingSpec"); + this.recordingSpec = Optional.ofNullable(recordingSpec); + return this; + } + + public Builder recordingSpec(Optional recordingSpec) { + Utils.checkNotNull(recordingSpec, "recordingSpec"); + this.recordingSpec = recordingSpec; + return this; + } + /** * User input tags associated with the stream */ - public Builder userTags(java.util.Map userTags) { + public Builder userTags(Map userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = Optional.ofNullable(userTags); return this; @@ -433,7 +476,7 @@ public Builder userTags(java.util.Map userTags) { /** * User input tags associated with the stream */ - public Builder userTags(Optional> userTags) { + public Builder userTags(Optional> userTags) { Utils.checkNotNull(userTags, "userTags"); this.userTags = userTags; return this; @@ -447,6 +490,7 @@ public StreamPatchPayload build() { multistream, playbackPolicy, profiles, + recordingSpec, userTags); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StreamPull.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamPull.java index dd19e26..e074db2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamPull.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamPull.java @@ -1,22 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * StreamPull - Configuration for a stream that should be actively pulled from an * external source, rather than pushed to Livepeer. If specified, the @@ -36,7 +37,7 @@ public class StreamPull { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("headers") - private Optional> headers; + private Optional> headers; /** * Indicates whether the stream will be pulled from a mobile source. @@ -56,7 +57,7 @@ public class StreamPull { @JsonCreator public StreamPull( @JsonProperty("source") String source, - @JsonProperty("headers") Optional> headers, + @JsonProperty("headers") Optional> headers, @JsonProperty("isMobile") Optional isMobile, @JsonProperty("location") Optional location) { Utils.checkNotNull(source, "source"); @@ -87,8 +88,8 @@ public String source() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> headers() { - return (Optional>) headers; + public Optional> headers() { + return (Optional>) headers; } /** @@ -126,7 +127,7 @@ public StreamPull withSource(String source) { /** * Headers to be sent with the request to the pull source. */ - public StreamPull withHeaders(java.util.Map headers) { + public StreamPull withHeaders(Map headers) { Utils.checkNotNull(headers, "headers"); this.headers = Optional.ofNullable(headers); return this; @@ -135,7 +136,7 @@ public StreamPull withHeaders(java.util.Map headers) { /** * Headers to be sent with the request to the pull source. */ - public StreamPull withHeaders(Optional> headers) { + public StreamPull withHeaders(Optional> headers) { Utils.checkNotNull(headers, "headers"); this.headers = headers; return this; @@ -189,15 +190,15 @@ public boolean equals(java.lang.Object o) { } StreamPull other = (StreamPull) o; return - java.util.Objects.deepEquals(this.source, other.source) && - java.util.Objects.deepEquals(this.headers, other.headers) && - java.util.Objects.deepEquals(this.isMobile, other.isMobile) && - java.util.Objects.deepEquals(this.location, other.location); + Objects.deepEquals(this.source, other.source) && + Objects.deepEquals(this.headers, other.headers) && + Objects.deepEquals(this.isMobile, other.isMobile) && + Objects.deepEquals(this.location, other.location); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( source, headers, isMobile, @@ -217,7 +218,7 @@ public final static class Builder { private String source; - private Optional> headers = Optional.empty(); + private Optional> headers = Optional.empty(); private Optional isMobile = Optional.empty(); @@ -239,7 +240,7 @@ public Builder source(String source) { /** * Headers to be sent with the request to the pull source. */ - public Builder headers(java.util.Map headers) { + public Builder headers(Map headers) { Utils.checkNotNull(headers, "headers"); this.headers = Optional.ofNullable(headers); return this; @@ -248,7 +249,7 @@ public Builder headers(java.util.Map headers) { /** * Headers to be sent with the request to the pull source. */ - public Builder headers(Optional> headers) { + public Builder headers(Optional> headers) { Utils.checkNotNull(headers, "headers"); this.headers = headers; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StreamRecordingSpec.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamRecordingSpec.java index aabe32e..772f19f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamRecordingSpec.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamRecordingSpec.java @@ -1,22 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * StreamRecordingSpec - Configuration for recording the stream. This can only be set if * `record` is true. @@ -26,18 +27,18 @@ public class StreamRecordingSpec { /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. + * Profiles to process the recording of this stream into. If not + * specified, default profiles will be derived based on the stream + * input. Keep in mind that the source rendition is always kept. * */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private Optional> profiles; + private Optional> profiles; @JsonCreator public StreamRecordingSpec( - @JsonProperty("profiles") Optional> profiles) { + @JsonProperty("profiles") Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; } @@ -47,15 +48,15 @@ public StreamRecordingSpec() { } /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. + * Profiles to process the recording of this stream into. If not + * specified, default profiles will be derived based on the stream + * input. Keep in mind that the source rendition is always kept. * */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> profiles() { - return (Optional>) profiles; + public Optional> profiles() { + return (Optional>) profiles; } public final static Builder builder() { @@ -63,24 +64,24 @@ public final static Builder builder() { } /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. + * Profiles to process the recording of this stream into. If not + * specified, default profiles will be derived based on the stream + * input. Keep in mind that the source rendition is always kept. * */ - public StreamRecordingSpec withProfiles(java.util.List profiles) { + public StreamRecordingSpec withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. + * Profiles to process the recording of this stream into. If not + * specified, default profiles will be derived based on the stream + * input. Keep in mind that the source rendition is always kept. * */ - public StreamRecordingSpec withProfiles(Optional> profiles) { + public StreamRecordingSpec withProfiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -96,12 +97,12 @@ public boolean equals(java.lang.Object o) { } StreamRecordingSpec other = (StreamRecordingSpec) o; return - java.util.Objects.deepEquals(this.profiles, other.profiles); + Objects.deepEquals(this.profiles, other.profiles); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( profiles); } @@ -113,31 +114,31 @@ public String toString() { public final static class Builder { - private Optional> profiles = Optional.empty(); + private Optional> profiles = Optional.empty(); private Builder() { // force use of static builder() method } /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. + * Profiles to process the recording of this stream into. If not + * specified, default profiles will be derived based on the stream + * input. Keep in mind that the source rendition is always kept. * */ - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } /** - * Profiles to record the stream in. If not specified, the stream - * will be recorded in the same profiles as the stream itself. Keep - * in mind that the source rendition will always be recorded. + * Profiles to process the recording of this stream into. If not + * specified, default profiles will be derived based on the stream + * input. Keep in mind that the source rendition is always kept. * */ - public Builder profiles(Optional> profiles) { + public Builder profiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java b/src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java index 5e2fb3b..c8a4aea 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/StreamUserTags.java @@ -1,31 +1,29 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; @JsonDeserialize(using = StreamUserTags._Deserializer.class) public class StreamUserTags { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private StreamUserTags(TypedObject value) { @@ -39,20 +37,20 @@ public static StreamUserTags of(String value) { public static StreamUserTags of(double value) { Utils.checkNotNull(value, "value"); - return new StreamUserTags(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new StreamUserTags(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static StreamUserTags of(java.util.List value) { + public static StreamUserTags of(List value) { Utils.checkNotNull(value, "value"); - return new StreamUserTags(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference>(){})); + return new StreamUserTags(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference>(){})); } /** * Returns an instance of one of these types: *
    - *
  • {@code String}
  • + *
  • {@code java.lang.String}
  • *
  • {@code double}
  • - *
  • {@code java.util.List}
  • + *
  • {@code java.util.List}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -79,22 +77,22 @@ public boolean equals(java.lang.Object o) { return false; } StreamUserTags other = (StreamUserTags) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(StreamUserTags.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference>() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Target.java b/src/main/java/studio/livepeer/livepeer/models/components/Target.java index 6c58a03..046449f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Target.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Target.java @@ -1,24 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; + public class Target { /** @@ -36,14 +38,14 @@ public class Target { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoOnly") - private Optional videoOnly; + private Optional videoOnly; /** * ID of multistream target object where to push this stream */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; /** * Inline multistream target object. Will automatically @@ -58,8 +60,8 @@ public class Target { @JsonCreator public Target( @JsonProperty("profile") String profile, - @JsonProperty("videoOnly") Optional videoOnly, - @JsonProperty("id") Optional id, + @JsonProperty("videoOnly") Optional videoOnly, + @JsonProperty("id") Optional id, @JsonProperty("spec") Optional spec) { Utils.checkNotNull(profile, "profile"); Utils.checkNotNull(videoOnly, "videoOnly"); @@ -91,19 +93,17 @@ public String profile() { * video will be pushed to the target. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoOnly() { - return (Optional) videoOnly; + return videoOnly; } /** * ID of multistream target object where to push this stream */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } /** @@ -149,7 +149,7 @@ public Target withVideoOnly(boolean videoOnly) { * video will be pushed to the target. * */ - public Target withVideoOnly(Optional videoOnly) { + public Target withVideoOnly(Optional videoOnly) { Utils.checkNotNull(videoOnly, "videoOnly"); this.videoOnly = videoOnly; return this; @@ -167,7 +167,7 @@ public Target withId(String id) { /** * ID of multistream target object where to push this stream */ - public Target withId(Optional id) { + public Target withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -207,15 +207,15 @@ public boolean equals(java.lang.Object o) { } Target other = (Target) o; return - java.util.Objects.deepEquals(this.profile, other.profile) && - java.util.Objects.deepEquals(this.videoOnly, other.videoOnly) && - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.spec, other.spec); + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.videoOnly, other.videoOnly) && + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.spec, other.spec); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( profile, videoOnly, id, @@ -235,9 +235,9 @@ public final static class Builder { private String profile; - private Optional videoOnly; + private Optional videoOnly; - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Optional spec = Optional.empty(); @@ -272,7 +272,7 @@ public Builder videoOnly(boolean videoOnly) { * video will be pushed to the target. * */ - public Builder videoOnly(Optional videoOnly) { + public Builder videoOnly(Optional videoOnly) { Utils.checkNotNull(videoOnly, "videoOnly"); this.videoOnly = videoOnly; return this; @@ -290,7 +290,7 @@ public Builder id(String id) { /** * ID of multistream target object where to push this stream */ - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -331,11 +331,11 @@ public Target build() { spec); } - private static final LazySingletonValue> _SINGLETON_VALUE_VideoOnly = + private static final LazySingletonValue> _SINGLETON_VALUE_VideoOnly = new LazySingletonValue<>( "videoOnly", "false", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java b/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java index e3e628d..84a3401 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayload.java @@ -1,24 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; + public class TargetAddPayload { /** @@ -36,14 +38,14 @@ public class TargetAddPayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoOnly") - private Optional videoOnly; + private Optional videoOnly; /** * ID of multistream target object where to push this stream */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; /** * Inline multistream target object. Will automatically @@ -58,8 +60,8 @@ public class TargetAddPayload { @JsonCreator public TargetAddPayload( @JsonProperty("profile") String profile, - @JsonProperty("videoOnly") Optional videoOnly, - @JsonProperty("id") Optional id, + @JsonProperty("videoOnly") Optional videoOnly, + @JsonProperty("id") Optional id, @JsonProperty("spec") Optional spec) { Utils.checkNotNull(profile, "profile"); Utils.checkNotNull(videoOnly, "videoOnly"); @@ -91,19 +93,17 @@ public String profile() { * video will be pushed to the target. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoOnly() { - return (Optional) videoOnly; + return videoOnly; } /** * ID of multistream target object where to push this stream */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } /** @@ -149,7 +149,7 @@ public TargetAddPayload withVideoOnly(boolean videoOnly) { * video will be pushed to the target. * */ - public TargetAddPayload withVideoOnly(Optional videoOnly) { + public TargetAddPayload withVideoOnly(Optional videoOnly) { Utils.checkNotNull(videoOnly, "videoOnly"); this.videoOnly = videoOnly; return this; @@ -167,7 +167,7 @@ public TargetAddPayload withId(String id) { /** * ID of multistream target object where to push this stream */ - public TargetAddPayload withId(Optional id) { + public TargetAddPayload withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -207,15 +207,15 @@ public boolean equals(java.lang.Object o) { } TargetAddPayload other = (TargetAddPayload) o; return - java.util.Objects.deepEquals(this.profile, other.profile) && - java.util.Objects.deepEquals(this.videoOnly, other.videoOnly) && - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.spec, other.spec); + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.videoOnly, other.videoOnly) && + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.spec, other.spec); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( profile, videoOnly, id, @@ -235,9 +235,9 @@ public final static class Builder { private String profile; - private Optional videoOnly; + private Optional videoOnly; - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Optional spec = Optional.empty(); @@ -272,7 +272,7 @@ public Builder videoOnly(boolean videoOnly) { * video will be pushed to the target. * */ - public Builder videoOnly(Optional videoOnly) { + public Builder videoOnly(Optional videoOnly) { Utils.checkNotNull(videoOnly, "videoOnly"); this.videoOnly = videoOnly; return this; @@ -290,7 +290,7 @@ public Builder id(String id) { /** * ID of multistream target object where to push this stream */ - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -331,11 +331,11 @@ public TargetAddPayload build() { spec); } - private static final LazySingletonValue> _SINGLETON_VALUE_VideoOnly = + private static final LazySingletonValue> _SINGLETON_VALUE_VideoOnly = new LazySingletonValue<>( "videoOnly", "false", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayloadSpec.java b/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayloadSpec.java index b8dd2a4..ddf4551 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayloadSpec.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TargetAddPayloadSpec.java @@ -1,22 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TargetAddPayloadSpec - Inline multistream target object. Will automatically * create the target resource to be used by the created @@ -28,7 +27,7 @@ public class TargetAddPayloadSpec { @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; /** * Livepeer-compatible multistream target URL (RTMP(S) or SRT) @@ -38,7 +37,7 @@ public class TargetAddPayloadSpec { @JsonCreator public TargetAddPayloadSpec( - @JsonProperty("name") Optional name, + @JsonProperty("name") Optional name, @JsonProperty("url") String url) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(url, "url"); @@ -51,10 +50,9 @@ public TargetAddPayloadSpec( this(Optional.empty(), url); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } /** @@ -75,7 +73,7 @@ public TargetAddPayloadSpec withName(String name) { return this; } - public TargetAddPayloadSpec withName(Optional name) { + public TargetAddPayloadSpec withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -100,13 +98,13 @@ public boolean equals(java.lang.Object o) { } TargetAddPayloadSpec other = (TargetAddPayloadSpec) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.url, other.url); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.url, other.url); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, url); } @@ -120,7 +118,7 @@ public String toString() { public final static class Builder { - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); private String url; @@ -134,7 +132,7 @@ public Builder name(String name) { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java b/src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java index 9620424..cfa4331 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TargetOutput.java @@ -1,24 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; + public class TargetOutput { /** @@ -36,20 +37,20 @@ public class TargetOutput { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoOnly") - private Optional videoOnly; + private Optional videoOnly; /** * ID of multistream target object where to push this stream */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonCreator public TargetOutput( @JsonProperty("profile") String profile, - @JsonProperty("videoOnly") Optional videoOnly, - @JsonProperty("id") Optional id) { + @JsonProperty("videoOnly") Optional videoOnly, + @JsonProperty("id") Optional id) { Utils.checkNotNull(profile, "profile"); Utils.checkNotNull(videoOnly, "videoOnly"); Utils.checkNotNull(id, "id"); @@ -78,19 +79,17 @@ public String profile() { * video will be pushed to the target. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoOnly() { - return (Optional) videoOnly; + return videoOnly; } /** * ID of multistream target object where to push this stream */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } public final static Builder builder() { @@ -124,7 +123,7 @@ public TargetOutput withVideoOnly(boolean videoOnly) { * video will be pushed to the target. * */ - public TargetOutput withVideoOnly(Optional videoOnly) { + public TargetOutput withVideoOnly(Optional videoOnly) { Utils.checkNotNull(videoOnly, "videoOnly"); this.videoOnly = videoOnly; return this; @@ -142,7 +141,7 @@ public TargetOutput withId(String id) { /** * ID of multistream target object where to push this stream */ - public TargetOutput withId(Optional id) { + public TargetOutput withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -158,14 +157,14 @@ public boolean equals(java.lang.Object o) { } TargetOutput other = (TargetOutput) o; return - java.util.Objects.deepEquals(this.profile, other.profile) && - java.util.Objects.deepEquals(this.videoOnly, other.videoOnly) && - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.videoOnly, other.videoOnly) && + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( profile, videoOnly, id); @@ -183,9 +182,9 @@ public final static class Builder { private String profile; - private Optional videoOnly; + private Optional videoOnly; - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -218,7 +217,7 @@ public Builder videoOnly(boolean videoOnly) { * video will be pushed to the target. * */ - public Builder videoOnly(Optional videoOnly) { + public Builder videoOnly(Optional videoOnly) { Utils.checkNotNull(videoOnly, "videoOnly"); this.videoOnly = videoOnly; return this; @@ -236,7 +235,7 @@ public Builder id(String id) { /** * ID of multistream target object where to push this stream */ - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -252,11 +251,11 @@ public TargetOutput build() { id); } - private static final LazySingletonValue> _SINGLETON_VALUE_VideoOnly = + private static final LazySingletonValue> _SINGLETON_VALUE_VideoOnly = new LazySingletonValue<>( "videoOnly", "false", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TargetSpec.java b/src/main/java/studio/livepeer/livepeer/models/components/TargetSpec.java index 602ed94..01f7632 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TargetSpec.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TargetSpec.java @@ -1,22 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TargetSpec - Inline multistream target object. Will automatically * create the target resource to be used by the created @@ -28,7 +27,7 @@ public class TargetSpec { @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; /** * Livepeer-compatible multistream target URL (RTMP(S) or SRT) @@ -38,7 +37,7 @@ public class TargetSpec { @JsonCreator public TargetSpec( - @JsonProperty("name") Optional name, + @JsonProperty("name") Optional name, @JsonProperty("url") String url) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(url, "url"); @@ -51,10 +50,9 @@ public TargetSpec( this(Optional.empty(), url); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } /** @@ -75,7 +73,7 @@ public TargetSpec withName(String name) { return this; } - public TargetSpec withName(Optional name) { + public TargetSpec withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -100,13 +98,13 @@ public boolean equals(java.lang.Object o) { } TargetSpec other = (TargetSpec) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.url, other.url); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.url, other.url); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, url); } @@ -120,7 +118,7 @@ public String toString() { public final static class Builder { - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); private String url; @@ -134,7 +132,7 @@ public Builder name(String name) { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Task.java b/src/main/java/studio/livepeer/livepeer/models/components/Task.java index 03d3ad4..82d95a6 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Task.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Task.java @@ -1,23 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Task { /** @@ -25,7 +26,7 @@ public class Task { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; /** * Type of the task @@ -39,7 +40,7 @@ public class Task { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; /** * Timestamp (in milliseconds) at which the task was scheduled for @@ -48,28 +49,28 @@ public class Task { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("scheduledAt") - private Optional scheduledAt; + private Optional scheduledAt; /** * ID of the input asset */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("inputAssetId") - private Optional inputAssetId; + private Optional inputAssetId; /** * ID of the output asset */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("outputAssetId") - private Optional outputAssetId; + private Optional outputAssetId; /** * ID of the requester hash(IP + SALT + PlaybackId) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("requesterId") - private Optional requesterId; + private Optional requesterId; /** * Parameters of the task @@ -94,13 +95,13 @@ public class Task { @JsonCreator public Task( - @JsonProperty("id") Optional id, + @JsonProperty("id") Optional id, @JsonProperty("type") Optional type, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("scheduledAt") Optional scheduledAt, - @JsonProperty("inputAssetId") Optional inputAssetId, - @JsonProperty("outputAssetId") Optional outputAssetId, - @JsonProperty("requesterId") Optional requesterId, + @JsonProperty("createdAt") Optional createdAt, + @JsonProperty("scheduledAt") Optional scheduledAt, + @JsonProperty("inputAssetId") Optional inputAssetId, + @JsonProperty("outputAssetId") Optional outputAssetId, + @JsonProperty("requesterId") Optional requesterId, @JsonProperty("params") Optional params, @JsonProperty("status") Optional status, @JsonProperty("output") Optional output) { @@ -133,10 +134,9 @@ public Task() { /** * Task ID */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } /** @@ -151,10 +151,9 @@ public Optional type() { /** * Timestamp (in milliseconds) at which task was created */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } /** @@ -162,37 +161,33 @@ public Optional createdAt() { * execution (e.g. after file upload finished). * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional scheduledAt() { - return (Optional) scheduledAt; + return scheduledAt; } /** * ID of the input asset */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional inputAssetId() { - return (Optional) inputAssetId; + return inputAssetId; } /** * ID of the output asset */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional outputAssetId() { - return (Optional) outputAssetId; + return outputAssetId; } /** * ID of the requester hash(IP + SALT + PlaybackId) */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional requesterId() { - return (Optional) requesterId; + return requesterId; } /** @@ -238,7 +233,7 @@ public Task withId(String id) { /** * Task ID */ - public Task withId(Optional id) { + public Task withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -274,7 +269,7 @@ public Task withCreatedAt(double createdAt) { /** * Timestamp (in milliseconds) at which task was created */ - public Task withCreatedAt(Optional createdAt) { + public Task withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -296,7 +291,7 @@ public Task withScheduledAt(double scheduledAt) { * execution (e.g. after file upload finished). * */ - public Task withScheduledAt(Optional scheduledAt) { + public Task withScheduledAt(Optional scheduledAt) { Utils.checkNotNull(scheduledAt, "scheduledAt"); this.scheduledAt = scheduledAt; return this; @@ -314,7 +309,7 @@ public Task withInputAssetId(String inputAssetId) { /** * ID of the input asset */ - public Task withInputAssetId(Optional inputAssetId) { + public Task withInputAssetId(Optional inputAssetId) { Utils.checkNotNull(inputAssetId, "inputAssetId"); this.inputAssetId = inputAssetId; return this; @@ -332,7 +327,7 @@ public Task withOutputAssetId(String outputAssetId) { /** * ID of the output asset */ - public Task withOutputAssetId(Optional outputAssetId) { + public Task withOutputAssetId(Optional outputAssetId) { Utils.checkNotNull(outputAssetId, "outputAssetId"); this.outputAssetId = outputAssetId; return this; @@ -350,7 +345,7 @@ public Task withRequesterId(String requesterId) { /** * ID of the requester hash(IP + SALT + PlaybackId) */ - public Task withRequesterId(Optional requesterId) { + public Task withRequesterId(Optional requesterId) { Utils.checkNotNull(requesterId, "requesterId"); this.requesterId = requesterId; return this; @@ -420,21 +415,21 @@ public boolean equals(java.lang.Object o) { } Task other = (Task) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.scheduledAt, other.scheduledAt) && - java.util.Objects.deepEquals(this.inputAssetId, other.inputAssetId) && - java.util.Objects.deepEquals(this.outputAssetId, other.outputAssetId) && - java.util.Objects.deepEquals(this.requesterId, other.requesterId) && - java.util.Objects.deepEquals(this.params, other.params) && - java.util.Objects.deepEquals(this.status, other.status) && - java.util.Objects.deepEquals(this.output, other.output); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.scheduledAt, other.scheduledAt) && + Objects.deepEquals(this.inputAssetId, other.inputAssetId) && + Objects.deepEquals(this.outputAssetId, other.outputAssetId) && + Objects.deepEquals(this.requesterId, other.requesterId) && + Objects.deepEquals(this.params, other.params) && + Objects.deepEquals(this.status, other.status) && + Objects.deepEquals(this.output, other.output); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, type, createdAt, @@ -464,19 +459,19 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Optional type = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); - private Optional scheduledAt = Optional.empty(); + private Optional scheduledAt = Optional.empty(); - private Optional inputAssetId = Optional.empty(); + private Optional inputAssetId = Optional.empty(); - private Optional outputAssetId = Optional.empty(); + private Optional outputAssetId = Optional.empty(); - private Optional requesterId = Optional.empty(); + private Optional requesterId = Optional.empty(); private Optional params = Optional.empty(); @@ -500,7 +495,7 @@ public Builder id(String id) { /** * Task ID */ - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -536,7 +531,7 @@ public Builder createdAt(double createdAt) { /** * Timestamp (in milliseconds) at which task was created */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -558,7 +553,7 @@ public Builder scheduledAt(double scheduledAt) { * execution (e.g. after file upload finished). * */ - public Builder scheduledAt(Optional scheduledAt) { + public Builder scheduledAt(Optional scheduledAt) { Utils.checkNotNull(scheduledAt, "scheduledAt"); this.scheduledAt = scheduledAt; return this; @@ -576,7 +571,7 @@ public Builder inputAssetId(String inputAssetId) { /** * ID of the input asset */ - public Builder inputAssetId(Optional inputAssetId) { + public Builder inputAssetId(Optional inputAssetId) { Utils.checkNotNull(inputAssetId, "inputAssetId"); this.inputAssetId = inputAssetId; return this; @@ -594,7 +589,7 @@ public Builder outputAssetId(String outputAssetId) { /** * ID of the output asset */ - public Builder outputAssetId(Optional outputAssetId) { + public Builder outputAssetId(Optional outputAssetId) { Utils.checkNotNull(outputAssetId, "outputAssetId"); this.outputAssetId = outputAssetId; return this; @@ -612,7 +607,7 @@ public Builder requesterId(String requesterId) { /** * ID of the requester hash(IP + SALT + PlaybackId) */ - public Builder requesterId(Optional requesterId) { + public Builder requesterId(Optional requesterId) { Utils.checkNotNull(requesterId, "requesterId"); this.requesterId = requesterId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskExportData.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskExportData.java index 478c590..94fa304 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskExportData.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskExportData.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TaskExportData - Parameters for the export-data task */ @@ -38,21 +38,21 @@ public class TaskExportData { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("type") - private Optional type; + private Optional type; /** * Optional ID of the content */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonCreator public TaskExportData( @JsonProperty("content") Content content, @JsonProperty("ipfs") Optional ipfs, - @JsonProperty("type") Optional type, - @JsonProperty("id") Optional id) { + @JsonProperty("type") Optional type, + @JsonProperty("id") Optional id) { Utils.checkNotNull(content, "content"); Utils.checkNotNull(ipfs, "ipfs"); Utils.checkNotNull(type, "type"); @@ -85,19 +85,17 @@ public Optional ipfs() { /** * Optional type of content */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional type() { - return (Optional) type; + return type; } /** * Optional ID of the content */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } public final static Builder builder() { @@ -137,7 +135,7 @@ public TaskExportData withType(String type) { /** * Optional type of content */ - public TaskExportData withType(Optional type) { + public TaskExportData withType(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -155,7 +153,7 @@ public TaskExportData withId(String id) { /** * Optional ID of the content */ - public TaskExportData withId(Optional id) { + public TaskExportData withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -171,15 +169,15 @@ public boolean equals(java.lang.Object o) { } TaskExportData other = (TaskExportData) o; return - java.util.Objects.deepEquals(this.content, other.content) && - java.util.Objects.deepEquals(this.ipfs, other.ipfs) && - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.content, other.content) && + Objects.deepEquals(this.ipfs, other.ipfs) && + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( content, ipfs, type, @@ -201,9 +199,9 @@ public final static class Builder { private Optional ipfs = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -242,7 +240,7 @@ public Builder type(String type) { /** * Optional type of content */ - public Builder type(Optional type) { + public Builder type(Optional type) { Utils.checkNotNull(type, "type"); this.type = type; return this; @@ -260,7 +258,7 @@ public Builder id(String id) { /** * Optional ID of the content */ - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskHls.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskHls.java index 1af1089..1a26e0e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskHls.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskHls.java @@ -1,22 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TaskHls - HLS output format */ @@ -28,11 +27,11 @@ public class TaskHls { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("path") - private Optional path; + private Optional path; @JsonCreator public TaskHls( - @JsonProperty("path") Optional path) { + @JsonProperty("path") Optional path) { Utils.checkNotNull(path, "path"); this.path = path; } @@ -44,10 +43,9 @@ public TaskHls() { /** * Path for the HLS output */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional path() { - return (Optional) path; + return path; } public final static Builder builder() { @@ -66,7 +64,7 @@ public TaskHls withPath(String path) { /** * Path for the HLS output */ - public TaskHls withPath(Optional path) { + public TaskHls withPath(Optional path) { Utils.checkNotNull(path, "path"); this.path = path; return this; @@ -82,12 +80,12 @@ public boolean equals(java.lang.Object o) { } TaskHls other = (TaskHls) o; return - java.util.Objects.deepEquals(this.path, other.path); + Objects.deepEquals(this.path, other.path); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( path); } @@ -99,7 +97,7 @@ public String toString() { public final static class Builder { - private Optional path = Optional.empty(); + private Optional path = Optional.empty(); private Builder() { // force use of static builder() method @@ -117,7 +115,7 @@ public Builder path(String path) { /** * Path for the HLS output */ - public Builder path(Optional path) { + public Builder path(Optional path) { Utils.checkNotNull(path, "path"); this.path = path; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskInput.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskInput.java index b0a8989..9db4ed2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskInput.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskInput.java @@ -1,22 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TaskInput - Input video file to transcode */ @@ -30,11 +29,11 @@ public class TaskInput { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") - private Optional url; + private Optional url; @JsonCreator public TaskInput( - @JsonProperty("url") Optional url) { + @JsonProperty("url") Optional url) { Utils.checkNotNull(url, "url"); this.url = url; } @@ -48,10 +47,9 @@ public TaskInput() { * "s3+https" * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional url() { - return (Optional) url; + return url; } public final static Builder builder() { @@ -74,7 +72,7 @@ public TaskInput withUrl(String url) { * "s3+https" * */ - public TaskInput withUrl(Optional url) { + public TaskInput withUrl(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -90,12 +88,12 @@ public boolean equals(java.lang.Object o) { } TaskInput other = (TaskInput) o; return - java.util.Objects.deepEquals(this.url, other.url); + Objects.deepEquals(this.url, other.url); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( url); } @@ -107,7 +105,7 @@ public String toString() { public final static class Builder { - private Optional url = Optional.empty(); + private Optional url = Optional.empty(); private Builder() { // force use of static builder() method @@ -129,7 +127,7 @@ public Builder url(String url) { * "s3+https" * */ - public Builder url(Optional url) { + public Builder url(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskIpfs.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskIpfs.java index e4716b3..db7c940 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskIpfs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskIpfs.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class TaskIpfs { /** @@ -31,28 +30,28 @@ public class TaskIpfs { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFileUrl") - private Optional videoFileUrl; + private Optional videoFileUrl; /** * URL to access file via HTTP through an IPFS gateway */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("videoFileGatewayUrl") - private Optional videoFileGatewayUrl; + private Optional videoFileGatewayUrl; /** * IPFS CID of the default metadata exported for the video */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("nftMetadataCid") - private Optional nftMetadataCid; + private Optional nftMetadataCid; /** * URL for the metadata file with the IPFS protocol */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("nftMetadataUrl") - private Optional nftMetadataUrl; + private Optional nftMetadataUrl; /** * URL to access metadata file via HTTP through an IPFS @@ -61,16 +60,16 @@ public class TaskIpfs { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("nftMetadataGatewayUrl") - private Optional nftMetadataGatewayUrl; + private Optional nftMetadataGatewayUrl; @JsonCreator public TaskIpfs( @JsonProperty("videoFileCid") String videoFileCid, - @JsonProperty("videoFileUrl") Optional videoFileUrl, - @JsonProperty("videoFileGatewayUrl") Optional videoFileGatewayUrl, - @JsonProperty("nftMetadataCid") Optional nftMetadataCid, - @JsonProperty("nftMetadataUrl") Optional nftMetadataUrl, - @JsonProperty("nftMetadataGatewayUrl") Optional nftMetadataGatewayUrl) { + @JsonProperty("videoFileUrl") Optional videoFileUrl, + @JsonProperty("videoFileGatewayUrl") Optional videoFileGatewayUrl, + @JsonProperty("nftMetadataCid") Optional nftMetadataCid, + @JsonProperty("nftMetadataUrl") Optional nftMetadataUrl, + @JsonProperty("nftMetadataGatewayUrl") Optional nftMetadataGatewayUrl) { Utils.checkNotNull(videoFileCid, "videoFileCid"); Utils.checkNotNull(videoFileUrl, "videoFileUrl"); Utils.checkNotNull(videoFileGatewayUrl, "videoFileGatewayUrl"); @@ -101,37 +100,33 @@ public String videoFileCid() { /** * URL for the file with the IPFS protocol */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoFileUrl() { - return (Optional) videoFileUrl; + return videoFileUrl; } /** * URL to access file via HTTP through an IPFS gateway */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional videoFileGatewayUrl() { - return (Optional) videoFileGatewayUrl; + return videoFileGatewayUrl; } /** * IPFS CID of the default metadata exported for the video */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional nftMetadataCid() { - return (Optional) nftMetadataCid; + return nftMetadataCid; } /** * URL for the metadata file with the IPFS protocol */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional nftMetadataUrl() { - return (Optional) nftMetadataUrl; + return nftMetadataUrl; } /** @@ -139,10 +134,9 @@ public Optional nftMetadataUrl() { * gateway * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional nftMetadataGatewayUrl() { - return (Optional) nftMetadataGatewayUrl; + return nftMetadataGatewayUrl; } public final static Builder builder() { @@ -170,7 +164,7 @@ public TaskIpfs withVideoFileUrl(String videoFileUrl) { /** * URL for the file with the IPFS protocol */ - public TaskIpfs withVideoFileUrl(Optional videoFileUrl) { + public TaskIpfs withVideoFileUrl(Optional videoFileUrl) { Utils.checkNotNull(videoFileUrl, "videoFileUrl"); this.videoFileUrl = videoFileUrl; return this; @@ -188,7 +182,7 @@ public TaskIpfs withVideoFileGatewayUrl(String videoFileGatewayUrl) { /** * URL to access file via HTTP through an IPFS gateway */ - public TaskIpfs withVideoFileGatewayUrl(Optional videoFileGatewayUrl) { + public TaskIpfs withVideoFileGatewayUrl(Optional videoFileGatewayUrl) { Utils.checkNotNull(videoFileGatewayUrl, "videoFileGatewayUrl"); this.videoFileGatewayUrl = videoFileGatewayUrl; return this; @@ -206,7 +200,7 @@ public TaskIpfs withNftMetadataCid(String nftMetadataCid) { /** * IPFS CID of the default metadata exported for the video */ - public TaskIpfs withNftMetadataCid(Optional nftMetadataCid) { + public TaskIpfs withNftMetadataCid(Optional nftMetadataCid) { Utils.checkNotNull(nftMetadataCid, "nftMetadataCid"); this.nftMetadataCid = nftMetadataCid; return this; @@ -224,7 +218,7 @@ public TaskIpfs withNftMetadataUrl(String nftMetadataUrl) { /** * URL for the metadata file with the IPFS protocol */ - public TaskIpfs withNftMetadataUrl(Optional nftMetadataUrl) { + public TaskIpfs withNftMetadataUrl(Optional nftMetadataUrl) { Utils.checkNotNull(nftMetadataUrl, "nftMetadataUrl"); this.nftMetadataUrl = nftMetadataUrl; return this; @@ -246,7 +240,7 @@ public TaskIpfs withNftMetadataGatewayUrl(String nftMetadataGatewayUrl) { * gateway * */ - public TaskIpfs withNftMetadataGatewayUrl(Optional nftMetadataGatewayUrl) { + public TaskIpfs withNftMetadataGatewayUrl(Optional nftMetadataGatewayUrl) { Utils.checkNotNull(nftMetadataGatewayUrl, "nftMetadataGatewayUrl"); this.nftMetadataGatewayUrl = nftMetadataGatewayUrl; return this; @@ -262,17 +256,17 @@ public boolean equals(java.lang.Object o) { } TaskIpfs other = (TaskIpfs) o; return - java.util.Objects.deepEquals(this.videoFileCid, other.videoFileCid) && - java.util.Objects.deepEquals(this.videoFileUrl, other.videoFileUrl) && - java.util.Objects.deepEquals(this.videoFileGatewayUrl, other.videoFileGatewayUrl) && - java.util.Objects.deepEquals(this.nftMetadataCid, other.nftMetadataCid) && - java.util.Objects.deepEquals(this.nftMetadataUrl, other.nftMetadataUrl) && - java.util.Objects.deepEquals(this.nftMetadataGatewayUrl, other.nftMetadataGatewayUrl); + Objects.deepEquals(this.videoFileCid, other.videoFileCid) && + Objects.deepEquals(this.videoFileUrl, other.videoFileUrl) && + Objects.deepEquals(this.videoFileGatewayUrl, other.videoFileGatewayUrl) && + Objects.deepEquals(this.nftMetadataCid, other.nftMetadataCid) && + Objects.deepEquals(this.nftMetadataUrl, other.nftMetadataUrl) && + Objects.deepEquals(this.nftMetadataGatewayUrl, other.nftMetadataGatewayUrl); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( videoFileCid, videoFileUrl, videoFileGatewayUrl, @@ -296,15 +290,15 @@ public final static class Builder { private String videoFileCid; - private Optional videoFileUrl = Optional.empty(); + private Optional videoFileUrl = Optional.empty(); - private Optional videoFileGatewayUrl = Optional.empty(); + private Optional videoFileGatewayUrl = Optional.empty(); - private Optional nftMetadataCid = Optional.empty(); + private Optional nftMetadataCid = Optional.empty(); - private Optional nftMetadataUrl = Optional.empty(); + private Optional nftMetadataUrl = Optional.empty(); - private Optional nftMetadataGatewayUrl = Optional.empty(); + private Optional nftMetadataGatewayUrl = Optional.empty(); private Builder() { // force use of static builder() method @@ -331,7 +325,7 @@ public Builder videoFileUrl(String videoFileUrl) { /** * URL for the file with the IPFS protocol */ - public Builder videoFileUrl(Optional videoFileUrl) { + public Builder videoFileUrl(Optional videoFileUrl) { Utils.checkNotNull(videoFileUrl, "videoFileUrl"); this.videoFileUrl = videoFileUrl; return this; @@ -349,7 +343,7 @@ public Builder videoFileGatewayUrl(String videoFileGatewayUrl) { /** * URL to access file via HTTP through an IPFS gateway */ - public Builder videoFileGatewayUrl(Optional videoFileGatewayUrl) { + public Builder videoFileGatewayUrl(Optional videoFileGatewayUrl) { Utils.checkNotNull(videoFileGatewayUrl, "videoFileGatewayUrl"); this.videoFileGatewayUrl = videoFileGatewayUrl; return this; @@ -367,7 +361,7 @@ public Builder nftMetadataCid(String nftMetadataCid) { /** * IPFS CID of the default metadata exported for the video */ - public Builder nftMetadataCid(Optional nftMetadataCid) { + public Builder nftMetadataCid(Optional nftMetadataCid) { Utils.checkNotNull(nftMetadataCid, "nftMetadataCid"); this.nftMetadataCid = nftMetadataCid; return this; @@ -385,7 +379,7 @@ public Builder nftMetadataUrl(String nftMetadataUrl) { /** * URL for the metadata file with the IPFS protocol */ - public Builder nftMetadataUrl(Optional nftMetadataUrl) { + public Builder nftMetadataUrl(Optional nftMetadataUrl) { Utils.checkNotNull(nftMetadataUrl, "nftMetadataUrl"); this.nftMetadataUrl = nftMetadataUrl; return this; @@ -407,7 +401,7 @@ public Builder nftMetadataGatewayUrl(String nftMetadataGatewayUrl) { * gateway * */ - public Builder nftMetadataGatewayUrl(Optional nftMetadataGatewayUrl) { + public Builder nftMetadataGatewayUrl(Optional nftMetadataGatewayUrl) { Utils.checkNotNull(nftMetadataGatewayUrl, "nftMetadataGatewayUrl"); this.nftMetadataGatewayUrl = nftMetadataGatewayUrl; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskMp4.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskMp4.java index eb9ebb9..1bd1e91 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskMp4.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskMp4.java @@ -1,22 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TaskMp4 - MP4 output format */ @@ -28,11 +27,11 @@ public class TaskMp4 { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("path") - private Optional path; + private Optional path; @JsonCreator public TaskMp4( - @JsonProperty("path") Optional path) { + @JsonProperty("path") Optional path) { Utils.checkNotNull(path, "path"); this.path = path; } @@ -44,10 +43,9 @@ public TaskMp4() { /** * Path for the MP4 output */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional path() { - return (Optional) path; + return path; } public final static Builder builder() { @@ -66,7 +64,7 @@ public TaskMp4 withPath(String path) { /** * Path for the MP4 output */ - public TaskMp4 withPath(Optional path) { + public TaskMp4 withPath(Optional path) { Utils.checkNotNull(path, "path"); this.path = path; return this; @@ -82,12 +80,12 @@ public boolean equals(java.lang.Object o) { } TaskMp4 other = (TaskMp4) o; return - java.util.Objects.deepEquals(this.path, other.path); + Objects.deepEquals(this.path, other.path); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( path); } @@ -99,7 +97,7 @@ public String toString() { public final static class Builder { - private Optional path = Optional.empty(); + private Optional path = Optional.empty(); private Builder() { // force use of static builder() method @@ -117,7 +115,7 @@ public Builder path(String path) { /** * Path for the MP4 output */ - public Builder path(Optional path) { + public Builder path(Optional path) { Utils.checkNotNull(path, "path"); this.path = path; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskOutputIpfs.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskOutputIpfs.java index 42a569e..9a42f56 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskOutputIpfs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskOutputIpfs.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class TaskOutputIpfs { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } TaskOutputIpfs other = (TaskOutputIpfs) o; return - java.util.Objects.deepEquals(this.cid, other.cid); + Objects.deepEquals(this.cid, other.cid); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( cid); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskOutputs.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskOutputs.java index be2d640..01fa334 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskOutputs.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskOutputs.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TaskOutputs - Output formats */ @@ -119,13 +119,13 @@ public boolean equals(java.lang.Object o) { } TaskOutputs other = (TaskOutputs) o; return - java.util.Objects.deepEquals(this.hls, other.hls) && - java.util.Objects.deepEquals(this.mp4, other.mp4); + Objects.deepEquals(this.hls, other.hls) && + Objects.deepEquals(this.mp4, other.mp4); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( hls, mp4); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskPhase.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskPhase.java index 86b70de..240c422 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskPhase.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskPhase.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * TaskPhase - Phase of the task diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskStatus.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskStatus.java index 3c87dc3..279dda3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskStatus.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskStatus.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TaskStatus - Status of the task */ @@ -40,29 +40,29 @@ public class TaskStatus { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("progress") - private Optional progress; + private Optional progress; /** * Error message if the task failed */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("errorMessage") - private Optional errorMessage; + private Optional errorMessage; /** * Number of retries done on the task */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("retries") - private Optional retries; + private Optional retries; @JsonCreator public TaskStatus( @JsonProperty("phase") TaskPhase phase, @JsonProperty("updatedAt") double updatedAt, - @JsonProperty("progress") Optional progress, - @JsonProperty("errorMessage") Optional errorMessage, - @JsonProperty("retries") Optional retries) { + @JsonProperty("progress") Optional progress, + @JsonProperty("errorMessage") Optional errorMessage, + @JsonProperty("retries") Optional retries) { Utils.checkNotNull(phase, "phase"); Utils.checkNotNull(updatedAt, "updatedAt"); Utils.checkNotNull(progress, "progress"); @@ -100,28 +100,25 @@ public double updatedAt() { /** * Current progress of the task in a 0-1 ratio */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional progress() { - return (Optional) progress; + return progress; } /** * Error message if the task failed */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional errorMessage() { - return (Optional) errorMessage; + return errorMessage; } /** * Number of retries done on the task */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional retries() { - return (Optional) retries; + return retries; } public final static Builder builder() { @@ -158,7 +155,7 @@ public TaskStatus withProgress(double progress) { /** * Current progress of the task in a 0-1 ratio */ - public TaskStatus withProgress(Optional progress) { + public TaskStatus withProgress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; @@ -176,7 +173,7 @@ public TaskStatus withErrorMessage(String errorMessage) { /** * Error message if the task failed */ - public TaskStatus withErrorMessage(Optional errorMessage) { + public TaskStatus withErrorMessage(Optional errorMessage) { Utils.checkNotNull(errorMessage, "errorMessage"); this.errorMessage = errorMessage; return this; @@ -194,7 +191,7 @@ public TaskStatus withRetries(double retries) { /** * Number of retries done on the task */ - public TaskStatus withRetries(Optional retries) { + public TaskStatus withRetries(Optional retries) { Utils.checkNotNull(retries, "retries"); this.retries = retries; return this; @@ -210,16 +207,16 @@ public boolean equals(java.lang.Object o) { } TaskStatus other = (TaskStatus) o; return - java.util.Objects.deepEquals(this.phase, other.phase) && - java.util.Objects.deepEquals(this.updatedAt, other.updatedAt) && - java.util.Objects.deepEquals(this.progress, other.progress) && - java.util.Objects.deepEquals(this.errorMessage, other.errorMessage) && - java.util.Objects.deepEquals(this.retries, other.retries); + Objects.deepEquals(this.phase, other.phase) && + Objects.deepEquals(this.updatedAt, other.updatedAt) && + Objects.deepEquals(this.progress, other.progress) && + Objects.deepEquals(this.errorMessage, other.errorMessage) && + Objects.deepEquals(this.retries, other.retries); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( phase, updatedAt, progress, @@ -243,11 +240,11 @@ public final static class Builder { private Double updatedAt; - private Optional progress = Optional.empty(); + private Optional progress = Optional.empty(); - private Optional errorMessage = Optional.empty(); + private Optional errorMessage = Optional.empty(); - private Optional retries = Optional.empty(); + private Optional retries = Optional.empty(); private Builder() { // force use of static builder() method @@ -283,7 +280,7 @@ public Builder progress(double progress) { /** * Current progress of the task in a 0-1 ratio */ - public Builder progress(Optional progress) { + public Builder progress(Optional progress) { Utils.checkNotNull(progress, "progress"); this.progress = progress; return this; @@ -301,7 +298,7 @@ public Builder errorMessage(String errorMessage) { /** * Error message if the task failed */ - public Builder errorMessage(Optional errorMessage) { + public Builder errorMessage(Optional errorMessage) { Utils.checkNotNull(errorMessage, "errorMessage"); this.errorMessage = errorMessage; return this; @@ -319,7 +316,7 @@ public Builder retries(double retries) { /** * Number of retries done on the task */ - public Builder retries(Optional retries) { + public Builder retries(Optional retries) { Utils.checkNotNull(retries, "retries"); this.retries = retries; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskStorage.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskStorage.java index a3b4a02..9992a33 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskStorage.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskStorage.java @@ -1,22 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TaskStorage - Storage for the output files */ @@ -30,11 +29,11 @@ public class TaskStorage { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") - private Optional url; + private Optional url; @JsonCreator public TaskStorage( - @JsonProperty("url") Optional url) { + @JsonProperty("url") Optional url) { Utils.checkNotNull(url, "url"); this.url = url; } @@ -48,10 +47,9 @@ public TaskStorage() { * "s3+https" * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional url() { - return (Optional) url; + return url; } public final static Builder builder() { @@ -74,7 +72,7 @@ public TaskStorage withUrl(String url) { * "s3+https" * */ - public TaskStorage withUrl(Optional url) { + public TaskStorage withUrl(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -90,12 +88,12 @@ public boolean equals(java.lang.Object o) { } TaskStorage other = (TaskStorage) o; return - java.util.Objects.deepEquals(this.url, other.url); + Objects.deepEquals(this.url, other.url); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( url); } @@ -107,7 +105,7 @@ public String toString() { public final static class Builder { - private Optional url = Optional.empty(); + private Optional url = Optional.empty(); private Builder() { // force use of static builder() method @@ -129,7 +127,7 @@ public Builder url(String url) { * "s3+https" * */ - public Builder url(Optional url) { + public Builder url(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TaskType.java b/src/main/java/studio/livepeer/livepeer/models/components/TaskType.java index aac0ebe..8f6385c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TaskType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TaskType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * TaskType - Type of the task diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Tasks.java b/src/main/java/studio/livepeer/livepeer/models/components/Tasks.java index 2f6271d..d055e2f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Tasks.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Tasks.java @@ -1,23 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Tasks { /** @@ -27,7 +26,7 @@ public class Tasks { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("pending") - private Optional pending; + private Optional pending; /** * ID of the last task to run successfully, that created @@ -36,20 +35,20 @@ public class Tasks { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("last") - private Optional last; + private Optional last; /** * ID of the last task to fail execution. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("failed") - private Optional failed; + private Optional failed; @JsonCreator public Tasks( - @JsonProperty("pending") Optional pending, - @JsonProperty("last") Optional last, - @JsonProperty("failed") Optional failed) { + @JsonProperty("pending") Optional pending, + @JsonProperty("last") Optional last, + @JsonProperty("failed") Optional failed) { Utils.checkNotNull(pending, "pending"); Utils.checkNotNull(last, "last"); Utils.checkNotNull(failed, "failed"); @@ -67,10 +66,9 @@ public Tasks() { * asset to IPFS. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional pending() { - return (Optional) pending; + return pending; } /** @@ -78,19 +76,17 @@ public Optional pending() { * the currently saved data. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional last() { - return (Optional) last; + return last; } /** * ID of the last task to fail execution. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional failed() { - return (Optional) failed; + return failed; } public final static Builder builder() { @@ -113,7 +109,7 @@ public Tasks withPending(String pending) { * asset to IPFS. * */ - public Tasks withPending(Optional pending) { + public Tasks withPending(Optional pending) { Utils.checkNotNull(pending, "pending"); this.pending = pending; return this; @@ -135,7 +131,7 @@ public Tasks withLast(String last) { * the currently saved data. * */ - public Tasks withLast(Optional last) { + public Tasks withLast(Optional last) { Utils.checkNotNull(last, "last"); this.last = last; return this; @@ -153,7 +149,7 @@ public Tasks withFailed(String failed) { /** * ID of the last task to fail execution. */ - public Tasks withFailed(Optional failed) { + public Tasks withFailed(Optional failed) { Utils.checkNotNull(failed, "failed"); this.failed = failed; return this; @@ -169,14 +165,14 @@ public boolean equals(java.lang.Object o) { } Tasks other = (Tasks) o; return - java.util.Objects.deepEquals(this.pending, other.pending) && - java.util.Objects.deepEquals(this.last, other.last) && - java.util.Objects.deepEquals(this.failed, other.failed); + Objects.deepEquals(this.pending, other.pending) && + Objects.deepEquals(this.last, other.last) && + Objects.deepEquals(this.failed, other.failed); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( pending, last, failed); @@ -192,11 +188,11 @@ public String toString() { public final static class Builder { - private Optional pending = Optional.empty(); + private Optional pending = Optional.empty(); - private Optional last = Optional.empty(); + private Optional last = Optional.empty(); - private Optional failed = Optional.empty(); + private Optional failed = Optional.empty(); private Builder() { // force use of static builder() method @@ -218,7 +214,7 @@ public Builder pending(String pending) { * asset to IPFS. * */ - public Builder pending(Optional pending) { + public Builder pending(Optional pending) { Utils.checkNotNull(pending, "pending"); this.pending = pending; return this; @@ -240,7 +236,7 @@ public Builder last(String last) { * the currently saved data. * */ - public Builder last(Optional last) { + public Builder last(Optional last) { Utils.checkNotNull(last, "last"); this.last = last; return this; @@ -258,7 +254,7 @@ public Builder failed(String failed) { /** * ID of the last task to fail execution. */ - public Builder failed(Optional failed) { + public Builder failed(Optional failed) { Utils.checkNotNull(failed, "failed"); this.failed = failed; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Three.java b/src/main/java/studio/livepeer/livepeer/models/components/Three.java index 80f3add..aeb5999 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Three.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Three.java @@ -1,31 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; @JsonDeserialize(using = Three._Deserializer.class) public class Three { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private Three(TypedObject value) { @@ -39,13 +36,13 @@ public static Three of(String value) { public static Three of(double value) { Utils.checkNotNull(value, "value"); - return new Three(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new Three(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *

    - *
  • {@code String}
  • + *
  • {@code java.lang.String}
  • *
  • {@code double}
  • *
* @@ -73,21 +70,21 @@ public boolean equals(java.lang.Object o) { return false; } Three other = (Three) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Three.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Tracks.java b/src/main/java/studio/livepeer/livepeer/models/components/Tracks.java index 84502f7..fc31952 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Tracks.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Tracks.java @@ -1,23 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Tracks { /** @@ -37,56 +37,56 @@ public class Tracks { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("startTime") - private Optional startTime; + private Optional startTime; /** * Duration of the track in seconds */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; /** * Bitrate of the track in bits per second */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; /** * Width of the track - only for video tracks */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; /** * Height of the track - only for video tracks */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; /** * Pixel format of the track - only for video tracks */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("pixelFormat") - private Optional pixelFormat; + private Optional pixelFormat; /** * Frame rate of the track - only for video tracks */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("fps") - private Optional fps; + private Optional fps; /** * Amount of audio channels in the track */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("channels") - private Optional channels; + private Optional channels; /** * Sample rate of the track in samples per second - only for @@ -95,29 +95,29 @@ public class Tracks { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sampleRate") - private Optional sampleRate; + private Optional sampleRate; /** * Bit depth of the track - only for audio tracks */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitDepth") - private Optional bitDepth; + private Optional bitDepth; @JsonCreator public Tracks( @JsonProperty("type") AssetVideoSpecType type, @JsonProperty("codec") String codec, - @JsonProperty("startTime") Optional startTime, - @JsonProperty("duration") Optional duration, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("width") Optional width, - @JsonProperty("height") Optional height, - @JsonProperty("pixelFormat") Optional pixelFormat, - @JsonProperty("fps") Optional fps, - @JsonProperty("channels") Optional channels, - @JsonProperty("sampleRate") Optional sampleRate, - @JsonProperty("bitDepth") Optional bitDepth) { + @JsonProperty("startTime") Optional startTime, + @JsonProperty("duration") Optional duration, + @JsonProperty("bitrate") Optional bitrate, + @JsonProperty("width") Optional width, + @JsonProperty("height") Optional height, + @JsonProperty("pixelFormat") Optional pixelFormat, + @JsonProperty("fps") Optional fps, + @JsonProperty("channels") Optional channels, + @JsonProperty("sampleRate") Optional sampleRate, + @JsonProperty("bitDepth") Optional bitDepth) { Utils.checkNotNull(type, "type"); Utils.checkNotNull(codec, "codec"); Utils.checkNotNull(startTime, "startTime"); @@ -169,73 +169,65 @@ public String codec() { /** * Start time of the track in seconds */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional startTime() { - return (Optional) startTime; + return startTime; } /** * Duration of the track in seconds */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } /** * Bitrate of the track in bits per second */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } /** * Width of the track - only for video tracks */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } /** * Height of the track - only for video tracks */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } /** * Pixel format of the track - only for video tracks */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional pixelFormat() { - return (Optional) pixelFormat; + return pixelFormat; } /** * Frame rate of the track - only for video tracks */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional fps() { - return (Optional) fps; + return fps; } /** * Amount of audio channels in the track */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional channels() { - return (Optional) channels; + return channels; } /** @@ -243,19 +235,17 @@ public Optional channels() { * audio tracks * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sampleRate() { - return (Optional) sampleRate; + return sampleRate; } /** * Bit depth of the track - only for audio tracks */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitDepth() { - return (Optional) bitDepth; + return bitDepth; } public final static Builder builder() { @@ -292,7 +282,7 @@ public Tracks withStartTime(double startTime) { /** * Start time of the track in seconds */ - public Tracks withStartTime(Optional startTime) { + public Tracks withStartTime(Optional startTime) { Utils.checkNotNull(startTime, "startTime"); this.startTime = startTime; return this; @@ -310,7 +300,7 @@ public Tracks withDuration(double duration) { /** * Duration of the track in seconds */ - public Tracks withDuration(Optional duration) { + public Tracks withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -328,7 +318,7 @@ public Tracks withBitrate(double bitrate) { /** * Bitrate of the track in bits per second */ - public Tracks withBitrate(Optional bitrate) { + public Tracks withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -346,7 +336,7 @@ public Tracks withWidth(double width) { /** * Width of the track - only for video tracks */ - public Tracks withWidth(Optional width) { + public Tracks withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -364,7 +354,7 @@ public Tracks withHeight(double height) { /** * Height of the track - only for video tracks */ - public Tracks withHeight(Optional height) { + public Tracks withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -382,7 +372,7 @@ public Tracks withPixelFormat(String pixelFormat) { /** * Pixel format of the track - only for video tracks */ - public Tracks withPixelFormat(Optional pixelFormat) { + public Tracks withPixelFormat(Optional pixelFormat) { Utils.checkNotNull(pixelFormat, "pixelFormat"); this.pixelFormat = pixelFormat; return this; @@ -400,7 +390,7 @@ public Tracks withFps(double fps) { /** * Frame rate of the track - only for video tracks */ - public Tracks withFps(Optional fps) { + public Tracks withFps(Optional fps) { Utils.checkNotNull(fps, "fps"); this.fps = fps; return this; @@ -418,7 +408,7 @@ public Tracks withChannels(double channels) { /** * Amount of audio channels in the track */ - public Tracks withChannels(Optional channels) { + public Tracks withChannels(Optional channels) { Utils.checkNotNull(channels, "channels"); this.channels = channels; return this; @@ -440,7 +430,7 @@ public Tracks withSampleRate(double sampleRate) { * audio tracks * */ - public Tracks withSampleRate(Optional sampleRate) { + public Tracks withSampleRate(Optional sampleRate) { Utils.checkNotNull(sampleRate, "sampleRate"); this.sampleRate = sampleRate; return this; @@ -458,7 +448,7 @@ public Tracks withBitDepth(double bitDepth) { /** * Bit depth of the track - only for audio tracks */ - public Tracks withBitDepth(Optional bitDepth) { + public Tracks withBitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; @@ -474,23 +464,23 @@ public boolean equals(java.lang.Object o) { } Tracks other = (Tracks) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.codec, other.codec) && - java.util.Objects.deepEquals(this.startTime, other.startTime) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.pixelFormat, other.pixelFormat) && - java.util.Objects.deepEquals(this.fps, other.fps) && - java.util.Objects.deepEquals(this.channels, other.channels) && - java.util.Objects.deepEquals(this.sampleRate, other.sampleRate) && - java.util.Objects.deepEquals(this.bitDepth, other.bitDepth); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.codec, other.codec) && + Objects.deepEquals(this.startTime, other.startTime) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.pixelFormat, other.pixelFormat) && + Objects.deepEquals(this.fps, other.fps) && + Objects.deepEquals(this.channels, other.channels) && + Objects.deepEquals(this.sampleRate, other.sampleRate) && + Objects.deepEquals(this.bitDepth, other.bitDepth); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, codec, startTime, @@ -528,25 +518,25 @@ public final static class Builder { private String codec; - private Optional startTime = Optional.empty(); + private Optional startTime = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); - private Optional pixelFormat = Optional.empty(); + private Optional pixelFormat = Optional.empty(); - private Optional fps = Optional.empty(); + private Optional fps = Optional.empty(); - private Optional channels = Optional.empty(); + private Optional channels = Optional.empty(); - private Optional sampleRate = Optional.empty(); + private Optional sampleRate = Optional.empty(); - private Optional bitDepth = Optional.empty(); + private Optional bitDepth = Optional.empty(); private Builder() { // force use of static builder() method @@ -582,7 +572,7 @@ public Builder startTime(double startTime) { /** * Start time of the track in seconds */ - public Builder startTime(Optional startTime) { + public Builder startTime(Optional startTime) { Utils.checkNotNull(startTime, "startTime"); this.startTime = startTime; return this; @@ -600,7 +590,7 @@ public Builder duration(double duration) { /** * Duration of the track in seconds */ - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -618,7 +608,7 @@ public Builder bitrate(double bitrate) { /** * Bitrate of the track in bits per second */ - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -636,7 +626,7 @@ public Builder width(double width) { /** * Width of the track - only for video tracks */ - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -654,7 +644,7 @@ public Builder height(double height) { /** * Height of the track - only for video tracks */ - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -672,7 +662,7 @@ public Builder pixelFormat(String pixelFormat) { /** * Pixel format of the track - only for video tracks */ - public Builder pixelFormat(Optional pixelFormat) { + public Builder pixelFormat(Optional pixelFormat) { Utils.checkNotNull(pixelFormat, "pixelFormat"); this.pixelFormat = pixelFormat; return this; @@ -690,7 +680,7 @@ public Builder fps(double fps) { /** * Frame rate of the track - only for video tracks */ - public Builder fps(Optional fps) { + public Builder fps(Optional fps) { Utils.checkNotNull(fps, "fps"); this.fps = fps; return this; @@ -708,7 +698,7 @@ public Builder channels(double channels) { /** * Amount of audio channels in the track */ - public Builder channels(Optional channels) { + public Builder channels(Optional channels) { Utils.checkNotNull(channels, "channels"); this.channels = channels; return this; @@ -730,7 +720,7 @@ public Builder sampleRate(double sampleRate) { * audio tracks * */ - public Builder sampleRate(Optional sampleRate) { + public Builder sampleRate(Optional sampleRate) { Utils.checkNotNull(sampleRate, "sampleRate"); this.sampleRate = sampleRate; return this; @@ -748,7 +738,7 @@ public Builder bitDepth(double bitDepth) { /** * Bit depth of the track - only for audio tracks */ - public Builder bitDepth(Optional bitDepth) { + public Builder bitDepth(Optional bitDepth) { Utils.checkNotNull(bitDepth, "bitDepth"); this.bitDepth = bitDepth; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TranscodeFile.java b/src/main/java/studio/livepeer/livepeer/models/components/TranscodeFile.java index aea4331..8ff29f9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TranscodeFile.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TranscodeFile.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TranscodeFile - Parameters for the transcode-file task */ @@ -46,7 +49,7 @@ public class TranscodeFile { @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private Optional> profiles; + private Optional> profiles; /** * How many seconds the duration of each output segment should @@ -55,7 +58,7 @@ public class TranscodeFile { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("targetSegmentSizeSecs") - private Optional targetSegmentSizeSecs; + private Optional targetSegmentSizeSecs; @JsonInclude(Include.NON_ABSENT) @JsonProperty("creatorId") @@ -66,17 +69,17 @@ public class TranscodeFile { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("c2pa") - private Optional c2pa; + private Optional c2pa; @JsonCreator public TranscodeFile( @JsonProperty("input") Optional input, @JsonProperty("storage") Optional storage, @JsonProperty("outputs") Optional outputs, - @JsonProperty("profiles") Optional> profiles, - @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs, + @JsonProperty("profiles") Optional> profiles, + @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs, @JsonProperty("creatorId") Optional creatorId, - @JsonProperty("c2pa") Optional c2pa) { + @JsonProperty("c2pa") Optional c2pa) { Utils.checkNotNull(input, "input"); Utils.checkNotNull(storage, "storage"); Utils.checkNotNull(outputs, "outputs"); @@ -126,8 +129,8 @@ public Optional outputs() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> profiles() { - return (Optional>) profiles; + public Optional> profiles() { + return (Optional>) profiles; } /** @@ -135,10 +138,9 @@ public Optional> profiles() { * be * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional targetSegmentSizeSecs() { - return (Optional) targetSegmentSizeSecs; + return targetSegmentSizeSecs; } @SuppressWarnings("unchecked") @@ -150,10 +152,9 @@ public Optional creatorId() { /** * Decides if the output video should include C2PA signature */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional c2pa() { - return (Optional) c2pa; + return c2pa; } public final static Builder builder() { @@ -214,13 +215,13 @@ public TranscodeFile withOutputs(Optional outputs) { return this; } - public TranscodeFile withProfiles(java.util.List profiles) { + public TranscodeFile withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public TranscodeFile withProfiles(Optional> profiles) { + public TranscodeFile withProfiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -242,7 +243,7 @@ public TranscodeFile withTargetSegmentSizeSecs(double targetSegmentSizeSecs) { * be * */ - public TranscodeFile withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public TranscodeFile withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; @@ -272,7 +273,7 @@ public TranscodeFile withC2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public TranscodeFile withC2pa(Optional c2pa) { + public TranscodeFile withC2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; @@ -288,18 +289,18 @@ public boolean equals(java.lang.Object o) { } TranscodeFile other = (TranscodeFile) o; return - java.util.Objects.deepEquals(this.input, other.input) && - java.util.Objects.deepEquals(this.storage, other.storage) && - java.util.Objects.deepEquals(this.outputs, other.outputs) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.c2pa, other.c2pa); + Objects.deepEquals(this.input, other.input) && + Objects.deepEquals(this.storage, other.storage) && + Objects.deepEquals(this.outputs, other.outputs) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.c2pa, other.c2pa); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( input, storage, outputs, @@ -329,13 +330,13 @@ public final static class Builder { private Optional outputs = Optional.empty(); - private Optional> profiles = Optional.empty(); + private Optional> profiles = Optional.empty(); - private Optional targetSegmentSizeSecs = Optional.empty(); + private Optional targetSegmentSizeSecs = Optional.empty(); private Optional creatorId = Optional.empty(); - private Optional c2pa = Optional.empty(); + private Optional c2pa = Optional.empty(); private Builder() { // force use of static builder() method @@ -395,13 +396,13 @@ public Builder outputs(Optional outputs) { return this; } - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public Builder profiles(Optional> profiles) { + public Builder profiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -423,7 +424,7 @@ public Builder targetSegmentSizeSecs(double targetSegmentSizeSecs) { * be * */ - public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; @@ -453,7 +454,7 @@ public Builder c2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public Builder c2pa(Optional c2pa) { + public Builder c2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayload.java b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayload.java index e293ca9..4d11e80 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayload.java @@ -1,23 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class TranscodePayload { @JsonProperty("input") @@ -34,14 +37,14 @@ public class TranscodePayload { @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private Optional> profiles; + private Optional> profiles; /** * How many seconds the duration of each output segment should be */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("targetSegmentSizeSecs") - private Optional targetSegmentSizeSecs; + private Optional targetSegmentSizeSecs; @JsonInclude(Include.NON_ABSENT) @JsonProperty("creatorId") @@ -52,17 +55,17 @@ public class TranscodePayload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("c2pa") - private Optional c2pa; + private Optional c2pa; @JsonCreator public TranscodePayload( @JsonProperty("input") Input input, @JsonProperty("storage") TranscodePayloadStorage storage, @JsonProperty("outputs") Outputs outputs, - @JsonProperty("profiles") Optional> profiles, - @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs, + @JsonProperty("profiles") Optional> profiles, + @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs, @JsonProperty("creatorId") Optional creatorId, - @JsonProperty("c2pa") Optional c2pa) { + @JsonProperty("c2pa") Optional c2pa) { Utils.checkNotNull(input, "input"); Utils.checkNotNull(storage, "storage"); Utils.checkNotNull(outputs, "outputs"); @@ -106,17 +109,16 @@ public Outputs outputs() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> profiles() { - return (Optional>) profiles; + public Optional> profiles() { + return (Optional>) profiles; } /** * How many seconds the duration of each output segment should be */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional targetSegmentSizeSecs() { - return (Optional) targetSegmentSizeSecs; + return targetSegmentSizeSecs; } @SuppressWarnings("unchecked") @@ -128,10 +130,9 @@ public Optional creatorId() { /** * Decides if the output video should include C2PA signature */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional c2pa() { - return (Optional) c2pa; + return c2pa; } public final static Builder builder() { @@ -159,13 +160,13 @@ public TranscodePayload withOutputs(Outputs outputs) { return this; } - public TranscodePayload withProfiles(java.util.List profiles) { + public TranscodePayload withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public TranscodePayload withProfiles(Optional> profiles) { + public TranscodePayload withProfiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -183,7 +184,7 @@ public TranscodePayload withTargetSegmentSizeSecs(double targetSegmentSizeSecs) /** * How many seconds the duration of each output segment should be */ - public TranscodePayload withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public TranscodePayload withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; @@ -213,7 +214,7 @@ public TranscodePayload withC2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public TranscodePayload withC2pa(Optional c2pa) { + public TranscodePayload withC2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; @@ -229,18 +230,18 @@ public boolean equals(java.lang.Object o) { } TranscodePayload other = (TranscodePayload) o; return - java.util.Objects.deepEquals(this.input, other.input) && - java.util.Objects.deepEquals(this.storage, other.storage) && - java.util.Objects.deepEquals(this.outputs, other.outputs) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.c2pa, other.c2pa); + Objects.deepEquals(this.input, other.input) && + Objects.deepEquals(this.storage, other.storage) && + Objects.deepEquals(this.outputs, other.outputs) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.c2pa, other.c2pa); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( input, storage, outputs, @@ -270,13 +271,13 @@ public final static class Builder { private Outputs outputs; - private Optional> profiles = Optional.empty(); + private Optional> profiles = Optional.empty(); - private Optional targetSegmentSizeSecs = Optional.empty(); + private Optional targetSegmentSizeSecs = Optional.empty(); private Optional creatorId = Optional.empty(); - private Optional c2pa = Optional.empty(); + private Optional c2pa = Optional.empty(); private Builder() { // force use of static builder() method @@ -303,13 +304,13 @@ public Builder outputs(Outputs outputs) { return this; } - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public Builder profiles(Optional> profiles) { + public Builder profiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -327,7 +328,7 @@ public Builder targetSegmentSizeSecs(double targetSegmentSizeSecs) { /** * How many seconds the duration of each output segment should be */ - public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; @@ -357,7 +358,7 @@ public Builder c2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public Builder c2pa(Optional c2pa) { + public Builder c2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java index a47d852..8875851 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorage.java @@ -1,31 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; @JsonDeserialize(using = TranscodePayloadStorage._Deserializer.class) public class TranscodePayloadStorage { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private TranscodePayloadStorage(TypedObject value) { @@ -45,8 +42,8 @@ public static TranscodePayloadStorage of(Storage2 value) { /** * Returns an instance of one of these types: *
    - *
  • {@code Storage1}
  • - *
  • {@code Storage2}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Storage1}
  • + *
  • {@code studio.livepeer.livepeer.models.components.Storage2}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -73,21 +70,21 @@ public boolean equals(java.lang.Object o) { return false; } TranscodePayloadStorage other = (TranscodePayloadStorage) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(TranscodePayloadStorage.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageCredentials.java b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageCredentials.java index eb2f020..05f12fe 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageCredentials.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageCredentials.java @@ -1,19 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + /** * TranscodePayloadStorageCredentials - Delegation proof for Livepeer to be able to upload to * web3.storage @@ -66,12 +65,12 @@ public boolean equals(java.lang.Object o) { } TranscodePayloadStorageCredentials other = (TranscodePayloadStorageCredentials) o; return - java.util.Objects.deepEquals(this.proof, other.proof); + Objects.deepEquals(this.proof, other.proof); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( proof); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageType.java b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageType.java index a9eedd8..cf2fe34 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageType.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TranscodePayloadStorageType.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * TranscodePayloadStorageType - Type of service used for output files diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfile.java b/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfile.java index 5d9d15d..100aae8 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfile.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfile.java @@ -1,22 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * TranscodeProfile - Transcode API profile */ @@ -25,15 +26,15 @@ public class TranscodeProfile { @JsonInclude(Include.NON_ABSENT) @JsonProperty("width") - private Optional width; + private Optional width; @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonInclude(Include.NON_ABSENT) @JsonProperty("height") - private Optional height; + private Optional height; @JsonProperty("bitrate") private long bitrate; @@ -44,19 +45,19 @@ public class TranscodeProfile { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("quality") - private Optional quality; + private Optional quality; @JsonInclude(Include.NON_ABSENT) @JsonProperty("fps") - private Optional fps; + private Optional fps; @JsonInclude(Include.NON_ABSENT) @JsonProperty("fpsDen") - private Optional fpsDen; + private Optional fpsDen; @JsonInclude(Include.NON_ABSENT) @JsonProperty("gop") - private Optional gop; + private Optional gop; @JsonInclude(Include.NON_ABSENT) @JsonProperty("profile") @@ -68,14 +69,14 @@ public class TranscodeProfile { @JsonCreator public TranscodeProfile( - @JsonProperty("width") Optional width, - @JsonProperty("name") Optional name, - @JsonProperty("height") Optional height, + @JsonProperty("width") Optional width, + @JsonProperty("name") Optional name, + @JsonProperty("height") Optional height, @JsonProperty("bitrate") long bitrate, - @JsonProperty("quality") Optional quality, - @JsonProperty("fps") Optional fps, - @JsonProperty("fpsDen") Optional fpsDen, - @JsonProperty("gop") Optional gop, + @JsonProperty("quality") Optional quality, + @JsonProperty("fps") Optional fps, + @JsonProperty("fpsDen") Optional fpsDen, + @JsonProperty("gop") Optional gop, @JsonProperty("profile") Optional profile, @JsonProperty("encoder") Optional encoder) { Utils.checkNotNull(width, "width"); @@ -105,22 +106,19 @@ public TranscodeProfile( this(Optional.empty(), Optional.empty(), Optional.empty(), bitrate, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional width() { - return (Optional) width; + return width; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional height() { - return (Optional) height; + return height; } @JsonIgnore @@ -132,28 +130,24 @@ public long bitrate() { * Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional quality() { - return (Optional) quality; + return quality; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional fps() { - return (Optional) fps; + return fps; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional fpsDen() { - return (Optional) fpsDen; + return fpsDen; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional gop() { - return (Optional) gop; + return gop; } @SuppressWarnings("unchecked") @@ -178,7 +172,7 @@ public TranscodeProfile withWidth(long width) { return this; } - public TranscodeProfile withWidth(Optional width) { + public TranscodeProfile withWidth(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -190,7 +184,7 @@ public TranscodeProfile withName(String name) { return this; } - public TranscodeProfile withName(Optional name) { + public TranscodeProfile withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -202,7 +196,7 @@ public TranscodeProfile withHeight(long height) { return this; } - public TranscodeProfile withHeight(Optional height) { + public TranscodeProfile withHeight(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -228,7 +222,7 @@ public TranscodeProfile withQuality(long quality) { * Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it. * */ - public TranscodeProfile withQuality(Optional quality) { + public TranscodeProfile withQuality(Optional quality) { Utils.checkNotNull(quality, "quality"); this.quality = quality; return this; @@ -240,7 +234,7 @@ public TranscodeProfile withFps(long fps) { return this; } - public TranscodeProfile withFps(Optional fps) { + public TranscodeProfile withFps(Optional fps) { Utils.checkNotNull(fps, "fps"); this.fps = fps; return this; @@ -252,7 +246,7 @@ public TranscodeProfile withFpsDen(long fpsDen) { return this; } - public TranscodeProfile withFpsDen(Optional fpsDen) { + public TranscodeProfile withFpsDen(Optional fpsDen) { Utils.checkNotNull(fpsDen, "fpsDen"); this.fpsDen = fpsDen; return this; @@ -264,7 +258,7 @@ public TranscodeProfile withGop(String gop) { return this; } - public TranscodeProfile withGop(Optional gop) { + public TranscodeProfile withGop(Optional gop) { Utils.checkNotNull(gop, "gop"); this.gop = gop; return this; @@ -304,21 +298,21 @@ public boolean equals(java.lang.Object o) { } TranscodeProfile other = (TranscodeProfile) o; return - java.util.Objects.deepEquals(this.width, other.width) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.height, other.height) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.quality, other.quality) && - java.util.Objects.deepEquals(this.fps, other.fps) && - java.util.Objects.deepEquals(this.fpsDen, other.fpsDen) && - java.util.Objects.deepEquals(this.gop, other.gop) && - java.util.Objects.deepEquals(this.profile, other.profile) && - java.util.Objects.deepEquals(this.encoder, other.encoder); + Objects.deepEquals(this.width, other.width) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.height, other.height) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.quality, other.quality) && + Objects.deepEquals(this.fps, other.fps) && + Objects.deepEquals(this.fpsDen, other.fpsDen) && + Objects.deepEquals(this.gop, other.gop) && + Objects.deepEquals(this.profile, other.profile) && + Objects.deepEquals(this.encoder, other.encoder); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( width, name, height, @@ -348,21 +342,21 @@ public String toString() { public final static class Builder { - private Optional width = Optional.empty(); + private Optional width = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); - private Optional height = Optional.empty(); + private Optional height = Optional.empty(); private Long bitrate; - private Optional quality = Optional.empty(); + private Optional quality = Optional.empty(); - private Optional fps = Optional.empty(); + private Optional fps = Optional.empty(); - private Optional fpsDen = Optional.empty(); + private Optional fpsDen = Optional.empty(); - private Optional gop = Optional.empty(); + private Optional gop = Optional.empty(); private Optional profile = Optional.empty(); @@ -378,7 +372,7 @@ public Builder width(long width) { return this; } - public Builder width(Optional width) { + public Builder width(Optional width) { Utils.checkNotNull(width, "width"); this.width = width; return this; @@ -390,7 +384,7 @@ public Builder name(String name) { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -402,7 +396,7 @@ public Builder height(long height) { return this; } - public Builder height(Optional height) { + public Builder height(Optional height) { Utils.checkNotNull(height, "height"); this.height = height; return this; @@ -428,7 +422,7 @@ public Builder quality(long quality) { * Restricts the size of the output video using the constant quality feature. Increasing this value will result in a lower quality video. Note that this parameter might not work if the transcoder lacks support for it. * */ - public Builder quality(Optional quality) { + public Builder quality(Optional quality) { Utils.checkNotNull(quality, "quality"); this.quality = quality; return this; @@ -440,7 +434,7 @@ public Builder fps(long fps) { return this; } - public Builder fps(Optional fps) { + public Builder fps(Optional fps) { Utils.checkNotNull(fps, "fps"); this.fps = fps; return this; @@ -452,7 +446,7 @@ public Builder fpsDen(long fpsDen) { return this; } - public Builder fpsDen(Optional fpsDen) { + public Builder fpsDen(Optional fpsDen) { Utils.checkNotNull(fpsDen, "fpsDen"); this.fpsDen = fpsDen; return this; @@ -464,7 +458,7 @@ public Builder gop(String gop) { return this; } - public Builder gop(Optional gop) { + public Builder gop(Optional gop) { Utils.checkNotNull(gop, "gop"); this.gop = gop; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileEncoder.java b/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileEncoder.java index 91140bc..5efee7f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileEncoder.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileEncoder.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum TranscodeProfileEncoder { H264("H.264"), diff --git a/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileProfile.java b/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileProfile.java index 3693915..6e65cf9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileProfile.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/TranscodeProfileProfile.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum TranscodeProfileProfile { H264_BASELINE("H264Baseline"), diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Two.java b/src/main/java/studio/livepeer/livepeer/models/components/Two.java index b0fe1dc..a8e0417 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Two.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Two.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class Two { @JsonProperty("type") @@ -78,13 +77,13 @@ public boolean equals(java.lang.Object o) { } Two other = (Two) o; return - java.util.Objects.deepEquals(this.type, other.type) && - java.util.Objects.deepEquals(this.sessionId, other.sessionId); + Objects.deepEquals(this.type, other.type) && + Objects.deepEquals(this.sessionId, other.sessionId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( type, sessionId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Type.java b/src/main/java/studio/livepeer/livepeer/models/components/Type.java index 60c338d..7f765c9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Type.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Type.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum Type { PUBLIC_("public"), diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Upload.java b/src/main/java/studio/livepeer/livepeer/models/components/Upload.java index 9130bdb..50dadbd 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Upload.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Upload.java @@ -1,22 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * Upload - Parameters for the upload task */ @@ -28,7 +31,7 @@ public class Upload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") - private Optional url; + private Optional url; @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption") @@ -39,26 +42,26 @@ public class Upload { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("c2pa") - private Optional c2pa; + private Optional c2pa; @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") - private Optional> profiles; + private Optional> profiles; /** * How many seconds the duration of each output segment should be */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("targetSegmentSizeSecs") - private Optional targetSegmentSizeSecs; + private Optional targetSegmentSizeSecs; @JsonCreator public Upload( - @JsonProperty("url") Optional url, + @JsonProperty("url") Optional url, @JsonProperty("encryption") Optional encryption, - @JsonProperty("c2pa") Optional c2pa, - @JsonProperty("profiles") Optional> profiles, - @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs) { + @JsonProperty("c2pa") Optional c2pa, + @JsonProperty("profiles") Optional> profiles, + @JsonProperty("targetSegmentSizeSecs") Optional targetSegmentSizeSecs) { Utils.checkNotNull(url, "url"); Utils.checkNotNull(encryption, "encryption"); Utils.checkNotNull(c2pa, "c2pa"); @@ -78,10 +81,9 @@ public Upload() { /** * URL of the asset to "upload" */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional url() { - return (Optional) url; + return url; } @SuppressWarnings("unchecked") @@ -93,25 +95,23 @@ public Optional encryption() { /** * Decides if the output video should include C2PA signature */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional c2pa() { - return (Optional) c2pa; + return c2pa; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> profiles() { - return (Optional>) profiles; + public Optional> profiles() { + return (Optional>) profiles; } /** * How many seconds the duration of each output segment should be */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional targetSegmentSizeSecs() { - return (Optional) targetSegmentSizeSecs; + return targetSegmentSizeSecs; } public final static Builder builder() { @@ -130,7 +130,7 @@ public Upload withUrl(String url) { /** * URL of the asset to "upload" */ - public Upload withUrl(Optional url) { + public Upload withUrl(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -160,19 +160,19 @@ public Upload withC2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public Upload withC2pa(Optional c2pa) { + public Upload withC2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; } - public Upload withProfiles(java.util.List profiles) { + public Upload withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public Upload withProfiles(Optional> profiles) { + public Upload withProfiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -190,7 +190,7 @@ public Upload withTargetSegmentSizeSecs(double targetSegmentSizeSecs) { /** * How many seconds the duration of each output segment should be */ - public Upload withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public Upload withTargetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; @@ -206,16 +206,16 @@ public boolean equals(java.lang.Object o) { } Upload other = (Upload) o; return - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.encryption, other.encryption) && - java.util.Objects.deepEquals(this.c2pa, other.c2pa) && - java.util.Objects.deepEquals(this.profiles, other.profiles) && - java.util.Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs); + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.encryption, other.encryption) && + Objects.deepEquals(this.c2pa, other.c2pa) && + Objects.deepEquals(this.profiles, other.profiles) && + Objects.deepEquals(this.targetSegmentSizeSecs, other.targetSegmentSizeSecs); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( url, encryption, c2pa, @@ -235,15 +235,15 @@ public String toString() { public final static class Builder { - private Optional url = Optional.empty(); + private Optional url = Optional.empty(); private Optional encryption = Optional.empty(); - private Optional c2pa = Optional.empty(); + private Optional c2pa = Optional.empty(); - private Optional> profiles = Optional.empty(); + private Optional> profiles = Optional.empty(); - private Optional targetSegmentSizeSecs = Optional.empty(); + private Optional targetSegmentSizeSecs = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +261,7 @@ public Builder url(String url) { /** * URL of the asset to "upload" */ - public Builder url(Optional url) { + public Builder url(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; @@ -291,19 +291,19 @@ public Builder c2pa(boolean c2pa) { /** * Decides if the output video should include C2PA signature */ - public Builder c2pa(Optional c2pa) { + public Builder c2pa(Optional c2pa) { Utils.checkNotNull(c2pa, "c2pa"); this.c2pa = c2pa; return this; } - public Builder profiles(java.util.List profiles) { + public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = Optional.ofNullable(profiles); return this; } - public Builder profiles(Optional> profiles) { + public Builder profiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); this.profiles = profiles; return this; @@ -321,7 +321,7 @@ public Builder targetSegmentSizeSecs(double targetSegmentSizeSecs) { /** * How many seconds the duration of each output segment should be */ - public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { + public Builder targetSegmentSizeSecs(Optional targetSegmentSizeSecs) { Utils.checkNotNull(targetSegmentSizeSecs, "targetSegmentSizeSecs"); this.targetSegmentSizeSecs = targetSegmentSizeSecs; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/UsageMetric.java b/src/main/java/studio/livepeer/livepeer/models/components/UsageMetric.java index 091f371..55376bc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/UsageMetric.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/UsageMetric.java @@ -1,22 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * UsageMetric - An individual metric about usage of a user. * @@ -29,43 +29,43 @@ public class UsageMetric { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("UserID") - private Optional userID; + private Optional userID; /** * The creator ID associated with the metric */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("CreatorID") - private Optional creatorID; + private Optional creatorID; /** * Total minutes of delivery usage. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("DeliveryUsageMins") - private Optional deliveryUsageMins; + private Optional deliveryUsageMins; /** * Total transcoded minutes. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("TotalUsageMins") - private Optional totalUsageMins; + private Optional totalUsageMins; /** * Total minutes of storage usage. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("StorageUsageMins") - private Optional storageUsageMins; + private Optional storageUsageMins; @JsonCreator public UsageMetric( - @JsonProperty("UserID") Optional userID, - @JsonProperty("CreatorID") Optional creatorID, - @JsonProperty("DeliveryUsageMins") Optional deliveryUsageMins, - @JsonProperty("TotalUsageMins") Optional totalUsageMins, - @JsonProperty("StorageUsageMins") Optional storageUsageMins) { + @JsonProperty("UserID") Optional userID, + @JsonProperty("CreatorID") Optional creatorID, + @JsonProperty("DeliveryUsageMins") Optional deliveryUsageMins, + @JsonProperty("TotalUsageMins") Optional totalUsageMins, + @JsonProperty("StorageUsageMins") Optional storageUsageMins) { Utils.checkNotNull(userID, "userID"); Utils.checkNotNull(creatorID, "creatorID"); Utils.checkNotNull(deliveryUsageMins, "deliveryUsageMins"); @@ -85,46 +85,41 @@ public UsageMetric() { /** * The user ID associated with the metric */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional userID() { - return (Optional) userID; + return userID; } /** * The creator ID associated with the metric */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional creatorID() { - return (Optional) creatorID; + return creatorID; } /** * Total minutes of delivery usage. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional deliveryUsageMins() { - return (Optional) deliveryUsageMins; + return deliveryUsageMins; } /** * Total transcoded minutes. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional totalUsageMins() { - return (Optional) totalUsageMins; + return totalUsageMins; } /** * Total minutes of storage usage. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional storageUsageMins() { - return (Optional) storageUsageMins; + return storageUsageMins; } public final static Builder builder() { @@ -143,7 +138,7 @@ public UsageMetric withUserID(String userID) { /** * The user ID associated with the metric */ - public UsageMetric withUserID(Optional userID) { + public UsageMetric withUserID(Optional userID) { Utils.checkNotNull(userID, "userID"); this.userID = userID; return this; @@ -161,7 +156,7 @@ public UsageMetric withCreatorID(String creatorID) { /** * The creator ID associated with the metric */ - public UsageMetric withCreatorID(Optional creatorID) { + public UsageMetric withCreatorID(Optional creatorID) { Utils.checkNotNull(creatorID, "creatorID"); this.creatorID = creatorID; return this; @@ -179,7 +174,7 @@ public UsageMetric withDeliveryUsageMins(double deliveryUsageMins) { /** * Total minutes of delivery usage. */ - public UsageMetric withDeliveryUsageMins(Optional deliveryUsageMins) { + public UsageMetric withDeliveryUsageMins(Optional deliveryUsageMins) { Utils.checkNotNull(deliveryUsageMins, "deliveryUsageMins"); this.deliveryUsageMins = deliveryUsageMins; return this; @@ -197,7 +192,7 @@ public UsageMetric withTotalUsageMins(double totalUsageMins) { /** * Total transcoded minutes. */ - public UsageMetric withTotalUsageMins(Optional totalUsageMins) { + public UsageMetric withTotalUsageMins(Optional totalUsageMins) { Utils.checkNotNull(totalUsageMins, "totalUsageMins"); this.totalUsageMins = totalUsageMins; return this; @@ -215,7 +210,7 @@ public UsageMetric withStorageUsageMins(double storageUsageMins) { /** * Total minutes of storage usage. */ - public UsageMetric withStorageUsageMins(Optional storageUsageMins) { + public UsageMetric withStorageUsageMins(Optional storageUsageMins) { Utils.checkNotNull(storageUsageMins, "storageUsageMins"); this.storageUsageMins = storageUsageMins; return this; @@ -231,16 +226,16 @@ public boolean equals(java.lang.Object o) { } UsageMetric other = (UsageMetric) o; return - java.util.Objects.deepEquals(this.userID, other.userID) && - java.util.Objects.deepEquals(this.creatorID, other.creatorID) && - java.util.Objects.deepEquals(this.deliveryUsageMins, other.deliveryUsageMins) && - java.util.Objects.deepEquals(this.totalUsageMins, other.totalUsageMins) && - java.util.Objects.deepEquals(this.storageUsageMins, other.storageUsageMins); + Objects.deepEquals(this.userID, other.userID) && + Objects.deepEquals(this.creatorID, other.creatorID) && + Objects.deepEquals(this.deliveryUsageMins, other.deliveryUsageMins) && + Objects.deepEquals(this.totalUsageMins, other.totalUsageMins) && + Objects.deepEquals(this.storageUsageMins, other.storageUsageMins); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( userID, creatorID, deliveryUsageMins, @@ -260,15 +255,15 @@ public String toString() { public final static class Builder { - private Optional userID = Optional.empty(); + private Optional userID = Optional.empty(); - private Optional creatorID = Optional.empty(); + private Optional creatorID = Optional.empty(); - private Optional deliveryUsageMins = Optional.empty(); + private Optional deliveryUsageMins = Optional.empty(); - private Optional totalUsageMins = Optional.empty(); + private Optional totalUsageMins = Optional.empty(); - private Optional storageUsageMins = Optional.empty(); + private Optional storageUsageMins = Optional.empty(); private Builder() { // force use of static builder() method @@ -286,7 +281,7 @@ public Builder userID(String userID) { /** * The user ID associated with the metric */ - public Builder userID(Optional userID) { + public Builder userID(Optional userID) { Utils.checkNotNull(userID, "userID"); this.userID = userID; return this; @@ -304,7 +299,7 @@ public Builder creatorID(String creatorID) { /** * The creator ID associated with the metric */ - public Builder creatorID(Optional creatorID) { + public Builder creatorID(Optional creatorID) { Utils.checkNotNull(creatorID, "creatorID"); this.creatorID = creatorID; return this; @@ -322,7 +317,7 @@ public Builder deliveryUsageMins(double deliveryUsageMins) { /** * Total minutes of delivery usage. */ - public Builder deliveryUsageMins(Optional deliveryUsageMins) { + public Builder deliveryUsageMins(Optional deliveryUsageMins) { Utils.checkNotNull(deliveryUsageMins, "deliveryUsageMins"); this.deliveryUsageMins = deliveryUsageMins; return this; @@ -340,7 +335,7 @@ public Builder totalUsageMins(double totalUsageMins) { /** * Total transcoded minutes. */ - public Builder totalUsageMins(Optional totalUsageMins) { + public Builder totalUsageMins(Optional totalUsageMins) { Utils.checkNotNull(totalUsageMins, "totalUsageMins"); this.totalUsageMins = totalUsageMins; return this; @@ -358,7 +353,7 @@ public Builder storageUsageMins(double storageUsageMins) { /** * Total minutes of storage usage. */ - public Builder storageUsageMins(Optional storageUsageMins) { + public Builder storageUsageMins(Optional storageUsageMins) { Utils.checkNotNull(storageUsageMins, "storageUsageMins"); this.storageUsageMins = storageUsageMins; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/UserTags.java b/src/main/java/studio/livepeer/livepeer/models/components/UserTags.java index d819906..b712270 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/UserTags.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/UserTags.java @@ -1,31 +1,29 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; @JsonDeserialize(using = UserTags._Deserializer.class) public class UserTags { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private UserTags(TypedObject value) { @@ -39,20 +37,20 @@ public static UserTags of(String value) { public static UserTags of(double value) { Utils.checkNotNull(value, "value"); - return new UserTags(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new UserTags(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static UserTags of(java.util.List value) { + public static UserTags of(List value) { Utils.checkNotNull(value, "value"); - return new UserTags(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference>(){})); + return new UserTags(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference>(){})); } /** * Returns an instance of one of these types: *

    - *
  • {@code String}
  • + *
  • {@code java.lang.String}
  • *
  • {@code double}
  • - *
  • {@code java.util.List}
  • + *
  • {@code java.util.List}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -79,22 +77,22 @@ public boolean equals(java.lang.Object o) { return false; } UserTags other = (UserTags) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(UserTags.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference>() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference>() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java b/src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java index b28e57a..e5539c2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/UserTags3.java @@ -1,31 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; @JsonDeserialize(using = UserTags3._Deserializer.class) public class UserTags3 { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private UserTags3(TypedObject value) { @@ -39,13 +36,13 @@ public static UserTags3 of(String value) { public static UserTags3 of(double value) { Utils.checkNotNull(value, "value"); - return new UserTags3(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new UserTags3(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *

    - *
  • {@code String}
  • + *
  • {@code java.lang.String}
  • *
  • {@code double}
  • *
* @@ -73,21 +70,21 @@ public boolean equals(java.lang.Object o) { return false; } UserTags3 other = (UserTags3) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(UserTags3.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Version.java b/src/main/java/studio/livepeer/livepeer/models/components/Version.java index 6b84d56..206077c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Version.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Version.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum Version { ONE("1"); diff --git a/src/main/java/studio/livepeer/livepeer/models/components/VideoSpec.java b/src/main/java/studio/livepeer/livepeer/models/components/VideoSpec.java index a6f38fe..bbd49bd 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/VideoSpec.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/VideoSpec.java @@ -1,22 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * VideoSpec - Video metadata */ @@ -28,21 +30,21 @@ public class VideoSpec { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("format") - private Optional format; + private Optional format; /** * Duration of the asset in seconds (float) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; /** * Bitrate of the video in bits per second */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("bitrate") - private Optional bitrate; + private Optional bitrate; /** * List of tracks associated with the asset when the format @@ -51,14 +53,14 @@ public class VideoSpec { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tracks") - private Optional> tracks; + private Optional> tracks; @JsonCreator public VideoSpec( - @JsonProperty("format") Optional format, - @JsonProperty("duration") Optional duration, - @JsonProperty("bitrate") Optional bitrate, - @JsonProperty("tracks") Optional> tracks) { + @JsonProperty("format") Optional format, + @JsonProperty("duration") Optional duration, + @JsonProperty("bitrate") Optional bitrate, + @JsonProperty("tracks") Optional> tracks) { Utils.checkNotNull(format, "format"); Utils.checkNotNull(duration, "duration"); Utils.checkNotNull(bitrate, "bitrate"); @@ -76,28 +78,25 @@ public VideoSpec() { /** * Format of the asset */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional format() { - return (Optional) format; + return format; } /** * Duration of the asset in seconds (float) */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } /** * Bitrate of the video in bits per second */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional bitrate() { - return (Optional) bitrate; + return bitrate; } /** @@ -107,8 +106,8 @@ public Optional bitrate() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> tracks() { - return (Optional>) tracks; + public Optional> tracks() { + return (Optional>) tracks; } public final static Builder builder() { @@ -127,7 +126,7 @@ public VideoSpec withFormat(String format) { /** * Format of the asset */ - public VideoSpec withFormat(Optional format) { + public VideoSpec withFormat(Optional format) { Utils.checkNotNull(format, "format"); this.format = format; return this; @@ -145,7 +144,7 @@ public VideoSpec withDuration(double duration) { /** * Duration of the asset in seconds (float) */ - public VideoSpec withDuration(Optional duration) { + public VideoSpec withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -163,7 +162,7 @@ public VideoSpec withBitrate(double bitrate) { /** * Bitrate of the video in bits per second */ - public VideoSpec withBitrate(Optional bitrate) { + public VideoSpec withBitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -174,7 +173,7 @@ public VideoSpec withBitrate(Optional bitrate) { * contemplates them (e.g. mp4) * */ - public VideoSpec withTracks(java.util.List tracks) { + public VideoSpec withTracks(List tracks) { Utils.checkNotNull(tracks, "tracks"); this.tracks = Optional.ofNullable(tracks); return this; @@ -185,7 +184,7 @@ public VideoSpec withTracks(java.util.List tracks) { * contemplates them (e.g. mp4) * */ - public VideoSpec withTracks(Optional> tracks) { + public VideoSpec withTracks(Optional> tracks) { Utils.checkNotNull(tracks, "tracks"); this.tracks = tracks; return this; @@ -201,15 +200,15 @@ public boolean equals(java.lang.Object o) { } VideoSpec other = (VideoSpec) o; return - java.util.Objects.deepEquals(this.format, other.format) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.bitrate, other.bitrate) && - java.util.Objects.deepEquals(this.tracks, other.tracks); + Objects.deepEquals(this.format, other.format) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.bitrate, other.bitrate) && + Objects.deepEquals(this.tracks, other.tracks); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( format, duration, bitrate, @@ -227,13 +226,13 @@ public String toString() { public final static class Builder { - private Optional format = Optional.empty(); + private Optional format = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional bitrate = Optional.empty(); + private Optional bitrate = Optional.empty(); - private Optional> tracks = Optional.empty(); + private Optional> tracks = Optional.empty(); private Builder() { // force use of static builder() method @@ -251,7 +250,7 @@ public Builder format(String format) { /** * Format of the asset */ - public Builder format(Optional format) { + public Builder format(Optional format) { Utils.checkNotNull(format, "format"); this.format = format; return this; @@ -269,7 +268,7 @@ public Builder duration(double duration) { /** * Duration of the asset in seconds (float) */ - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -287,7 +286,7 @@ public Builder bitrate(double bitrate) { /** * Bitrate of the video in bits per second */ - public Builder bitrate(Optional bitrate) { + public Builder bitrate(Optional bitrate) { Utils.checkNotNull(bitrate, "bitrate"); this.bitrate = bitrate; return this; @@ -298,7 +297,7 @@ public Builder bitrate(Optional bitrate) { * contemplates them (e.g. mp4) * */ - public Builder tracks(java.util.List tracks) { + public Builder tracks(List tracks) { Utils.checkNotNull(tracks, "tracks"); this.tracks = Optional.ofNullable(tracks); return this; @@ -309,7 +308,7 @@ public Builder tracks(java.util.List tracks) { * contemplates them (e.g. mp4) * */ - public Builder tracks(Optional> tracks) { + public Builder tracks(Optional> tracks) { Utils.checkNotNull(tracks, "tracks"); this.tracks = tracks; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/ViewershipMetric.java b/src/main/java/studio/livepeer/livepeer/models/components/ViewershipMetric.java index aafb27c..944600e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/ViewershipMetric.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/ViewershipMetric.java @@ -1,24 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** - * ViewershipMetric - An individual metric about viewership of an asset. Necessarily, at least + * ViewershipMetric - An individual metric about viewership of a stream/asset. Necessarily, at least * 1 of playbackId and dStorageUrl will be present, depending on the query. * */ @@ -30,28 +31,28 @@ public class ViewershipMetric { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("playbackId") - private Optional playbackId; + private Optional playbackId; /** * The ID of the creator associated with the metric. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("creatorId") - private Optional creatorId; + private Optional creatorId; /** * The ID of the viewer associated with the metric. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewerId") - private Optional viewerId; + private Optional viewerId; /** * The URL of the distributed storage used for the asset */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dStorageUrl") - private Optional dStorageUrl; + private Optional dStorageUrl; /** * Timestamp (in milliseconds) when the metric was recorded. If the @@ -61,63 +62,63 @@ public class ViewershipMetric { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timestamp") - private Optional timestamp; + private Optional timestamp; /** * The device used by the viewer. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("device") - private Optional device; + private Optional device; /** * The type of the device used by the viewer. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("deviceType") - private Optional deviceType; + private Optional deviceType; /** * The CPU used by the viewer's device. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("cpu") - private Optional cpu; + private Optional cpu; /** * The operating system used by the viewer. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("os") - private Optional os; + private Optional os; /** * The browser used by the viewer. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("browser") - private Optional browser; + private Optional browser; /** * The browser engine used by the viewer's browser. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("browserEngine") - private Optional browserEngine; + private Optional browserEngine; /** * The continent where the viewer is located. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("continent") - private Optional continent; + private Optional continent; /** * The country where the viewer is located. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("country") - private Optional country; + private Optional country; /** * The subdivision (e.g., state or province) where the viewer is @@ -126,30 +127,30 @@ public class ViewershipMetric { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("subdivision") - private Optional subdivision; + private Optional subdivision; /** * The timezone where the viewer is located. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timezone") - private Optional timezone; + private Optional timezone; /** * Geographic encoding of the viewers location. Accurate to 3 digits. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("geohash") - private Optional geohash; + private Optional geohash; /** - * The number of views for the asset. + * The number of views for the stream/asset. */ @JsonProperty("viewCount") private long viewCount; /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ @JsonProperty("playtimeMins") private double playtimeMins; @@ -159,21 +160,21 @@ public class ViewershipMetric { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ttffMs") - private Optional ttffMs; + private Optional ttffMs; /** * The rebuffering ratio for the asset. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("rebufferRatio") - private Optional rebufferRatio; + private Optional rebufferRatio; /** - * The error rate for the asset. + * The error rate for the stream/asset. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("errorRate") - private Optional errorRate; + private Optional errorRate; /** * The percentage of sessions that existed before the asset started @@ -182,32 +183,32 @@ public class ViewershipMetric { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("exitsBeforeStart") - private Optional exitsBeforeStart; + private Optional exitsBeforeStart; @JsonCreator public ViewershipMetric( - @JsonProperty("playbackId") Optional playbackId, - @JsonProperty("creatorId") Optional creatorId, - @JsonProperty("viewerId") Optional viewerId, - @JsonProperty("dStorageUrl") Optional dStorageUrl, - @JsonProperty("timestamp") Optional timestamp, - @JsonProperty("device") Optional device, - @JsonProperty("deviceType") Optional deviceType, - @JsonProperty("cpu") Optional cpu, - @JsonProperty("os") Optional os, - @JsonProperty("browser") Optional browser, - @JsonProperty("browserEngine") Optional browserEngine, - @JsonProperty("continent") Optional continent, - @JsonProperty("country") Optional country, - @JsonProperty("subdivision") Optional subdivision, - @JsonProperty("timezone") Optional timezone, - @JsonProperty("geohash") Optional geohash, + @JsonProperty("playbackId") Optional playbackId, + @JsonProperty("creatorId") Optional creatorId, + @JsonProperty("viewerId") Optional viewerId, + @JsonProperty("dStorageUrl") Optional dStorageUrl, + @JsonProperty("timestamp") Optional timestamp, + @JsonProperty("device") Optional device, + @JsonProperty("deviceType") Optional deviceType, + @JsonProperty("cpu") Optional cpu, + @JsonProperty("os") Optional os, + @JsonProperty("browser") Optional browser, + @JsonProperty("browserEngine") Optional browserEngine, + @JsonProperty("continent") Optional continent, + @JsonProperty("country") Optional country, + @JsonProperty("subdivision") Optional subdivision, + @JsonProperty("timezone") Optional timezone, + @JsonProperty("geohash") Optional geohash, @JsonProperty("viewCount") long viewCount, @JsonProperty("playtimeMins") double playtimeMins, - @JsonProperty("ttffMs") Optional ttffMs, - @JsonProperty("rebufferRatio") Optional rebufferRatio, - @JsonProperty("errorRate") Optional errorRate, - @JsonProperty("exitsBeforeStart") Optional exitsBeforeStart) { + @JsonProperty("ttffMs") Optional ttffMs, + @JsonProperty("rebufferRatio") Optional rebufferRatio, + @JsonProperty("errorRate") Optional errorRate, + @JsonProperty("exitsBeforeStart") Optional exitsBeforeStart) { Utils.checkNotNull(playbackId, "playbackId"); Utils.checkNotNull(creatorId, "creatorId"); Utils.checkNotNull(viewerId, "viewerId"); @@ -263,37 +264,33 @@ public ViewershipMetric( /** * The playback ID associated with the metric. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playbackId() { - return (Optional) playbackId; + return playbackId; } /** * The ID of the creator associated with the metric. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional creatorId() { - return (Optional) creatorId; + return creatorId; } /** * The ID of the viewer associated with the metric. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewerId() { - return (Optional) viewerId; + return viewerId; } /** * The URL of the distributed storage used for the asset */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional dStorageUrl() { - return (Optional) dStorageUrl; + return dStorageUrl; } /** @@ -302,82 +299,73 @@ public Optional dStorageUrl() { * beginning of the time step period. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional timestamp() { - return (Optional) timestamp; + return timestamp; } /** * The device used by the viewer. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional device() { - return (Optional) device; + return device; } /** * The type of the device used by the viewer. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional deviceType() { - return (Optional) deviceType; + return deviceType; } /** * The CPU used by the viewer's device. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional cpu() { - return (Optional) cpu; + return cpu; } /** * The operating system used by the viewer. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional os() { - return (Optional) os; + return os; } /** * The browser used by the viewer. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional browser() { - return (Optional) browser; + return browser; } /** * The browser engine used by the viewer's browser. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional browserEngine() { - return (Optional) browserEngine; + return browserEngine; } /** * The continent where the viewer is located. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional continent() { - return (Optional) continent; + return continent; } /** * The country where the viewer is located. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional country() { - return (Optional) country; + return country; } /** @@ -385,32 +373,29 @@ public Optional country() { * located. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional subdivision() { - return (Optional) subdivision; + return subdivision; } /** * The timezone where the viewer is located. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional timezone() { - return (Optional) timezone; + return timezone; } /** * Geographic encoding of the viewers location. Accurate to 3 digits. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional geohash() { - return (Optional) geohash; + return geohash; } /** - * The number of views for the asset. + * The number of views for the stream/asset. */ @JsonIgnore public long viewCount() { @@ -418,7 +403,7 @@ public long viewCount() { } /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ @JsonIgnore public double playtimeMins() { @@ -428,28 +413,25 @@ public double playtimeMins() { /** * The time-to-first-frame (TTFF) in milliseconds. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional ttffMs() { - return (Optional) ttffMs; + return ttffMs; } /** * The rebuffering ratio for the asset. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional rebufferRatio() { - return (Optional) rebufferRatio; + return rebufferRatio; } /** - * The error rate for the asset. + * The error rate for the stream/asset. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional errorRate() { - return (Optional) errorRate; + return errorRate; } /** @@ -457,10 +439,9 @@ public Optional errorRate() { * playing. * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional exitsBeforeStart() { - return (Optional) exitsBeforeStart; + return exitsBeforeStart; } public final static Builder builder() { @@ -479,7 +460,7 @@ public ViewershipMetric withPlaybackId(String playbackId) { /** * The playback ID associated with the metric. */ - public ViewershipMetric withPlaybackId(Optional playbackId) { + public ViewershipMetric withPlaybackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -497,7 +478,7 @@ public ViewershipMetric withCreatorId(String creatorId) { /** * The ID of the creator associated with the metric. */ - public ViewershipMetric withCreatorId(Optional creatorId) { + public ViewershipMetric withCreatorId(Optional creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = creatorId; return this; @@ -515,7 +496,7 @@ public ViewershipMetric withViewerId(String viewerId) { /** * The ID of the viewer associated with the metric. */ - public ViewershipMetric withViewerId(Optional viewerId) { + public ViewershipMetric withViewerId(Optional viewerId) { Utils.checkNotNull(viewerId, "viewerId"); this.viewerId = viewerId; return this; @@ -533,7 +514,7 @@ public ViewershipMetric withDStorageUrl(String dStorageUrl) { /** * The URL of the distributed storage used for the asset */ - public ViewershipMetric withDStorageUrl(Optional dStorageUrl) { + public ViewershipMetric withDStorageUrl(Optional dStorageUrl) { Utils.checkNotNull(dStorageUrl, "dStorageUrl"); this.dStorageUrl = dStorageUrl; return this; @@ -557,7 +538,7 @@ public ViewershipMetric withTimestamp(double timestamp) { * beginning of the time step period. * */ - public ViewershipMetric withTimestamp(Optional timestamp) { + public ViewershipMetric withTimestamp(Optional timestamp) { Utils.checkNotNull(timestamp, "timestamp"); this.timestamp = timestamp; return this; @@ -575,7 +556,7 @@ public ViewershipMetric withDevice(String device) { /** * The device used by the viewer. */ - public ViewershipMetric withDevice(Optional device) { + public ViewershipMetric withDevice(Optional device) { Utils.checkNotNull(device, "device"); this.device = device; return this; @@ -593,7 +574,7 @@ public ViewershipMetric withDeviceType(String deviceType) { /** * The type of the device used by the viewer. */ - public ViewershipMetric withDeviceType(Optional deviceType) { + public ViewershipMetric withDeviceType(Optional deviceType) { Utils.checkNotNull(deviceType, "deviceType"); this.deviceType = deviceType; return this; @@ -611,7 +592,7 @@ public ViewershipMetric withCpu(String cpu) { /** * The CPU used by the viewer's device. */ - public ViewershipMetric withCpu(Optional cpu) { + public ViewershipMetric withCpu(Optional cpu) { Utils.checkNotNull(cpu, "cpu"); this.cpu = cpu; return this; @@ -629,7 +610,7 @@ public ViewershipMetric withOs(String os) { /** * The operating system used by the viewer. */ - public ViewershipMetric withOs(Optional os) { + public ViewershipMetric withOs(Optional os) { Utils.checkNotNull(os, "os"); this.os = os; return this; @@ -647,7 +628,7 @@ public ViewershipMetric withBrowser(String browser) { /** * The browser used by the viewer. */ - public ViewershipMetric withBrowser(Optional browser) { + public ViewershipMetric withBrowser(Optional browser) { Utils.checkNotNull(browser, "browser"); this.browser = browser; return this; @@ -665,7 +646,7 @@ public ViewershipMetric withBrowserEngine(String browserEngine) { /** * The browser engine used by the viewer's browser. */ - public ViewershipMetric withBrowserEngine(Optional browserEngine) { + public ViewershipMetric withBrowserEngine(Optional browserEngine) { Utils.checkNotNull(browserEngine, "browserEngine"); this.browserEngine = browserEngine; return this; @@ -683,7 +664,7 @@ public ViewershipMetric withContinent(String continent) { /** * The continent where the viewer is located. */ - public ViewershipMetric withContinent(Optional continent) { + public ViewershipMetric withContinent(Optional continent) { Utils.checkNotNull(continent, "continent"); this.continent = continent; return this; @@ -701,7 +682,7 @@ public ViewershipMetric withCountry(String country) { /** * The country where the viewer is located. */ - public ViewershipMetric withCountry(Optional country) { + public ViewershipMetric withCountry(Optional country) { Utils.checkNotNull(country, "country"); this.country = country; return this; @@ -723,7 +704,7 @@ public ViewershipMetric withSubdivision(String subdivision) { * located. * */ - public ViewershipMetric withSubdivision(Optional subdivision) { + public ViewershipMetric withSubdivision(Optional subdivision) { Utils.checkNotNull(subdivision, "subdivision"); this.subdivision = subdivision; return this; @@ -741,7 +722,7 @@ public ViewershipMetric withTimezone(String timezone) { /** * The timezone where the viewer is located. */ - public ViewershipMetric withTimezone(Optional timezone) { + public ViewershipMetric withTimezone(Optional timezone) { Utils.checkNotNull(timezone, "timezone"); this.timezone = timezone; return this; @@ -759,14 +740,14 @@ public ViewershipMetric withGeohash(String geohash) { /** * Geographic encoding of the viewers location. Accurate to 3 digits. */ - public ViewershipMetric withGeohash(Optional geohash) { + public ViewershipMetric withGeohash(Optional geohash) { Utils.checkNotNull(geohash, "geohash"); this.geohash = geohash; return this; } /** - * The number of views for the asset. + * The number of views for the stream/asset. */ public ViewershipMetric withViewCount(long viewCount) { Utils.checkNotNull(viewCount, "viewCount"); @@ -775,7 +756,7 @@ public ViewershipMetric withViewCount(long viewCount) { } /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ public ViewershipMetric withPlaytimeMins(double playtimeMins) { Utils.checkNotNull(playtimeMins, "playtimeMins"); @@ -795,7 +776,7 @@ public ViewershipMetric withTtffMs(double ttffMs) { /** * The time-to-first-frame (TTFF) in milliseconds. */ - public ViewershipMetric withTtffMs(Optional ttffMs) { + public ViewershipMetric withTtffMs(Optional ttffMs) { Utils.checkNotNull(ttffMs, "ttffMs"); this.ttffMs = ttffMs; return this; @@ -813,14 +794,14 @@ public ViewershipMetric withRebufferRatio(double rebufferRatio) { /** * The rebuffering ratio for the asset. */ - public ViewershipMetric withRebufferRatio(Optional rebufferRatio) { + public ViewershipMetric withRebufferRatio(Optional rebufferRatio) { Utils.checkNotNull(rebufferRatio, "rebufferRatio"); this.rebufferRatio = rebufferRatio; return this; } /** - * The error rate for the asset. + * The error rate for the stream/asset. */ public ViewershipMetric withErrorRate(double errorRate) { Utils.checkNotNull(errorRate, "errorRate"); @@ -829,9 +810,9 @@ public ViewershipMetric withErrorRate(double errorRate) { } /** - * The error rate for the asset. + * The error rate for the stream/asset. */ - public ViewershipMetric withErrorRate(Optional errorRate) { + public ViewershipMetric withErrorRate(Optional errorRate) { Utils.checkNotNull(errorRate, "errorRate"); this.errorRate = errorRate; return this; @@ -853,7 +834,7 @@ public ViewershipMetric withExitsBeforeStart(double exitsBeforeStart) { * playing. * */ - public ViewershipMetric withExitsBeforeStart(Optional exitsBeforeStart) { + public ViewershipMetric withExitsBeforeStart(Optional exitsBeforeStart) { Utils.checkNotNull(exitsBeforeStart, "exitsBeforeStart"); this.exitsBeforeStart = exitsBeforeStart; return this; @@ -869,33 +850,33 @@ public boolean equals(java.lang.Object o) { } ViewershipMetric other = (ViewershipMetric) o; return - java.util.Objects.deepEquals(this.playbackId, other.playbackId) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.viewerId, other.viewerId) && - java.util.Objects.deepEquals(this.dStorageUrl, other.dStorageUrl) && - java.util.Objects.deepEquals(this.timestamp, other.timestamp) && - java.util.Objects.deepEquals(this.device, other.device) && - java.util.Objects.deepEquals(this.deviceType, other.deviceType) && - java.util.Objects.deepEquals(this.cpu, other.cpu) && - java.util.Objects.deepEquals(this.os, other.os) && - java.util.Objects.deepEquals(this.browser, other.browser) && - java.util.Objects.deepEquals(this.browserEngine, other.browserEngine) && - java.util.Objects.deepEquals(this.continent, other.continent) && - java.util.Objects.deepEquals(this.country, other.country) && - java.util.Objects.deepEquals(this.subdivision, other.subdivision) && - java.util.Objects.deepEquals(this.timezone, other.timezone) && - java.util.Objects.deepEquals(this.geohash, other.geohash) && - java.util.Objects.deepEquals(this.viewCount, other.viewCount) && - java.util.Objects.deepEquals(this.playtimeMins, other.playtimeMins) && - java.util.Objects.deepEquals(this.ttffMs, other.ttffMs) && - java.util.Objects.deepEquals(this.rebufferRatio, other.rebufferRatio) && - java.util.Objects.deepEquals(this.errorRate, other.errorRate) && - java.util.Objects.deepEquals(this.exitsBeforeStart, other.exitsBeforeStart); + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.viewerId, other.viewerId) && + Objects.deepEquals(this.dStorageUrl, other.dStorageUrl) && + Objects.deepEquals(this.timestamp, other.timestamp) && + Objects.deepEquals(this.device, other.device) && + Objects.deepEquals(this.deviceType, other.deviceType) && + Objects.deepEquals(this.cpu, other.cpu) && + Objects.deepEquals(this.os, other.os) && + Objects.deepEquals(this.browser, other.browser) && + Objects.deepEquals(this.browserEngine, other.browserEngine) && + Objects.deepEquals(this.continent, other.continent) && + Objects.deepEquals(this.country, other.country) && + Objects.deepEquals(this.subdivision, other.subdivision) && + Objects.deepEquals(this.timezone, other.timezone) && + Objects.deepEquals(this.geohash, other.geohash) && + Objects.deepEquals(this.viewCount, other.viewCount) && + Objects.deepEquals(this.playtimeMins, other.playtimeMins) && + Objects.deepEquals(this.ttffMs, other.ttffMs) && + Objects.deepEquals(this.rebufferRatio, other.rebufferRatio) && + Objects.deepEquals(this.errorRate, other.errorRate) && + Objects.deepEquals(this.exitsBeforeStart, other.exitsBeforeStart); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playbackId, creatorId, viewerId, @@ -949,49 +930,49 @@ public String toString() { public final static class Builder { - private Optional playbackId = Optional.empty(); + private Optional playbackId = Optional.empty(); - private Optional creatorId = Optional.empty(); + private Optional creatorId = Optional.empty(); - private Optional viewerId = Optional.empty(); + private Optional viewerId = Optional.empty(); - private Optional dStorageUrl = Optional.empty(); + private Optional dStorageUrl = Optional.empty(); - private Optional timestamp = Optional.empty(); + private Optional timestamp = Optional.empty(); - private Optional device = Optional.empty(); + private Optional device = Optional.empty(); - private Optional deviceType = Optional.empty(); + private Optional deviceType = Optional.empty(); - private Optional cpu = Optional.empty(); + private Optional cpu = Optional.empty(); - private Optional os = Optional.empty(); + private Optional os = Optional.empty(); - private Optional browser = Optional.empty(); + private Optional browser = Optional.empty(); - private Optional browserEngine = Optional.empty(); + private Optional browserEngine = Optional.empty(); - private Optional continent = Optional.empty(); + private Optional continent = Optional.empty(); - private Optional country = Optional.empty(); + private Optional country = Optional.empty(); - private Optional subdivision = Optional.empty(); + private Optional subdivision = Optional.empty(); - private Optional timezone = Optional.empty(); + private Optional timezone = Optional.empty(); - private Optional geohash = Optional.empty(); + private Optional geohash = Optional.empty(); private Long viewCount; private Double playtimeMins; - private Optional ttffMs = Optional.empty(); + private Optional ttffMs = Optional.empty(); - private Optional rebufferRatio = Optional.empty(); + private Optional rebufferRatio = Optional.empty(); - private Optional errorRate = Optional.empty(); + private Optional errorRate = Optional.empty(); - private Optional exitsBeforeStart = Optional.empty(); + private Optional exitsBeforeStart = Optional.empty(); private Builder() { // force use of static builder() method @@ -1009,7 +990,7 @@ public Builder playbackId(String playbackId) { /** * The playback ID associated with the metric. */ - public Builder playbackId(Optional playbackId) { + public Builder playbackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -1027,7 +1008,7 @@ public Builder creatorId(String creatorId) { /** * The ID of the creator associated with the metric. */ - public Builder creatorId(Optional creatorId) { + public Builder creatorId(Optional creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = creatorId; return this; @@ -1045,7 +1026,7 @@ public Builder viewerId(String viewerId) { /** * The ID of the viewer associated with the metric. */ - public Builder viewerId(Optional viewerId) { + public Builder viewerId(Optional viewerId) { Utils.checkNotNull(viewerId, "viewerId"); this.viewerId = viewerId; return this; @@ -1063,7 +1044,7 @@ public Builder dStorageUrl(String dStorageUrl) { /** * The URL of the distributed storage used for the asset */ - public Builder dStorageUrl(Optional dStorageUrl) { + public Builder dStorageUrl(Optional dStorageUrl) { Utils.checkNotNull(dStorageUrl, "dStorageUrl"); this.dStorageUrl = dStorageUrl; return this; @@ -1087,7 +1068,7 @@ public Builder timestamp(double timestamp) { * beginning of the time step period. * */ - public Builder timestamp(Optional timestamp) { + public Builder timestamp(Optional timestamp) { Utils.checkNotNull(timestamp, "timestamp"); this.timestamp = timestamp; return this; @@ -1105,7 +1086,7 @@ public Builder device(String device) { /** * The device used by the viewer. */ - public Builder device(Optional device) { + public Builder device(Optional device) { Utils.checkNotNull(device, "device"); this.device = device; return this; @@ -1123,7 +1104,7 @@ public Builder deviceType(String deviceType) { /** * The type of the device used by the viewer. */ - public Builder deviceType(Optional deviceType) { + public Builder deviceType(Optional deviceType) { Utils.checkNotNull(deviceType, "deviceType"); this.deviceType = deviceType; return this; @@ -1141,7 +1122,7 @@ public Builder cpu(String cpu) { /** * The CPU used by the viewer's device. */ - public Builder cpu(Optional cpu) { + public Builder cpu(Optional cpu) { Utils.checkNotNull(cpu, "cpu"); this.cpu = cpu; return this; @@ -1159,7 +1140,7 @@ public Builder os(String os) { /** * The operating system used by the viewer. */ - public Builder os(Optional os) { + public Builder os(Optional os) { Utils.checkNotNull(os, "os"); this.os = os; return this; @@ -1177,7 +1158,7 @@ public Builder browser(String browser) { /** * The browser used by the viewer. */ - public Builder browser(Optional browser) { + public Builder browser(Optional browser) { Utils.checkNotNull(browser, "browser"); this.browser = browser; return this; @@ -1195,7 +1176,7 @@ public Builder browserEngine(String browserEngine) { /** * The browser engine used by the viewer's browser. */ - public Builder browserEngine(Optional browserEngine) { + public Builder browserEngine(Optional browserEngine) { Utils.checkNotNull(browserEngine, "browserEngine"); this.browserEngine = browserEngine; return this; @@ -1213,7 +1194,7 @@ public Builder continent(String continent) { /** * The continent where the viewer is located. */ - public Builder continent(Optional continent) { + public Builder continent(Optional continent) { Utils.checkNotNull(continent, "continent"); this.continent = continent; return this; @@ -1231,7 +1212,7 @@ public Builder country(String country) { /** * The country where the viewer is located. */ - public Builder country(Optional country) { + public Builder country(Optional country) { Utils.checkNotNull(country, "country"); this.country = country; return this; @@ -1253,7 +1234,7 @@ public Builder subdivision(String subdivision) { * located. * */ - public Builder subdivision(Optional subdivision) { + public Builder subdivision(Optional subdivision) { Utils.checkNotNull(subdivision, "subdivision"); this.subdivision = subdivision; return this; @@ -1271,7 +1252,7 @@ public Builder timezone(String timezone) { /** * The timezone where the viewer is located. */ - public Builder timezone(Optional timezone) { + public Builder timezone(Optional timezone) { Utils.checkNotNull(timezone, "timezone"); this.timezone = timezone; return this; @@ -1289,14 +1270,14 @@ public Builder geohash(String geohash) { /** * Geographic encoding of the viewers location. Accurate to 3 digits. */ - public Builder geohash(Optional geohash) { + public Builder geohash(Optional geohash) { Utils.checkNotNull(geohash, "geohash"); this.geohash = geohash; return this; } /** - * The number of views for the asset. + * The number of views for the stream/asset. */ public Builder viewCount(long viewCount) { Utils.checkNotNull(viewCount, "viewCount"); @@ -1305,7 +1286,7 @@ public Builder viewCount(long viewCount) { } /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ public Builder playtimeMins(double playtimeMins) { Utils.checkNotNull(playtimeMins, "playtimeMins"); @@ -1325,7 +1306,7 @@ public Builder ttffMs(double ttffMs) { /** * The time-to-first-frame (TTFF) in milliseconds. */ - public Builder ttffMs(Optional ttffMs) { + public Builder ttffMs(Optional ttffMs) { Utils.checkNotNull(ttffMs, "ttffMs"); this.ttffMs = ttffMs; return this; @@ -1343,14 +1324,14 @@ public Builder rebufferRatio(double rebufferRatio) { /** * The rebuffering ratio for the asset. */ - public Builder rebufferRatio(Optional rebufferRatio) { + public Builder rebufferRatio(Optional rebufferRatio) { Utils.checkNotNull(rebufferRatio, "rebufferRatio"); this.rebufferRatio = rebufferRatio; return this; } /** - * The error rate for the asset. + * The error rate for the stream/asset. */ public Builder errorRate(double errorRate) { Utils.checkNotNull(errorRate, "errorRate"); @@ -1359,9 +1340,9 @@ public Builder errorRate(double errorRate) { } /** - * The error rate for the asset. + * The error rate for the stream/asset. */ - public Builder errorRate(Optional errorRate) { + public Builder errorRate(Optional errorRate) { Utils.checkNotNull(errorRate, "errorRate"); this.errorRate = errorRate; return this; @@ -1383,7 +1364,7 @@ public Builder exitsBeforeStart(double exitsBeforeStart) { * playing. * */ - public Builder exitsBeforeStart(Optional exitsBeforeStart) { + public Builder exitsBeforeStart(Optional exitsBeforeStart) { Utils.checkNotNull(exitsBeforeStart, "exitsBeforeStart"); this.exitsBeforeStart = exitsBeforeStart; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/Webhook.java b/src/main/java/studio/livepeer/livepeer/models/components/Webhook.java index 18788c0..5aecbf9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/Webhook.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/Webhook.java @@ -1,28 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class Webhook { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonProperty("name") private String name; @@ -33,7 +36,7 @@ public class Webhook { @JsonInclude(Include.NON_ABSENT) @JsonProperty("kind") @Deprecated - private Optional kind; + private Optional kind; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. @@ -41,25 +44,25 @@ public class Webhook { @JsonInclude(Include.NON_ABSENT) @JsonProperty("userId") @Deprecated - private Optional userId; + private Optional userId; /** * The ID of the project */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("projectId") - private Optional projectId; + private Optional projectId; /** * Timestamp (in milliseconds) at which stream object was created */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; @JsonInclude(Include.NON_ABSENT) @JsonProperty("events") - private Optional> events; + private Optional> events; @JsonProperty("url") private String url; @@ -69,7 +72,7 @@ public class Webhook { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamId") - private Optional streamId; + private Optional streamId; /** * status of webhook @@ -80,15 +83,15 @@ public class Webhook { @JsonCreator public Webhook( - @JsonProperty("id") Optional id, + @JsonProperty("id") Optional id, @JsonProperty("name") String name, - @JsonProperty("kind") Optional kind, - @JsonProperty("userId") Optional userId, - @JsonProperty("projectId") Optional projectId, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("events") Optional> events, + @JsonProperty("kind") Optional kind, + @JsonProperty("userId") Optional userId, + @JsonProperty("projectId") Optional projectId, + @JsonProperty("createdAt") Optional createdAt, + @JsonProperty("events") Optional> events, @JsonProperty("url") String url, - @JsonProperty("streamId") Optional streamId, + @JsonProperty("streamId") Optional streamId, @JsonProperty("status") Optional status) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(name, "name"); @@ -118,10 +121,9 @@ public Webhook( this(Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), url, Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } @JsonIgnore @@ -133,44 +135,40 @@ public String name() { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - @SuppressWarnings("unchecked") @JsonIgnore public Optional kind() { - return (Optional) kind; + return kind; } /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - @SuppressWarnings("unchecked") @JsonIgnore public Optional userId() { - return (Optional) userId; + return userId; } /** * The ID of the project */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional projectId() { - return (Optional) projectId; + return projectId; } /** * Timestamp (in milliseconds) at which stream object was created */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> events() { - return (Optional>) events; + public Optional> events() { + return (Optional>) events; } @JsonIgnore @@ -181,10 +179,9 @@ public String url() { /** * streamId of the stream on which the webhook is applied */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamId() { - return (Optional) streamId; + return streamId; } /** @@ -206,7 +203,7 @@ public Webhook withId(String id) { return this; } - public Webhook withId(Optional id) { + public Webhook withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -232,7 +229,7 @@ public Webhook withKind(String kind) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Webhook withKind(Optional kind) { + public Webhook withKind(Optional kind) { Utils.checkNotNull(kind, "kind"); this.kind = kind; return this; @@ -252,7 +249,7 @@ public Webhook withUserId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Webhook withUserId(Optional userId) { + public Webhook withUserId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -270,7 +267,7 @@ public Webhook withProjectId(String projectId) { /** * The ID of the project */ - public Webhook withProjectId(Optional projectId) { + public Webhook withProjectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; @@ -288,19 +285,19 @@ public Webhook withCreatedAt(double createdAt) { /** * Timestamp (in milliseconds) at which stream object was created */ - public Webhook withCreatedAt(Optional createdAt) { + public Webhook withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; } - public Webhook withEvents(java.util.List events) { + public Webhook withEvents(List events) { Utils.checkNotNull(events, "events"); this.events = Optional.ofNullable(events); return this; } - public Webhook withEvents(Optional> events) { + public Webhook withEvents(Optional> events) { Utils.checkNotNull(events, "events"); this.events = events; return this; @@ -324,7 +321,7 @@ public Webhook withStreamId(String streamId) { /** * streamId of the stream on which the webhook is applied */ - public Webhook withStreamId(Optional streamId) { + public Webhook withStreamId(Optional streamId) { Utils.checkNotNull(streamId, "streamId"); this.streamId = streamId; return this; @@ -358,21 +355,21 @@ public boolean equals(java.lang.Object o) { } Webhook other = (Webhook) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.kind, other.kind) && - java.util.Objects.deepEquals(this.userId, other.userId) && - java.util.Objects.deepEquals(this.projectId, other.projectId) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.events, other.events) && - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.streamId, other.streamId) && - java.util.Objects.deepEquals(this.status, other.status); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.kind, other.kind) && + Objects.deepEquals(this.userId, other.userId) && + Objects.deepEquals(this.projectId, other.projectId) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.events, other.events) && + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.streamId, other.streamId) && + Objects.deepEquals(this.status, other.status); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, name, kind, @@ -402,25 +399,25 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private String name; @Deprecated - private Optional kind = Optional.empty(); + private Optional kind = Optional.empty(); @Deprecated - private Optional userId = Optional.empty(); + private Optional userId = Optional.empty(); - private Optional projectId = Optional.empty(); + private Optional projectId = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); - private Optional> events = Optional.empty(); + private Optional> events = Optional.empty(); private String url; - private Optional streamId = Optional.empty(); + private Optional streamId = Optional.empty(); private Optional status = Optional.empty(); @@ -434,7 +431,7 @@ public Builder id(String id) { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -460,7 +457,7 @@ public Builder kind(String kind) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Builder kind(Optional kind) { + public Builder kind(Optional kind) { Utils.checkNotNull(kind, "kind"); this.kind = kind; return this; @@ -480,7 +477,7 @@ public Builder userId(String userId) { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public Builder userId(Optional userId) { + public Builder userId(Optional userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; @@ -498,7 +495,7 @@ public Builder projectId(String projectId) { /** * The ID of the project */ - public Builder projectId(Optional projectId) { + public Builder projectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; @@ -516,19 +513,19 @@ public Builder createdAt(double createdAt) { /** * Timestamp (in milliseconds) at which stream object was created */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; } - public Builder events(java.util.List events) { + public Builder events(List events) { Utils.checkNotNull(events, "events"); this.events = Optional.ofNullable(events); return this; } - public Builder events(Optional> events) { + public Builder events(Optional> events) { Utils.checkNotNull(events, "events"); this.events = events; return this; @@ -552,7 +549,7 @@ public Builder streamId(String streamId) { /** * streamId of the stream on which the webhook is applied */ - public Builder streamId(Optional streamId) { + public Builder streamId(Optional streamId) { Utils.checkNotNull(streamId, "streamId"); this.streamId = streamId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/WebhookInput.java b/src/main/java/studio/livepeer/livepeer/models/components/WebhookInput.java index 3537e7c..06321d2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/WebhookInput.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/WebhookInput.java @@ -1,23 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class WebhookInput { @JsonProperty("name") @@ -28,11 +29,11 @@ public class WebhookInput { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("projectId") - private Optional projectId; + private Optional projectId; @JsonInclude(Include.NON_ABSENT) @JsonProperty("events") - private Optional> events; + private Optional> events; @JsonProperty("url") private String url; @@ -42,23 +43,23 @@ public class WebhookInput { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sharedSecret") - private Optional sharedSecret; + private Optional sharedSecret; /** * streamId of the stream on which the webhook is applied */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamId") - private Optional streamId; + private Optional streamId; @JsonCreator public WebhookInput( @JsonProperty("name") String name, - @JsonProperty("projectId") Optional projectId, - @JsonProperty("events") Optional> events, + @JsonProperty("projectId") Optional projectId, + @JsonProperty("events") Optional> events, @JsonProperty("url") String url, - @JsonProperty("sharedSecret") Optional sharedSecret, - @JsonProperty("streamId") Optional streamId) { + @JsonProperty("sharedSecret") Optional sharedSecret, + @JsonProperty("streamId") Optional streamId) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(projectId, "projectId"); Utils.checkNotNull(events, "events"); @@ -87,16 +88,15 @@ public String name() { /** * The ID of the project */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional projectId() { - return (Optional) projectId; + return projectId; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional> events() { - return (Optional>) events; + public Optional> events() { + return (Optional>) events; } @JsonIgnore @@ -107,19 +107,17 @@ public String url() { /** * shared secret used to sign the webhook payload */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional sharedSecret() { - return (Optional) sharedSecret; + return sharedSecret; } /** * streamId of the stream on which the webhook is applied */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamId() { - return (Optional) streamId; + return streamId; } public final static Builder builder() { @@ -144,19 +142,19 @@ public WebhookInput withProjectId(String projectId) { /** * The ID of the project */ - public WebhookInput withProjectId(Optional projectId) { + public WebhookInput withProjectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; } - public WebhookInput withEvents(java.util.List events) { + public WebhookInput withEvents(List events) { Utils.checkNotNull(events, "events"); this.events = Optional.ofNullable(events); return this; } - public WebhookInput withEvents(Optional> events) { + public WebhookInput withEvents(Optional> events) { Utils.checkNotNull(events, "events"); this.events = events; return this; @@ -180,7 +178,7 @@ public WebhookInput withSharedSecret(String sharedSecret) { /** * shared secret used to sign the webhook payload */ - public WebhookInput withSharedSecret(Optional sharedSecret) { + public WebhookInput withSharedSecret(Optional sharedSecret) { Utils.checkNotNull(sharedSecret, "sharedSecret"); this.sharedSecret = sharedSecret; return this; @@ -198,7 +196,7 @@ public WebhookInput withStreamId(String streamId) { /** * streamId of the stream on which the webhook is applied */ - public WebhookInput withStreamId(Optional streamId) { + public WebhookInput withStreamId(Optional streamId) { Utils.checkNotNull(streamId, "streamId"); this.streamId = streamId; return this; @@ -214,17 +212,17 @@ public boolean equals(java.lang.Object o) { } WebhookInput other = (WebhookInput) o; return - java.util.Objects.deepEquals(this.name, other.name) && - java.util.Objects.deepEquals(this.projectId, other.projectId) && - java.util.Objects.deepEquals(this.events, other.events) && - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.sharedSecret, other.sharedSecret) && - java.util.Objects.deepEquals(this.streamId, other.streamId); + Objects.deepEquals(this.name, other.name) && + Objects.deepEquals(this.projectId, other.projectId) && + Objects.deepEquals(this.events, other.events) && + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.sharedSecret, other.sharedSecret) && + Objects.deepEquals(this.streamId, other.streamId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( name, projectId, events, @@ -248,15 +246,15 @@ public final static class Builder { private String name; - private Optional projectId = Optional.empty(); + private Optional projectId = Optional.empty(); - private Optional> events = Optional.empty(); + private Optional> events = Optional.empty(); private String url; - private Optional sharedSecret = Optional.empty(); + private Optional sharedSecret = Optional.empty(); - private Optional streamId = Optional.empty(); + private Optional streamId = Optional.empty(); private Builder() { // force use of static builder() method @@ -280,19 +278,19 @@ public Builder projectId(String projectId) { /** * The ID of the project */ - public Builder projectId(Optional projectId) { + public Builder projectId(Optional projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; } - public Builder events(java.util.List events) { + public Builder events(List events) { Utils.checkNotNull(events, "events"); this.events = Optional.ofNullable(events); return this; } - public Builder events(Optional> events) { + public Builder events(Optional> events) { Utils.checkNotNull(events, "events"); this.events = events; return this; @@ -316,7 +314,7 @@ public Builder sharedSecret(String sharedSecret) { /** * shared secret used to sign the webhook payload */ - public Builder sharedSecret(Optional sharedSecret) { + public Builder sharedSecret(Optional sharedSecret) { Utils.checkNotNull(sharedSecret, "sharedSecret"); this.sharedSecret = sharedSecret; return this; @@ -334,7 +332,7 @@ public Builder streamId(String streamId) { /** * streamId of the stream on which the webhook is applied */ - public Builder streamId(Optional streamId) { + public Builder streamId(Optional streamId) { Utils.checkNotNull(streamId, "streamId"); this.streamId = streamId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/components/WebhookLog.java b/src/main/java/studio/livepeer/livepeer/models/components/WebhookLog.java index 385867e..f477f50 100644 --- a/src/main/java/studio/livepeer/livepeer/models/components/WebhookLog.java +++ b/src/main/java/studio/livepeer/livepeer/models/components/WebhookLog.java @@ -1,23 +1,25 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.components; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class WebhookLog { @JsonProperty("id") @@ -34,7 +36,7 @@ public class WebhookLog { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("event") - private Optional event; + private Optional event; /** * Timestamp (in milliseconds) at which webhook request object was @@ -43,21 +45,21 @@ public class WebhookLog { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") - private Optional createdAt; + private Optional createdAt; /** * The time taken (in seconds) to make the webhook request */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") - private Optional duration; + private Optional duration; /** * Whether the webhook request was successful */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("success") - private Optional success; + private Optional success; @JsonInclude(Include.NON_ABSENT) @JsonProperty("request") @@ -71,10 +73,10 @@ public class WebhookLog { public WebhookLog( @JsonProperty("id") String id, @JsonProperty("webhookId") String webhookId, - @JsonProperty("event") Optional event, - @JsonProperty("createdAt") Optional createdAt, - @JsonProperty("duration") Optional duration, - @JsonProperty("success") Optional success, + @JsonProperty("event") Optional event, + @JsonProperty("createdAt") Optional createdAt, + @JsonProperty("duration") Optional duration, + @JsonProperty("success") Optional success, @JsonProperty("request") Optional request, @JsonProperty("response") Optional response) { Utils.checkNotNull(id, "id"); @@ -117,10 +119,9 @@ public String webhookId() { /** * The event type that triggered the webhook request */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional event() { - return (Optional) event; + return event; } /** @@ -128,28 +129,25 @@ public Optional event() { * created * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional createdAt() { - return (Optional) createdAt; + return createdAt; } /** * The time taken (in seconds) to make the webhook request */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional duration() { - return (Optional) duration; + return duration; } /** * Whether the webhook request was successful */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional success() { - return (Optional) success; + return success; } @SuppressWarnings("unchecked") @@ -195,7 +193,7 @@ public WebhookLog withEvent(String event) { /** * The event type that triggered the webhook request */ - public WebhookLog withEvent(Optional event) { + public WebhookLog withEvent(Optional event) { Utils.checkNotNull(event, "event"); this.event = event; return this; @@ -217,7 +215,7 @@ public WebhookLog withCreatedAt(double createdAt) { * created * */ - public WebhookLog withCreatedAt(Optional createdAt) { + public WebhookLog withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -235,7 +233,7 @@ public WebhookLog withDuration(double duration) { /** * The time taken (in seconds) to make the webhook request */ - public WebhookLog withDuration(Optional duration) { + public WebhookLog withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -253,7 +251,7 @@ public WebhookLog withSuccess(boolean success) { /** * Whether the webhook request was successful */ - public WebhookLog withSuccess(Optional success) { + public WebhookLog withSuccess(Optional success) { Utils.checkNotNull(success, "success"); this.success = success; return this; @@ -293,19 +291,19 @@ public boolean equals(java.lang.Object o) { } WebhookLog other = (WebhookLog) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.webhookId, other.webhookId) && - java.util.Objects.deepEquals(this.event, other.event) && - java.util.Objects.deepEquals(this.createdAt, other.createdAt) && - java.util.Objects.deepEquals(this.duration, other.duration) && - java.util.Objects.deepEquals(this.success, other.success) && - java.util.Objects.deepEquals(this.request, other.request) && - java.util.Objects.deepEquals(this.response, other.response); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.webhookId, other.webhookId) && + Objects.deepEquals(this.event, other.event) && + Objects.deepEquals(this.createdAt, other.createdAt) && + Objects.deepEquals(this.duration, other.duration) && + Objects.deepEquals(this.success, other.success) && + Objects.deepEquals(this.request, other.request) && + Objects.deepEquals(this.response, other.response); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, webhookId, event, @@ -335,13 +333,13 @@ public final static class Builder { private String webhookId; - private Optional event = Optional.empty(); + private Optional event = Optional.empty(); - private Optional createdAt = Optional.empty(); + private Optional createdAt = Optional.empty(); - private Optional duration = Optional.empty(); + private Optional duration = Optional.empty(); - private Optional success = Optional.empty(); + private Optional success = Optional.empty(); private Optional request = Optional.empty(); @@ -378,7 +376,7 @@ public Builder event(String event) { /** * The event type that triggered the webhook request */ - public Builder event(Optional event) { + public Builder event(Optional event) { Utils.checkNotNull(event, "event"); this.event = event; return this; @@ -400,7 +398,7 @@ public Builder createdAt(double createdAt) { * created * */ - public Builder createdAt(Optional createdAt) { + public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -418,7 +416,7 @@ public Builder duration(double duration) { /** * The time taken (in seconds) to make the webhook request */ - public Builder duration(Optional duration) { + public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); this.duration = duration; return this; @@ -436,7 +434,7 @@ public Builder success(boolean success) { /** * Whether the webhook request was successful */ - public Builder success(Optional success) { + public Builder success(Optional success) { Utils.checkNotNull(success, "success"); this.success = success; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/errors/AuthException.java b/src/main/java/studio/livepeer/livepeer/models/errors/AuthException.java index f35c6b9..1d8e36b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/errors/AuthException.java +++ b/src/main/java/studio/livepeer/livepeer/models/errors/AuthException.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.errors; diff --git a/src/main/java/studio/livepeer/livepeer/models/errors/Error.java b/src/main/java/studio/livepeer/livepeer/models/errors/Error.java index cb14ccf..2e60a81 100644 --- a/src/main/java/studio/livepeer/livepeer/models/errors/Error.java +++ b/src/main/java/studio/livepeer/livepeer/models/errors/Error.java @@ -1,21 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.errors; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.http.HttpResponse; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; @@ -23,11 +20,11 @@ public class Error extends RuntimeException { @JsonInclude(Include.NON_ABSENT) @JsonProperty("errors") - private Optional> errors; + private Optional> errors; @JsonCreator public Error( - @JsonProperty("errors") Optional> errors) { + @JsonProperty("errors") Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; } @@ -36,21 +33,22 @@ public Error() { this(Optional.empty()); } - public Optional> errors(){ - return errors; + @SuppressWarnings("unchecked") + public Optional> errors(){ + return (Optional>) errors; } public final static Builder builder() { return new Builder(); } - public Error withErrors(java.util.List errors) { + public Error withErrors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Error withErrors(Optional> errors) { + public Error withErrors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; @@ -66,7 +64,7 @@ public boolean equals(java.lang.Object o) { } Error other = (Error) o; return - java.util.Objects.deepEquals(this.errors, other.errors); + Objects.deepEquals(this.errors, other.errors); } @Override @@ -83,19 +81,19 @@ public String toString() { public final static class Builder { - private Optional> errors = Optional.empty(); + private Optional> errors = Optional.empty(); private Builder() { // force use of static builder() method } - public Builder errors(java.util.List errors) { + public Builder errors(List errors) { Utils.checkNotNull(errors, "errors"); this.errors = Optional.ofNullable(errors); return this; } - public Builder errors(Optional> errors) { + public Builder errors(Optional> errors) { Utils.checkNotNull(errors, "errors"); this.errors = errors; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/errors/SDKError.java b/src/main/java/studio/livepeer/livepeer/models/errors/SDKError.java index c5694ab..59116dc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/errors/SDKError.java +++ b/src/main/java/studio/livepeer/livepeer/models/errors/SDKError.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.errors; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequest.java index fb3a529..3f2a488 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.TargetAddPayload; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class AddMultistreamTargetRequest { /** @@ -24,12 +24,12 @@ public class AddMultistreamTargetRequest { private String id; @SpeakeasyMetadata("request:mediaType=application/json") - private studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload; + private TargetAddPayload targetAddPayload; @JsonCreator public AddMultistreamTargetRequest( String id, - studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload) { + TargetAddPayload targetAddPayload) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(targetAddPayload, "targetAddPayload"); this.id = id; @@ -45,7 +45,7 @@ public String id() { } @JsonIgnore - public studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload() { + public TargetAddPayload targetAddPayload() { return targetAddPayload; } @@ -62,7 +62,7 @@ public AddMultistreamTargetRequest withId(String id) { return this; } - public AddMultistreamTargetRequest withTargetAddPayload(studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload) { + public AddMultistreamTargetRequest withTargetAddPayload(TargetAddPayload targetAddPayload) { Utils.checkNotNull(targetAddPayload, "targetAddPayload"); this.targetAddPayload = targetAddPayload; return this; @@ -78,13 +78,13 @@ public boolean equals(java.lang.Object o) { } AddMultistreamTargetRequest other = (AddMultistreamTargetRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.targetAddPayload, other.targetAddPayload); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.targetAddPayload, other.targetAddPayload); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, targetAddPayload); } @@ -100,7 +100,7 @@ public final static class Builder { private String id; - private studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload; + private TargetAddPayload targetAddPayload; private Builder() { // force use of static builder() method @@ -115,7 +115,7 @@ public Builder id(String id) { return this; } - public Builder targetAddPayload(studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload) { + public Builder targetAddPayload(TargetAddPayload targetAddPayload) { Utils.checkNotNull(targetAddPayload, "targetAddPayload"); this.targetAddPayload = targetAddPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java index 5a1e43e..4976ba2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetRequestBuilder.java @@ -1,33 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; +import studio.livepeer.livepeer.models.components.TargetAddPayload; import studio.livepeer.livepeer.utils.Utils; - public class AddMultistreamTargetRequestBuilder { private String id; - private studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload; + private TargetAddPayload targetAddPayload; private final SDKMethodInterfaces.MethodCallAddMultistreamTarget sdk; public AddMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallAddMultistreamTarget sdk) { this.sdk = sdk; } - public AddMultistreamTargetRequestBuilder id(String id) { + public AddMultistreamTargetRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java index 5919a88..908144e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/AddMultistreamTargetResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class AddMultistreamTargetResponse implements studio.livepeer.livepeer.utils.Response { + +public class AddMultistreamTargetResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class AddMultistreamTargetResponse implements studio.livepeer.livepeer.ut /** * Error */ - private Optional error; + private Optional error; @JsonCreator public AddMultistreamTargetResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public AddMultistreamTargetResponse withRawResponse(HttpResponse ra /** * Error */ - public AddMultistreamTargetResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public AddMultistreamTargetResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public AddMultistreamTargetResponse withError(studio.livepeer.livepeer.models.er /** * Error */ - public AddMultistreamTargetResponse withError(Optional error) { + public AddMultistreamTargetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } AddMultistreamTargetResponse other = (AddMultistreamTargetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/BreakdownBy.java b/src/main/java/studio/livepeer/livepeer/models/operations/BreakdownBy.java index 0a8a13a..35d5456 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/BreakdownBy.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/BreakdownBy.java @@ -1,35 +1,18 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum BreakdownBy { PLAYBACK_ID("playbackId"), - DEVICE_TYPE("deviceType"), DEVICE("device"), - CPU("cpu"), - OS("os"), BROWSER("browser"), - BROWSER_ENGINE("browserEngine"), - CONTINENT("continent"), - COUNTRY("country"), - SUBDIVISION("subdivision"), - TIMEZONE("timezone"), - GEOHASH("geohash"), - VIEWER_ID("viewerId"), - CREATOR_ID("creatorId"); + COUNTRY("country"); @JsonValue private final String value; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipData.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipData.java index a13c569..e674d7a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipData.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipData.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.Asset; import studio.livepeer.livepeer.utils.Utils; + /** * CreateClipData - Success */ @@ -21,14 +21,14 @@ public class CreateClipData { @JsonProperty("asset") - private studio.livepeer.livepeer.models.components.Asset asset; + private Asset asset; @JsonProperty("task") private CreateClipTask task; @JsonCreator public CreateClipData( - @JsonProperty("asset") studio.livepeer.livepeer.models.components.Asset asset, + @JsonProperty("asset") Asset asset, @JsonProperty("task") CreateClipTask task) { Utils.checkNotNull(asset, "asset"); Utils.checkNotNull(task, "task"); @@ -37,7 +37,7 @@ public CreateClipData( } @JsonIgnore - public studio.livepeer.livepeer.models.components.Asset asset() { + public Asset asset() { return asset; } @@ -50,7 +50,7 @@ public final static Builder builder() { return new Builder(); } - public CreateClipData withAsset(studio.livepeer.livepeer.models.components.Asset asset) { + public CreateClipData withAsset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; @@ -72,13 +72,13 @@ public boolean equals(java.lang.Object o) { } CreateClipData other = (CreateClipData) o; return - java.util.Objects.deepEquals(this.asset, other.asset) && - java.util.Objects.deepEquals(this.task, other.task); + Objects.deepEquals(this.asset, other.asset) && + Objects.deepEquals(this.task, other.task); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( asset, task); } @@ -92,7 +92,7 @@ public String toString() { public final static class Builder { - private studio.livepeer.livepeer.models.components.Asset asset; + private Asset asset; private CreateClipTask task; @@ -100,7 +100,7 @@ private Builder() { // force use of static builder() method } - public Builder asset(studio.livepeer.livepeer.models.components.Asset asset) { + public Builder asset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java index d7bfd9b..0afbe77 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipRequestBuilder.java @@ -1,25 +1,15 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import studio.livepeer.livepeer.models.components.ClipPayload; import studio.livepeer.livepeer.utils.Utils; - public class CreateClipRequestBuilder { - private studio.livepeer.livepeer.models.components.ClipPayload request; + private ClipPayload request; private final SDKMethodInterfaces.MethodCallCreateClip sdk; public CreateClipRequestBuilder(SDKMethodInterfaces.MethodCallCreateClip sdk) { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java index 1c99116..8e44d86 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class CreateClipResponse implements studio.livepeer.livepeer.utils.Response { + +public class CreateClipResponse implements Response { /** * HTTP response content type for this operation @@ -41,7 +45,7 @@ public class CreateClipResponse implements studio.livepeer.livepeer.utils.Respon /** * Error */ - private Optional error; + private Optional error; @JsonCreator public CreateClipResponse( @@ -49,7 +53,7 @@ public CreateClipResponse( int statusCode, HttpResponse rawResponse, Optional data, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -107,8 +111,8 @@ public Optional data() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -163,7 +167,7 @@ public CreateClipResponse withData(Optional data) { /** * Error */ - public CreateClipResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public CreateClipResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -172,7 +176,7 @@ public CreateClipResponse withError(studio.livepeer.livepeer.models.errors.Error /** * Error */ - public CreateClipResponse withError(Optional error) { + public CreateClipResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +192,16 @@ public boolean equals(java.lang.Object o) { } CreateClipResponse other = (CreateClipResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -225,7 +229,7 @@ public final static class Builder { private Optional data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -279,7 +283,7 @@ public Builder data(Optional data) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -288,7 +292,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipTask.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipTask.java index aac7c4e..0871d71 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipTask.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateClipTask.java @@ -1,32 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class CreateClipTask { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") - private Optional id; + private Optional id; @JsonCreator public CreateClipTask( - @JsonProperty("id") Optional id) { + @JsonProperty("id") Optional id) { Utils.checkNotNull(id, "id"); this.id = id; } @@ -35,10 +34,9 @@ public CreateClipTask() { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional id() { - return (Optional) id; + return id; } public final static Builder builder() { @@ -51,7 +49,7 @@ public CreateClipTask withId(String id) { return this; } - public CreateClipTask withId(Optional id) { + public CreateClipTask withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -67,12 +65,12 @@ public boolean equals(java.lang.Object o) { } CreateClipTask other = (CreateClipTask) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } @@ -84,7 +82,7 @@ public String toString() { public final static class Builder { - private Optional id = Optional.empty(); + private Optional id = Optional.empty(); private Builder() { // force use of static builder() method @@ -96,7 +94,7 @@ public Builder id(String id) { return this; } - public Builder id(Optional id) { + public Builder id(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java index 18d9c05..d300048 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetRequestBuilder.java @@ -1,25 +1,15 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import studio.livepeer.livepeer.models.components.MultistreamTargetInput; import studio.livepeer.livepeer.utils.Utils; - public class CreateMultistreamTargetRequestBuilder { - private studio.livepeer.livepeer.models.components.MultistreamTargetInput request; + private MultistreamTargetInput request; private final SDKMethodInterfaces.MethodCallCreateMultistreamTarget sdk; public CreateMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallCreateMultistreamTarget sdk) { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java index b889e65..71a30d5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateMultistreamTargetResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.MultistreamTarget; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class CreateMultistreamTargetResponse implements studio.livepeer.livepeer.utils.Response { + +public class CreateMultistreamTargetResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class CreateMultistreamTargetResponse implements studio.livepeer.livepeer /** * Success */ - private Optional multistreamTarget; + private Optional multistreamTarget; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public CreateMultistreamTargetResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional multistreamTarget, - Optional error) { + Optional multistreamTarget, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional multistreamTarget() { - return (Optional) multistreamTarget; + public Optional multistreamTarget() { + return (Optional) multistreamTarget; } /** @@ -107,8 +112,8 @@ public Optional mu */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public CreateMultistreamTargetResponse withRawResponse(HttpResponse /** * Success */ - public CreateMultistreamTargetResponse withMultistreamTarget(studio.livepeer.livepeer.models.components.MultistreamTarget multistreamTarget) { + public CreateMultistreamTargetResponse withMultistreamTarget(MultistreamTarget multistreamTarget) { Utils.checkNotNull(multistreamTarget, "multistreamTarget"); this.multistreamTarget = Optional.ofNullable(multistreamTarget); return this; @@ -154,7 +159,7 @@ public CreateMultistreamTargetResponse withMultistreamTarget(studio.livepeer.liv /** * Success */ - public CreateMultistreamTargetResponse withMultistreamTarget(Optional multistreamTarget) { + public CreateMultistreamTargetResponse withMultistreamTarget(Optional multistreamTarget) { Utils.checkNotNull(multistreamTarget, "multistreamTarget"); this.multistreamTarget = multistreamTarget; return this; @@ -163,7 +168,7 @@ public CreateMultistreamTargetResponse withMultistreamTarget(Optional error) { + public CreateMultistreamTargetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } CreateMultistreamTargetResponse other = (CreateMultistreamTargetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.multistreamTarget, other.multistreamTarget) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.multistreamTarget, other.multistreamTarget) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional multistreamTarget = Optional.empty(); + private Optional multistreamTarget = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder multistreamTarget(studio.livepeer.livepeer.models.components.MultistreamTarget multistreamTarget) { + public Builder multistreamTarget(MultistreamTarget multistreamTarget) { Utils.checkNotNull(multistreamTarget, "multistreamTarget"); this.multistreamTarget = Optional.ofNullable(multistreamTarget); return this; @@ -270,7 +275,7 @@ public Builder multistreamTarget(studio.livepeer.livepeer.models.components.Mult /** * Success */ - public Builder multistreamTarget(Optional multistreamTarget) { + public Builder multistreamTarget(Optional multistreamTarget) { Utils.checkNotNull(multistreamTarget, "multistreamTarget"); this.multistreamTarget = multistreamTarget; return this; @@ -279,7 +284,7 @@ public Builder multistreamTarget(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomRequestBuilder.java index 9a96f4e..64f5366 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomRequestBuilder.java @@ -1,21 +1,9 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; -import studio.livepeer.livepeer.utils.Utils; - public class CreateRoomRequestBuilder { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java index 55e2b82..2580285 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class CreateRoomResponse implements studio.livepeer.livepeer.utils.Response { + +public class CreateRoomResponse implements Response { /** * HTTP response content type for this operation @@ -41,7 +45,7 @@ public class CreateRoomResponse implements studio.livepeer.livepeer.utils.Respon /** * Error */ - private Optional error; + private Optional error; @JsonCreator public CreateRoomResponse( @@ -49,7 +53,7 @@ public CreateRoomResponse( int statusCode, HttpResponse rawResponse, Optional createRoomResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -107,8 +111,8 @@ public Optional c */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -163,7 +167,7 @@ public CreateRoomResponse withCreateRoomResponse(Optional error) { + public CreateRoomResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +192,16 @@ public boolean equals(java.lang.Object o) { } CreateRoomResponse other = (CreateRoomResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.createRoomResponse, other.createRoomResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.createRoomResponse, other.createRoomResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -225,7 +229,7 @@ public final static class Builder { private Optional createRoomResponse = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -279,7 +283,7 @@ public Builder createRoomResponse(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequest.java index 60e26ed..dd47b59 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequest.java @@ -1,32 +1,32 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.RoomUserPayload; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class CreateRoomUserRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") private String id; @SpeakeasyMetadata("request:mediaType=application/json") - private studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload; + private RoomUserPayload roomUserPayload; @JsonCreator public CreateRoomUserRequest( String id, - studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload) { + RoomUserPayload roomUserPayload) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(roomUserPayload, "roomUserPayload"); this.id = id; @@ -39,7 +39,7 @@ public String id() { } @JsonIgnore - public studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload() { + public RoomUserPayload roomUserPayload() { return roomUserPayload; } @@ -53,7 +53,7 @@ public CreateRoomUserRequest withId(String id) { return this; } - public CreateRoomUserRequest withRoomUserPayload(studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload) { + public CreateRoomUserRequest withRoomUserPayload(RoomUserPayload roomUserPayload) { Utils.checkNotNull(roomUserPayload, "roomUserPayload"); this.roomUserPayload = roomUserPayload; return this; @@ -69,13 +69,13 @@ public boolean equals(java.lang.Object o) { } CreateRoomUserRequest other = (CreateRoomUserRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.roomUserPayload, other.roomUserPayload); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.roomUserPayload, other.roomUserPayload); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, roomUserPayload); } @@ -91,7 +91,7 @@ public final static class Builder { private String id; - private studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload; + private RoomUserPayload roomUserPayload; private Builder() { // force use of static builder() method @@ -103,7 +103,7 @@ public Builder id(String id) { return this; } - public Builder roomUserPayload(studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload) { + public Builder roomUserPayload(RoomUserPayload roomUserPayload) { Utils.checkNotNull(roomUserPayload, "roomUserPayload"); this.roomUserPayload = roomUserPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java index d6fe707..51beebb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserRequestBuilder.java @@ -1,33 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; +import studio.livepeer.livepeer.models.components.RoomUserPayload; import studio.livepeer.livepeer.utils.Utils; - public class CreateRoomUserRequestBuilder { private String id; - private studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload; + private RoomUserPayload roomUserPayload; private final SDKMethodInterfaces.MethodCallCreateRoomUser sdk; public CreateRoomUserRequestBuilder(SDKMethodInterfaces.MethodCallCreateRoomUser sdk) { this.sdk = sdk; } - public CreateRoomUserRequestBuilder id(String id) { + public CreateRoomUserRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java index 03aded2..3a1233b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateRoomUserResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.RoomUserResponse; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class CreateRoomUserResponse implements studio.livepeer.livepeer.utils.Response { + +public class CreateRoomUserResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class CreateRoomUserResponse implements studio.livepeer.livepeer.utils.Re /** * Success */ - private Optional roomUserResponse; + private Optional roomUserResponse; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public CreateRoomUserResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional roomUserResponse, - Optional error) { + Optional roomUserResponse, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional roomUserResponse() { - return (Optional) roomUserResponse; + public Optional roomUserResponse() { + return (Optional) roomUserResponse; } /** @@ -107,8 +112,8 @@ public Optional roo */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public CreateRoomUserResponse withRawResponse(HttpResponse rawRespo /** * Success */ - public CreateRoomUserResponse withRoomUserResponse(studio.livepeer.livepeer.models.components.RoomUserResponse roomUserResponse) { + public CreateRoomUserResponse withRoomUserResponse(RoomUserResponse roomUserResponse) { Utils.checkNotNull(roomUserResponse, "roomUserResponse"); this.roomUserResponse = Optional.ofNullable(roomUserResponse); return this; @@ -154,7 +159,7 @@ public CreateRoomUserResponse withRoomUserResponse(studio.livepeer.livepeer.mode /** * Success */ - public CreateRoomUserResponse withRoomUserResponse(Optional roomUserResponse) { + public CreateRoomUserResponse withRoomUserResponse(Optional roomUserResponse) { Utils.checkNotNull(roomUserResponse, "roomUserResponse"); this.roomUserResponse = roomUserResponse; return this; @@ -163,7 +168,7 @@ public CreateRoomUserResponse withRoomUserResponse(Optional error) { + public CreateRoomUserResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } CreateRoomUserResponse other = (CreateRoomUserResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.roomUserResponse, other.roomUserResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.roomUserResponse, other.roomUserResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional roomUserResponse = Optional.empty(); + private Optional roomUserResponse = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder roomUserResponse(studio.livepeer.livepeer.models.components.RoomUserResponse roomUserResponse) { + public Builder roomUserResponse(RoomUserResponse roomUserResponse) { Utils.checkNotNull(roomUserResponse, "roomUserResponse"); this.roomUserResponse = Optional.ofNullable(roomUserResponse); return this; @@ -270,7 +275,7 @@ public Builder roomUserResponse(studio.livepeer.livepeer.models.components.RoomU /** * Success */ - public Builder roomUserResponse(Optional roomUserResponse) { + public Builder roomUserResponse(Optional roomUserResponse) { Utils.checkNotNull(roomUserResponse, "roomUserResponse"); this.roomUserResponse = roomUserResponse; return this; @@ -279,7 +284,7 @@ public Builder roomUserResponse(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyRequestBuilder.java index e435108..d480809 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyRequestBuilder.java @@ -1,21 +1,9 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; -import studio.livepeer.livepeer.utils.Utils; - public class CreateSigningKeyRequestBuilder { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java index 6a44ab1..0315a78 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateSigningKeyResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.SigningKey; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class CreateSigningKeyResponse implements studio.livepeer.livepeer.utils.Response { + +public class CreateSigningKeyResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class CreateSigningKeyResponse implements studio.livepeer.livepeer.utils. /** * Success */ - private Optional signingKey; + private Optional signingKey; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public CreateSigningKeyResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional signingKey, - Optional error) { + Optional signingKey, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional signingKey() { - return (Optional) signingKey; + public Optional signingKey() { + return (Optional) signingKey; } /** @@ -107,8 +112,8 @@ public Optional signingKe */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public CreateSigningKeyResponse withRawResponse(HttpResponse rawRes /** * Success */ - public CreateSigningKeyResponse withSigningKey(studio.livepeer.livepeer.models.components.SigningKey signingKey) { + public CreateSigningKeyResponse withSigningKey(SigningKey signingKey) { Utils.checkNotNull(signingKey, "signingKey"); this.signingKey = Optional.ofNullable(signingKey); return this; @@ -154,7 +159,7 @@ public CreateSigningKeyResponse withSigningKey(studio.livepeer.livepeer.models.c /** * Success */ - public CreateSigningKeyResponse withSigningKey(Optional signingKey) { + public CreateSigningKeyResponse withSigningKey(Optional signingKey) { Utils.checkNotNull(signingKey, "signingKey"); this.signingKey = signingKey; return this; @@ -163,7 +168,7 @@ public CreateSigningKeyResponse withSigningKey(Optional error) { + public CreateSigningKeyResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } CreateSigningKeyResponse other = (CreateSigningKeyResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.signingKey, other.signingKey) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.signingKey, other.signingKey) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional signingKey = Optional.empty(); + private Optional signingKey = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder signingKey(studio.livepeer.livepeer.models.components.SigningKey signingKey) { + public Builder signingKey(SigningKey signingKey) { Utils.checkNotNull(signingKey, "signingKey"); this.signingKey = Optional.ofNullable(signingKey); return this; @@ -270,7 +275,7 @@ public Builder signingKey(studio.livepeer.livepeer.models.components.SigningKey /** * Success */ - public Builder signingKey(Optional signingKey) { + public Builder signingKey(Optional signingKey) { Utils.checkNotNull(signingKey, "signingKey"); this.signingKey = signingKey; return this; @@ -279,7 +284,7 @@ public Builder signingKey(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java index 87b7683..52db6a7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamRequestBuilder.java @@ -1,25 +1,15 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import studio.livepeer.livepeer.models.components.NewStreamPayload; import studio.livepeer.livepeer.utils.Utils; - public class CreateStreamRequestBuilder { - private studio.livepeer.livepeer.models.components.NewStreamPayload request; + private NewStreamPayload request; private final SDKMethodInterfaces.MethodCallCreateStream sdk; public CreateStreamRequestBuilder(SDKMethodInterfaces.MethodCallCreateStream sdk) { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java index f3e272d..57b22dc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateStreamResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Stream; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class CreateStreamResponse implements studio.livepeer.livepeer.utils.Response { + +public class CreateStreamResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class CreateStreamResponse implements studio.livepeer.livepeer.utils.Resp /** * Success */ - private Optional stream; + private Optional stream; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public CreateStreamResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional stream, - Optional error) { + Optional stream, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional stream() { - return (Optional) stream; + public Optional stream() { + return (Optional) stream; } /** @@ -107,8 +112,8 @@ public Optional stream() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public CreateStreamResponse withRawResponse(HttpResponse rawRespons /** * Success */ - public CreateStreamResponse withStream(studio.livepeer.livepeer.models.components.Stream stream) { + public CreateStreamResponse withStream(Stream stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; @@ -154,7 +159,7 @@ public CreateStreamResponse withStream(studio.livepeer.livepeer.models.component /** * Success */ - public CreateStreamResponse withStream(Optional stream) { + public CreateStreamResponse withStream(Optional stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; @@ -163,7 +168,7 @@ public CreateStreamResponse withStream(Optional error) { + public CreateStreamResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } CreateStreamResponse other = (CreateStreamResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.stream, other.stream) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.stream, other.stream) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional stream = Optional.empty(); + private Optional stream = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder stream(studio.livepeer.livepeer.models.components.Stream stream) { + public Builder stream(Stream stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; @@ -270,7 +275,7 @@ public Builder stream(studio.livepeer.livepeer.models.components.Stream stream) /** * Success */ - public Builder stream(Optional stream) { + public Builder stream(Optional stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; @@ -279,7 +284,7 @@ public Builder stream(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java index abfdde3..c45911a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookRequestBuilder.java @@ -1,25 +1,15 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import studio.livepeer.livepeer.models.components.WebhookInput; import studio.livepeer.livepeer.utils.Utils; - public class CreateWebhookRequestBuilder { - private studio.livepeer.livepeer.models.components.WebhookInput request; + private WebhookInput request; private final SDKMethodInterfaces.MethodCallCreateWebhook sdk; public CreateWebhookRequestBuilder(SDKMethodInterfaces.MethodCallCreateWebhook sdk) { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java index 1a69db7..0eb3f7b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/CreateWebhookResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Webhook; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class CreateWebhookResponse implements studio.livepeer.livepeer.utils.Response { + +public class CreateWebhookResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class CreateWebhookResponse implements studio.livepeer.livepeer.utils.Res /** * Success */ - private Optional webhook; + private Optional webhook; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public CreateWebhookResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional webhook, - Optional error) { + Optional webhook, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional webhook() { - return (Optional) webhook; + public Optional webhook() { + return (Optional) webhook; } /** @@ -107,8 +112,8 @@ public Optional webhook() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public CreateWebhookResponse withRawResponse(HttpResponse rawRespon /** * Success */ - public CreateWebhookResponse withWebhook(studio.livepeer.livepeer.models.components.Webhook webhook) { + public CreateWebhookResponse withWebhook(Webhook webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = Optional.ofNullable(webhook); return this; @@ -154,7 +159,7 @@ public CreateWebhookResponse withWebhook(studio.livepeer.livepeer.models.compone /** * Success */ - public CreateWebhookResponse withWebhook(Optional webhook) { + public CreateWebhookResponse withWebhook(Optional webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; @@ -163,7 +168,7 @@ public CreateWebhookResponse withWebhook(Optional error) { + public CreateWebhookResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } CreateWebhookResponse other = (CreateWebhookResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.webhook, other.webhook) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.webhook, other.webhook) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional webhook = Optional.empty(); + private Optional webhook = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder webhook(studio.livepeer.livepeer.models.components.Webhook webhook) { + public Builder webhook(Webhook webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = Optional.ofNullable(webhook); return this; @@ -270,7 +275,7 @@ public Builder webhook(studio.livepeer.livepeer.models.components.Webhook webhoo /** * Success */ - public Builder webhook(Optional webhook) { + public Builder webhook(Optional webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; @@ -279,7 +284,7 @@ public Builder webhook(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequest.java index d519fe0..7f8cfd4 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class DeleteAssetRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } DeleteAssetRequest other = (DeleteAssetRequest) o; return - java.util.Objects.deepEquals(this.assetId, other.assetId); + Objects.deepEquals(this.assetId, other.assetId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( assetId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java index 058a930..93aa87b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class DeleteAssetRequestBuilder { private String assetId; @@ -26,7 +16,7 @@ public DeleteAssetRequestBuilder(SDKMethodInterfaces.MethodCallDeleteAsset sdk) this.sdk = sdk; } - public DeleteAssetRequestBuilder assetId(String assetId) { + public DeleteAssetRequestBuilder assetId(java.lang.String assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java index 7791342..5fed379 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteAssetResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class DeleteAssetResponse implements studio.livepeer.livepeer.utils.Response { + +public class DeleteAssetResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class DeleteAssetResponse implements studio.livepeer.livepeer.utils.Respo /** * Error */ - private Optional error; + private Optional error; @JsonCreator public DeleteAssetResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public DeleteAssetResponse withRawResponse(HttpResponse rawResponse /** * Error */ - public DeleteAssetResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public DeleteAssetResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public DeleteAssetResponse withError(studio.livepeer.livepeer.models.errors.Erro /** * Error */ - public DeleteAssetResponse withError(Optional error) { + public DeleteAssetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } DeleteAssetResponse other = (DeleteAssetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequest.java index 1a64ff2..54139b3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class DeleteMultistreamTargetRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } DeleteMultistreamTargetRequest other = (DeleteMultistreamTargetRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java index 6147cd2..4335757 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class DeleteMultistreamTargetRequestBuilder { private String id; @@ -26,7 +16,7 @@ public DeleteMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallDelet this.sdk = sdk; } - public DeleteMultistreamTargetRequestBuilder id(String id) { + public DeleteMultistreamTargetRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java index 4d43313..f1e7250 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteMultistreamTargetResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class DeleteMultistreamTargetResponse implements studio.livepeer.livepeer.utils.Response { + +public class DeleteMultistreamTargetResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class DeleteMultistreamTargetResponse implements studio.livepeer.livepeer /** * Error */ - private Optional error; + private Optional error; @JsonCreator public DeleteMultistreamTargetResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public DeleteMultistreamTargetResponse withRawResponse(HttpResponse /** * Error */ - public DeleteMultistreamTargetResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public DeleteMultistreamTargetResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public DeleteMultistreamTargetResponse withError(studio.livepeer.livepeer.models /** * Error */ - public DeleteMultistreamTargetResponse withError(Optional error) { + public DeleteMultistreamTargetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } DeleteMultistreamTargetResponse other = (DeleteMultistreamTargetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequest.java index 63017aa..48d9ee8 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class DeleteRoomRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } DeleteRoomRequest other = (DeleteRoomRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java index d79ac68..881ae31 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class DeleteRoomRequestBuilder { private String id; @@ -26,7 +16,7 @@ public DeleteRoomRequestBuilder(SDKMethodInterfaces.MethodCallDeleteRoom sdk) { this.sdk = sdk; } - public DeleteRoomRequestBuilder id(String id) { + public DeleteRoomRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java index 0a7c79e..70bc062 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class DeleteRoomResponse implements studio.livepeer.livepeer.utils.Response { + +public class DeleteRoomResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class DeleteRoomResponse implements studio.livepeer.livepeer.utils.Respon /** * Error */ - private Optional error; + private Optional error; @JsonCreator public DeleteRoomResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public DeleteRoomResponse withRawResponse(HttpResponse rawResponse) /** * Error */ - public DeleteRoomResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public DeleteRoomResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public DeleteRoomResponse withError(studio.livepeer.livepeer.models.errors.Error /** * Error */ - public DeleteRoomResponse withError(Optional error) { + public DeleteRoomResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } DeleteRoomResponse other = (DeleteRoomResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequest.java index 7583b35..83d955b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class DeleteRoomUserRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -69,13 +68,13 @@ public boolean equals(java.lang.Object o) { } DeleteRoomUserRequest other = (DeleteRoomUserRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.userId, other.userId); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.userId, other.userId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, userId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java index bff2824..bc19de7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class DeleteRoomUserRequestBuilder { private String id; @@ -27,13 +17,13 @@ public DeleteRoomUserRequestBuilder(SDKMethodInterfaces.MethodCallDeleteRoomUser this.sdk = sdk; } - public DeleteRoomUserRequestBuilder id(String id) { + public DeleteRoomUserRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public DeleteRoomUserRequestBuilder userId(String userId) { + public DeleteRoomUserRequestBuilder userId(java.lang.String userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java index 49106eb..c02116a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteRoomUserResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class DeleteRoomUserResponse implements studio.livepeer.livepeer.utils.Response { + +public class DeleteRoomUserResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class DeleteRoomUserResponse implements studio.livepeer.livepeer.utils.Re /** * Error */ - private Optional error; + private Optional error; @JsonCreator public DeleteRoomUserResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public DeleteRoomUserResponse withRawResponse(HttpResponse rawRespo /** * Error */ - public DeleteRoomUserResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public DeleteRoomUserResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public DeleteRoomUserResponse withError(studio.livepeer.livepeer.models.errors.E /** * Error */ - public DeleteRoomUserResponse withError(Optional error) { + public DeleteRoomUserResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } DeleteRoomUserResponse other = (DeleteRoomUserResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequest.java index ea84b64..9c48b68 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class DeleteSigningKeyRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } DeleteSigningKeyRequest other = (DeleteSigningKeyRequest) o; return - java.util.Objects.deepEquals(this.keyId, other.keyId); + Objects.deepEquals(this.keyId, other.keyId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( keyId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java index cd5255d..e66a712 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class DeleteSigningKeyRequestBuilder { private String keyId; @@ -26,7 +16,7 @@ public DeleteSigningKeyRequestBuilder(SDKMethodInterfaces.MethodCallDeleteSignin this.sdk = sdk; } - public DeleteSigningKeyRequestBuilder keyId(String keyId) { + public DeleteSigningKeyRequestBuilder keyId(java.lang.String keyId) { Utils.checkNotNull(keyId, "keyId"); this.keyId = keyId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java index 1ad6faf..5c5ba5c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteSigningKeyResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class DeleteSigningKeyResponse implements studio.livepeer.livepeer.utils.Response { + +public class DeleteSigningKeyResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class DeleteSigningKeyResponse implements studio.livepeer.livepeer.utils. /** * Error */ - private Optional error; + private Optional error; @JsonCreator public DeleteSigningKeyResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public DeleteSigningKeyResponse withRawResponse(HttpResponse rawRes /** * Error */ - public DeleteSigningKeyResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public DeleteSigningKeyResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public DeleteSigningKeyResponse withError(studio.livepeer.livepeer.models.errors /** * Error */ - public DeleteSigningKeyResponse withError(Optional error) { + public DeleteSigningKeyResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } DeleteSigningKeyResponse other = (DeleteSigningKeyResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequest.java index f027be0..467ff9c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class DeleteStreamRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } DeleteStreamRequest other = (DeleteStreamRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java index 614885c..fdeab72 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class DeleteStreamRequestBuilder { private String id; @@ -26,7 +16,7 @@ public DeleteStreamRequestBuilder(SDKMethodInterfaces.MethodCallDeleteStream sdk this.sdk = sdk; } - public DeleteStreamRequestBuilder id(String id) { + public DeleteStreamRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java index a08ce5b..0ed9fbe 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteStreamResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class DeleteStreamResponse implements studio.livepeer.livepeer.utils.Response { + +public class DeleteStreamResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class DeleteStreamResponse implements studio.livepeer.livepeer.utils.Resp /** * Error */ - private Optional error; + private Optional error; @JsonCreator public DeleteStreamResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public DeleteStreamResponse withRawResponse(HttpResponse rawRespons /** * Error */ - public DeleteStreamResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public DeleteStreamResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public DeleteStreamResponse withError(studio.livepeer.livepeer.models.errors.Err /** * Error */ - public DeleteStreamResponse withError(Optional error) { + public DeleteStreamResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } DeleteStreamResponse other = (DeleteStreamResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequest.java index 02de3d4..2ed6ca8 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class DeleteWebhookRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } DeleteWebhookRequest other = (DeleteWebhookRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java index c78282c..c97044a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class DeleteWebhookRequestBuilder { private String id; @@ -26,7 +16,7 @@ public DeleteWebhookRequestBuilder(SDKMethodInterfaces.MethodCallDeleteWebhook s this.sdk = sdk; } - public DeleteWebhookRequestBuilder id(String id) { + public DeleteWebhookRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java index e3fe648..2bf2d4c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/DeleteWebhookResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Webhook; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class DeleteWebhookResponse implements studio.livepeer.livepeer.utils.Response { + +public class DeleteWebhookResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class DeleteWebhookResponse implements studio.livepeer.livepeer.utils.Res /** * Success */ - private Optional webhook; + private Optional webhook; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public DeleteWebhookResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional webhook, - Optional error) { + Optional webhook, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional webhook() { - return (Optional) webhook; + public Optional webhook() { + return (Optional) webhook; } /** @@ -107,8 +112,8 @@ public Optional webhook() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public DeleteWebhookResponse withRawResponse(HttpResponse rawRespon /** * Success */ - public DeleteWebhookResponse withWebhook(studio.livepeer.livepeer.models.components.Webhook webhook) { + public DeleteWebhookResponse withWebhook(Webhook webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = Optional.ofNullable(webhook); return this; @@ -154,7 +159,7 @@ public DeleteWebhookResponse withWebhook(studio.livepeer.livepeer.models.compone /** * Success */ - public DeleteWebhookResponse withWebhook(Optional webhook) { + public DeleteWebhookResponse withWebhook(Optional webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; @@ -163,7 +168,7 @@ public DeleteWebhookResponse withWebhook(Optional error) { + public DeleteWebhookResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } DeleteWebhookResponse other = (DeleteWebhookResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.webhook, other.webhook) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.webhook, other.webhook) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional webhook = Optional.empty(); + private Optional webhook = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder webhook(studio.livepeer.livepeer.models.components.Webhook webhook) { + public Builder webhook(Webhook webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = Optional.ofNullable(webhook); return this; @@ -270,7 +275,7 @@ public Builder webhook(studio.livepeer.livepeer.models.components.Webhook webhoo /** * Success */ - public Builder webhook(Optional webhook) { + public Builder webhook(Optional webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; @@ -279,7 +284,7 @@ public Builder webhook(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/From.java b/src/main/java/studio/livepeer/livepeer/models/operations/From.java index 5ea7ee1..2952fb1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/From.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/From.java @@ -1,25 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * From - Start timestamp for the query range (inclusive) @@ -28,7 +26,7 @@ @JsonDeserialize(using = From._Deserializer.class) public class From { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private From(TypedObject value) { @@ -42,13 +40,13 @@ public static From of(OffsetDateTime value) { public static From of(long value) { Utils.checkNotNull(value, "value"); - return new From(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new From(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
    - *
  • {@code OffsetDateTime}
  • + *
  • {@code java.time.OffsetDateTime}
  • *
  • {@code long}
  • *
* @@ -76,21 +74,21 @@ public boolean equals(java.lang.Object o) { return false; } From other = (From) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(From.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequest.java index aac7498..bfaaaba 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetAssetRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } GetAssetRequest other = (GetAssetRequest) o; return - java.util.Objects.deepEquals(this.assetId, other.assetId); + Objects.deepEquals(this.assetId, other.assetId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( assetId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java index f41abcf..4f8dceb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetAssetRequestBuilder { private String assetId; @@ -26,7 +16,7 @@ public GetAssetRequestBuilder(SDKMethodInterfaces.MethodCallGetAsset sdk) { this.sdk = sdk; } - public GetAssetRequestBuilder assetId(String assetId) { + public GetAssetRequestBuilder assetId(java.lang.String assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java index 26bd5e9..3d5dd9e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Asset; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetAssetResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetAssetResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class GetAssetResponse implements studio.livepeer.livepeer.utils.Response /** * Success */ - private Optional asset; + private Optional asset; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetAssetResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional asset, - Optional error) { + Optional asset, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional asset() { - return (Optional) asset; + public Optional asset() { + return (Optional) asset; } /** @@ -107,8 +112,8 @@ public Optional asset() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public GetAssetResponse withRawResponse(HttpResponse rawResponse) { /** * Success */ - public GetAssetResponse withAsset(studio.livepeer.livepeer.models.components.Asset asset) { + public GetAssetResponse withAsset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = Optional.ofNullable(asset); return this; @@ -154,7 +159,7 @@ public GetAssetResponse withAsset(studio.livepeer.livepeer.models.components.Ass /** * Success */ - public GetAssetResponse withAsset(Optional asset) { + public GetAssetResponse withAsset(Optional asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; @@ -163,7 +168,7 @@ public GetAssetResponse withAsset(Optional error) { + public GetAssetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } GetAssetResponse other = (GetAssetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.asset, other.asset) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.asset, other.asset) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional asset = Optional.empty(); + private Optional asset = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder asset(studio.livepeer.livepeer.models.components.Asset asset) { + public Builder asset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = Optional.ofNullable(asset); return this; @@ -270,7 +275,7 @@ public Builder asset(studio.livepeer.livepeer.models.components.Asset asset) { /** * Success */ - public Builder asset(Optional asset) { + public Builder asset(Optional asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; @@ -279,7 +284,7 @@ public Builder asset(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsRequestBuilder.java index 45acac5..2eee14c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsRequestBuilder.java @@ -1,21 +1,9 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; -import studio.livepeer.livepeer.utils.Utils; - public class GetAssetsRequestBuilder { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java index d147ff5..9ff146d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetAssetsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Asset; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetAssetsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetAssetsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetAssetsResponse implements studio.livepeer.livepeer.utils.Respons /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetAssetsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetAssetsResponse withRawResponse(HttpResponse rawResponse) /** * Success */ - public GetAssetsResponse withData(java.util.List data) { + public GetAssetsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetAssetsResponse withData(java.util.List> data) { + public GetAssetsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetAssetsResponse withData(Optional error) { + public GetAssetsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetAssetsResponse other = (GetAssetsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequest.java index b441ed4..f7305ef 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetClipsRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } GetClipsRequest other = (GetClipsRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java index 5983a87..9c17820 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetClipsRequestBuilder { private String id; @@ -26,7 +16,7 @@ public GetClipsRequestBuilder(SDKMethodInterfaces.MethodCallGetClips sdk) { this.sdk = sdk; } - public GetClipsRequestBuilder id(String id) { + public GetClipsRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java index 8cd453d..b4191b3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetClipsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Asset; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetClipsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetClipsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetClipsResponse implements studio.livepeer.livepeer.utils.Response /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetClipsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetClipsResponse withRawResponse(HttpResponse rawResponse) { /** * Success */ - public GetClipsResponse withData(java.util.List data) { + public GetClipsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetClipsResponse withData(java.util.List> data) { + public GetClipsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetClipsResponse withData(Optional error) { + public GetClipsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetClipsResponse other = (GetClipsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.java new file mode 100644 index 0000000..88057e1 --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsQueryParamBreakdownBy.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.models.operations; + + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; + +public enum GetCreatorViewershipMetricsQueryParamBreakdownBy { + DEVICE_TYPE("deviceType"), + DEVICE("device"), + CPU("cpu"), + OS("os"), + BROWSER("browser"), + BROWSER_ENGINE("browserEngine"), + CONTINENT("continent"), + COUNTRY("country"), + SUBDIVISION("subdivision"), + TIMEZONE("timezone"), + VIEWER_ID("viewerId"); + + @JsonValue + private final String value; + + private GetCreatorViewershipMetricsQueryParamBreakdownBy(String value) { + this.value = value; + } + + public String value() { + return value; + } +} diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequest.java index a08a11a..660dc3b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequest.java @@ -1,21 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetCreatorViewershipMetricsRequest { /** @@ -40,19 +41,19 @@ public class GetCreatorViewershipMetricsRequest { * The asset ID to filter metrics for */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=assetId") - private Optional assetId; + private Optional assetId; /** * The stream ID to filter metrics for */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=streamId") - private Optional streamId; + private Optional streamId; /** * The creator ID to filter the query results */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=creatorId") - private Optional creatorId; + private Optional creatorId; /** * The list of fields to break down the query results. Specify this @@ -60,17 +61,17 @@ public class GetCreatorViewershipMetricsRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=breakdownBy[]") - private Optional> breakdownBy; + private Optional> breakdownBy; @JsonCreator public GetCreatorViewershipMetricsRequest( Optional from, Optional to, Optional timeStep, - Optional assetId, - Optional streamId, - Optional creatorId, - Optional> breakdownBy) { + Optional assetId, + Optional streamId, + Optional creatorId, + Optional> breakdownBy) { Utils.checkNotNull(from, "from"); Utils.checkNotNull(to, "to"); Utils.checkNotNull(timeStep, "timeStep"); @@ -121,28 +122,25 @@ public Optional timeStep() { /** * The asset ID to filter metrics for */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional assetId() { - return (Optional) assetId; + return assetId; } /** * The stream ID to filter metrics for */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamId() { - return (Optional) streamId; + return streamId; } /** * The creator ID to filter the query results */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional creatorId() { - return (Optional) creatorId; + return creatorId; } /** @@ -152,8 +150,8 @@ public Optional creatorId() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> breakdownBy() { - return (Optional>) breakdownBy; + public Optional> breakdownBy() { + return (Optional>) breakdownBy; } public final static Builder builder() { @@ -226,7 +224,7 @@ public GetCreatorViewershipMetricsRequest withAssetId(String assetId) { /** * The asset ID to filter metrics for */ - public GetCreatorViewershipMetricsRequest withAssetId(Optional assetId) { + public GetCreatorViewershipMetricsRequest withAssetId(Optional assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; @@ -244,7 +242,7 @@ public GetCreatorViewershipMetricsRequest withStreamId(String streamId) { /** * The stream ID to filter metrics for */ - public GetCreatorViewershipMetricsRequest withStreamId(Optional streamId) { + public GetCreatorViewershipMetricsRequest withStreamId(Optional streamId) { Utils.checkNotNull(streamId, "streamId"); this.streamId = streamId; return this; @@ -262,7 +260,7 @@ public GetCreatorViewershipMetricsRequest withCreatorId(String creatorId) { /** * The creator ID to filter the query results */ - public GetCreatorViewershipMetricsRequest withCreatorId(Optional creatorId) { + public GetCreatorViewershipMetricsRequest withCreatorId(Optional creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = creatorId; return this; @@ -273,7 +271,7 @@ public GetCreatorViewershipMetricsRequest withCreatorId(Optional breakdownBy) { + public GetCreatorViewershipMetricsRequest withBreakdownBy(List breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = Optional.ofNullable(breakdownBy); return this; @@ -284,7 +282,7 @@ public GetCreatorViewershipMetricsRequest withBreakdownBy(java.util.List> breakdownBy) { + public GetCreatorViewershipMetricsRequest withBreakdownBy(Optional> breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = breakdownBy; return this; @@ -300,18 +298,18 @@ public boolean equals(java.lang.Object o) { } GetCreatorViewershipMetricsRequest other = (GetCreatorViewershipMetricsRequest) o; return - java.util.Objects.deepEquals(this.from, other.from) && - java.util.Objects.deepEquals(this.to, other.to) && - java.util.Objects.deepEquals(this.timeStep, other.timeStep) && - java.util.Objects.deepEquals(this.assetId, other.assetId) && - java.util.Objects.deepEquals(this.streamId, other.streamId) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.breakdownBy, other.breakdownBy); + Objects.deepEquals(this.from, other.from) && + Objects.deepEquals(this.to, other.to) && + Objects.deepEquals(this.timeStep, other.timeStep) && + Objects.deepEquals(this.assetId, other.assetId) && + Objects.deepEquals(this.streamId, other.streamId) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.breakdownBy, other.breakdownBy); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( from, to, timeStep, @@ -341,13 +339,13 @@ public final static class Builder { private Optional timeStep = Optional.empty(); - private Optional assetId = Optional.empty(); + private Optional assetId = Optional.empty(); - private Optional streamId = Optional.empty(); + private Optional streamId = Optional.empty(); - private Optional creatorId = Optional.empty(); + private Optional creatorId = Optional.empty(); - private Optional> breakdownBy = Optional.empty(); + private Optional> breakdownBy = Optional.empty(); private Builder() { // force use of static builder() method @@ -419,7 +417,7 @@ public Builder assetId(String assetId) { /** * The asset ID to filter metrics for */ - public Builder assetId(Optional assetId) { + public Builder assetId(Optional assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; @@ -437,7 +435,7 @@ public Builder streamId(String streamId) { /** * The stream ID to filter metrics for */ - public Builder streamId(Optional streamId) { + public Builder streamId(Optional streamId) { Utils.checkNotNull(streamId, "streamId"); this.streamId = streamId; return this; @@ -455,7 +453,7 @@ public Builder creatorId(String creatorId) { /** * The creator ID to filter the query results */ - public Builder creatorId(Optional creatorId) { + public Builder creatorId(Optional creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = creatorId; return this; @@ -466,7 +464,7 @@ public Builder creatorId(Optional creatorId) { * query-string multiple times to break down by multiple fields. * */ - public Builder breakdownBy(java.util.List breakdownBy) { + public Builder breakdownBy(List breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = Optional.ofNullable(breakdownBy); return this; @@ -477,7 +475,7 @@ public Builder breakdownBy(java.util.List breakdownBy) { * query-string multiple times to break down by multiple fields. * */ - public Builder breakdownBy(Optional> breakdownBy) { + public Builder breakdownBy(Optional> breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = breakdownBy; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java index a3266c3..f5bc5bb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsRequestBuilder.java @@ -1,22 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; - public class GetCreatorViewershipMetricsRequestBuilder { private GetCreatorViewershipMetricsRequest request; @@ -26,7 +15,7 @@ public GetCreatorViewershipMetricsRequestBuilder(SDKMethodInterfaces.MethodCallG this.sdk = sdk; } - public GetCreatorViewershipMetricsRequestBuilder request(GetCreatorViewershipMetricsRequest request) { + public GetCreatorViewershipMetricsRequestBuilder request(studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java index 8e666a5..2b68e89 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetCreatorViewershipMetricsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.ViewershipMetric; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetCreatorViewershipMetricsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetCreatorViewershipMetricsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetCreatorViewershipMetricsResponse implements studio.livepeer.live /** * A list of Metric objects */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetCreatorViewershipMetricsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetCreatorViewershipMetricsResponse withRawResponse(HttpResponse data) { + public GetCreatorViewershipMetricsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetCreatorViewershipMetricsResponse withData(java.util.List> data) { + public GetCreatorViewershipMetricsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetCreatorViewershipMetricsResponse withData(Optional error) { + public GetCreatorViewershipMetricsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetCreatorViewershipMetricsResponse other = (GetCreatorViewershipMetricsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * A list of Metric objects */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequest.java index 5007299..56b44bc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetMultistreamTargetRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } GetMultistreamTargetRequest other = (GetMultistreamTargetRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java index 49d72cc..90d3b7a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetMultistreamTargetRequestBuilder { private String id; @@ -26,7 +16,7 @@ public GetMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallGetMulti this.sdk = sdk; } - public GetMultistreamTargetRequestBuilder id(String id) { + public GetMultistreamTargetRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java index 8473f4b..587058d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.MultistreamTarget; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetMultistreamTargetResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetMultistreamTargetResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class GetMultistreamTargetResponse implements studio.livepeer.livepeer.ut /** * Success */ - private Optional multistreamTarget; + private Optional multistreamTarget; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetMultistreamTargetResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional multistreamTarget, - Optional error) { + Optional multistreamTarget, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional multistreamTarget() { - return (Optional) multistreamTarget; + public Optional multistreamTarget() { + return (Optional) multistreamTarget; } /** @@ -107,8 +112,8 @@ public Optional mu */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public GetMultistreamTargetResponse withRawResponse(HttpResponse ra /** * Success */ - public GetMultistreamTargetResponse withMultistreamTarget(studio.livepeer.livepeer.models.components.MultistreamTarget multistreamTarget) { + public GetMultistreamTargetResponse withMultistreamTarget(MultistreamTarget multistreamTarget) { Utils.checkNotNull(multistreamTarget, "multistreamTarget"); this.multistreamTarget = Optional.ofNullable(multistreamTarget); return this; @@ -154,7 +159,7 @@ public GetMultistreamTargetResponse withMultistreamTarget(studio.livepeer.livepe /** * Success */ - public GetMultistreamTargetResponse withMultistreamTarget(Optional multistreamTarget) { + public GetMultistreamTargetResponse withMultistreamTarget(Optional multistreamTarget) { Utils.checkNotNull(multistreamTarget, "multistreamTarget"); this.multistreamTarget = multistreamTarget; return this; @@ -163,7 +168,7 @@ public GetMultistreamTargetResponse withMultistreamTarget(Optional error) { + public GetMultistreamTargetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } GetMultistreamTargetResponse other = (GetMultistreamTargetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.multistreamTarget, other.multistreamTarget) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.multistreamTarget, other.multistreamTarget) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional multistreamTarget = Optional.empty(); + private Optional multistreamTarget = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder multistreamTarget(studio.livepeer.livepeer.models.components.MultistreamTarget multistreamTarget) { + public Builder multistreamTarget(MultistreamTarget multistreamTarget) { Utils.checkNotNull(multistreamTarget, "multistreamTarget"); this.multistreamTarget = Optional.ofNullable(multistreamTarget); return this; @@ -270,7 +275,7 @@ public Builder multistreamTarget(studio.livepeer.livepeer.models.components.Mult /** * Success */ - public Builder multistreamTarget(Optional multistreamTarget) { + public Builder multistreamTarget(Optional multistreamTarget) { Utils.checkNotNull(multistreamTarget, "multistreamTarget"); this.multistreamTarget = multistreamTarget; return this; @@ -279,7 +284,7 @@ public Builder multistreamTarget(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsRequestBuilder.java index 2a9ed1e..9171e12 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsRequestBuilder.java @@ -1,21 +1,9 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; -import studio.livepeer.livepeer.utils.Utils; - public class GetMultistreamTargetsRequestBuilder { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java index 62a0150..70d231b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetMultistreamTargetsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.MultistreamTarget; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetMultistreamTargetsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetMultistreamTargetsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetMultistreamTargetsResponse implements studio.livepeer.livepeer.u /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetMultistreamTargetsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetMultistreamTargetsResponse withRawResponse(HttpResponse r /** * Success */ - public GetMultistreamTargetsResponse withData(java.util.List data) { + public GetMultistreamTargetsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetMultistreamTargetsResponse withData(java.util.List> data) { + public GetMultistreamTargetsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetMultistreamTargetsResponse withData(Optional error) { + public GetMultistreamTargetsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetMultistreamTargetsResponse other = (GetMultistreamTargetsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequest.java index 90c29ab..ed7ea86 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetPlaybackInfoRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } GetPlaybackInfoRequest other = (GetPlaybackInfoRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java index 1656e70..0e5e60e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetPlaybackInfoRequestBuilder { private String id; @@ -26,7 +16,7 @@ public GetPlaybackInfoRequestBuilder(SDKMethodInterfaces.MethodCallGetPlaybackIn this.sdk = sdk; } - public GetPlaybackInfoRequestBuilder id(String id) { + public GetPlaybackInfoRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java index 215a06f..4b1a9ef 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPlaybackInfoResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.PlaybackInfo; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetPlaybackInfoResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetPlaybackInfoResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class GetPlaybackInfoResponse implements studio.livepeer.livepeer.utils.R /** * Successful response */ - private Optional playbackInfo; + private Optional playbackInfo; @JsonCreator public GetPlaybackInfoResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional playbackInfo) { + Optional playbackInfo) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional playbackInfo() { - return (Optional) playbackInfo; + public Optional playbackInfo() { + return (Optional) playbackInfo; } public final static Builder builder() { @@ -128,7 +132,7 @@ public GetPlaybackInfoResponse withRawResponse(HttpResponse rawResp /** * Successful response */ - public GetPlaybackInfoResponse withPlaybackInfo(studio.livepeer.livepeer.models.components.PlaybackInfo playbackInfo) { + public GetPlaybackInfoResponse withPlaybackInfo(PlaybackInfo playbackInfo) { Utils.checkNotNull(playbackInfo, "playbackInfo"); this.playbackInfo = Optional.ofNullable(playbackInfo); return this; @@ -137,7 +141,7 @@ public GetPlaybackInfoResponse withPlaybackInfo(studio.livepeer.livepeer.models. /** * Successful response */ - public GetPlaybackInfoResponse withPlaybackInfo(Optional playbackInfo) { + public GetPlaybackInfoResponse withPlaybackInfo(Optional playbackInfo) { Utils.checkNotNull(playbackInfo, "playbackInfo"); this.playbackInfo = playbackInfo; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } GetPlaybackInfoResponse other = (GetPlaybackInfoResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.playbackInfo, other.playbackInfo); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.playbackInfo, other.playbackInfo); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional playbackInfo = Optional.empty(); + private Optional playbackInfo = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Successful response */ - public Builder playbackInfo(studio.livepeer.livepeer.models.components.PlaybackInfo playbackInfo) { + public Builder playbackInfo(PlaybackInfo playbackInfo) { Utils.checkNotNull(playbackInfo, "playbackInfo"); this.playbackInfo = Optional.ofNullable(playbackInfo); return this; @@ -230,7 +234,7 @@ public Builder playbackInfo(studio.livepeer.livepeer.models.components.PlaybackI /** * Successful response */ - public Builder playbackInfo(Optional playbackInfo) { + public Builder playbackInfo(Optional playbackInfo) { Utils.checkNotNull(playbackInfo, "playbackInfo"); this.playbackInfo = playbackInfo; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsData.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsData.java index d1ac5f3..71c2107 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsData.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsData.java @@ -1,22 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Double; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + /** * GetPublicViewershipMetricsData - A simplified metric object about aggregate viewership of an * asset. Either playbackId or dStorageUrl will be set. @@ -30,35 +31,35 @@ public class GetPublicViewershipMetricsData { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("playbackId") - private Optional playbackId; + private Optional playbackId; /** * The URL of the distributed storage used for the asset */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dStorageUrl") - private Optional dStorageUrl; + private Optional dStorageUrl; /** - * The number of views for the asset. + * The number of views for the stream/asset. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewCount") - private Optional viewCount; + private Optional viewCount; /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("playtimeMins") - private Optional playtimeMins; + private Optional playtimeMins; @JsonCreator public GetPublicViewershipMetricsData( - @JsonProperty("playbackId") Optional playbackId, - @JsonProperty("dStorageUrl") Optional dStorageUrl, - @JsonProperty("viewCount") Optional viewCount, - @JsonProperty("playtimeMins") Optional playtimeMins) { + @JsonProperty("playbackId") Optional playbackId, + @JsonProperty("dStorageUrl") Optional dStorageUrl, + @JsonProperty("viewCount") Optional viewCount, + @JsonProperty("playtimeMins") Optional playtimeMins) { Utils.checkNotNull(playbackId, "playbackId"); Utils.checkNotNull(dStorageUrl, "dStorageUrl"); Utils.checkNotNull(viewCount, "viewCount"); @@ -76,37 +77,33 @@ public GetPublicViewershipMetricsData() { /** * The playback ID associated with the metric. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playbackId() { - return (Optional) playbackId; + return playbackId; } /** * The URL of the distributed storage used for the asset */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional dStorageUrl() { - return (Optional) dStorageUrl; + return dStorageUrl; } /** - * The number of views for the asset. + * The number of views for the stream/asset. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional viewCount() { - return (Optional) viewCount; + return viewCount; } /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playtimeMins() { - return (Optional) playtimeMins; + return playtimeMins; } public final static Builder builder() { @@ -125,7 +122,7 @@ public GetPublicViewershipMetricsData withPlaybackId(String playbackId) { /** * The playback ID associated with the metric. */ - public GetPublicViewershipMetricsData withPlaybackId(Optional playbackId) { + public GetPublicViewershipMetricsData withPlaybackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -143,14 +140,14 @@ public GetPublicViewershipMetricsData withDStorageUrl(String dStorageUrl) { /** * The URL of the distributed storage used for the asset */ - public GetPublicViewershipMetricsData withDStorageUrl(Optional dStorageUrl) { + public GetPublicViewershipMetricsData withDStorageUrl(Optional dStorageUrl) { Utils.checkNotNull(dStorageUrl, "dStorageUrl"); this.dStorageUrl = dStorageUrl; return this; } /** - * The number of views for the asset. + * The number of views for the stream/asset. */ public GetPublicViewershipMetricsData withViewCount(long viewCount) { Utils.checkNotNull(viewCount, "viewCount"); @@ -159,16 +156,16 @@ public GetPublicViewershipMetricsData withViewCount(long viewCount) { } /** - * The number of views for the asset. + * The number of views for the stream/asset. */ - public GetPublicViewershipMetricsData withViewCount(Optional viewCount) { + public GetPublicViewershipMetricsData withViewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; } /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ public GetPublicViewershipMetricsData withPlaytimeMins(double playtimeMins) { Utils.checkNotNull(playtimeMins, "playtimeMins"); @@ -177,9 +174,9 @@ public GetPublicViewershipMetricsData withPlaytimeMins(double playtimeMins) { } /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ - public GetPublicViewershipMetricsData withPlaytimeMins(Optional playtimeMins) { + public GetPublicViewershipMetricsData withPlaytimeMins(Optional playtimeMins) { Utils.checkNotNull(playtimeMins, "playtimeMins"); this.playtimeMins = playtimeMins; return this; @@ -195,15 +192,15 @@ public boolean equals(java.lang.Object o) { } GetPublicViewershipMetricsData other = (GetPublicViewershipMetricsData) o; return - java.util.Objects.deepEquals(this.playbackId, other.playbackId) && - java.util.Objects.deepEquals(this.dStorageUrl, other.dStorageUrl) && - java.util.Objects.deepEquals(this.viewCount, other.viewCount) && - java.util.Objects.deepEquals(this.playtimeMins, other.playtimeMins); + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.dStorageUrl, other.dStorageUrl) && + Objects.deepEquals(this.viewCount, other.viewCount) && + Objects.deepEquals(this.playtimeMins, other.playtimeMins); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playbackId, dStorageUrl, viewCount, @@ -221,13 +218,13 @@ public String toString() { public final static class Builder { - private Optional playbackId = Optional.empty(); + private Optional playbackId = Optional.empty(); - private Optional dStorageUrl = Optional.empty(); + private Optional dStorageUrl = Optional.empty(); - private Optional viewCount = Optional.empty(); + private Optional viewCount = Optional.empty(); - private Optional playtimeMins = Optional.empty(); + private Optional playtimeMins = Optional.empty(); private Builder() { // force use of static builder() method @@ -245,7 +242,7 @@ public Builder playbackId(String playbackId) { /** * The playback ID associated with the metric. */ - public Builder playbackId(Optional playbackId) { + public Builder playbackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -263,14 +260,14 @@ public Builder dStorageUrl(String dStorageUrl) { /** * The URL of the distributed storage used for the asset */ - public Builder dStorageUrl(Optional dStorageUrl) { + public Builder dStorageUrl(Optional dStorageUrl) { Utils.checkNotNull(dStorageUrl, "dStorageUrl"); this.dStorageUrl = dStorageUrl; return this; } /** - * The number of views for the asset. + * The number of views for the stream/asset. */ public Builder viewCount(long viewCount) { Utils.checkNotNull(viewCount, "viewCount"); @@ -279,16 +276,16 @@ public Builder viewCount(long viewCount) { } /** - * The number of views for the asset. + * The number of views for the stream/asset. */ - public Builder viewCount(Optional viewCount) { + public Builder viewCount(Optional viewCount) { Utils.checkNotNull(viewCount, "viewCount"); this.viewCount = viewCount; return this; } /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ public Builder playtimeMins(double playtimeMins) { Utils.checkNotNull(playtimeMins, "playtimeMins"); @@ -297,9 +294,9 @@ public Builder playtimeMins(double playtimeMins) { } /** - * The total playtime in minutes for the asset. + * The total playtime in minutes for the stream/asset. */ - public Builder playtimeMins(Optional playtimeMins) { + public Builder playtimeMins(Optional playtimeMins) { Utils.checkNotNull(playtimeMins, "playtimeMins"); this.playtimeMins = playtimeMins; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequest.java index f1cd0be..8d834ad 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetPublicViewershipMetricsRequest { /** @@ -70,12 +69,12 @@ public boolean equals(java.lang.Object o) { } GetPublicViewershipMetricsRequest other = (GetPublicViewershipMetricsRequest) o; return - java.util.Objects.deepEquals(this.playbackId, other.playbackId); + Objects.deepEquals(this.playbackId, other.playbackId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playbackId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java index e59a9a8..6f435f2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetPublicViewershipMetricsRequestBuilder { private String playbackId; @@ -26,7 +16,7 @@ public GetPublicViewershipMetricsRequestBuilder(SDKMethodInterfaces.MethodCallGe this.sdk = sdk; } - public GetPublicViewershipMetricsRequestBuilder playbackId(String playbackId) { + public GetPublicViewershipMetricsRequestBuilder playbackId(java.lang.String playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java index edd4918..2b49c5c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetPublicViewershipMetricsResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetPublicViewershipMetricsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetPublicViewershipMetricsResponse implements Response { /** * HTTP response content type for this operation @@ -41,7 +45,7 @@ public class GetPublicViewershipMetricsResponse implements studio.livepeer.livep /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetPublicViewershipMetricsResponse( @@ -49,7 +53,7 @@ public GetPublicViewershipMetricsResponse( int statusCode, HttpResponse rawResponse, Optional data, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -107,8 +111,8 @@ public Optional data() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -163,7 +167,7 @@ public GetPublicViewershipMetricsResponse withData(Optional error) { + public GetPublicViewershipMetricsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +192,16 @@ public boolean equals(java.lang.Object o) { } GetPublicViewershipMetricsResponse other = (GetPublicViewershipMetricsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -225,7 +229,7 @@ public final static class Builder { private Optional data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -279,7 +283,7 @@ public Builder data(Optional data) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -288,7 +292,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequest.java new file mode 100644 index 0000000..bdd282e --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequest.java @@ -0,0 +1,275 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import studio.livepeer.livepeer.utils.SpeakeasyMetadata; +import studio.livepeer.livepeer.utils.Utils; + + +public class GetRealtimeViewershipNowRequest { + + /** + * The playback ID to filter the query results. This can be a canonical + * playback ID from Livepeer assets or streams, or dStorage identifiers + * for assets + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playbackId") + private Optional playbackId; + + /** + * The creator ID to filter the query results + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=creatorId") + private Optional creatorId; + + /** + * The list of fields to break down the query results. Specify this + * query-string multiple times to break down by multiple fields. + * + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=breakdownBy[]") + private Optional> breakdownBy; + + @JsonCreator + public GetRealtimeViewershipNowRequest( + Optional playbackId, + Optional creatorId, + Optional> breakdownBy) { + Utils.checkNotNull(playbackId, "playbackId"); + Utils.checkNotNull(creatorId, "creatorId"); + Utils.checkNotNull(breakdownBy, "breakdownBy"); + this.playbackId = playbackId; + this.creatorId = creatorId; + this.breakdownBy = breakdownBy; + } + + public GetRealtimeViewershipNowRequest() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * The playback ID to filter the query results. This can be a canonical + * playback ID from Livepeer assets or streams, or dStorage identifiers + * for assets + * + */ + @JsonIgnore + public Optional playbackId() { + return playbackId; + } + + /** + * The creator ID to filter the query results + */ + @JsonIgnore + public Optional creatorId() { + return creatorId; + } + + /** + * The list of fields to break down the query results. Specify this + * query-string multiple times to break down by multiple fields. + * + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> breakdownBy() { + return (Optional>) breakdownBy; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * The playback ID to filter the query results. This can be a canonical + * playback ID from Livepeer assets or streams, or dStorage identifiers + * for assets + * + */ + public GetRealtimeViewershipNowRequest withPlaybackId(String playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = Optional.ofNullable(playbackId); + return this; + } + + /** + * The playback ID to filter the query results. This can be a canonical + * playback ID from Livepeer assets or streams, or dStorage identifiers + * for assets + * + */ + public GetRealtimeViewershipNowRequest withPlaybackId(Optional playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = playbackId; + return this; + } + + /** + * The creator ID to filter the query results + */ + public GetRealtimeViewershipNowRequest withCreatorId(String creatorId) { + Utils.checkNotNull(creatorId, "creatorId"); + this.creatorId = Optional.ofNullable(creatorId); + return this; + } + + /** + * The creator ID to filter the query results + */ + public GetRealtimeViewershipNowRequest withCreatorId(Optional creatorId) { + Utils.checkNotNull(creatorId, "creatorId"); + this.creatorId = creatorId; + return this; + } + + /** + * The list of fields to break down the query results. Specify this + * query-string multiple times to break down by multiple fields. + * + */ + public GetRealtimeViewershipNowRequest withBreakdownBy(List breakdownBy) { + Utils.checkNotNull(breakdownBy, "breakdownBy"); + this.breakdownBy = Optional.ofNullable(breakdownBy); + return this; + } + + /** + * The list of fields to break down the query results. Specify this + * query-string multiple times to break down by multiple fields. + * + */ + public GetRealtimeViewershipNowRequest withBreakdownBy(Optional> breakdownBy) { + Utils.checkNotNull(breakdownBy, "breakdownBy"); + this.breakdownBy = breakdownBy; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetRealtimeViewershipNowRequest other = (GetRealtimeViewershipNowRequest) o; + return + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.breakdownBy, other.breakdownBy); + } + + @Override + public int hashCode() { + return Objects.hash( + playbackId, + creatorId, + breakdownBy); + } + + @Override + public String toString() { + return Utils.toString(GetRealtimeViewershipNowRequest.class, + "playbackId", playbackId, + "creatorId", creatorId, + "breakdownBy", breakdownBy); + } + + public final static class Builder { + + private Optional playbackId = Optional.empty(); + + private Optional creatorId = Optional.empty(); + + private Optional> breakdownBy = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * The playback ID to filter the query results. This can be a canonical + * playback ID from Livepeer assets or streams, or dStorage identifiers + * for assets + * + */ + public Builder playbackId(String playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = Optional.ofNullable(playbackId); + return this; + } + + /** + * The playback ID to filter the query results. This can be a canonical + * playback ID from Livepeer assets or streams, or dStorage identifiers + * for assets + * + */ + public Builder playbackId(Optional playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = playbackId; + return this; + } + + /** + * The creator ID to filter the query results + */ + public Builder creatorId(String creatorId) { + Utils.checkNotNull(creatorId, "creatorId"); + this.creatorId = Optional.ofNullable(creatorId); + return this; + } + + /** + * The creator ID to filter the query results + */ + public Builder creatorId(Optional creatorId) { + Utils.checkNotNull(creatorId, "creatorId"); + this.creatorId = creatorId; + return this; + } + + /** + * The list of fields to break down the query results. Specify this + * query-string multiple times to break down by multiple fields. + * + */ + public Builder breakdownBy(List breakdownBy) { + Utils.checkNotNull(breakdownBy, "breakdownBy"); + this.breakdownBy = Optional.ofNullable(breakdownBy); + return this; + } + + /** + * The list of fields to break down the query results. Specify this + * query-string multiple times to break down by multiple fields. + * + */ + public Builder breakdownBy(Optional> breakdownBy) { + Utils.checkNotNull(breakdownBy, "breakdownBy"); + this.breakdownBy = breakdownBy; + return this; + } + + public GetRealtimeViewershipNowRequest build() { + return new GetRealtimeViewershipNowRequest( + playbackId, + creatorId, + breakdownBy); + } + } +} + diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java new file mode 100644 index 0000000..589383c --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowRequestBuilder.java @@ -0,0 +1,66 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.models.operations; + +import java.lang.String; +import java.util.List; +import java.util.Optional; +import studio.livepeer.livepeer.utils.Utils; + +public class GetRealtimeViewershipNowRequestBuilder { + + private Optional playbackId = Optional.empty(); + private Optional creatorId = Optional.empty(); + private Optional> breakdownBy = Optional.empty(); + private final SDKMethodInterfaces.MethodCallGetRealtimeViewershipNow sdk; + + public GetRealtimeViewershipNowRequestBuilder(SDKMethodInterfaces.MethodCallGetRealtimeViewershipNow sdk) { + this.sdk = sdk; + } + + public GetRealtimeViewershipNowRequestBuilder playbackId(java.lang.String playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = Optional.of(playbackId); + return this; + } + + public GetRealtimeViewershipNowRequestBuilder playbackId(java.util.Optional playbackId) { + Utils.checkNotNull(playbackId, "playbackId"); + this.playbackId = playbackId; + return this; + } + + public GetRealtimeViewershipNowRequestBuilder creatorId(java.lang.String creatorId) { + Utils.checkNotNull(creatorId, "creatorId"); + this.creatorId = Optional.of(creatorId); + return this; + } + + public GetRealtimeViewershipNowRequestBuilder creatorId(java.util.Optional creatorId) { + Utils.checkNotNull(creatorId, "creatorId"); + this.creatorId = creatorId; + return this; + } + + public GetRealtimeViewershipNowRequestBuilder breakdownBy(java.util.List breakdownBy) { + Utils.checkNotNull(breakdownBy, "breakdownBy"); + this.breakdownBy = Optional.of(breakdownBy); + return this; + } + + public GetRealtimeViewershipNowRequestBuilder breakdownBy(java.util.Optional> breakdownBy) { + Utils.checkNotNull(breakdownBy, "breakdownBy"); + this.breakdownBy = breakdownBy; + return this; + } + + public GetRealtimeViewershipNowResponse call() throws Exception { + + return sdk.getRealtimeViewership( + playbackId, + creatorId, + breakdownBy); + } +} diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java new file mode 100644 index 0000000..1f72bb8 --- /dev/null +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRealtimeViewershipNowResponse.java @@ -0,0 +1,313 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +package studio.livepeer.livepeer.models.operations; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import studio.livepeer.livepeer.models.components.RealtimeViewershipMetric; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; +import studio.livepeer.livepeer.utils.Utils; + + +public class GetRealtimeViewershipNowResponse implements Response { + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A list of Metric objects + */ + private Optional> data; + + /** + * Error + */ + private Optional error; + + @JsonCreator + public GetRealtimeViewershipNowResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional> data, + Optional error) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(error, "error"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.data = data; + this.error = error; + } + + public GetRealtimeViewershipNowResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, Optional.empty(), Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A list of Metric objects + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> data() { + return (Optional>) data; + } + + /** + * Error + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional error() { + return (Optional) error; + } + + public final static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetRealtimeViewershipNowResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetRealtimeViewershipNowResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetRealtimeViewershipNowResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A list of Metric objects + */ + public GetRealtimeViewershipNowResponse withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = Optional.ofNullable(data); + return this; + } + + /** + * A list of Metric objects + */ + public GetRealtimeViewershipNowResponse withData(Optional> data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + /** + * Error + */ + public GetRealtimeViewershipNowResponse withError(Error error) { + Utils.checkNotNull(error, "error"); + this.error = Optional.ofNullable(error); + return this; + } + + /** + * Error + */ + public GetRealtimeViewershipNowResponse withError(Optional error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetRealtimeViewershipNowResponse other = (GetRealtimeViewershipNowResponse) o; + return + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); + } + + @Override + public int hashCode() { + return Objects.hash( + contentType, + statusCode, + rawResponse, + data, + error); + } + + @Override + public String toString() { + return Utils.toString(GetRealtimeViewershipNowResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "data", data, + "error", error); + } + + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional> data = Optional.empty(); + + private Optional error = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A list of Metric objects + */ + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = Optional.ofNullable(data); + return this; + } + + /** + * A list of Metric objects + */ + public Builder data(Optional> data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + /** + * Error + */ + public Builder error(Error error) { + Utils.checkNotNull(error, "error"); + this.error = Optional.ofNullable(error); + return this; + } + + /** + * Error + */ + public Builder error(Optional error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + public GetRealtimeViewershipNowResponse build() { + return new GetRealtimeViewershipNowResponse( + contentType, + statusCode, + rawResponse, + data, + error); + } + } +} + diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequest.java index ba8e7ea..0c1c569 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequest.java @@ -1,21 +1,21 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetRecordedSessionsRequest { /** @@ -111,13 +111,13 @@ public boolean equals(java.lang.Object o) { } GetRecordedSessionsRequest other = (GetRecordedSessionsRequest) o; return - java.util.Objects.deepEquals(this.parentId, other.parentId) && - java.util.Objects.deepEquals(this.record, other.record); + Objects.deepEquals(this.parentId, other.parentId) && + Objects.deepEquals(this.record, other.record); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( parentId, record); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java index 7c019a0..2017ed1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsRequestBuilder.java @@ -1,22 +1,13 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; +import java.lang.String; import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; - public class GetRecordedSessionsRequestBuilder { private String parentId; @@ -27,19 +18,19 @@ public GetRecordedSessionsRequestBuilder(SDKMethodInterfaces.MethodCallGetRecord this.sdk = sdk; } - public GetRecordedSessionsRequestBuilder parentId(String parentId) { + public GetRecordedSessionsRequestBuilder parentId(java.lang.String parentId) { Utils.checkNotNull(parentId, "parentId"); this.parentId = parentId; return this; } - public GetRecordedSessionsRequestBuilder record(Record record) { + public GetRecordedSessionsRequestBuilder record(studio.livepeer.livepeer.models.operations.Record record) { Utils.checkNotNull(record, "record"); this.record = Optional.of(record); return this; } - public GetRecordedSessionsRequestBuilder record(Optional record) { + public GetRecordedSessionsRequestBuilder record(java.util.Optional record) { Utils.checkNotNull(record, "record"); this.record = record; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java index 582a27f..7cc4467 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRecordedSessionsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Session; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetRecordedSessionsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetRecordedSessionsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetRecordedSessionsResponse implements studio.livepeer.livepeer.uti /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetRecordedSessionsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetRecordedSessionsResponse withRawResponse(HttpResponse raw /** * Success */ - public GetRecordedSessionsResponse withData(java.util.List data) { + public GetRecordedSessionsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetRecordedSessionsResponse withData(java.util.List> data) { + public GetRecordedSessionsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetRecordedSessionsResponse withData(Optional error) { + public GetRecordedSessionsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetRecordedSessionsResponse other = (GetRecordedSessionsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequest.java index 993300f..c7dd27b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetRoomRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } GetRoomRequest other = (GetRoomRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java index 691a80a..e54d2c6 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetRoomRequestBuilder { private String id; @@ -26,7 +16,7 @@ public GetRoomRequestBuilder(SDKMethodInterfaces.MethodCallGetRoom sdk) { this.sdk = sdk; } - public GetRoomRequestBuilder id(String id) { + public GetRoomRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java index a12b271..e5df89b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Room; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetRoomResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetRoomResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class GetRoomResponse implements studio.livepeer.livepeer.utils.Response /** * Success */ - private Optional room; + private Optional room; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetRoomResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional room, - Optional error) { + Optional room, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional room() { - return (Optional) room; + public Optional room() { + return (Optional) room; } /** @@ -107,8 +112,8 @@ public Optional room() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public GetRoomResponse withRawResponse(HttpResponse rawResponse) { /** * Success */ - public GetRoomResponse withRoom(studio.livepeer.livepeer.models.components.Room room) { + public GetRoomResponse withRoom(Room room) { Utils.checkNotNull(room, "room"); this.room = Optional.ofNullable(room); return this; @@ -154,7 +159,7 @@ public GetRoomResponse withRoom(studio.livepeer.livepeer.models.components.Room /** * Success */ - public GetRoomResponse withRoom(Optional room) { + public GetRoomResponse withRoom(Optional room) { Utils.checkNotNull(room, "room"); this.room = room; return this; @@ -163,7 +168,7 @@ public GetRoomResponse withRoom(Optional error) { + public GetRoomResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } GetRoomResponse other = (GetRoomResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.room, other.room) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.room, other.room) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional room = Optional.empty(); + private Optional room = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder room(studio.livepeer.livepeer.models.components.Room room) { + public Builder room(Room room) { Utils.checkNotNull(room, "room"); this.room = Optional.ofNullable(room); return this; @@ -270,7 +275,7 @@ public Builder room(studio.livepeer.livepeer.models.components.Room room) { /** * Success */ - public Builder room(Optional room) { + public Builder room(Optional room) { Utils.checkNotNull(room, "room"); this.room = room; return this; @@ -279,7 +284,7 @@ public Builder room(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequest.java index 03f5728..8a7e177 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetRoomUserRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -69,13 +68,13 @@ public boolean equals(java.lang.Object o) { } GetRoomUserRequest other = (GetRoomUserRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.userId, other.userId); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.userId, other.userId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, userId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java index 9c8ef5b..17fbe15 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetRoomUserRequestBuilder { private String id; @@ -27,13 +17,13 @@ public GetRoomUserRequestBuilder(SDKMethodInterfaces.MethodCallGetRoomUser sdk) this.sdk = sdk; } - public GetRoomUserRequestBuilder id(String id) { + public GetRoomUserRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetRoomUserRequestBuilder userId(String userId) { + public GetRoomUserRequestBuilder userId(java.lang.String userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java index 363c1ef..002fe90 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetRoomUserResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetRoomUserResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetRoomUserResponse implements Response { /** * HTTP response content type for this operation @@ -41,7 +45,7 @@ public class GetRoomUserResponse implements studio.livepeer.livepeer.utils.Respo /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetRoomUserResponse( @@ -49,7 +53,7 @@ public GetRoomUserResponse( int statusCode, HttpResponse rawResponse, Optional getRoomUserResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -107,8 +111,8 @@ public Optional */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -163,7 +167,7 @@ public GetRoomUserResponse withGetRoomUserResponse(Optional error) { + public GetRoomUserResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +192,16 @@ public boolean equals(java.lang.Object o) { } GetRoomUserResponse other = (GetRoomUserResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.getRoomUserResponse, other.getRoomUserResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.getRoomUserResponse, other.getRoomUserResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -225,7 +229,7 @@ public final static class Builder { private Optional getRoomUserResponse = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -279,7 +283,7 @@ public Builder getRoomUserResponse(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequest.java index c4672c9..14c6cbb 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetSessionClipsRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } GetSessionClipsRequest other = (GetSessionClipsRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java index 9c2cd82..de1abe4 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetSessionClipsRequestBuilder { private String id; @@ -26,7 +16,7 @@ public GetSessionClipsRequestBuilder(SDKMethodInterfaces.MethodCallGetSessionCli this.sdk = sdk; } - public GetSessionClipsRequestBuilder id(String id) { + public GetSessionClipsRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java index a5d7716..8007b69 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionClipsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Asset; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetSessionClipsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetSessionClipsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetSessionClipsResponse implements studio.livepeer.livepeer.utils.R /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetSessionClipsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetSessionClipsResponse withRawResponse(HttpResponse rawResp /** * Success */ - public GetSessionClipsResponse withData(java.util.List data) { + public GetSessionClipsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetSessionClipsResponse withData(java.util.List> data) { + public GetSessionClipsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetSessionClipsResponse withData(Optional error) { + public GetSessionClipsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetSessionClipsResponse other = (GetSessionClipsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequest.java index f2ac541..d0ea474 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetSessionRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } GetSessionRequest other = (GetSessionRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java index 3b1d0b3..37d0354 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetSessionRequestBuilder { private String id; @@ -26,7 +16,7 @@ public GetSessionRequestBuilder(SDKMethodInterfaces.MethodCallGetSession sdk) { this.sdk = sdk; } - public GetSessionRequestBuilder id(String id) { + public GetSessionRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java index 5edbe6b..624b79c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Session; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetSessionResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetSessionResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class GetSessionResponse implements studio.livepeer.livepeer.utils.Respon /** * Success */ - private Optional session; + private Optional session; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetSessionResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional session, - Optional error) { + Optional session, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional session() { - return (Optional) session; + public Optional session() { + return (Optional) session; } /** @@ -107,8 +112,8 @@ public Optional session() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public GetSessionResponse withRawResponse(HttpResponse rawResponse) /** * Success */ - public GetSessionResponse withSession(studio.livepeer.livepeer.models.components.Session session) { + public GetSessionResponse withSession(Session session) { Utils.checkNotNull(session, "session"); this.session = Optional.ofNullable(session); return this; @@ -154,7 +159,7 @@ public GetSessionResponse withSession(studio.livepeer.livepeer.models.components /** * Success */ - public GetSessionResponse withSession(Optional session) { + public GetSessionResponse withSession(Optional session) { Utils.checkNotNull(session, "session"); this.session = session; return this; @@ -163,7 +168,7 @@ public GetSessionResponse withSession(Optional error) { + public GetSessionResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } GetSessionResponse other = (GetSessionResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.session, other.session) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.session, other.session) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional session = Optional.empty(); + private Optional session = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder session(studio.livepeer.livepeer.models.components.Session session) { + public Builder session(Session session) { Utils.checkNotNull(session, "session"); this.session = Optional.ofNullable(session); return this; @@ -270,7 +275,7 @@ public Builder session(studio.livepeer.livepeer.models.components.Session sessio /** * Success */ - public Builder session(Optional session) { + public Builder session(Optional session) { Utils.checkNotNull(session, "session"); this.session = session; return this; @@ -279,7 +284,7 @@ public Builder session(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsRequestBuilder.java index 20943e3..1154a12 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsRequestBuilder.java @@ -1,21 +1,9 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; -import studio.livepeer.livepeer.utils.Utils; - public class GetSessionsRequestBuilder { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java index e8b06d0..abd862e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSessionsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Session; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetSessionsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetSessionsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetSessionsResponse implements studio.livepeer.livepeer.utils.Respo /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetSessionsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetSessionsResponse withRawResponse(HttpResponse rawResponse /** * Success */ - public GetSessionsResponse withData(java.util.List data) { + public GetSessionsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetSessionsResponse withData(java.util.List> data) { + public GetSessionsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetSessionsResponse withData(Optional error) { + public GetSessionsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetSessionsResponse other = (GetSessionsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequest.java index 94381aa..5a9655c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetSigningKeyRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } GetSigningKeyRequest other = (GetSigningKeyRequest) o; return - java.util.Objects.deepEquals(this.keyId, other.keyId); + Objects.deepEquals(this.keyId, other.keyId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( keyId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java index a0d022f..bbb7612 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetSigningKeyRequestBuilder { private String keyId; @@ -26,7 +16,7 @@ public GetSigningKeyRequestBuilder(SDKMethodInterfaces.MethodCallGetSigningKey s this.sdk = sdk; } - public GetSigningKeyRequestBuilder keyId(String keyId) { + public GetSigningKeyRequestBuilder keyId(java.lang.String keyId) { Utils.checkNotNull(keyId, "keyId"); this.keyId = keyId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java index c45ddda..dc0b02c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeyResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.SigningKey; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetSigningKeyResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetSigningKeyResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class GetSigningKeyResponse implements studio.livepeer.livepeer.utils.Res /** * Success */ - private Optional signingKey; + private Optional signingKey; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetSigningKeyResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional signingKey, - Optional error) { + Optional signingKey, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional signingKey() { - return (Optional) signingKey; + public Optional signingKey() { + return (Optional) signingKey; } /** @@ -107,8 +112,8 @@ public Optional signingKe */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public GetSigningKeyResponse withRawResponse(HttpResponse rawRespon /** * Success */ - public GetSigningKeyResponse withSigningKey(studio.livepeer.livepeer.models.components.SigningKey signingKey) { + public GetSigningKeyResponse withSigningKey(SigningKey signingKey) { Utils.checkNotNull(signingKey, "signingKey"); this.signingKey = Optional.ofNullable(signingKey); return this; @@ -154,7 +159,7 @@ public GetSigningKeyResponse withSigningKey(studio.livepeer.livepeer.models.comp /** * Success */ - public GetSigningKeyResponse withSigningKey(Optional signingKey) { + public GetSigningKeyResponse withSigningKey(Optional signingKey) { Utils.checkNotNull(signingKey, "signingKey"); this.signingKey = signingKey; return this; @@ -163,7 +168,7 @@ public GetSigningKeyResponse withSigningKey(Optional error) { + public GetSigningKeyResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } GetSigningKeyResponse other = (GetSigningKeyResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.signingKey, other.signingKey) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.signingKey, other.signingKey) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional signingKey = Optional.empty(); + private Optional signingKey = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder signingKey(studio.livepeer.livepeer.models.components.SigningKey signingKey) { + public Builder signingKey(SigningKey signingKey) { Utils.checkNotNull(signingKey, "signingKey"); this.signingKey = Optional.ofNullable(signingKey); return this; @@ -270,7 +275,7 @@ public Builder signingKey(studio.livepeer.livepeer.models.components.SigningKey /** * Success */ - public Builder signingKey(Optional signingKey) { + public Builder signingKey(Optional signingKey) { Utils.checkNotNull(signingKey, "signingKey"); this.signingKey = signingKey; return this; @@ -279,7 +284,7 @@ public Builder signingKey(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysRequestBuilder.java index 3965ec5..4af9ce9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysRequestBuilder.java @@ -1,21 +1,9 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; -import studio.livepeer.livepeer.utils.Utils; - public class GetSigningKeysRequestBuilder { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java index 41e3f31..f47f52a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetSigningKeysResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.SigningKey; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetSigningKeysResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetSigningKeysResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetSigningKeysResponse implements studio.livepeer.livepeer.utils.Re /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetSigningKeysResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetSigningKeysResponse withRawResponse(HttpResponse rawRespo /** * Success */ - public GetSigningKeysResponse withData(java.util.List data) { + public GetSigningKeysResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetSigningKeysResponse withData(java.util.List> data) { + public GetSigningKeysResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetSigningKeysResponse withData(Optional error) { + public GetSigningKeysResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetSigningKeysResponse other = (GetSigningKeysResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequest.java index 016a2ce..23da661 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetStreamRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } GetStreamRequest other = (GetStreamRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java index 8ac721d..c49ac5c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetStreamRequestBuilder { private String id; @@ -26,7 +16,7 @@ public GetStreamRequestBuilder(SDKMethodInterfaces.MethodCallGetStream sdk) { this.sdk = sdk; } - public GetStreamRequestBuilder id(String id) { + public GetStreamRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java index 8af56d0..8ef420b 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Stream; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetStreamResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetStreamResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class GetStreamResponse implements studio.livepeer.livepeer.utils.Respons /** * Success */ - private Optional stream; + private Optional stream; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetStreamResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional stream, - Optional error) { + Optional stream, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional stream() { - return (Optional) stream; + public Optional stream() { + return (Optional) stream; } /** @@ -107,8 +112,8 @@ public Optional stream() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public GetStreamResponse withRawResponse(HttpResponse rawResponse) /** * Success */ - public GetStreamResponse withStream(studio.livepeer.livepeer.models.components.Stream stream) { + public GetStreamResponse withStream(Stream stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; @@ -154,7 +159,7 @@ public GetStreamResponse withStream(studio.livepeer.livepeer.models.components.S /** * Success */ - public GetStreamResponse withStream(Optional stream) { + public GetStreamResponse withStream(Optional stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; @@ -163,7 +168,7 @@ public GetStreamResponse withStream(Optional error) { + public GetStreamResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } GetStreamResponse other = (GetStreamResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.stream, other.stream) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.stream, other.stream) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional stream = Optional.empty(); + private Optional stream = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder stream(studio.livepeer.livepeer.models.components.Stream stream) { + public Builder stream(Stream stream) { Utils.checkNotNull(stream, "stream"); this.stream = Optional.ofNullable(stream); return this; @@ -270,7 +275,7 @@ public Builder stream(studio.livepeer.livepeer.models.components.Stream stream) /** * Success */ - public Builder stream(Optional stream) { + public Builder stream(Optional stream) { Utils.checkNotNull(stream, "stream"); this.stream = stream; return this; @@ -279,7 +284,7 @@ public Builder stream(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequest.java index 3d6f268..a8c2b5d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequest.java @@ -1,29 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetStreamsRequest { @SpeakeasyMetadata("queryParam:style=form,explode=true,name=streamsonly") - private Optional streamsonly; + private Optional streamsonly; @JsonCreator public GetStreamsRequest( - Optional streamsonly) { + Optional streamsonly) { Utils.checkNotNull(streamsonly, "streamsonly"); this.streamsonly = streamsonly; } @@ -32,10 +31,9 @@ public GetStreamsRequest() { this(Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamsonly() { - return (Optional) streamsonly; + return streamsonly; } public final static Builder builder() { @@ -48,7 +46,7 @@ public GetStreamsRequest withStreamsonly(String streamsonly) { return this; } - public GetStreamsRequest withStreamsonly(Optional streamsonly) { + public GetStreamsRequest withStreamsonly(Optional streamsonly) { Utils.checkNotNull(streamsonly, "streamsonly"); this.streamsonly = streamsonly; return this; @@ -64,12 +62,12 @@ public boolean equals(java.lang.Object o) { } GetStreamsRequest other = (GetStreamsRequest) o; return - java.util.Objects.deepEquals(this.streamsonly, other.streamsonly); + Objects.deepEquals(this.streamsonly, other.streamsonly); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( streamsonly); } @@ -81,7 +79,7 @@ public String toString() { public final static class Builder { - private Optional streamsonly = Optional.empty(); + private Optional streamsonly = Optional.empty(); private Builder() { // force use of static builder() method @@ -93,7 +91,7 @@ public Builder streamsonly(String streamsonly) { return this; } - public Builder streamsonly(Optional streamsonly) { + public Builder streamsonly(Optional streamsonly) { Utils.checkNotNull(streamsonly, "streamsonly"); this.streamsonly = streamsonly; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java index 27ef470..5b47ac7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsRequestBuilder.java @@ -1,38 +1,29 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; +import java.lang.String; import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; - public class GetStreamsRequestBuilder { - private Optional streamsonly = Optional.empty(); + private Optional streamsonly = Optional.empty(); private final SDKMethodInterfaces.MethodCallGetStreams sdk; public GetStreamsRequestBuilder(SDKMethodInterfaces.MethodCallGetStreams sdk) { this.sdk = sdk; } - public GetStreamsRequestBuilder streamsonly(String streamsonly) { + public GetStreamsRequestBuilder streamsonly(java.lang.String streamsonly) { Utils.checkNotNull(streamsonly, "streamsonly"); this.streamsonly = Optional.of(streamsonly); return this; } - public GetStreamsRequestBuilder streamsonly(Optional streamsonly) { + public GetStreamsRequestBuilder streamsonly(java.util.Optional streamsonly) { Utils.checkNotNull(streamsonly, "streamsonly"); this.streamsonly = streamsonly; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java index 81dd652..36cd590 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetStreamsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Stream; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetStreamsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetStreamsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetStreamsResponse implements studio.livepeer.livepeer.utils.Respon /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetStreamsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetStreamsResponse withRawResponse(HttpResponse rawResponse) /** * Success */ - public GetStreamsResponse withData(java.util.List data) { + public GetStreamsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetStreamsResponse withData(java.util.List> data) { + public GetStreamsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetStreamsResponse withData(Optional error) { + public GetStreamsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetStreamsResponse other = (GetStreamsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequest.java index 0364b97..68b977c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetTaskRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } GetTaskRequest other = (GetTaskRequest) o; return - java.util.Objects.deepEquals(this.taskId, other.taskId); + Objects.deepEquals(this.taskId, other.taskId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( taskId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java index 0469d1d..dc36623 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetTaskRequestBuilder { private String taskId; @@ -26,7 +16,7 @@ public GetTaskRequestBuilder(SDKMethodInterfaces.MethodCallGetTask sdk) { this.sdk = sdk; } - public GetTaskRequestBuilder taskId(String taskId) { + public GetTaskRequestBuilder taskId(java.lang.String taskId) { Utils.checkNotNull(taskId, "taskId"); this.taskId = taskId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskResponse.java index 1cd67b7..93d0555 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetTaskResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Task; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetTaskResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetTaskResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class GetTaskResponse implements studio.livepeer.livepeer.utils.Response /** * Success */ - private Optional task; + private Optional task; @JsonCreator public GetTaskResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional task) { + Optional task) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional task() { - return (Optional) task; + public Optional task() { + return (Optional) task; } public final static Builder builder() { @@ -128,7 +132,7 @@ public GetTaskResponse withRawResponse(HttpResponse rawResponse) { /** * Success */ - public GetTaskResponse withTask(studio.livepeer.livepeer.models.components.Task task) { + public GetTaskResponse withTask(Task task) { Utils.checkNotNull(task, "task"); this.task = Optional.ofNullable(task); return this; @@ -137,7 +141,7 @@ public GetTaskResponse withTask(studio.livepeer.livepeer.models.components.Task /** * Success */ - public GetTaskResponse withTask(Optional task) { + public GetTaskResponse withTask(Optional task) { Utils.checkNotNull(task, "task"); this.task = task; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } GetTaskResponse other = (GetTaskResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.task, other.task); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.task, other.task); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional task = Optional.empty(); + private Optional task = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder task(studio.livepeer.livepeer.models.components.Task task) { + public Builder task(Task task) { Utils.checkNotNull(task, "task"); this.task = Optional.ofNullable(task); return this; @@ -230,7 +234,7 @@ public Builder task(studio.livepeer.livepeer.models.components.Task task) { /** * Success */ - public Builder task(Optional task) { + public Builder task(Optional task) { Utils.checkNotNull(task, "task"); this.task = task; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksRequestBuilder.java index d1d8252..da2ef19 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksRequestBuilder.java @@ -1,21 +1,9 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; -import studio.livepeer.livepeer.utils.Utils; - public class GetTasksRequestBuilder { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java index 34d8e34..53c34ce 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetTasksResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Task; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetTasksResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetTasksResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetTasksResponse implements studio.livepeer.livepeer.utils.Response /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetTasksResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional> */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetTasksResponse withRawResponse(HttpResponse rawResponse) { /** * Success */ - public GetTasksResponse withData(java.util.List data) { + public GetTasksResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetTasksResponse withData(java.util.List> data) { + public GetTasksResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetTasksResponse withData(Optional error) { + public GetTasksResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetTasksResponse other = (GetTasksResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamBreakdownBy.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamBreakdownBy.java index 2bf5305..4c3e43e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamBreakdownBy.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamBreakdownBy.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum GetUsageMetricsQueryParamBreakdownBy { CREATOR_ID("creatorId"); diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamTimeStep.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamTimeStep.java index 03e99b7..8ef2430 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamTimeStep.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsQueryParamTimeStep.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * GetUsageMetricsQueryParamTimeStep - The time step to aggregate viewership metrics by diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequest.java index 0ee2098..bbcb6df 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequest.java @@ -1,21 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetUsageMetricsRequest { /** @@ -23,14 +25,14 @@ public class GetUsageMetricsRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=from") - private Optional from; + private Optional from; /** * End millis timestamp for the query range (exclusive) * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=to") - private Optional to; + private Optional to; /** * The time step to aggregate viewership metrics by @@ -44,7 +46,7 @@ public class GetUsageMetricsRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=creatorId") - private Optional creatorId; + private Optional creatorId; /** * The list of fields to break down the query results. Currently the @@ -52,15 +54,15 @@ public class GetUsageMetricsRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=breakdownBy[]") - private Optional> breakdownBy; + private Optional> breakdownBy; @JsonCreator public GetUsageMetricsRequest( - Optional from, - Optional to, + Optional from, + Optional to, Optional timeStep, - Optional creatorId, - Optional> breakdownBy) { + Optional creatorId, + Optional> breakdownBy) { Utils.checkNotNull(from, "from"); Utils.checkNotNull(to, "to"); Utils.checkNotNull(timeStep, "timeStep"); @@ -81,20 +83,18 @@ public GetUsageMetricsRequest() { * Start millis timestamp for the query range (inclusive) * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional from() { - return (Optional) from; + return from; } /** * End millis timestamp for the query range (exclusive) * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional to() { - return (Optional) to; + return to; } /** @@ -111,10 +111,9 @@ public Optional timeStep() { * The creator ID to filter the query results * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional creatorId() { - return (Optional) creatorId; + return creatorId; } /** @@ -124,8 +123,8 @@ public Optional creatorId() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> breakdownBy() { - return (Optional>) breakdownBy; + public Optional> breakdownBy() { + return (Optional>) breakdownBy; } public final static Builder builder() { @@ -146,7 +145,7 @@ public GetUsageMetricsRequest withFrom(long from) { * Start millis timestamp for the query range (inclusive) * */ - public GetUsageMetricsRequest withFrom(Optional from) { + public GetUsageMetricsRequest withFrom(Optional from) { Utils.checkNotNull(from, "from"); this.from = from; return this; @@ -166,7 +165,7 @@ public GetUsageMetricsRequest withTo(long to) { * End millis timestamp for the query range (exclusive) * */ - public GetUsageMetricsRequest withTo(Optional to) { + public GetUsageMetricsRequest withTo(Optional to) { Utils.checkNotNull(to, "to"); this.to = to; return this; @@ -206,7 +205,7 @@ public GetUsageMetricsRequest withCreatorId(String creatorId) { * The creator ID to filter the query results * */ - public GetUsageMetricsRequest withCreatorId(Optional creatorId) { + public GetUsageMetricsRequest withCreatorId(Optional creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = creatorId; return this; @@ -217,7 +216,7 @@ public GetUsageMetricsRequest withCreatorId(Optional creatorId * only supported breakdown is by `creatorId`. * */ - public GetUsageMetricsRequest withBreakdownBy(java.util.List breakdownBy) { + public GetUsageMetricsRequest withBreakdownBy(List breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = Optional.ofNullable(breakdownBy); return this; @@ -228,7 +227,7 @@ public GetUsageMetricsRequest withBreakdownBy(java.util.List> breakdownBy) { + public GetUsageMetricsRequest withBreakdownBy(Optional> breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = breakdownBy; return this; @@ -244,16 +243,16 @@ public boolean equals(java.lang.Object o) { } GetUsageMetricsRequest other = (GetUsageMetricsRequest) o; return - java.util.Objects.deepEquals(this.from, other.from) && - java.util.Objects.deepEquals(this.to, other.to) && - java.util.Objects.deepEquals(this.timeStep, other.timeStep) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.breakdownBy, other.breakdownBy); + Objects.deepEquals(this.from, other.from) && + Objects.deepEquals(this.to, other.to) && + Objects.deepEquals(this.timeStep, other.timeStep) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.breakdownBy, other.breakdownBy); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( from, to, timeStep, @@ -273,15 +272,15 @@ public String toString() { public final static class Builder { - private Optional from = Optional.empty(); + private Optional from = Optional.empty(); - private Optional to = Optional.empty(); + private Optional to = Optional.empty(); private Optional timeStep = Optional.empty(); - private Optional creatorId = Optional.empty(); + private Optional creatorId = Optional.empty(); - private Optional> breakdownBy = Optional.empty(); + private Optional> breakdownBy = Optional.empty(); private Builder() { // force use of static builder() method @@ -301,7 +300,7 @@ public Builder from(long from) { * Start millis timestamp for the query range (inclusive) * */ - public Builder from(Optional from) { + public Builder from(Optional from) { Utils.checkNotNull(from, "from"); this.from = from; return this; @@ -321,7 +320,7 @@ public Builder to(long to) { * End millis timestamp for the query range (exclusive) * */ - public Builder to(Optional to) { + public Builder to(Optional to) { Utils.checkNotNull(to, "to"); this.to = to; return this; @@ -361,7 +360,7 @@ public Builder creatorId(String creatorId) { * The creator ID to filter the query results * */ - public Builder creatorId(Optional creatorId) { + public Builder creatorId(Optional creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = creatorId; return this; @@ -372,7 +371,7 @@ public Builder creatorId(Optional creatorId) { * only supported breakdown is by `creatorId`. * */ - public Builder breakdownBy(java.util.List breakdownBy) { + public Builder breakdownBy(List breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = Optional.ofNullable(breakdownBy); return this; @@ -383,7 +382,7 @@ public Builder breakdownBy(java.util.List * only supported breakdown is by `creatorId`. * */ - public Builder breakdownBy(Optional> breakdownBy) { + public Builder breakdownBy(Optional> breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = breakdownBy; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java index 78ef3f6..70d758c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsRequestBuilder.java @@ -1,22 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; - public class GetUsageMetricsRequestBuilder { private GetUsageMetricsRequest request; @@ -26,7 +15,7 @@ public GetUsageMetricsRequestBuilder(SDKMethodInterfaces.MethodCallGetUsageMetri this.sdk = sdk; } - public GetUsageMetricsRequestBuilder request(GetUsageMetricsRequest request) { + public GetUsageMetricsRequestBuilder request(studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java index 0cdfb8d..4f43e8c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetUsageMetricsResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.UsageMetric; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetUsageMetricsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetUsageMetricsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class GetUsageMetricsResponse implements studio.livepeer.livepeer.utils.R /** * A Usage Metric object */ - private Optional usageMetric; + private Optional usageMetric; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetUsageMetricsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional usageMetric, - Optional error) { + Optional usageMetric, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional usageMetric() { - return (Optional) usageMetric; + public Optional usageMetric() { + return (Optional) usageMetric; } /** @@ -107,8 +112,8 @@ public Optional usageMet */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public GetUsageMetricsResponse withRawResponse(HttpResponse rawResp /** * A Usage Metric object */ - public GetUsageMetricsResponse withUsageMetric(studio.livepeer.livepeer.models.components.UsageMetric usageMetric) { + public GetUsageMetricsResponse withUsageMetric(UsageMetric usageMetric) { Utils.checkNotNull(usageMetric, "usageMetric"); this.usageMetric = Optional.ofNullable(usageMetric); return this; @@ -154,7 +159,7 @@ public GetUsageMetricsResponse withUsageMetric(studio.livepeer.livepeer.models.c /** * A Usage Metric object */ - public GetUsageMetricsResponse withUsageMetric(Optional usageMetric) { + public GetUsageMetricsResponse withUsageMetric(Optional usageMetric) { Utils.checkNotNull(usageMetric, "usageMetric"); this.usageMetric = usageMetric; return this; @@ -163,7 +168,7 @@ public GetUsageMetricsResponse withUsageMetric(Optional error) { + public GetUsageMetricsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } GetUsageMetricsResponse other = (GetUsageMetricsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.usageMetric, other.usageMetric) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.usageMetric, other.usageMetric) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional usageMetric = Optional.empty(); + private Optional usageMetric = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * A Usage Metric object */ - public Builder usageMetric(studio.livepeer.livepeer.models.components.UsageMetric usageMetric) { + public Builder usageMetric(UsageMetric usageMetric) { Utils.checkNotNull(usageMetric, "usageMetric"); this.usageMetric = Optional.ofNullable(usageMetric); return this; @@ -270,7 +275,7 @@ public Builder usageMetric(studio.livepeer.livepeer.models.components.UsageMetri /** * A Usage Metric object */ - public Builder usageMetric(Optional usageMetric) { + public Builder usageMetric(Optional usageMetric) { Utils.checkNotNull(usageMetric, "usageMetric"); this.usageMetric = usageMetric; return this; @@ -279,7 +284,7 @@ public Builder usageMetric(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequest.java index 7745cfb..e39bedf 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequest.java @@ -1,21 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetViewershipMetricsRequest { /** @@ -25,7 +26,7 @@ public class GetViewershipMetricsRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=playbackId") - private Optional playbackId; + private Optional playbackId; /** * Start timestamp for the query range (inclusive) @@ -49,19 +50,19 @@ public class GetViewershipMetricsRequest { * The asset ID to filter metrics for */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=assetId") - private Optional assetId; + private Optional assetId; /** * The stream ID to filter metrics for */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=streamId") - private Optional streamId; + private Optional streamId; /** * The creator ID to filter the query results */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=creatorId") - private Optional creatorId; + private Optional creatorId; /** * The list of fields to break down the query results. Specify this @@ -69,18 +70,18 @@ public class GetViewershipMetricsRequest { * */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=breakdownBy[]") - private Optional> breakdownBy; + private Optional> breakdownBy; @JsonCreator public GetViewershipMetricsRequest( - Optional playbackId, + Optional playbackId, Optional from, Optional to, Optional timeStep, - Optional assetId, - Optional streamId, - Optional creatorId, - Optional> breakdownBy) { + Optional assetId, + Optional streamId, + Optional creatorId, + Optional> breakdownBy) { Utils.checkNotNull(playbackId, "playbackId"); Utils.checkNotNull(from, "from"); Utils.checkNotNull(to, "to"); @@ -109,10 +110,9 @@ public GetViewershipMetricsRequest() { * for assets * */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional playbackId() { - return (Optional) playbackId; + return playbackId; } /** @@ -145,28 +145,25 @@ public Optional timeStep() { /** * The asset ID to filter metrics for */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional assetId() { - return (Optional) assetId; + return assetId; } /** * The stream ID to filter metrics for */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional streamId() { - return (Optional) streamId; + return streamId; } /** * The creator ID to filter the query results */ - @SuppressWarnings("unchecked") @JsonIgnore public Optional creatorId() { - return (Optional) creatorId; + return creatorId; } /** @@ -176,8 +173,8 @@ public Optional creatorId() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> breakdownBy() { - return (Optional>) breakdownBy; + public Optional> breakdownBy() { + return (Optional>) breakdownBy; } public final static Builder builder() { @@ -202,7 +199,7 @@ public GetViewershipMetricsRequest withPlaybackId(String playbackId) { * for assets * */ - public GetViewershipMetricsRequest withPlaybackId(Optional playbackId) { + public GetViewershipMetricsRequest withPlaybackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -274,7 +271,7 @@ public GetViewershipMetricsRequest withAssetId(String assetId) { /** * The asset ID to filter metrics for */ - public GetViewershipMetricsRequest withAssetId(Optional assetId) { + public GetViewershipMetricsRequest withAssetId(Optional assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; @@ -292,7 +289,7 @@ public GetViewershipMetricsRequest withStreamId(String streamId) { /** * The stream ID to filter metrics for */ - public GetViewershipMetricsRequest withStreamId(Optional streamId) { + public GetViewershipMetricsRequest withStreamId(Optional streamId) { Utils.checkNotNull(streamId, "streamId"); this.streamId = streamId; return this; @@ -310,7 +307,7 @@ public GetViewershipMetricsRequest withCreatorId(String creatorId) { /** * The creator ID to filter the query results */ - public GetViewershipMetricsRequest withCreatorId(Optional creatorId) { + public GetViewershipMetricsRequest withCreatorId(Optional creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = creatorId; return this; @@ -321,7 +318,7 @@ public GetViewershipMetricsRequest withCreatorId(Optional crea * query-string multiple times to break down by multiple fields. * */ - public GetViewershipMetricsRequest withBreakdownBy(java.util.List breakdownBy) { + public GetViewershipMetricsRequest withBreakdownBy(List breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = Optional.ofNullable(breakdownBy); return this; @@ -332,7 +329,7 @@ public GetViewershipMetricsRequest withBreakdownBy(java.util.List b * query-string multiple times to break down by multiple fields. * */ - public GetViewershipMetricsRequest withBreakdownBy(Optional> breakdownBy) { + public GetViewershipMetricsRequest withBreakdownBy(Optional> breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = breakdownBy; return this; @@ -348,19 +345,19 @@ public boolean equals(java.lang.Object o) { } GetViewershipMetricsRequest other = (GetViewershipMetricsRequest) o; return - java.util.Objects.deepEquals(this.playbackId, other.playbackId) && - java.util.Objects.deepEquals(this.from, other.from) && - java.util.Objects.deepEquals(this.to, other.to) && - java.util.Objects.deepEquals(this.timeStep, other.timeStep) && - java.util.Objects.deepEquals(this.assetId, other.assetId) && - java.util.Objects.deepEquals(this.streamId, other.streamId) && - java.util.Objects.deepEquals(this.creatorId, other.creatorId) && - java.util.Objects.deepEquals(this.breakdownBy, other.breakdownBy); + Objects.deepEquals(this.playbackId, other.playbackId) && + Objects.deepEquals(this.from, other.from) && + Objects.deepEquals(this.to, other.to) && + Objects.deepEquals(this.timeStep, other.timeStep) && + Objects.deepEquals(this.assetId, other.assetId) && + Objects.deepEquals(this.streamId, other.streamId) && + Objects.deepEquals(this.creatorId, other.creatorId) && + Objects.deepEquals(this.breakdownBy, other.breakdownBy); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( playbackId, from, to, @@ -386,7 +383,7 @@ public String toString() { public final static class Builder { - private Optional playbackId = Optional.empty(); + private Optional playbackId = Optional.empty(); private Optional from = Optional.empty(); @@ -394,13 +391,13 @@ public final static class Builder { private Optional timeStep = Optional.empty(); - private Optional assetId = Optional.empty(); + private Optional assetId = Optional.empty(); - private Optional streamId = Optional.empty(); + private Optional streamId = Optional.empty(); - private Optional creatorId = Optional.empty(); + private Optional creatorId = Optional.empty(); - private Optional> breakdownBy = Optional.empty(); + private Optional> breakdownBy = Optional.empty(); private Builder() { // force use of static builder() method @@ -424,7 +421,7 @@ public Builder playbackId(String playbackId) { * for assets * */ - public Builder playbackId(Optional playbackId) { + public Builder playbackId(Optional playbackId) { Utils.checkNotNull(playbackId, "playbackId"); this.playbackId = playbackId; return this; @@ -496,7 +493,7 @@ public Builder assetId(String assetId) { /** * The asset ID to filter metrics for */ - public Builder assetId(Optional assetId) { + public Builder assetId(Optional assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; @@ -514,7 +511,7 @@ public Builder streamId(String streamId) { /** * The stream ID to filter metrics for */ - public Builder streamId(Optional streamId) { + public Builder streamId(Optional streamId) { Utils.checkNotNull(streamId, "streamId"); this.streamId = streamId; return this; @@ -532,7 +529,7 @@ public Builder creatorId(String creatorId) { /** * The creator ID to filter the query results */ - public Builder creatorId(Optional creatorId) { + public Builder creatorId(Optional creatorId) { Utils.checkNotNull(creatorId, "creatorId"); this.creatorId = creatorId; return this; @@ -543,7 +540,7 @@ public Builder creatorId(Optional creatorId) { * query-string multiple times to break down by multiple fields. * */ - public Builder breakdownBy(java.util.List breakdownBy) { + public Builder breakdownBy(List breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = Optional.ofNullable(breakdownBy); return this; @@ -554,7 +551,7 @@ public Builder breakdownBy(java.util.List breakdownBy) { * query-string multiple times to break down by multiple fields. * */ - public Builder breakdownBy(Optional> breakdownBy) { + public Builder breakdownBy(Optional> breakdownBy) { Utils.checkNotNull(breakdownBy, "breakdownBy"); this.breakdownBy = breakdownBy; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java index fbf5abd..c563e8e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsRequestBuilder.java @@ -1,22 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; import studio.livepeer.livepeer.utils.Utils; - public class GetViewershipMetricsRequestBuilder { private GetViewershipMetricsRequest request; @@ -26,7 +15,7 @@ public GetViewershipMetricsRequestBuilder(SDKMethodInterfaces.MethodCallGetViewe this.sdk = sdk; } - public GetViewershipMetricsRequestBuilder request(GetViewershipMetricsRequest request) { + public GetViewershipMetricsRequestBuilder request(studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java index 3f6735a..095fae0 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetViewershipMetricsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.ViewershipMetric; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetViewershipMetricsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetViewershipMetricsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetViewershipMetricsResponse implements studio.livepeer.livepeer.ut /** * A list of Metric objects */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetViewershipMetricsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetViewershipMetricsResponse withRawResponse(HttpResponse ra /** * A list of Metric objects */ - public GetViewershipMetricsResponse withData(java.util.List data) { + public GetViewershipMetricsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetViewershipMetricsResponse withData(java.util.List> data) { + public GetViewershipMetricsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetViewershipMetricsResponse withData(Optional error) { + public GetViewershipMetricsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetViewershipMetricsResponse other = (GetViewershipMetricsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * A list of Metric objects */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequest.java index dc21f91..68b48b2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetWebhookLogRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -69,13 +68,13 @@ public boolean equals(java.lang.Object o) { } GetWebhookLogRequest other = (GetWebhookLogRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.logId, other.logId); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.logId, other.logId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, logId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java index 4c30370..e6ab3cf 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetWebhookLogRequestBuilder { private String id; @@ -27,13 +17,13 @@ public GetWebhookLogRequestBuilder(SDKMethodInterfaces.MethodCallGetWebhookLog s this.sdk = sdk; } - public GetWebhookLogRequestBuilder id(String id) { + public GetWebhookLogRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public GetWebhookLogRequestBuilder logId(String logId) { + public GetWebhookLogRequestBuilder logId(java.lang.String logId) { Utils.checkNotNull(logId, "logId"); this.logId = logId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java index 11467e2..8aee898 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.WebhookLog; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetWebhookLogResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetWebhookLogResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class GetWebhookLogResponse implements studio.livepeer.livepeer.utils.Res /** * Success */ - private Optional webhookLog; + private Optional webhookLog; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetWebhookLogResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional webhookLog, - Optional error) { + Optional webhookLog, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional webhookLog() { - return (Optional) webhookLog; + public Optional webhookLog() { + return (Optional) webhookLog; } /** @@ -107,8 +112,8 @@ public Optional webhookLo */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public GetWebhookLogResponse withRawResponse(HttpResponse rawRespon /** * Success */ - public GetWebhookLogResponse withWebhookLog(studio.livepeer.livepeer.models.components.WebhookLog webhookLog) { + public GetWebhookLogResponse withWebhookLog(WebhookLog webhookLog) { Utils.checkNotNull(webhookLog, "webhookLog"); this.webhookLog = Optional.ofNullable(webhookLog); return this; @@ -154,7 +159,7 @@ public GetWebhookLogResponse withWebhookLog(studio.livepeer.livepeer.models.comp /** * Success */ - public GetWebhookLogResponse withWebhookLog(Optional webhookLog) { + public GetWebhookLogResponse withWebhookLog(Optional webhookLog) { Utils.checkNotNull(webhookLog, "webhookLog"); this.webhookLog = webhookLog; return this; @@ -163,7 +168,7 @@ public GetWebhookLogResponse withWebhookLog(Optional error) { + public GetWebhookLogResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } GetWebhookLogResponse other = (GetWebhookLogResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.webhookLog, other.webhookLog) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.webhookLog, other.webhookLog) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional webhookLog = Optional.empty(); + private Optional webhookLog = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder webhookLog(studio.livepeer.livepeer.models.components.WebhookLog webhookLog) { + public Builder webhookLog(WebhookLog webhookLog) { Utils.checkNotNull(webhookLog, "webhookLog"); this.webhookLog = Optional.ofNullable(webhookLog); return this; @@ -270,7 +275,7 @@ public Builder webhookLog(studio.livepeer.livepeer.models.components.WebhookLog /** * Success */ - public Builder webhookLog(Optional webhookLog) { + public Builder webhookLog(Optional webhookLog) { Utils.checkNotNull(webhookLog, "webhookLog"); this.webhookLog = webhookLog; return this; @@ -279,7 +284,7 @@ public Builder webhookLog(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequest.java index ae6597f..d6d7e10 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetWebhookLogsRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } GetWebhookLogsRequest other = (GetWebhookLogsRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java index c84c724..d0d9066 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetWebhookLogsRequestBuilder { private String id; @@ -26,7 +16,7 @@ public GetWebhookLogsRequestBuilder(SDKMethodInterfaces.MethodCallGetWebhookLogs this.sdk = sdk; } - public GetWebhookLogsRequestBuilder id(String id) { + public GetWebhookLogsRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java index 3cab18c..1c52dab 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookLogsResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.WebhookLog; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetWebhookLogsResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetWebhookLogsResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetWebhookLogsResponse implements studio.livepeer.livepeer.utils.Re /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetWebhookLogsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetWebhookLogsResponse withRawResponse(HttpResponse rawRespo /** * Success */ - public GetWebhookLogsResponse withData(java.util.List data) { + public GetWebhookLogsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetWebhookLogsResponse withData(java.util.List> data) { + public GetWebhookLogsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetWebhookLogsResponse withData(Optional error) { + public GetWebhookLogsResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetWebhookLogsResponse other = (GetWebhookLogsResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequest.java index 7f6573c..af354ea 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class GetWebhookRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } GetWebhookRequest other = (GetWebhookRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java index 7e0ec77..a323d5c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class GetWebhookRequestBuilder { private String id; @@ -26,7 +16,7 @@ public GetWebhookRequestBuilder(SDKMethodInterfaces.MethodCallGetWebhook sdk) { this.sdk = sdk; } - public GetWebhookRequestBuilder id(String id) { + public GetWebhookRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java index dd28b58..a98dfb5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhookResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Webhook; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetWebhookResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetWebhookResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class GetWebhookResponse implements studio.livepeer.livepeer.utils.Respon /** * Success */ - private Optional webhook; + private Optional webhook; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetWebhookResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional webhook, - Optional error) { + Optional webhook, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional webhook() { - return (Optional) webhook; + public Optional webhook() { + return (Optional) webhook; } /** @@ -107,8 +112,8 @@ public Optional webhook() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public GetWebhookResponse withRawResponse(HttpResponse rawResponse) /** * Success */ - public GetWebhookResponse withWebhook(studio.livepeer.livepeer.models.components.Webhook webhook) { + public GetWebhookResponse withWebhook(Webhook webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = Optional.ofNullable(webhook); return this; @@ -154,7 +159,7 @@ public GetWebhookResponse withWebhook(studio.livepeer.livepeer.models.components /** * Success */ - public GetWebhookResponse withWebhook(Optional webhook) { + public GetWebhookResponse withWebhook(Optional webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; @@ -163,7 +168,7 @@ public GetWebhookResponse withWebhook(Optional error) { + public GetWebhookResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } GetWebhookResponse other = (GetWebhookResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.webhook, other.webhook) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.webhook, other.webhook) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional webhook = Optional.empty(); + private Optional webhook = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder webhook(studio.livepeer.livepeer.models.components.Webhook webhook) { + public Builder webhook(Webhook webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = Optional.ofNullable(webhook); return this; @@ -270,7 +275,7 @@ public Builder webhook(studio.livepeer.livepeer.models.components.Webhook webhoo /** * Success */ - public Builder webhook(Optional webhook) { + public Builder webhook(Optional webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; @@ -279,7 +284,7 @@ public Builder webhook(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksRequestBuilder.java index 5451bc1..361fb45 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksRequestBuilder.java @@ -1,21 +1,9 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; -import studio.livepeer.livepeer.utils.Utils; - public class GetWebhooksRequestBuilder { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java index bbee719..6de1c67 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/GetWebhooksResponse.java @@ -1,22 +1,28 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.List; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Webhook; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class GetWebhooksResponse implements studio.livepeer.livepeer.utils.Response { + +public class GetWebhooksResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +42,20 @@ public class GetWebhooksResponse implements studio.livepeer.livepeer.utils.Respo /** * Success */ - private Optional> data; + private Optional> data; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public GetWebhooksResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional> data, - Optional error) { + Optional> data, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +104,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } /** @@ -107,8 +113,8 @@ public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +151,7 @@ public GetWebhooksResponse withRawResponse(HttpResponse rawResponse /** * Success */ - public GetWebhooksResponse withData(java.util.List data) { + public GetWebhooksResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -154,7 +160,7 @@ public GetWebhooksResponse withData(java.util.List> data) { + public GetWebhooksResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -163,7 +169,7 @@ public GetWebhooksResponse withData(Optional error) { + public GetWebhooksResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +194,16 @@ public boolean equals(java.lang.Object o) { } GetWebhooksResponse other = (GetWebhooksResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +229,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +267,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder data(java.util.List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; @@ -270,7 +276,7 @@ public Builder data(java.util.List> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -279,7 +285,7 @@ public Builder data(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamBreakdownBy.java b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamBreakdownBy.java index 9ea9fb3..dcaa45f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamBreakdownBy.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamBreakdownBy.java @@ -1,21 +1,15 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; public enum QueryParamBreakdownBy { + PLAYBACK_ID("playbackId"), DEVICE_TYPE("deviceType"), DEVICE("device"), CPU("cpu"), @@ -26,7 +20,9 @@ public enum QueryParamBreakdownBy { COUNTRY("country"), SUBDIVISION("subdivision"), TIMEZONE("timezone"), - VIEWER_ID("viewerId"); + GEOHASH("geohash"), + VIEWER_ID("viewerId"), + CREATOR_ID("creatorId"); @JsonValue private final String value; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java index 804c166..913e07a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamFrom.java @@ -1,25 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * QueryParamFrom - Start timestamp for the query range (inclusive) @@ -28,7 +26,7 @@ @JsonDeserialize(using = QueryParamFrom._Deserializer.class) public class QueryParamFrom { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private QueryParamFrom(TypedObject value) { @@ -42,13 +40,13 @@ public static QueryParamFrom of(OffsetDateTime value) { public static QueryParamFrom of(long value) { Utils.checkNotNull(value, "value"); - return new QueryParamFrom(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new QueryParamFrom(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
    - *
  • {@code OffsetDateTime}
  • + *
  • {@code java.time.OffsetDateTime}
  • *
  • {@code long}
  • *
* @@ -76,21 +74,21 @@ public boolean equals(java.lang.Object o) { return false; } QueryParamFrom other = (QueryParamFrom) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(QueryParamFrom.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTimeStep.java b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTimeStep.java index ef4ecd7..16d89fa 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTimeStep.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTimeStep.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * QueryParamTimeStep - The time step to aggregate viewership metrics by diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java index 191e305..9e32909 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/QueryParamTo.java @@ -1,25 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * QueryParamTo - End timestamp for the query range (exclusive) @@ -28,7 +26,7 @@ @JsonDeserialize(using = QueryParamTo._Deserializer.class) public class QueryParamTo { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private QueryParamTo(TypedObject value) { @@ -42,13 +40,13 @@ public static QueryParamTo of(OffsetDateTime value) { public static QueryParamTo of(long value) { Utils.checkNotNull(value, "value"); - return new QueryParamTo(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new QueryParamTo(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
    - *
  • {@code OffsetDateTime}
  • + *
  • {@code java.time.OffsetDateTime}
  • *
  • {@code long}
  • *
* @@ -76,21 +74,21 @@ public boolean equals(java.lang.Object o) { return false; } QueryParamTo other = (QueryParamTo) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(QueryParamTo.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/Record.java b/src/main/java/studio/livepeer/livepeer/models/operations/Record.java index 0b0de44..89134c4 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/Record.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/Record.java @@ -1,25 +1,22 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * Record - Flag indicating if the response should only include recorded @@ -30,7 +27,7 @@ @JsonDeserialize(using = Record._Deserializer.class) public class Record { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private Record(TypedObject value) { @@ -39,12 +36,12 @@ private Record(TypedObject value) { public static Record of(boolean value) { Utils.checkNotNull(value, "value"); - return new Record(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new Record(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } public static Record of(long value) { Utils.checkNotNull(value, "value"); - return new Record(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new Record(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** @@ -78,21 +75,21 @@ public boolean equals(java.lang.Object o) { return false; } Record other = (Record) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(Record.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequest.java index c09d913..12032e6 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class RemoveMultistreamTargetRequest { /** @@ -87,13 +86,13 @@ public boolean equals(java.lang.Object o) { } RemoveMultistreamTargetRequest other = (RemoveMultistreamTargetRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.targetId, other.targetId); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.targetId, other.targetId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, targetId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java index fee08b0..739512d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class RemoveMultistreamTargetRequestBuilder { private String id; @@ -27,13 +17,13 @@ public RemoveMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallRemov this.sdk = sdk; } - public RemoveMultistreamTargetRequestBuilder id(String id) { + public RemoveMultistreamTargetRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public RemoveMultistreamTargetRequestBuilder targetId(String targetId) { + public RemoveMultistreamTargetRequestBuilder targetId(java.lang.String targetId) { Utils.checkNotNull(targetId, "targetId"); this.targetId = targetId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java index da8951d..12c7858 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RemoveMultistreamTargetResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class RemoveMultistreamTargetResponse implements studio.livepeer.livepeer.utils.Response { + +public class RemoveMultistreamTargetResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class RemoveMultistreamTargetResponse implements studio.livepeer.livepeer /** * Error */ - private Optional error; + private Optional error; @JsonCreator public RemoveMultistreamTargetResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public RemoveMultistreamTargetResponse withRawResponse(HttpResponse /** * Error */ - public RemoveMultistreamTargetResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public RemoveMultistreamTargetResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public RemoveMultistreamTargetResponse withError(studio.livepeer.livepeer.models /** * Error */ - public RemoveMultistreamTargetResponse withError(Optional error) { + public RemoveMultistreamTargetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } RemoveMultistreamTargetResponse other = (RemoveMultistreamTargetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadData.java b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadData.java index a5f3f26..220e860 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadData.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadData.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.Asset; import studio.livepeer.livepeer.utils.Utils; + /** * RequestUploadData - Success */ @@ -33,7 +33,7 @@ public class RequestUploadData { private String tusEndpoint; @JsonProperty("asset") - private studio.livepeer.livepeer.models.components.Asset asset; + private Asset asset; @JsonProperty("task") private Task task; @@ -42,7 +42,7 @@ public class RequestUploadData { public RequestUploadData( @JsonProperty("url") String url, @JsonProperty("tusEndpoint") String tusEndpoint, - @JsonProperty("asset") studio.livepeer.livepeer.models.components.Asset asset, + @JsonProperty("asset") Asset asset, @JsonProperty("task") Task task) { Utils.checkNotNull(url, "url"); Utils.checkNotNull(tusEndpoint, "tusEndpoint"); @@ -71,7 +71,7 @@ public String tusEndpoint() { } @JsonIgnore - public studio.livepeer.livepeer.models.components.Asset asset() { + public Asset asset() { return asset; } @@ -102,7 +102,7 @@ public RequestUploadData withTusEndpoint(String tusEndpoint) { return this; } - public RequestUploadData withAsset(studio.livepeer.livepeer.models.components.Asset asset) { + public RequestUploadData withAsset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; @@ -124,15 +124,15 @@ public boolean equals(java.lang.Object o) { } RequestUploadData other = (RequestUploadData) o; return - java.util.Objects.deepEquals(this.url, other.url) && - java.util.Objects.deepEquals(this.tusEndpoint, other.tusEndpoint) && - java.util.Objects.deepEquals(this.asset, other.asset) && - java.util.Objects.deepEquals(this.task, other.task); + Objects.deepEquals(this.url, other.url) && + Objects.deepEquals(this.tusEndpoint, other.tusEndpoint) && + Objects.deepEquals(this.asset, other.asset) && + Objects.deepEquals(this.task, other.task); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( url, tusEndpoint, asset, @@ -154,7 +154,7 @@ public final static class Builder { private String tusEndpoint; - private studio.livepeer.livepeer.models.components.Asset asset; + private Asset asset; private Task task; @@ -180,7 +180,7 @@ public Builder tusEndpoint(String tusEndpoint) { return this; } - public Builder asset(studio.livepeer.livepeer.models.components.Asset asset) { + public Builder asset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java index 552323f..c1e527c 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadRequestBuilder.java @@ -1,25 +1,15 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import studio.livepeer.livepeer.models.components.NewAssetPayload; import studio.livepeer.livepeer.utils.Utils; - public class RequestUploadRequestBuilder { - private studio.livepeer.livepeer.models.components.NewAssetPayload request; + private NewAssetPayload request; private final SDKMethodInterfaces.MethodCallRequestUpload sdk; public RequestUploadRequestBuilder(SDKMethodInterfaces.MethodCallRequestUpload sdk) { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java index 8694a9a..0ec9161 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/RequestUploadResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class RequestUploadResponse implements studio.livepeer.livepeer.utils.Response { + +public class RequestUploadResponse implements Response { /** * HTTP response content type for this operation @@ -41,7 +45,7 @@ public class RequestUploadResponse implements studio.livepeer.livepeer.utils.Res /** * Error */ - private Optional error; + private Optional error; @JsonCreator public RequestUploadResponse( @@ -49,7 +53,7 @@ public RequestUploadResponse( int statusCode, HttpResponse rawResponse, Optional data, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -107,8 +111,8 @@ public Optional data() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -163,7 +167,7 @@ public RequestUploadResponse withData(Optional data /** * Error */ - public RequestUploadResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public RequestUploadResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -172,7 +176,7 @@ public RequestUploadResponse withError(studio.livepeer.livepeer.models.errors.Er /** * Error */ - public RequestUploadResponse withError(Optional error) { + public RequestUploadResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +192,16 @@ public boolean equals(java.lang.Object o) { } RequestUploadResponse other = (RequestUploadResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.data, other.data) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.data, other.data) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -225,7 +229,7 @@ public final static class Builder { private Optional data = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -279,7 +283,7 @@ public Builder data(Optional data) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -288,7 +292,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequest.java index 2dccea1..322c706 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class ResendWebhookRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -69,13 +68,13 @@ public boolean equals(java.lang.Object o) { } ResendWebhookRequest other = (ResendWebhookRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.logId, other.logId); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.logId, other.logId); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, logId); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java index 1804ed9..d12ba51 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class ResendWebhookRequestBuilder { private String id; @@ -27,13 +17,13 @@ public ResendWebhookRequestBuilder(SDKMethodInterfaces.MethodCallResendWebhook s this.sdk = sdk; } - public ResendWebhookRequestBuilder id(String id) { + public ResendWebhookRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public ResendWebhookRequestBuilder logId(String logId) { + public ResendWebhookRequestBuilder logId(java.lang.String logId) { Utils.checkNotNull(logId, "logId"); this.logId = logId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java index cdbe28a..65962c5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/ResendWebhookResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.WebhookLog; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class ResendWebhookResponse implements studio.livepeer.livepeer.utils.Response { + +public class ResendWebhookResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class ResendWebhookResponse implements studio.livepeer.livepeer.utils.Res /** * Success */ - private Optional webhookLog; + private Optional webhookLog; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public ResendWebhookResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional webhookLog, - Optional error) { + Optional webhookLog, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional webhookLog() { - return (Optional) webhookLog; + public Optional webhookLog() { + return (Optional) webhookLog; } /** @@ -107,8 +112,8 @@ public Optional webhookLo */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public ResendWebhookResponse withRawResponse(HttpResponse rawRespon /** * Success */ - public ResendWebhookResponse withWebhookLog(studio.livepeer.livepeer.models.components.WebhookLog webhookLog) { + public ResendWebhookResponse withWebhookLog(WebhookLog webhookLog) { Utils.checkNotNull(webhookLog, "webhookLog"); this.webhookLog = Optional.ofNullable(webhookLog); return this; @@ -154,7 +159,7 @@ public ResendWebhookResponse withWebhookLog(studio.livepeer.livepeer.models.comp /** * Success */ - public ResendWebhookResponse withWebhookLog(Optional webhookLog) { + public ResendWebhookResponse withWebhookLog(Optional webhookLog) { Utils.checkNotNull(webhookLog, "webhookLog"); this.webhookLog = webhookLog; return this; @@ -163,7 +168,7 @@ public ResendWebhookResponse withWebhookLog(Optional error) { + public ResendWebhookResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } ResendWebhookResponse other = (ResendWebhookResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.webhookLog, other.webhookLog) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.webhookLog, other.webhookLog) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional webhookLog = Optional.empty(); + private Optional webhookLog = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder webhookLog(studio.livepeer.livepeer.models.components.WebhookLog webhookLog) { + public Builder webhookLog(WebhookLog webhookLog) { Utils.checkNotNull(webhookLog, "webhookLog"); this.webhookLog = Optional.ofNullable(webhookLog); return this; @@ -270,7 +275,7 @@ public Builder webhookLog(studio.livepeer.livepeer.models.components.WebhookLog /** * Success */ - public Builder webhookLog(Optional webhookLog) { + public Builder webhookLog(Optional webhookLog) { Utils.checkNotNull(webhookLog, "webhookLog"); this.webhookLog = webhookLog; return this; @@ -279,7 +284,7 @@ public Builder webhookLog(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java b/src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java index c8fff7d..0246e85 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/SDKMethodInterfaces.java @@ -1,28 +1,39 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; +import java.lang.String; +import java.util.List; import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - +import studio.livepeer.livepeer.models.components.AssetPatchPayload; +import studio.livepeer.livepeer.models.components.ClipPayload; +import studio.livepeer.livepeer.models.components.MultistreamTargetInput; +import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; +import studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload; +import studio.livepeer.livepeer.models.components.NewAssetPayload; +import studio.livepeer.livepeer.models.components.NewStreamPayload; +import studio.livepeer.livepeer.models.components.RoomEgressPayload; +import studio.livepeer.livepeer.models.components.RoomUserPayload; +import studio.livepeer.livepeer.models.components.RoomUserUpdatePayload; +import studio.livepeer.livepeer.models.components.StreamPatchPayload; +import studio.livepeer.livepeer.models.components.TargetAddPayload; +import studio.livepeer.livepeer.models.components.TranscodePayload; +import studio.livepeer.livepeer.models.components.WebhookInput; public class SDKMethodInterfaces { + public interface MethodCallCreateStream { studio.livepeer.livepeer.models.operations.CreateStreamResponse create( - studio.livepeer.livepeer.models.components.NewStreamPayload request) throws Exception; + NewStreamPayload request) throws Exception; } public interface MethodCallGetStreams { studio.livepeer.livepeer.models.operations.GetStreamsResponse getAll( - Optional streamsonly) throws Exception; + Optional streamsonly) throws Exception; } @@ -35,7 +46,7 @@ studio.livepeer.livepeer.models.operations.GetStreamResponse get( public interface MethodCallUpdateStream { studio.livepeer.livepeer.models.operations.UpdateStreamResponse update( String id, - studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload) throws Exception; + StreamPatchPayload streamPatchPayload) throws Exception; } @@ -59,7 +70,7 @@ studio.livepeer.livepeer.models.operations.StartPullStreamResponse startPull( public interface MethodCallCreateClip { studio.livepeer.livepeer.models.operations.CreateClipResponse createClip( - studio.livepeer.livepeer.models.components.ClipPayload request) throws Exception; + ClipPayload request) throws Exception; } @@ -72,7 +83,7 @@ studio.livepeer.livepeer.models.operations.GetClipsResponse getClips( public interface MethodCallAddMultistreamTarget { studio.livepeer.livepeer.models.operations.AddMultistreamTargetResponse addMultistreamTarget( String id, - studio.livepeer.livepeer.models.components.TargetAddPayload targetAddPayload) throws Exception; + TargetAddPayload targetAddPayload) throws Exception; } @@ -90,7 +101,7 @@ public interface MethodCallGetMultistreamTargets { public interface MethodCallCreateMultistreamTarget { studio.livepeer.livepeer.models.operations.CreateMultistreamTargetResponse create( - studio.livepeer.livepeer.models.components.MultistreamTargetInput request) throws Exception; + MultistreamTargetInput request) throws Exception; } @@ -103,7 +114,7 @@ studio.livepeer.livepeer.models.operations.GetMultistreamTargetResponse get( public interface MethodCallUpdateMultistreamTarget { studio.livepeer.livepeer.models.operations.UpdateMultistreamTargetResponse update( String id, - studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload) throws Exception; + MultistreamTargetPatchPayload multistreamTargetPatchPayload) throws Exception; } @@ -120,7 +131,7 @@ public interface MethodCallGetWebhooks { public interface MethodCallCreateWebhook { studio.livepeer.livepeer.models.operations.CreateWebhookResponse create( - studio.livepeer.livepeer.models.components.WebhookInput request) throws Exception; + WebhookInput request) throws Exception; } @@ -133,7 +144,7 @@ studio.livepeer.livepeer.models.operations.GetWebhookResponse get( public interface MethodCallUpdateWebhook { studio.livepeer.livepeer.models.operations.UpdateWebhookResponse update( String id, - studio.livepeer.livepeer.models.components.WebhookInput webhook) throws Exception; + WebhookInput webhook) throws Exception; } @@ -170,13 +181,13 @@ public interface MethodCallGetAssets { public interface MethodCallRequestUpload { studio.livepeer.livepeer.models.operations.RequestUploadResponse create( - studio.livepeer.livepeer.models.components.NewAssetPayload request) throws Exception; + NewAssetPayload request) throws Exception; } public interface MethodCallUploadAsset { studio.livepeer.livepeer.models.operations.UploadAssetResponse createViaUrl( - studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload request) throws Exception; + NewAssetFromUrlPayload request) throws Exception; } @@ -189,7 +200,7 @@ studio.livepeer.livepeer.models.operations.GetAssetResponse get( public interface MethodCallUpdateAsset { studio.livepeer.livepeer.models.operations.UpdateAssetResponse update( String assetId, - studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload) throws Exception; + AssetPatchPayload assetPatchPayload) throws Exception; } @@ -219,7 +230,7 @@ studio.livepeer.livepeer.models.operations.GetSessionResponse get( public interface MethodCallGetRecordedSessions { studio.livepeer.livepeer.models.operations.GetRecordedSessionsResponse getRecorded( String parentId, - Optional record) throws Exception; + Optional record) throws Exception; } @@ -243,7 +254,7 @@ studio.livepeer.livepeer.models.operations.DeleteRoomResponse delete( public interface MethodCallStartRoomEgress { studio.livepeer.livepeer.models.operations.StartRoomEgressResponse startEgress( String id, - studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload) throws Exception; + RoomEgressPayload roomEgressPayload) throws Exception; } @@ -256,7 +267,7 @@ studio.livepeer.livepeer.models.operations.StopRoomEgressResponse stopEgress( public interface MethodCallCreateRoomUser { studio.livepeer.livepeer.models.operations.CreateRoomUserResponse createUser( String id, - studio.livepeer.livepeer.models.components.RoomUserPayload roomUserPayload) throws Exception; + RoomUserPayload roomUserPayload) throws Exception; } @@ -271,7 +282,7 @@ public interface MethodCallUpdateRoomUser { studio.livepeer.livepeer.models.operations.UpdateRoomUserResponse updateUser( String id, String userId, - studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload) throws Exception; + RoomUserUpdatePayload roomUserUpdatePayload) throws Exception; } @@ -282,15 +293,23 @@ studio.livepeer.livepeer.models.operations.DeleteRoomUserResponse deleteUser( } + public interface MethodCallGetRealtimeViewershipNow { + studio.livepeer.livepeer.models.operations.GetRealtimeViewershipNowResponse getRealtimeViewership( + Optional playbackId, + Optional creatorId, + Optional> breakdownBy) throws Exception; + } + + public interface MethodCallGetViewershipMetrics { studio.livepeer.livepeer.models.operations.GetViewershipMetricsResponse getViewership( - studio.livepeer.livepeer.models.operations.GetViewershipMetricsRequest request) throws Exception; + GetViewershipMetricsRequest request) throws Exception; } public interface MethodCallGetCreatorViewershipMetrics { studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsResponse getCreatorViewership( - studio.livepeer.livepeer.models.operations.GetCreatorViewershipMetricsRequest request) throws Exception; + GetCreatorViewershipMetricsRequest request) throws Exception; } @@ -302,7 +321,7 @@ studio.livepeer.livepeer.models.operations.GetPublicViewershipMetricsResponse ge public interface MethodCallGetUsageMetrics { studio.livepeer.livepeer.models.operations.GetUsageMetricsResponse getUsage( - studio.livepeer.livepeer.models.operations.GetUsageMetricsRequest request) throws Exception; + GetUsageMetricsRequest request) throws Exception; } @@ -331,7 +350,7 @@ studio.livepeer.livepeer.models.operations.GetSigningKeyResponse get( public interface MethodCallUpdateSigningKey { studio.livepeer.livepeer.models.operations.UpdateSigningKeyResponse update( String keyId, - studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody requestBody) throws Exception; + UpdateSigningKeyRequestBody requestBody) throws Exception; } @@ -348,7 +367,7 @@ studio.livepeer.livepeer.models.operations.GetTaskResponse get( public interface MethodCallTranscodeVideo { studio.livepeer.livepeer.models.operations.TranscodeVideoResponse create( - studio.livepeer.livepeer.models.components.TranscodePayload request) throws Exception; + TranscodePayload request) throws Exception; } @@ -357,4 +376,5 @@ studio.livepeer.livepeer.models.operations.GetPlaybackInfoResponse get( String id) throws Exception; } + } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequest.java index 507f91a..f1b41f7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class StartPullStreamRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } StartPullStreamRequest other = (StartPullStreamRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java index e610305..736a7bd 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class StartPullStreamRequestBuilder { private String id; @@ -26,7 +16,7 @@ public StartPullStreamRequestBuilder(SDKMethodInterfaces.MethodCallStartPullStre this.sdk = sdk; } - public StartPullStreamRequestBuilder id(String id) { + public StartPullStreamRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java index c82370c..37c1f7a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartPullStreamResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class StartPullStreamResponse implements studio.livepeer.livepeer.utils.Response { + +public class StartPullStreamResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class StartPullStreamResponse implements studio.livepeer.livepeer.utils.R /** * Error */ - private Optional error; + private Optional error; @JsonCreator public StartPullStreamResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public StartPullStreamResponse withRawResponse(HttpResponse rawResp /** * Error */ - public StartPullStreamResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public StartPullStreamResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public StartPullStreamResponse withError(studio.livepeer.livepeer.models.errors. /** * Error */ - public StartPullStreamResponse withError(Optional error) { + public StartPullStreamResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } StartPullStreamResponse other = (StartPullStreamResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequest.java index 3277fa2..70f9f5d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequest.java @@ -1,32 +1,32 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.RoomEgressPayload; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class StartRoomEgressRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") private String id; @SpeakeasyMetadata("request:mediaType=application/json") - private studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload; + private RoomEgressPayload roomEgressPayload; @JsonCreator public StartRoomEgressRequest( String id, - studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload) { + RoomEgressPayload roomEgressPayload) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(roomEgressPayload, "roomEgressPayload"); this.id = id; @@ -39,7 +39,7 @@ public String id() { } @JsonIgnore - public studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload() { + public RoomEgressPayload roomEgressPayload() { return roomEgressPayload; } @@ -53,7 +53,7 @@ public StartRoomEgressRequest withId(String id) { return this; } - public StartRoomEgressRequest withRoomEgressPayload(studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload) { + public StartRoomEgressRequest withRoomEgressPayload(RoomEgressPayload roomEgressPayload) { Utils.checkNotNull(roomEgressPayload, "roomEgressPayload"); this.roomEgressPayload = roomEgressPayload; return this; @@ -69,13 +69,13 @@ public boolean equals(java.lang.Object o) { } StartRoomEgressRequest other = (StartRoomEgressRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.roomEgressPayload, other.roomEgressPayload); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.roomEgressPayload, other.roomEgressPayload); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, roomEgressPayload); } @@ -91,7 +91,7 @@ public final static class Builder { private String id; - private studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload; + private RoomEgressPayload roomEgressPayload; private Builder() { // force use of static builder() method @@ -103,7 +103,7 @@ public Builder id(String id) { return this; } - public Builder roomEgressPayload(studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload) { + public Builder roomEgressPayload(RoomEgressPayload roomEgressPayload) { Utils.checkNotNull(roomEgressPayload, "roomEgressPayload"); this.roomEgressPayload = roomEgressPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java index 565b639..ee8e632 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressRequestBuilder.java @@ -1,33 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; +import studio.livepeer.livepeer.models.components.RoomEgressPayload; import studio.livepeer.livepeer.utils.Utils; - public class StartRoomEgressRequestBuilder { private String id; - private studio.livepeer.livepeer.models.components.RoomEgressPayload roomEgressPayload; + private RoomEgressPayload roomEgressPayload; private final SDKMethodInterfaces.MethodCallStartRoomEgress sdk; public StartRoomEgressRequestBuilder(SDKMethodInterfaces.MethodCallStartRoomEgress sdk) { this.sdk = sdk; } - public StartRoomEgressRequestBuilder id(String id) { + public StartRoomEgressRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java index 70b992e..248f0ea 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StartRoomEgressResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class StartRoomEgressResponse implements studio.livepeer.livepeer.utils.Response { + +public class StartRoomEgressResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class StartRoomEgressResponse implements studio.livepeer.livepeer.utils.R /** * Error */ - private Optional error; + private Optional error; @JsonCreator public StartRoomEgressResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public StartRoomEgressResponse withRawResponse(HttpResponse rawResp /** * Error */ - public StartRoomEgressResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public StartRoomEgressResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public StartRoomEgressResponse withError(studio.livepeer.livepeer.models.errors. /** * Error */ - public StartRoomEgressResponse withError(Optional error) { + public StartRoomEgressResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } StartRoomEgressResponse other = (StartRoomEgressResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequest.java index cc5060b..ac7c2f1 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class StopRoomEgressRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } StopRoomEgressRequest other = (StopRoomEgressRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java index 91a1451..53f69e6 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class StopRoomEgressRequestBuilder { private String id; @@ -26,7 +16,7 @@ public StopRoomEgressRequestBuilder(SDKMethodInterfaces.MethodCallStopRoomEgress this.sdk = sdk; } - public StopRoomEgressRequestBuilder id(String id) { + public StopRoomEgressRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java index 3b0945d..e3036d2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/StopRoomEgressResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class StopRoomEgressResponse implements studio.livepeer.livepeer.utils.Response { + +public class StopRoomEgressResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class StopRoomEgressResponse implements studio.livepeer.livepeer.utils.Re /** * Error */ - private Optional error; + private Optional error; @JsonCreator public StopRoomEgressResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public StopRoomEgressResponse withRawResponse(HttpResponse rawRespo /** * Error */ - public StopRoomEgressResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public StopRoomEgressResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public StopRoomEgressResponse withError(studio.livepeer.livepeer.models.errors.E /** * Error */ - public StopRoomEgressResponse withError(Optional error) { + public StopRoomEgressResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } StopRoomEgressResponse other = (StopRoomEgressResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/Task.java b/src/main/java/studio/livepeer/livepeer/models/operations/Task.java index d5953e9..c89f617 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/Task.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/Task.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class Task { @JsonProperty("id") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } Task other = (Task) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequest.java index d48ecb9..e843cb9 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class TerminateStreamRequest { /** @@ -61,12 +60,12 @@ public boolean equals(java.lang.Object o) { } TerminateStreamRequest other = (TerminateStreamRequest) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java index 9666b6c..78e2725 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class TerminateStreamRequestBuilder { private String id; @@ -26,7 +16,7 @@ public TerminateStreamRequestBuilder(SDKMethodInterfaces.MethodCallTerminateStre this.sdk = sdk; } - public TerminateStreamRequestBuilder id(String id) { + public TerminateStreamRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java index 1fa6ca2..286cddc 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TerminateStreamResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class TerminateStreamResponse implements studio.livepeer.livepeer.utils.Response { + +public class TerminateStreamResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class TerminateStreamResponse implements studio.livepeer.livepeer.utils.R /** * Error */ - private Optional error; + private Optional error; @JsonCreator public TerminateStreamResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public TerminateStreamResponse withRawResponse(HttpResponse rawResp /** * Error */ - public TerminateStreamResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public TerminateStreamResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public TerminateStreamResponse withError(studio.livepeer.livepeer.models.errors. /** * Error */ - public TerminateStreamResponse withError(Optional error) { + public TerminateStreamResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } TerminateStreamResponse other = (TerminateStreamResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TimeStep.java b/src/main/java/studio/livepeer/livepeer/models/operations/TimeStep.java index 36c6c1c..cdb59f5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TimeStep.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TimeStep.java @@ -1,19 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; +import java.lang.String; /** * TimeStep - The time step to aggregate viewership metrics by diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/To.java b/src/main/java/studio/livepeer/livepeer/models/operations/To.java index 930ff91..271ce44 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/To.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/To.java @@ -1,25 +1,23 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; -import studio.livepeer.livepeer.utils.Utils; -import java.time.OffsetDateTime; -import java.time.LocalDate; +import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import studio.livepeer.livepeer.utils.OneOfDeserializer; import studio.livepeer.livepeer.utils.TypedObject; import studio.livepeer.livepeer.utils.Utils.JsonShape; +import studio.livepeer.livepeer.utils.Utils.TypeReferenceWithShape; +import studio.livepeer.livepeer.utils.Utils; /** * To - End timestamp for the query range (exclusive) @@ -28,7 +26,7 @@ @JsonDeserialize(using = To._Deserializer.class) public class To { - @com.fasterxml.jackson.annotation.JsonValue + @JsonValue private TypedObject value; private To(TypedObject value) { @@ -42,13 +40,13 @@ public static To of(OffsetDateTime value) { public static To of(long value) { Utils.checkNotNull(value, "value"); - return new To(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new To(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
    - *
  • {@code OffsetDateTime}
  • + *
  • {@code java.time.OffsetDateTime}
  • *
  • {@code long}
  • *
* @@ -76,21 +74,21 @@ public boolean equals(java.lang.Object o) { return false; } To other = (To) o; - return java.util.Objects.deepEquals(this.value.value(), other.value.value()); + return Objects.deepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return java.util.Objects.hash(value.value()); + return Objects.hash(value.value()); } @SuppressWarnings("serial") - public static final class _Deserializer extends studio.livepeer.livepeer.utils.OneOfDeserializer { + public static final class _Deserializer extends OneOfDeserializer { public _Deserializer() { super(To.class, - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT), - Utils.TypeReferenceWithShape.of(new TypeReference() {}, Utils.JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java index a8aac46..c350c68 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoRequestBuilder.java @@ -1,25 +1,15 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import studio.livepeer.livepeer.models.components.TranscodePayload; import studio.livepeer.livepeer.utils.Utils; - public class TranscodeVideoRequestBuilder { - private studio.livepeer.livepeer.models.components.TranscodePayload request; + private TranscodePayload request; private final SDKMethodInterfaces.MethodCallTranscodeVideo sdk; public TranscodeVideoRequestBuilder(SDKMethodInterfaces.MethodCallTranscodeVideo sdk) { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java index c70a3fc..cf5c29f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/TranscodeVideoResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Task; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class TranscodeVideoResponse implements studio.livepeer.livepeer.utils.Response { + +public class TranscodeVideoResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class TranscodeVideoResponse implements studio.livepeer.livepeer.utils.Re /** * Success */ - private Optional task; + private Optional task; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public TranscodeVideoResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional task, - Optional error) { + Optional task, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional task() { - return (Optional) task; + public Optional task() { + return (Optional) task; } /** @@ -107,8 +112,8 @@ public Optional task() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public TranscodeVideoResponse withRawResponse(HttpResponse rawRespo /** * Success */ - public TranscodeVideoResponse withTask(studio.livepeer.livepeer.models.components.Task task) { + public TranscodeVideoResponse withTask(Task task) { Utils.checkNotNull(task, "task"); this.task = Optional.ofNullable(task); return this; @@ -154,7 +159,7 @@ public TranscodeVideoResponse withTask(studio.livepeer.livepeer.models.component /** * Success */ - public TranscodeVideoResponse withTask(Optional task) { + public TranscodeVideoResponse withTask(Optional task) { Utils.checkNotNull(task, "task"); this.task = task; return this; @@ -163,7 +168,7 @@ public TranscodeVideoResponse withTask(Optional error) { + public TranscodeVideoResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } TranscodeVideoResponse other = (TranscodeVideoResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.task, other.task) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.task, other.task) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional task = Optional.empty(); + private Optional task = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder task(studio.livepeer.livepeer.models.components.Task task) { + public Builder task(Task task) { Utils.checkNotNull(task, "task"); this.task = Optional.ofNullable(task); return this; @@ -270,7 +275,7 @@ public Builder task(studio.livepeer.livepeer.models.components.Task task) { /** * Success */ - public Builder task(Optional task) { + public Builder task(Optional task) { Utils.checkNotNull(task, "task"); this.task = task; return this; @@ -279,7 +284,7 @@ public Builder task(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequest.java index 6d8b0e0..317bfb2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.AssetPatchPayload; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class UpdateAssetRequest { /** @@ -24,12 +24,12 @@ public class UpdateAssetRequest { private String assetId; @SpeakeasyMetadata("request:mediaType=application/json") - private studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload; + private AssetPatchPayload assetPatchPayload; @JsonCreator public UpdateAssetRequest( String assetId, - studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload) { + AssetPatchPayload assetPatchPayload) { Utils.checkNotNull(assetId, "assetId"); Utils.checkNotNull(assetPatchPayload, "assetPatchPayload"); this.assetId = assetId; @@ -45,7 +45,7 @@ public String assetId() { } @JsonIgnore - public studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload() { + public AssetPatchPayload assetPatchPayload() { return assetPatchPayload; } @@ -62,7 +62,7 @@ public UpdateAssetRequest withAssetId(String assetId) { return this; } - public UpdateAssetRequest withAssetPatchPayload(studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload) { + public UpdateAssetRequest withAssetPatchPayload(AssetPatchPayload assetPatchPayload) { Utils.checkNotNull(assetPatchPayload, "assetPatchPayload"); this.assetPatchPayload = assetPatchPayload; return this; @@ -78,13 +78,13 @@ public boolean equals(java.lang.Object o) { } UpdateAssetRequest other = (UpdateAssetRequest) o; return - java.util.Objects.deepEquals(this.assetId, other.assetId) && - java.util.Objects.deepEquals(this.assetPatchPayload, other.assetPatchPayload); + Objects.deepEquals(this.assetId, other.assetId) && + Objects.deepEquals(this.assetPatchPayload, other.assetPatchPayload); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( assetId, assetPatchPayload); } @@ -100,7 +100,7 @@ public final static class Builder { private String assetId; - private studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload; + private AssetPatchPayload assetPatchPayload; private Builder() { // force use of static builder() method @@ -115,7 +115,7 @@ public Builder assetId(String assetId) { return this; } - public Builder assetPatchPayload(studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload) { + public Builder assetPatchPayload(AssetPatchPayload assetPatchPayload) { Utils.checkNotNull(assetPatchPayload, "assetPatchPayload"); this.assetPatchPayload = assetPatchPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java index 248023a..d1a1997 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetRequestBuilder.java @@ -1,33 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; +import studio.livepeer.livepeer.models.components.AssetPatchPayload; import studio.livepeer.livepeer.utils.Utils; - public class UpdateAssetRequestBuilder { private String assetId; - private studio.livepeer.livepeer.models.components.AssetPatchPayload assetPatchPayload; + private AssetPatchPayload assetPatchPayload; private final SDKMethodInterfaces.MethodCallUpdateAsset sdk; public UpdateAssetRequestBuilder(SDKMethodInterfaces.MethodCallUpdateAsset sdk) { this.sdk = sdk; } - public UpdateAssetRequestBuilder assetId(String assetId) { + public UpdateAssetRequestBuilder assetId(java.lang.String assetId) { Utils.checkNotNull(assetId, "assetId"); this.assetId = assetId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java index 6d570fc..fae2062 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateAssetResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Asset; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class UpdateAssetResponse implements studio.livepeer.livepeer.utils.Response { + +public class UpdateAssetResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class UpdateAssetResponse implements studio.livepeer.livepeer.utils.Respo /** * Success */ - private Optional asset; + private Optional asset; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public UpdateAssetResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional asset, - Optional error) { + Optional asset, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional asset() { - return (Optional) asset; + public Optional asset() { + return (Optional) asset; } /** @@ -107,8 +112,8 @@ public Optional asset() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public UpdateAssetResponse withRawResponse(HttpResponse rawResponse /** * Success */ - public UpdateAssetResponse withAsset(studio.livepeer.livepeer.models.components.Asset asset) { + public UpdateAssetResponse withAsset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = Optional.ofNullable(asset); return this; @@ -154,7 +159,7 @@ public UpdateAssetResponse withAsset(studio.livepeer.livepeer.models.components. /** * Success */ - public UpdateAssetResponse withAsset(Optional asset) { + public UpdateAssetResponse withAsset(Optional asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; @@ -163,7 +168,7 @@ public UpdateAssetResponse withAsset(Optional error) { + public UpdateAssetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } UpdateAssetResponse other = (UpdateAssetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.asset, other.asset) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.asset, other.asset) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional asset = Optional.empty(); + private Optional asset = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder asset(studio.livepeer.livepeer.models.components.Asset asset) { + public Builder asset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = Optional.ofNullable(asset); return this; @@ -270,7 +275,7 @@ public Builder asset(studio.livepeer.livepeer.models.components.Asset asset) { /** * Success */ - public Builder asset(Optional asset) { + public Builder asset(Optional asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; @@ -279,7 +284,7 @@ public Builder asset(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequest.java index 50e3a3c..ef14cde 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class UpdateMultistreamTargetRequest { /** @@ -24,12 +24,12 @@ public class UpdateMultistreamTargetRequest { private String id; @SpeakeasyMetadata("request:mediaType=application/json") - private studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload; + private MultistreamTargetPatchPayload multistreamTargetPatchPayload; @JsonCreator public UpdateMultistreamTargetRequest( String id, - studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload) { + MultistreamTargetPatchPayload multistreamTargetPatchPayload) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(multistreamTargetPatchPayload, "multistreamTargetPatchPayload"); this.id = id; @@ -45,7 +45,7 @@ public String id() { } @JsonIgnore - public studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload() { + public MultistreamTargetPatchPayload multistreamTargetPatchPayload() { return multistreamTargetPatchPayload; } @@ -62,7 +62,7 @@ public UpdateMultistreamTargetRequest withId(String id) { return this; } - public UpdateMultistreamTargetRequest withMultistreamTargetPatchPayload(studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload) { + public UpdateMultistreamTargetRequest withMultistreamTargetPatchPayload(MultistreamTargetPatchPayload multistreamTargetPatchPayload) { Utils.checkNotNull(multistreamTargetPatchPayload, "multistreamTargetPatchPayload"); this.multistreamTargetPatchPayload = multistreamTargetPatchPayload; return this; @@ -78,13 +78,13 @@ public boolean equals(java.lang.Object o) { } UpdateMultistreamTargetRequest other = (UpdateMultistreamTargetRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.multistreamTargetPatchPayload, other.multistreamTargetPatchPayload); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.multistreamTargetPatchPayload, other.multistreamTargetPatchPayload); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, multistreamTargetPatchPayload); } @@ -100,7 +100,7 @@ public final static class Builder { private String id; - private studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload; + private MultistreamTargetPatchPayload multistreamTargetPatchPayload; private Builder() { // force use of static builder() method @@ -115,7 +115,7 @@ public Builder id(String id) { return this; } - public Builder multistreamTargetPatchPayload(studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload) { + public Builder multistreamTargetPatchPayload(MultistreamTargetPatchPayload multistreamTargetPatchPayload) { Utils.checkNotNull(multistreamTargetPatchPayload, "multistreamTargetPatchPayload"); this.multistreamTargetPatchPayload = multistreamTargetPatchPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java index 2e9f37e..7f734f0 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetRequestBuilder.java @@ -1,33 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; +import studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload; import studio.livepeer.livepeer.utils.Utils; - public class UpdateMultistreamTargetRequestBuilder { private String id; - private studio.livepeer.livepeer.models.components.MultistreamTargetPatchPayload multistreamTargetPatchPayload; + private MultistreamTargetPatchPayload multistreamTargetPatchPayload; private final SDKMethodInterfaces.MethodCallUpdateMultistreamTarget sdk; public UpdateMultistreamTargetRequestBuilder(SDKMethodInterfaces.MethodCallUpdateMultistreamTarget sdk) { this.sdk = sdk; } - public UpdateMultistreamTargetRequestBuilder id(String id) { + public UpdateMultistreamTargetRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java index 5d598a4..583616d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateMultistreamTargetResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class UpdateMultistreamTargetResponse implements studio.livepeer.livepeer.utils.Response { + +public class UpdateMultistreamTargetResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class UpdateMultistreamTargetResponse implements studio.livepeer.livepeer /** * Error */ - private Optional error; + private Optional error; @JsonCreator public UpdateMultistreamTargetResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public UpdateMultistreamTargetResponse withRawResponse(HttpResponse /** * Error */ - public UpdateMultistreamTargetResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public UpdateMultistreamTargetResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public UpdateMultistreamTargetResponse withError(studio.livepeer.livepeer.models /** * Error */ - public UpdateMultistreamTargetResponse withError(Optional error) { + public UpdateMultistreamTargetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } UpdateMultistreamTargetResponse other = (UpdateMultistreamTargetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequest.java index 6531dcb..79ab6f0 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.RoomUserUpdatePayload; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class UpdateRoomUserRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") @@ -24,13 +24,13 @@ public class UpdateRoomUserRequest { private String userId; @SpeakeasyMetadata("request:mediaType=application/json") - private studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload; + private RoomUserUpdatePayload roomUserUpdatePayload; @JsonCreator public UpdateRoomUserRequest( String id, String userId, - studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload) { + RoomUserUpdatePayload roomUserUpdatePayload) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(userId, "userId"); Utils.checkNotNull(roomUserUpdatePayload, "roomUserUpdatePayload"); @@ -50,7 +50,7 @@ public String userId() { } @JsonIgnore - public studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload() { + public RoomUserUpdatePayload roomUserUpdatePayload() { return roomUserUpdatePayload; } @@ -70,7 +70,7 @@ public UpdateRoomUserRequest withUserId(String userId) { return this; } - public UpdateRoomUserRequest withRoomUserUpdatePayload(studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload) { + public UpdateRoomUserRequest withRoomUserUpdatePayload(RoomUserUpdatePayload roomUserUpdatePayload) { Utils.checkNotNull(roomUserUpdatePayload, "roomUserUpdatePayload"); this.roomUserUpdatePayload = roomUserUpdatePayload; return this; @@ -86,14 +86,14 @@ public boolean equals(java.lang.Object o) { } UpdateRoomUserRequest other = (UpdateRoomUserRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.userId, other.userId) && - java.util.Objects.deepEquals(this.roomUserUpdatePayload, other.roomUserUpdatePayload); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.userId, other.userId) && + Objects.deepEquals(this.roomUserUpdatePayload, other.roomUserUpdatePayload); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, userId, roomUserUpdatePayload); @@ -113,7 +113,7 @@ public final static class Builder { private String userId; - private studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload; + private RoomUserUpdatePayload roomUserUpdatePayload; private Builder() { // force use of static builder() method @@ -131,7 +131,7 @@ public Builder userId(String userId) { return this; } - public Builder roomUserUpdatePayload(studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload) { + public Builder roomUserUpdatePayload(RoomUserUpdatePayload roomUserUpdatePayload) { Utils.checkNotNull(roomUserUpdatePayload, "roomUserUpdatePayload"); this.roomUserUpdatePayload = roomUserUpdatePayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java index 982b0ac..8775e3e 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserRequestBuilder.java @@ -1,40 +1,31 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; +import studio.livepeer.livepeer.models.components.RoomUserUpdatePayload; import studio.livepeer.livepeer.utils.Utils; - public class UpdateRoomUserRequestBuilder { private String id; private String userId; - private studio.livepeer.livepeer.models.components.RoomUserUpdatePayload roomUserUpdatePayload; + private RoomUserUpdatePayload roomUserUpdatePayload; private final SDKMethodInterfaces.MethodCallUpdateRoomUser sdk; public UpdateRoomUserRequestBuilder(SDKMethodInterfaces.MethodCallUpdateRoomUser sdk) { this.sdk = sdk; } - public UpdateRoomUserRequestBuilder id(String id) { + public UpdateRoomUserRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } - public UpdateRoomUserRequestBuilder userId(String userId) { + public UpdateRoomUserRequestBuilder userId(java.lang.String userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java index 88f37e9..2a21852 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateRoomUserResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class UpdateRoomUserResponse implements studio.livepeer.livepeer.utils.Response { + +public class UpdateRoomUserResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class UpdateRoomUserResponse implements studio.livepeer.livepeer.utils.Re /** * Error */ - private Optional error; + private Optional error; @JsonCreator public UpdateRoomUserResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public UpdateRoomUserResponse withRawResponse(HttpResponse rawRespo /** * Error */ - public UpdateRoomUserResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public UpdateRoomUserResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public UpdateRoomUserResponse withError(studio.livepeer.livepeer.models.errors.E /** * Error */ - public UpdateRoomUserResponse withError(Optional error) { + public UpdateRoomUserResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } UpdateRoomUserResponse other = (UpdateRoomUserResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequest.java index 80c1808..f66e40f 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequest.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class UpdateSigningKeyRequest { /** @@ -78,13 +77,13 @@ public boolean equals(java.lang.Object o) { } UpdateSigningKeyRequest other = (UpdateSigningKeyRequest) o; return - java.util.Objects.deepEquals(this.keyId, other.keyId) && - java.util.Objects.deepEquals(this.requestBody, other.requestBody); + Objects.deepEquals(this.keyId, other.keyId) && + Objects.deepEquals(this.requestBody, other.requestBody); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( keyId, requestBody); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBody.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBody.java index 3f2dad0..43d6be2 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBody.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBody.java @@ -1,37 +1,37 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import java.util.Optional; import studio.livepeer.livepeer.utils.Utils; + public class UpdateSigningKeyRequestBody { @JsonInclude(Include.NON_ABSENT) @JsonProperty("disabled") - private Optional disabled; + private Optional disabled; @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") - private Optional name; + private Optional name; @JsonCreator public UpdateSigningKeyRequestBody( - @JsonProperty("disabled") Optional disabled, - @JsonProperty("name") Optional name) { + @JsonProperty("disabled") Optional disabled, + @JsonProperty("name") Optional name) { Utils.checkNotNull(disabled, "disabled"); Utils.checkNotNull(name, "name"); this.disabled = disabled; @@ -42,16 +42,14 @@ public UpdateSigningKeyRequestBody() { this(Optional.empty(), Optional.empty()); } - @SuppressWarnings("unchecked") @JsonIgnore public Optional disabled() { - return (Optional) disabled; + return disabled; } - @SuppressWarnings("unchecked") @JsonIgnore public Optional name() { - return (Optional) name; + return name; } public final static Builder builder() { @@ -64,7 +62,7 @@ public UpdateSigningKeyRequestBody withDisabled(boolean disabled) { return this; } - public UpdateSigningKeyRequestBody withDisabled(Optional disabled) { + public UpdateSigningKeyRequestBody withDisabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; @@ -76,7 +74,7 @@ public UpdateSigningKeyRequestBody withName(String name) { return this; } - public UpdateSigningKeyRequestBody withName(Optional name) { + public UpdateSigningKeyRequestBody withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -92,13 +90,13 @@ public boolean equals(java.lang.Object o) { } UpdateSigningKeyRequestBody other = (UpdateSigningKeyRequestBody) o; return - java.util.Objects.deepEquals(this.disabled, other.disabled) && - java.util.Objects.deepEquals(this.name, other.name); + Objects.deepEquals(this.disabled, other.disabled) && + Objects.deepEquals(this.name, other.name); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( disabled, name); } @@ -112,9 +110,9 @@ public String toString() { public final static class Builder { - private Optional disabled = Optional.empty(); + private Optional disabled = Optional.empty(); - private Optional name = Optional.empty(); + private Optional name = Optional.empty(); private Builder() { // force use of static builder() method @@ -126,7 +124,7 @@ public Builder disabled(boolean disabled) { return this; } - public Builder disabled(Optional disabled) { + public Builder disabled(Optional disabled) { Utils.checkNotNull(disabled, "disabled"); this.disabled = disabled; return this; @@ -138,7 +136,7 @@ public Builder name(String name) { return this; } - public Builder name(Optional name) { + public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java index 4fdf4aa..7b841c5 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyRequestBuilder.java @@ -1,22 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; import studio.livepeer.livepeer.utils.Utils; - public class UpdateSigningKeyRequestBuilder { private String keyId; @@ -27,13 +17,13 @@ public UpdateSigningKeyRequestBuilder(SDKMethodInterfaces.MethodCallUpdateSignin this.sdk = sdk; } - public UpdateSigningKeyRequestBuilder keyId(String keyId) { + public UpdateSigningKeyRequestBuilder keyId(java.lang.String keyId) { Utils.checkNotNull(keyId, "keyId"); this.keyId = keyId; return this; } - public UpdateSigningKeyRequestBuilder requestBody(UpdateSigningKeyRequestBody requestBody) { + public UpdateSigningKeyRequestBuilder requestBody(studio.livepeer.livepeer.models.operations.UpdateSigningKeyRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java index 98de999..36b502d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateSigningKeyResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class UpdateSigningKeyResponse implements studio.livepeer.livepeer.utils.Response { + +public class UpdateSigningKeyResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class UpdateSigningKeyResponse implements studio.livepeer.livepeer.utils. /** * Error */ - private Optional error; + private Optional error; @JsonCreator public UpdateSigningKeyResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public UpdateSigningKeyResponse withRawResponse(HttpResponse rawRes /** * Error */ - public UpdateSigningKeyResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public UpdateSigningKeyResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public UpdateSigningKeyResponse withError(studio.livepeer.livepeer.models.errors /** * Error */ - public UpdateSigningKeyResponse withError(Optional error) { + public UpdateSigningKeyResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } UpdateSigningKeyResponse other = (UpdateSigningKeyResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequest.java index 0e974d5..51e28e7 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequest.java @@ -1,20 +1,20 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.StreamPatchPayload; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class UpdateStreamRequest { /** @@ -24,12 +24,12 @@ public class UpdateStreamRequest { private String id; @SpeakeasyMetadata("request:mediaType=application/json") - private studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload; + private StreamPatchPayload streamPatchPayload; @JsonCreator public UpdateStreamRequest( String id, - studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload) { + StreamPatchPayload streamPatchPayload) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(streamPatchPayload, "streamPatchPayload"); this.id = id; @@ -45,7 +45,7 @@ public String id() { } @JsonIgnore - public studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload() { + public StreamPatchPayload streamPatchPayload() { return streamPatchPayload; } @@ -62,7 +62,7 @@ public UpdateStreamRequest withId(String id) { return this; } - public UpdateStreamRequest withStreamPatchPayload(studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload) { + public UpdateStreamRequest withStreamPatchPayload(StreamPatchPayload streamPatchPayload) { Utils.checkNotNull(streamPatchPayload, "streamPatchPayload"); this.streamPatchPayload = streamPatchPayload; return this; @@ -78,13 +78,13 @@ public boolean equals(java.lang.Object o) { } UpdateStreamRequest other = (UpdateStreamRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.streamPatchPayload, other.streamPatchPayload); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.streamPatchPayload, other.streamPatchPayload); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, streamPatchPayload); } @@ -100,7 +100,7 @@ public final static class Builder { private String id; - private studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload; + private StreamPatchPayload streamPatchPayload; private Builder() { // force use of static builder() method @@ -115,7 +115,7 @@ public Builder id(String id) { return this; } - public Builder streamPatchPayload(studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload) { + public Builder streamPatchPayload(StreamPatchPayload streamPatchPayload) { Utils.checkNotNull(streamPatchPayload, "streamPatchPayload"); this.streamPatchPayload = streamPatchPayload; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java index bab1fbc..7884407 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamRequestBuilder.java @@ -1,33 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; +import studio.livepeer.livepeer.models.components.StreamPatchPayload; import studio.livepeer.livepeer.utils.Utils; - public class UpdateStreamRequestBuilder { private String id; - private studio.livepeer.livepeer.models.components.StreamPatchPayload streamPatchPayload; + private StreamPatchPayload streamPatchPayload; private final SDKMethodInterfaces.MethodCallUpdateStream sdk; public UpdateStreamRequestBuilder(SDKMethodInterfaces.MethodCallUpdateStream sdk) { this.sdk = sdk; } - public UpdateStreamRequestBuilder id(String id) { + public UpdateStreamRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java index acb85d8..a2697f0 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateStreamResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class UpdateStreamResponse implements studio.livepeer.livepeer.utils.Response { + +public class UpdateStreamResponse implements Response { /** * HTTP response content type for this operation @@ -36,14 +40,14 @@ public class UpdateStreamResponse implements studio.livepeer.livepeer.utils.Resp /** * Error */ - private Optional error; + private Optional error; @JsonCreator public UpdateStreamResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +94,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -128,7 +132,7 @@ public UpdateStreamResponse withRawResponse(HttpResponse rawRespons /** * Error */ - public UpdateStreamResponse withError(studio.livepeer.livepeer.models.errors.Error error) { + public UpdateStreamResponse withError(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -137,7 +141,7 @@ public UpdateStreamResponse withError(studio.livepeer.livepeer.models.errors.Err /** * Error */ - public UpdateStreamResponse withError(Optional error) { + public UpdateStreamResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -153,15 +157,15 @@ public boolean equals(java.lang.Object o) { } UpdateStreamResponse other = (UpdateStreamResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -185,7 +189,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -221,7 +225,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Error */ - public Builder error(studio.livepeer.livepeer.models.errors.Error error) { + public Builder error(Error error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); return this; @@ -230,7 +234,7 @@ public Builder error(studio.livepeer.livepeer.models.errors.Error error) { /** * Error */ - public Builder error(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequest.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequest.java index 4232a12..c14f234 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequest.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequest.java @@ -1,32 +1,32 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.WebhookInput; import studio.livepeer.livepeer.utils.SpeakeasyMetadata; import studio.livepeer.livepeer.utils.Utils; + public class UpdateWebhookRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=id") private String id; @SpeakeasyMetadata("request:mediaType=application/json") - private studio.livepeer.livepeer.models.components.WebhookInput webhook; + private WebhookInput webhook; @JsonCreator public UpdateWebhookRequest( String id, - studio.livepeer.livepeer.models.components.WebhookInput webhook) { + WebhookInput webhook) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(webhook, "webhook"); this.id = id; @@ -39,7 +39,7 @@ public String id() { } @JsonIgnore - public studio.livepeer.livepeer.models.components.WebhookInput webhook() { + public WebhookInput webhook() { return webhook; } @@ -53,7 +53,7 @@ public UpdateWebhookRequest withId(String id) { return this; } - public UpdateWebhookRequest withWebhook(studio.livepeer.livepeer.models.components.WebhookInput webhook) { + public UpdateWebhookRequest withWebhook(WebhookInput webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; @@ -69,13 +69,13 @@ public boolean equals(java.lang.Object o) { } UpdateWebhookRequest other = (UpdateWebhookRequest) o; return - java.util.Objects.deepEquals(this.id, other.id) && - java.util.Objects.deepEquals(this.webhook, other.webhook); + Objects.deepEquals(this.id, other.id) && + Objects.deepEquals(this.webhook, other.webhook); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id, webhook); } @@ -91,7 +91,7 @@ public final static class Builder { private String id; - private studio.livepeer.livepeer.models.components.WebhookInput webhook; + private WebhookInput webhook; private Builder() { // force use of static builder() method @@ -103,7 +103,7 @@ public Builder id(String id) { return this; } - public Builder webhook(studio.livepeer.livepeer.models.components.WebhookInput webhook) { + public Builder webhook(WebhookInput webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java index 9f7a8ae..5ee1a06 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookRequestBuilder.java @@ -1,33 +1,24 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import java.lang.String; +import studio.livepeer.livepeer.models.components.WebhookInput; import studio.livepeer.livepeer.utils.Utils; - public class UpdateWebhookRequestBuilder { private String id; - private studio.livepeer.livepeer.models.components.WebhookInput webhook; + private WebhookInput webhook; private final SDKMethodInterfaces.MethodCallUpdateWebhook sdk; public UpdateWebhookRequestBuilder(SDKMethodInterfaces.MethodCallUpdateWebhook sdk) { this.sdk = sdk; } - public UpdateWebhookRequestBuilder id(String id) { + public UpdateWebhookRequestBuilder id(java.lang.String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java index a9f6ef0..7bdaa17 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UpdateWebhookResponse.java @@ -1,22 +1,27 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.components.Webhook; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class UpdateWebhookResponse implements studio.livepeer.livepeer.utils.Response { + +public class UpdateWebhookResponse implements Response { /** * HTTP response content type for this operation @@ -36,20 +41,20 @@ public class UpdateWebhookResponse implements studio.livepeer.livepeer.utils.Res /** * Success */ - private Optional webhook; + private Optional webhook; /** * Error */ - private Optional error; + private Optional error; @JsonCreator public UpdateWebhookResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional webhook, - Optional error) { + Optional webhook, + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -98,8 +103,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional webhook() { - return (Optional) webhook; + public Optional webhook() { + return (Optional) webhook; } /** @@ -107,8 +112,8 @@ public Optional webhook() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -145,7 +150,7 @@ public UpdateWebhookResponse withRawResponse(HttpResponse rawRespon /** * Success */ - public UpdateWebhookResponse withWebhook(studio.livepeer.livepeer.models.components.Webhook webhook) { + public UpdateWebhookResponse withWebhook(Webhook webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = Optional.ofNullable(webhook); return this; @@ -154,7 +159,7 @@ public UpdateWebhookResponse withWebhook(studio.livepeer.livepeer.models.compone /** * Success */ - public UpdateWebhookResponse withWebhook(Optional webhook) { + public UpdateWebhookResponse withWebhook(Optional webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; @@ -163,7 +168,7 @@ public UpdateWebhookResponse withWebhook(Optional error) { + public UpdateWebhookResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -188,16 +193,16 @@ public boolean equals(java.lang.Object o) { } UpdateWebhookResponse other = (UpdateWebhookResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.webhook, other.webhook) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.webhook, other.webhook) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -223,9 +228,9 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional webhook = Optional.empty(); + private Optional webhook = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -261,7 +266,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Success */ - public Builder webhook(studio.livepeer.livepeer.models.components.Webhook webhook) { + public Builder webhook(Webhook webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = Optional.ofNullable(webhook); return this; @@ -270,7 +275,7 @@ public Builder webhook(studio.livepeer.livepeer.models.components.Webhook webhoo /** * Success */ - public Builder webhook(Optional webhook) { + public Builder webhook(Optional webhook) { Utils.checkNotNull(webhook, "webhook"); this.webhook = webhook; return this; @@ -279,7 +284,7 @@ public Builder webhook(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetAssetTask.java b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetAssetTask.java index cc5cf55..9533f38 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetAssetTask.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetAssetTask.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class UploadAssetAssetTask { @JsonProperty("id") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } UploadAssetAssetTask other = (UploadAssetAssetTask) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetData.java b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetData.java index e43dc39..2e21400 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetData.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetData.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.Asset; import studio.livepeer.livepeer.utils.Utils; + /** * UploadAssetData - Upload in progress */ @@ -21,14 +21,14 @@ public class UploadAssetData { @JsonProperty("asset") - private studio.livepeer.livepeer.models.components.Asset asset; + private Asset asset; @JsonProperty("task") private UploadAssetTask task; @JsonCreator public UploadAssetData( - @JsonProperty("asset") studio.livepeer.livepeer.models.components.Asset asset, + @JsonProperty("asset") Asset asset, @JsonProperty("task") UploadAssetTask task) { Utils.checkNotNull(asset, "asset"); Utils.checkNotNull(task, "task"); @@ -37,7 +37,7 @@ public UploadAssetData( } @JsonIgnore - public studio.livepeer.livepeer.models.components.Asset asset() { + public Asset asset() { return asset; } @@ -50,7 +50,7 @@ public final static Builder builder() { return new Builder(); } - public UploadAssetData withAsset(studio.livepeer.livepeer.models.components.Asset asset) { + public UploadAssetData withAsset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; @@ -72,13 +72,13 @@ public boolean equals(java.lang.Object o) { } UploadAssetData other = (UploadAssetData) o; return - java.util.Objects.deepEquals(this.asset, other.asset) && - java.util.Objects.deepEquals(this.task, other.task); + Objects.deepEquals(this.asset, other.asset) && + Objects.deepEquals(this.task, other.task); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( asset, task); } @@ -92,7 +92,7 @@ public String toString() { public final static class Builder { - private studio.livepeer.livepeer.models.components.Asset asset; + private Asset asset; private UploadAssetTask task; @@ -100,7 +100,7 @@ private Builder() { // force use of static builder() method } - public Builder asset(studio.livepeer.livepeer.models.components.Asset asset) { + public Builder asset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetDataOutput.java b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetDataOutput.java index 09ced1c..958c46a 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetDataOutput.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetDataOutput.java @@ -1,19 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; +import studio.livepeer.livepeer.models.components.Asset; import studio.livepeer.livepeer.utils.Utils; + /** * UploadAssetDataOutput - Upload started */ @@ -21,14 +21,14 @@ public class UploadAssetDataOutput { @JsonProperty("asset") - private studio.livepeer.livepeer.models.components.Asset asset; + private Asset asset; @JsonProperty("task") private UploadAssetAssetTask task; @JsonCreator public UploadAssetDataOutput( - @JsonProperty("asset") studio.livepeer.livepeer.models.components.Asset asset, + @JsonProperty("asset") Asset asset, @JsonProperty("task") UploadAssetAssetTask task) { Utils.checkNotNull(asset, "asset"); Utils.checkNotNull(task, "task"); @@ -37,7 +37,7 @@ public UploadAssetDataOutput( } @JsonIgnore - public studio.livepeer.livepeer.models.components.Asset asset() { + public Asset asset() { return asset; } @@ -50,7 +50,7 @@ public final static Builder builder() { return new Builder(); } - public UploadAssetDataOutput withAsset(studio.livepeer.livepeer.models.components.Asset asset) { + public UploadAssetDataOutput withAsset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; @@ -72,13 +72,13 @@ public boolean equals(java.lang.Object o) { } UploadAssetDataOutput other = (UploadAssetDataOutput) o; return - java.util.Objects.deepEquals(this.asset, other.asset) && - java.util.Objects.deepEquals(this.task, other.task); + Objects.deepEquals(this.asset, other.asset) && + Objects.deepEquals(this.task, other.task); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( asset, task); } @@ -92,7 +92,7 @@ public String toString() { public final static class Builder { - private studio.livepeer.livepeer.models.components.Asset asset; + private Asset asset; private UploadAssetAssetTask task; @@ -100,7 +100,7 @@ private Builder() { // force use of static builder() method } - public Builder asset(studio.livepeer.livepeer.models.components.Asset asset) { + public Builder asset(Asset asset) { Utils.checkNotNull(asset, "asset"); this.asset = asset; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java index 926d002..c32ae04 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetRequestBuilder.java @@ -1,25 +1,15 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; -import com.fasterxml.jackson.core.type.TypeReference; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.Optional; -import java.util.stream.Stream; -import org.openapitools.jackson.nullable.JsonNullable; -import studio.livepeer.livepeer.models.errors.SDKError; -import studio.livepeer.livepeer.utils.LazySingletonValue; +import studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload; import studio.livepeer.livepeer.utils.Utils; - public class UploadAssetRequestBuilder { - private studio.livepeer.livepeer.models.components.NewAssetFromUrlPayload request; + private NewAssetFromUrlPayload request; private final SDKMethodInterfaces.MethodCallUploadAsset sdk; public UploadAssetRequestBuilder(SDKMethodInterfaces.MethodCallUploadAsset sdk) { diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java index b31ea71..a02e51d 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetResponse.java @@ -1,22 +1,26 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; import java.net.http.HttpResponse; +import java.util.Objects; import java.util.Optional; +import studio.livepeer.livepeer.models.errors.Error; +import studio.livepeer.livepeer.utils.Response; import studio.livepeer.livepeer.utils.Utils; -public class UploadAssetResponse implements studio.livepeer.livepeer.utils.Response { + +public class UploadAssetResponse implements Response { /** * HTTP response content type for this operation @@ -46,7 +50,7 @@ public class UploadAssetResponse implements studio.livepeer.livepeer.utils.Respo /** * Error */ - private Optional error; + private Optional error; @JsonCreator public UploadAssetResponse( @@ -55,7 +59,7 @@ public UploadAssetResponse( HttpResponse rawResponse, Optional twoHundredApplicationJsonData, Optional twoHundredAndOneApplicationJsonData, - Optional error) { + Optional error) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -124,8 +128,8 @@ public Optional twoHundredAndOneApplicationJsonData() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional error() { - return (Optional) error; + public Optional error() { + return (Optional) error; } public final static Builder builder() { @@ -198,7 +202,7 @@ public UploadAssetResponse withTwoHundredAndOneApplicationJsonData(Optional error) { + public UploadAssetResponse withError(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; @@ -223,17 +227,17 @@ public boolean equals(java.lang.Object o) { } UploadAssetResponse other = (UploadAssetResponse) o; return - java.util.Objects.deepEquals(this.contentType, other.contentType) && - java.util.Objects.deepEquals(this.statusCode, other.statusCode) && - java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && - java.util.Objects.deepEquals(this.twoHundredApplicationJsonData, other.twoHundredApplicationJsonData) && - java.util.Objects.deepEquals(this.twoHundredAndOneApplicationJsonData, other.twoHundredAndOneApplicationJsonData) && - java.util.Objects.deepEquals(this.error, other.error); + Objects.deepEquals(this.contentType, other.contentType) && + Objects.deepEquals(this.statusCode, other.statusCode) && + Objects.deepEquals(this.rawResponse, other.rawResponse) && + Objects.deepEquals(this.twoHundredApplicationJsonData, other.twoHundredApplicationJsonData) && + Objects.deepEquals(this.twoHundredAndOneApplicationJsonData, other.twoHundredAndOneApplicationJsonData) && + Objects.deepEquals(this.error, other.error); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( contentType, statusCode, rawResponse, @@ -265,7 +269,7 @@ public final static class Builder { private Optional twoHundredAndOneApplicationJsonData = Optional.empty(); - private Optional error = Optional.empty(); + private Optional error = Optional.empty(); private Builder() { // force use of static builder() method @@ -337,7 +341,7 @@ public Builder twoHundredAndOneApplicationJsonData(Optional error) { + public Builder error(Optional error) { Utils.checkNotNull(error, "error"); this.error = error; return this; diff --git a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetTask.java b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetTask.java index b3daac0..2fd86b3 100644 --- a/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetTask.java +++ b/src/main/java/studio/livepeer/livepeer/models/operations/UploadAssetTask.java @@ -1,20 +1,19 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.models.operations; + import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; -import java.lang.Deprecated; -import java.math.BigDecimal; -import java.math.BigInteger; +import java.lang.Override; +import java.lang.String; +import java.util.Objects; import studio.livepeer.livepeer.utils.Utils; + public class UploadAssetTask { @JsonProperty("id") @@ -52,12 +51,12 @@ public boolean equals(java.lang.Object o) { } UploadAssetTask other = (UploadAssetTask) o; return - java.util.Objects.deepEquals(this.id, other.id); + Objects.deepEquals(this.id, other.id); } @Override public int hashCode() { - return java.util.Objects.hash( + return Objects.hash( id); } diff --git a/src/main/java/studio/livepeer/livepeer/utils/BackoffStrategy.java b/src/main/java/studio/livepeer/livepeer/utils/BackoffStrategy.java index fc12349..428b34a 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/BackoffStrategy.java +++ b/src/main/java/studio/livepeer/livepeer/utils/BackoffStrategy.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/BigDecimalString.java b/src/main/java/studio/livepeer/livepeer/utils/BigDecimalString.java index dceb58e..e84308c 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/BigDecimalString.java +++ b/src/main/java/studio/livepeer/livepeer/utils/BigDecimalString.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/BigIntegerString.java b/src/main/java/studio/livepeer/livepeer/utils/BigIntegerString.java index dc94e69..e608e26 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/BigIntegerString.java +++ b/src/main/java/studio/livepeer/livepeer/utils/BigIntegerString.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Deserializers.java b/src/main/java/studio/livepeer/livepeer/utils/Deserializers.java index 5ab7fb4..a1b7b76 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Deserializers.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Deserializers.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/EventStream.java b/src/main/java/studio/livepeer/livepeer/utils/EventStream.java index 664a074..dd68b0e 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/EventStream.java +++ b/src/main/java/studio/livepeer/livepeer/utils/EventStream.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/EventStreamLineReader.java b/src/main/java/studio/livepeer/livepeer/utils/EventStreamLineReader.java index 292966c..bec5001 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/EventStreamLineReader.java +++ b/src/main/java/studio/livepeer/livepeer/utils/EventStreamLineReader.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/EventStreamMessage.java b/src/main/java/studio/livepeer/livepeer/utils/EventStreamMessage.java index f20da32..d41339c 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/EventStreamMessage.java +++ b/src/main/java/studio/livepeer/livepeer/utils/EventStreamMessage.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/EventStreamReader.java b/src/main/java/studio/livepeer/livepeer/utils/EventStreamReader.java index 43f6c10..4f94650 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/EventStreamReader.java +++ b/src/main/java/studio/livepeer/livepeer/utils/EventStreamReader.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/FormMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/FormMetadata.java index a193bca..8e33814 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/FormMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/FormMetadata.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/HTTPClient.java b/src/main/java/studio/livepeer/livepeer/utils/HTTPClient.java index 5712ddf..9519f0a 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/HTTPClient.java +++ b/src/main/java/studio/livepeer/livepeer/utils/HTTPClient.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; @@ -11,6 +11,22 @@ import java.net.http.HttpRequest; public interface HTTPClient { + + /** + * Sends an HTTP request and returns the response. + * + *

Note that {@link HttpRequest} is immutable. To modify the request you can use + * {@link HttpRequest#newBuilder(HttpRequest, BiPredicate)} with + * JDK 16 and later (which will copy the request for modification in a builder). + * If that method is not available then use {@link Helpers#copy} (which also returns + * a builder). + * + * @param request HTTP request + * @return HTTP response + * @throws IOException + * @throws InterruptedException + * @throws URISyntaxException + */ HttpResponse send(HttpRequest request) throws IOException, InterruptedException, URISyntaxException; } diff --git a/src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java b/src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java index c1802b8..fbb8a4f 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java +++ b/src/main/java/studio/livepeer/livepeer/utils/HTTPRequest.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/HeaderMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/HeaderMetadata.java index e147cf4..8653368 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/HeaderMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/HeaderMetadata.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Helpers.java b/src/main/java/studio/livepeer/livepeer/utils/Helpers.java index 8f879f2..eed73a4 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Helpers.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Helpers.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Hook.java b/src/main/java/studio/livepeer/livepeer/utils/Hook.java index 034f57d..40de3ca 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Hook.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Hook.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; @@ -144,6 +144,12 @@ public interface BeforeRequest { /** * Transforms the given {@link HttpRequest} before sending. * + *

Note that {@link HttpRequest} is immutable. To modify the request you can use + * {@link HttpRequest#newBuilder(HttpRequest, BiPredicate)} with + * JDK 16 and later (which will copy the request for modification in a builder). + * If that method is not available then use {@link Helpers#copy} (which also returns + * a builder). + * * @param context context for the hook call * @param request request to be transformed * @return transformed request diff --git a/src/main/java/studio/livepeer/livepeer/utils/Hooks.java b/src/main/java/studio/livepeer/livepeer/utils/Hooks.java index 53f181f..9010261 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Hooks.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Hooks.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; @@ -99,7 +99,7 @@ public Hooks registerAfterError(AfterError afterError) { } /** - * Registers a {@SdkInit} hook to be applied in order of registration + * Registers a {@link SdkInit} hook to be applied in order of registration * (multiple can be registered). * * @param SdkInit hook to be registered diff --git a/src/main/java/studio/livepeer/livepeer/utils/JSON.java b/src/main/java/studio/livepeer/livepeer/utils/JSON.java index b5c4ccf..6d297cf 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/JSON.java +++ b/src/main/java/studio/livepeer/livepeer/utils/JSON.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/LazySingletonValue.java b/src/main/java/studio/livepeer/livepeer/utils/LazySingletonValue.java index 85a6ec2..81a09d2 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/LazySingletonValue.java +++ b/src/main/java/studio/livepeer/livepeer/utils/LazySingletonValue.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Metadata.java b/src/main/java/studio/livepeer/livepeer/utils/Metadata.java index 61ff977..2d16cbb 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Metadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Metadata.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/MultipartFormMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/MultipartFormMetadata.java index 7c4e36f..3af23db 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/MultipartFormMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/MultipartFormMetadata.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java b/src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java index b0c6061..a1dcafb 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java +++ b/src/main/java/studio/livepeer/livepeer/utils/OneOfDeserializer.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Options.java b/src/main/java/studio/livepeer/livepeer/utils/Options.java index 6e27668..5cf3cc8 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Options.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Options.java @@ -1,13 +1,11 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; import java.util.Optional; import java.util.List; -import studio.livepeer.livepeer.utils.Utils; - public class Options { diff --git a/src/main/java/studio/livepeer/livepeer/utils/PathParamsMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/PathParamsMetadata.java index 2a7049f..909a1a7 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/PathParamsMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/PathParamsMetadata.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java b/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java index 5e6cdb3..0f617bc 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java +++ b/src/main/java/studio/livepeer/livepeer/utils/QueryParameters.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; @@ -14,10 +14,7 @@ import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; -import studio.livepeer.livepeer.utils.Utils.JsonShape; - import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; public class QueryParameters { diff --git a/src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java index 9c973e7..43c33f9 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/QueryParamsMetadata.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/RequestBody.java b/src/main/java/studio/livepeer/livepeer/utils/RequestBody.java index 9a85fa4..b80dc5c 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/RequestBody.java +++ b/src/main/java/studio/livepeer/livepeer/utils/RequestBody.java @@ -1,11 +1,10 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; import java.io.IOException; -import java.io.InputStream; import java.io.UncheckedIOException; import java.lang.reflect.Field; import java.lang.reflect.Modifier; diff --git a/src/main/java/studio/livepeer/livepeer/utils/RequestMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/RequestMetadata.java index f92388a..b2ff296 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/RequestMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/RequestMetadata.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Response.java b/src/main/java/studio/livepeer/livepeer/utils/Response.java index fabb559..e7aa9ad 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Response.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Response.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Retries.java b/src/main/java/studio/livepeer/livepeer/utils/Retries.java index ad32e1b..a62808e 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Retries.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Retries.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; @@ -10,10 +10,7 @@ import java.net.ConnectException; import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; -import java.util.ArrayList; import java.util.List; -import java.util.Optional; - public class Retries { diff --git a/src/main/java/studio/livepeer/livepeer/utils/RetryConfig.java b/src/main/java/studio/livepeer/livepeer/utils/RetryConfig.java index 17329f8..c04f43e 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/RetryConfig.java +++ b/src/main/java/studio/livepeer/livepeer/utils/RetryConfig.java @@ -1,12 +1,10 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; import java.util.Optional; -import studio.livepeer.livepeer.utils.Utils; - public class RetryConfig { diff --git a/src/main/java/studio/livepeer/livepeer/utils/Security.java b/src/main/java/studio/livepeer/livepeer/utils/Security.java index 70e1c58..d0e314d 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Security.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Security.java @@ -1,15 +1,12 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; - import java.lang.reflect.Field; import java.util.Base64; -import org.apache.http.message.BasicNameValuePair; - public final class Security { private Security() { diff --git a/src/main/java/studio/livepeer/livepeer/utils/SecurityMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/SecurityMetadata.java index 3f393c7..9c878ae 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/SecurityMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/SecurityMetadata.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/SerializedBody.java b/src/main/java/studio/livepeer/livepeer/utils/SerializedBody.java index 3ae1d95..976837d 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/SerializedBody.java +++ b/src/main/java/studio/livepeer/livepeer/utils/SerializedBody.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/SpeakeasyHTTPClient.java b/src/main/java/studio/livepeer/livepeer/utils/SpeakeasyHTTPClient.java index ca8a57b..3ff3030 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/SpeakeasyHTTPClient.java +++ b/src/main/java/studio/livepeer/livepeer/utils/SpeakeasyHTTPClient.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/SpeakeasyMetadata.java b/src/main/java/studio/livepeer/livepeer/utils/SpeakeasyMetadata.java index ddb4924..a0bd63a 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/SpeakeasyMetadata.java +++ b/src/main/java/studio/livepeer/livepeer/utils/SpeakeasyMetadata.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/TypedObject.java b/src/main/java/studio/livepeer/livepeer/utils/TypedObject.java index 1bbf7ea..9df9c0a 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/TypedObject.java +++ b/src/main/java/studio/livepeer/livepeer/utils/TypedObject.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Types.java b/src/main/java/studio/livepeer/livepeer/utils/Types.java index d2f7698..ab350f5 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Types.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Types.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; diff --git a/src/main/java/studio/livepeer/livepeer/utils/Utils.java b/src/main/java/studio/livepeer/livepeer/utils/Utils.java index 24f6abd..a0a07ad 100644 --- a/src/main/java/studio/livepeer/livepeer/utils/Utils.java +++ b/src/main/java/studio/livepeer/livepeer/utils/Utils.java @@ -1,5 +1,5 @@ /* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package studio.livepeer.livepeer.utils; @@ -8,6 +8,8 @@ import java.io.ByteArrayInputStream; import java.io.IOException; import java.lang.reflect.Field; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; import java.math.BigDecimal; import java.math.BigInteger; import java.net.URI; @@ -549,6 +551,10 @@ private static T readValue(String json, TypeReference typeReference) thro return JSON.getMapper().readValue(json, typeReference); } + public static byte[] extractByteArrayFromBody(HttpResponse response) throws IOException { + return toByteArrayAndClose(response.body()); + } + public static byte[] toByteArrayAndClose(InputStream in) throws IOException { try { return IOUtils.toByteArray(in); @@ -1023,4 +1029,25 @@ public static String bytesToLowerCaseHex(byte[] bytes) { } return new String(hexChars); } + + @SuppressWarnings("unchecked") + public static String discriminatorToString(Object o) { + // expects o to be either an Optional, Enum (with a String value() method) + // or a String value + Class cls = o.getClass(); + if (cls.equals(Optional.class)) { + Optional a = (Optional) o; + return a.map(x -> discriminatorToString(x)).orElse(null); + } else if (cls.isEnum()) { + try { + Method m = cls.getMethod("value"); + return (String) m.invoke(o); + } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException + | InvocationTargetException e) { + throw new RuntimeException(e); + } + } else { + return (String) o; + } + } }