diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 5b93f1b..0c4fcd4 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -30,6 +30,7 @@ docs/CreateTrackRequest.md docs/CreateTrackResponse.md docs/CreateTranscriptionVocabularyRequest.md docs/CreateUploadRequest.md +docs/CreateWebInputRequest.md docs/DeliveryReport.md docs/DeliveryReportDeliveredSecondsByResolution.md docs/DeliveryUsageApi.md @@ -74,9 +75,11 @@ docs/InputSettings.md docs/InputSettingsOverlaySettings.md docs/InputTrack.md docs/Insight.md +docs/LaunchWebInputResponse.md docs/ListAllMetricValuesResponse.md docs/ListAssetsResponse.md docs/ListBreakdownValuesResponse.md +docs/ListBreakdownValuesResponseMeta.md docs/ListDeliveryUsageResponse.md docs/ListDimensionValuesResponse.md docs/ListDimensionsResponse.md @@ -101,6 +104,7 @@ docs/ListTranscriptionVocabulariesResponse.md docs/ListUploadsResponse.md docs/ListVideoViewExportsResponse.md docs/ListVideoViewsResponse.md +docs/ListWebInputsResponse.md docs/LiveStream.md docs/LiveStreamEmbeddedSubtitleSettings.md docs/LiveStreamGeneratedSubtitleSettings.md @@ -132,7 +136,9 @@ docs/RealTimeHistogramTimeseriesBucketValues.md docs/RealTimeHistogramTimeseriesDatapoint.md docs/RealTimeTimeseriesDatapoint.md docs/ReferrerDomainRestriction.md +docs/ReloadWebInputResponse.md docs/Score.md +docs/ShutdownWebInputResponse.md docs/SignalLiveStreamCompleteResponse.md docs/SigningKey.md docs/SigningKeyResponse.md @@ -158,6 +164,7 @@ docs/UpdateLiveStreamGeneratedSubtitlesRequest.md docs/UpdateLiveStreamRequest.md docs/UpdateReferrerDomainRestrictionRequest.md docs/UpdateTranscriptionVocabularyRequest.md +docs/UpdateWebInputUrlRequest.md docs/Upload.md docs/UploadError.md docs/UploadResponse.md @@ -166,6 +173,9 @@ docs/VideoView.md docs/VideoViewEvent.md docs/VideoViewResponse.md docs/VideoViewsApi.md +docs/WebInput.md +docs/WebInputResponse.md +docs/WebInputsApi.md gradle.properties gradle/wrapper/gradle-wrapper.jar gradle/wrapper/gradle-wrapper.properties @@ -208,6 +218,7 @@ src/main/java/com/mux/sdk/SpacesApi.java src/main/java/com/mux/sdk/TranscriptionVocabulariesApi.java src/main/java/com/mux/sdk/UrlSigningKeysApi.java src/main/java/com/mux/sdk/VideoViewsApi.java +src/main/java/com/mux/sdk/WebInputsApi.java src/main/java/com/mux/sdk/models/AbridgedVideoView.java src/main/java/com/mux/sdk/models/Asset.java src/main/java/com/mux/sdk/models/AssetErrors.java @@ -236,6 +247,7 @@ src/main/java/com/mux/sdk/models/CreateTrackRequest.java src/main/java/com/mux/sdk/models/CreateTrackResponse.java src/main/java/com/mux/sdk/models/CreateTranscriptionVocabularyRequest.java src/main/java/com/mux/sdk/models/CreateUploadRequest.java +src/main/java/com/mux/sdk/models/CreateWebInputRequest.java src/main/java/com/mux/sdk/models/DeliveryReport.java src/main/java/com/mux/sdk/models/DeliveryReportDeliveredSecondsByResolution.java src/main/java/com/mux/sdk/models/DimensionValue.java @@ -273,9 +285,11 @@ src/main/java/com/mux/sdk/models/InputSettings.java src/main/java/com/mux/sdk/models/InputSettingsOverlaySettings.java src/main/java/com/mux/sdk/models/InputTrack.java src/main/java/com/mux/sdk/models/Insight.java +src/main/java/com/mux/sdk/models/LaunchWebInputResponse.java src/main/java/com/mux/sdk/models/ListAllMetricValuesResponse.java src/main/java/com/mux/sdk/models/ListAssetsResponse.java src/main/java/com/mux/sdk/models/ListBreakdownValuesResponse.java +src/main/java/com/mux/sdk/models/ListBreakdownValuesResponseMeta.java src/main/java/com/mux/sdk/models/ListDeliveryUsageResponse.java src/main/java/com/mux/sdk/models/ListDimensionValuesResponse.java src/main/java/com/mux/sdk/models/ListDimensionsResponse.java @@ -300,6 +314,7 @@ src/main/java/com/mux/sdk/models/ListTranscriptionVocabulariesResponse.java src/main/java/com/mux/sdk/models/ListUploadsResponse.java src/main/java/com/mux/sdk/models/ListVideoViewExportsResponse.java src/main/java/com/mux/sdk/models/ListVideoViewsResponse.java +src/main/java/com/mux/sdk/models/ListWebInputsResponse.java src/main/java/com/mux/sdk/models/LiveStream.java src/main/java/com/mux/sdk/models/LiveStreamEmbeddedSubtitleSettings.java src/main/java/com/mux/sdk/models/LiveStreamGeneratedSubtitleSettings.java @@ -325,7 +340,9 @@ src/main/java/com/mux/sdk/models/RealTimeHistogramTimeseriesBucketValues.java src/main/java/com/mux/sdk/models/RealTimeHistogramTimeseriesDatapoint.java src/main/java/com/mux/sdk/models/RealTimeTimeseriesDatapoint.java src/main/java/com/mux/sdk/models/ReferrerDomainRestriction.java +src/main/java/com/mux/sdk/models/ReloadWebInputResponse.java src/main/java/com/mux/sdk/models/Score.java +src/main/java/com/mux/sdk/models/ShutdownWebInputResponse.java src/main/java/com/mux/sdk/models/SignalLiveStreamCompleteResponse.java src/main/java/com/mux/sdk/models/SigningKey.java src/main/java/com/mux/sdk/models/SigningKeyResponse.java @@ -348,9 +365,12 @@ src/main/java/com/mux/sdk/models/UpdateLiveStreamGeneratedSubtitlesRequest.java src/main/java/com/mux/sdk/models/UpdateLiveStreamRequest.java src/main/java/com/mux/sdk/models/UpdateReferrerDomainRestrictionRequest.java src/main/java/com/mux/sdk/models/UpdateTranscriptionVocabularyRequest.java +src/main/java/com/mux/sdk/models/UpdateWebInputUrlRequest.java src/main/java/com/mux/sdk/models/Upload.java src/main/java/com/mux/sdk/models/UploadError.java src/main/java/com/mux/sdk/models/UploadResponse.java src/main/java/com/mux/sdk/models/VideoView.java src/main/java/com/mux/sdk/models/VideoViewEvent.java src/main/java/com/mux/sdk/models/VideoViewResponse.java +src/main/java/com/mux/sdk/models/WebInput.java +src/main/java/com/mux/sdk/models/WebInputResponse.java diff --git a/README.md b/README.md index 6995ea8..4f92fde 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Add this dependency to your project's POM: com.mux mux-sdk-java - 0.7.3 + 0.8.0 compile ``` @@ -58,7 +58,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.mux:mux-sdk-java:0.7.3" +compile "com.mux:mux-sdk-java:0.8.0" ``` ### Others @@ -71,7 +71,7 @@ mvn clean package Then manually install the following JARs: -* `target/mux-sdk-java-0.7.3.jar` +* `target/mux-sdk-java-0.8.0.jar` * `target/lib/*.jar` ## Getting Started @@ -213,6 +213,14 @@ Class | Method | HTTP request | Description *UrlSigningKeysApi* | [**listUrlSigningKeys**](docs/UrlSigningKeysApi.md#listUrlSigningKeys) | **GET** /video/v1/signing-keys | List URL signing keys *VideoViewsApi* | [**getVideoView**](docs/VideoViewsApi.md#getVideoView) | **GET** /data/v1/video-views/{VIDEO_VIEW_ID} | Get a Video View *VideoViewsApi* | [**listVideoViews**](docs/VideoViewsApi.md#listVideoViews) | **GET** /data/v1/video-views | List Video Views +*WebInputsApi* | [**createWebInput**](docs/WebInputsApi.md#createWebInput) | **POST** /video/v1/web-inputs | Create a new Web Input +*WebInputsApi* | [**deleteWebInput**](docs/WebInputsApi.md#deleteWebInput) | **DELETE** /video/v1/web-inputs/{WEB_INPUT_ID} | Delete a Web Input +*WebInputsApi* | [**getWebInput**](docs/WebInputsApi.md#getWebInput) | **GET** /video/v1/web-inputs/{WEB_INPUT_ID} | Retrieve a Web Input +*WebInputsApi* | [**launchWebInput**](docs/WebInputsApi.md#launchWebInput) | **PUT** /video/v1/web-inputs/{WEB_INPUT_ID}/launch | Launch a Web Input +*WebInputsApi* | [**listWebInputs**](docs/WebInputsApi.md#listWebInputs) | **GET** /video/v1/web-inputs | List Web Inputs +*WebInputsApi* | [**reloadWebInput**](docs/WebInputsApi.md#reloadWebInput) | **PUT** /video/v1/web-inputs/{WEB_INPUT_ID}/reload | Reload a Web Input +*WebInputsApi* | [**shutdownWebInput**](docs/WebInputsApi.md#shutdownWebInput) | **PUT** /video/v1/web-inputs/{WEB_INPUT_ID}/shutdown | Shut down a Web Input +*WebInputsApi* | [**updateWebInputUrl**](docs/WebInputsApi.md#updateWebInputUrl) | **PUT** /video/v1/web-inputs/{WEB_INPUT_ID}/url | Update Web Input URL ## Documentation for Models @@ -245,6 +253,7 @@ Class | Method | HTTP request | Description - [CreateTrackResponse](docs/CreateTrackResponse.md) - [CreateTranscriptionVocabularyRequest](docs/CreateTranscriptionVocabularyRequest.md) - [CreateUploadRequest](docs/CreateUploadRequest.md) + - [CreateWebInputRequest](docs/CreateWebInputRequest.md) - [DeliveryReport](docs/DeliveryReport.md) - [DeliveryReportDeliveredSecondsByResolution](docs/DeliveryReportDeliveredSecondsByResolution.md) - [DimensionValue](docs/DimensionValue.md) @@ -282,9 +291,11 @@ Class | Method | HTTP request | Description - [InputSettingsOverlaySettings](docs/InputSettingsOverlaySettings.md) - [InputTrack](docs/InputTrack.md) - [Insight](docs/Insight.md) + - [LaunchWebInputResponse](docs/LaunchWebInputResponse.md) - [ListAllMetricValuesResponse](docs/ListAllMetricValuesResponse.md) - [ListAssetsResponse](docs/ListAssetsResponse.md) - [ListBreakdownValuesResponse](docs/ListBreakdownValuesResponse.md) + - [ListBreakdownValuesResponseMeta](docs/ListBreakdownValuesResponseMeta.md) - [ListDeliveryUsageResponse](docs/ListDeliveryUsageResponse.md) - [ListDimensionValuesResponse](docs/ListDimensionValuesResponse.md) - [ListDimensionsResponse](docs/ListDimensionsResponse.md) @@ -309,6 +320,7 @@ Class | Method | HTTP request | Description - [ListUploadsResponse](docs/ListUploadsResponse.md) - [ListVideoViewExportsResponse](docs/ListVideoViewExportsResponse.md) - [ListVideoViewsResponse](docs/ListVideoViewsResponse.md) + - [ListWebInputsResponse](docs/ListWebInputsResponse.md) - [LiveStream](docs/LiveStream.md) - [LiveStreamEmbeddedSubtitleSettings](docs/LiveStreamEmbeddedSubtitleSettings.md) - [LiveStreamGeneratedSubtitleSettings](docs/LiveStreamGeneratedSubtitleSettings.md) @@ -334,7 +346,9 @@ Class | Method | HTTP request | Description - [RealTimeHistogramTimeseriesDatapoint](docs/RealTimeHistogramTimeseriesDatapoint.md) - [RealTimeTimeseriesDatapoint](docs/RealTimeTimeseriesDatapoint.md) - [ReferrerDomainRestriction](docs/ReferrerDomainRestriction.md) + - [ReloadWebInputResponse](docs/ReloadWebInputResponse.md) - [Score](docs/Score.md) + - [ShutdownWebInputResponse](docs/ShutdownWebInputResponse.md) - [SignalLiveStreamCompleteResponse](docs/SignalLiveStreamCompleteResponse.md) - [SigningKey](docs/SigningKey.md) - [SigningKeyResponse](docs/SigningKeyResponse.md) @@ -357,12 +371,15 @@ Class | Method | HTTP request | Description - [UpdateLiveStreamRequest](docs/UpdateLiveStreamRequest.md) - [UpdateReferrerDomainRestrictionRequest](docs/UpdateReferrerDomainRestrictionRequest.md) - [UpdateTranscriptionVocabularyRequest](docs/UpdateTranscriptionVocabularyRequest.md) + - [UpdateWebInputUrlRequest](docs/UpdateWebInputUrlRequest.md) - [Upload](docs/Upload.md) - [UploadError](docs/UploadError.md) - [UploadResponse](docs/UploadResponse.md) - [VideoView](docs/VideoView.md) - [VideoViewEvent](docs/VideoViewEvent.md) - [VideoViewResponse](docs/VideoViewResponse.md) + - [WebInput](docs/WebInput.md) + - [WebInputResponse](docs/WebInputResponse.md) ## Documentation for Authorization diff --git a/build.gradle b/build.gradle index 72a6366..5c09a41 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ plugins { } group = 'com.mux' -version = '0.7.3' +version = '0.8.0' repositories { mavenCentral() diff --git a/docs/Asset.md b/docs/Asset.md index 80e3ab8..6b666da 100644 --- a/docs/Asset.md +++ b/docs/Asset.md @@ -13,10 +13,10 @@ Name | Type | Description | Notes **maxStoredResolution** | [**MaxStoredResolutionEnum**](#MaxStoredResolutionEnum) | This field is deprecated. Please use `resolution_tier` instead. The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. | [optional] **resolutionTier** | [**ResolutionTierEnum**](#ResolutionTierEnum) | The resolution tier that the asset was ingested at, affecting billing for ingest & storage. This field also represents the highest resolution tier that the content can be delivered at, however the actual resolution may be lower depending on the device, bandwidth, and exact resolution of the uploaded asset. | [optional] **maxResolutionTier** | [**MaxResolutionTierEnum**](#MaxResolutionTierEnum) | Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. | [optional] -**encodingTier** | [**EncodingTierEnum**](#EncodingTierEnum) | The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/video/use-encoding-tiers) | [optional] +**encodingTier** | [**EncodingTierEnum**](#EncodingTierEnum) | The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] **maxStoredFrameRate** | **Double** | The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined. | [optional] **aspectRatio** | **String** | The aspect ratio of the asset in the form of `width:height`, for example `16:9`. | [optional] -**playbackIds** | [**java.util.List<PlaybackID>**](PlaybackID.md) | An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/video/play-your-videos) for more details. | [optional] +**playbackIds** | [**java.util.List<PlaybackID>**](PlaybackID.md) | An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. | [optional] **tracks** | [**java.util.List<Track>**](Track.md) | The individual media tracks that make up an asset. | [optional] **errors** | [**AssetErrors**](AssetErrors.md) | | [optional] **perTitleEncode** | **Boolean** | | [optional] diff --git a/docs/AssetMaster.md b/docs/AssetMaster.md index 51e2472..85b3b33 100644 --- a/docs/AssetMaster.md +++ b/docs/AssetMaster.md @@ -2,7 +2,7 @@ # AssetMaster -An object containing the current status of Master Access and the link to the Master MP4 file when ready. This object does not exist if `master_acess` is set to `none` and when the temporary URL expires. +An object containing the current status of Master Access and the link to the Master MP4 file when ready. This object does not exist if `master_access` is set to `none` and when the temporary URL expires. ## Properties Name | Type | Description | Notes diff --git a/docs/AssetNonStandardInputReasons.md b/docs/AssetNonStandardInputReasons.md index a483147..5f74275 100644 --- a/docs/AssetNonStandardInputReasons.md +++ b/docs/AssetNonStandardInputReasons.md @@ -2,7 +2,7 @@ # AssetNonStandardInputReasons -An object containing one or more reasons the input file is non-standard. See [the guide on minimizing processing time](https://docs.mux.com/guides/video/minimize-processing-time) for more information on what a standard input is defined as. This object only exists on on-demand assets that have non-standard inputs, so if missing you can assume the input qualifies as standard. +An object containing one or more reasons the input file is non-standard. See [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time) for more information on what a standard input is defined as. This object only exists on on-demand assets that have non-standard inputs, so if missing you can assume the input qualifies as standard. ## Properties Name | Type | Description | Notes diff --git a/docs/AssetStaticRenditions.md b/docs/AssetStaticRenditions.md index 18c3013..07833f0 100644 --- a/docs/AssetStaticRenditions.md +++ b/docs/AssetStaticRenditions.md @@ -2,7 +2,7 @@ # AssetStaticRenditions -An object containing the current status of any static renditions (mp4s). The object does not exist if no static renditions have been requested. See [Download your videos](https://docs.mux.com/guides/video/download-your-videos) for more information. +An object containing the current status of any static renditions (mp4s). The object does not exist if no static renditions have been requested. See [Download your videos](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. ## Properties Name | Type | Description | Notes diff --git a/docs/BreakdownValue.md b/docs/BreakdownValue.md index cbb5186..66fca38 100644 --- a/docs/BreakdownValue.md +++ b/docs/BreakdownValue.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **views** | **Long** | | [optional] **value** | **Double** | | [optional] **totalWatchTime** | **Long** | | [optional] +**totalPlayingTime** | **Long** | | [optional] **negativeImpact** | **Integer** | | [optional] **field** | **String** | | [optional] diff --git a/docs/CreateAssetRequest.md b/docs/CreateAssetRequest.md index 4acf595..ebda59c 100644 --- a/docs/CreateAssetRequest.md +++ b/docs/CreateAssetRequest.md @@ -10,12 +10,12 @@ Name | Type | Description | Notes **playbackPolicy** | **java.util.List<PlaybackPolicy>** | An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: `\"public\"` (anyone with the playback URL can stream the asset). And `\"signed\"` (an additional access token is required to play the asset). If no playback_policy is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional] **perTitleEncode** | **Boolean** | | [optional] **passthrough** | **String** | Arbitrary user-supplied metadata that will be included in the asset details and related webhooks. Can be used to store your own ID for a video along with the asset. **Max: 255 characters**. | [optional] -**mp4Support** | [**Mp4SupportEnum**](#Mp4SupportEnum) | Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](/guides/video/download-your-videos) for more information. | [optional] +**mp4Support** | [**Mp4SupportEnum**](#Mp4SupportEnum) | Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional] **normalizeAudio** | **Boolean** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] -**masterAccess** | [**MasterAccessEnum**](#MasterAccessEnum) | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](/guides/video/download-your-videos) for more information. | [optional] +**masterAccess** | [**MasterAccessEnum**](#MasterAccessEnum) | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional] **test** | **Boolean** | Marks the asset as a test asset when the value is set to true. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test asset are watermarked with the Mux logo, limited to 10 seconds, deleted after 24 hrs. | [optional] **maxResolutionTier** | [**MaxResolutionTierEnum**](#MaxResolutionTierEnum) | Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. | [optional] -**encodingTier** | [**EncodingTierEnum**](#EncodingTierEnum) | The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/video/use-encoding-tiers) | [optional] +**encodingTier** | [**EncodingTierEnum**](#EncodingTierEnum) | The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] diff --git a/docs/CreateLiveStreamRequest.md b/docs/CreateLiveStreamRequest.md index 3012254..61fee54 100644 --- a/docs/CreateLiveStreamRequest.md +++ b/docs/CreateLiveStreamRequest.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **generatedSubtitles** | [**java.util.List<LiveStreamGeneratedSubtitleSettings>**](LiveStreamGeneratedSubtitleSettings.md) | Configure the incoming live stream to include subtitles created with automatic speech recognition. Each Asset created from a live stream with `generated_subtitles` configured will automatically receive two text tracks. The first of these will have a `text_source` value of `generated_live`, and will be available with `ready` status as soon as the stream is live. The second text track will have a `text_source` value of `generated_live_final` and will contain subtitles with improved accuracy, timing, and formatting. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. | [optional] **reducedLatency** | **Boolean** | This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/ | [optional] **lowLatency** | **Boolean** | This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. | [optional] -**latencyMode** | [**LatencyModeEnum**](#LatencyModeEnum) | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ | [optional] +**latencyMode** | [**LatencyModeEnum**](#LatencyModeEnum) | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. | [optional] **test** | **Boolean** | Marks the live stream as a test live stream when the value is set to true. A test live stream can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test live streams created. Test live streams are watermarked with the Mux logo and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. | [optional] **simulcastTargets** | [**java.util.List<CreateSimulcastTargetRequest>**](CreateSimulcastTargetRequest.md) | | [optional] **maxContinuousDuration** | **Integer** | The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. | [optional] diff --git a/docs/CreateSimulcastTargetRequest.md b/docs/CreateSimulcastTargetRequest.md index 4ef1395..86f1268 100644 --- a/docs/CreateSimulcastTargetRequest.md +++ b/docs/CreateSimulcastTargetRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **passthrough** | **String** | Arbitrary user-supplied metadata set by you when creating a simulcast target. | [optional] **streamKey** | **String** | Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. | [optional] -**url** | **String** | RTMP hostname including application name for the third party live streaming service. Example: `rtmp://live.example.com/app`. | +**url** | **String** | RTMP hostname including application name for the third party live streaming service. Example: `rtmp://live.example.com/app`. | [optional] diff --git a/docs/CreateUploadRequest.md b/docs/CreateUploadRequest.md index 5ef5fe5..5cdede5 100644 --- a/docs/CreateUploadRequest.md +++ b/docs/CreateUploadRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **timeout** | **Integer** | Max time in seconds for the signed upload URL to be valid. If a successful upload has not occurred before the timeout limit, the direct upload is marked `timed_out` | [optional] **corsOrigin** | **String** | If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers. | [optional] -**newAssetSettings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | +**newAssetSettings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional] **test** | **Boolean** | | [optional] diff --git a/docs/CreateWebInputRequest.md b/docs/CreateWebInputRequest.md new file mode 100644 index 0000000..1e1d5a6 --- /dev/null +++ b/docs/CreateWebInputRequest.md @@ -0,0 +1,43 @@ + + +# CreateWebInputRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | Unique identifier for the Web Input. | [optional] +**createdAt** | **String** | Time the Web Input was created, defined as a Unix timestamp (seconds since epoch). | [optional] +**url** | **String** | The URL for the Web Input to load. | [optional] +**autoLaunch** | **Boolean** | When set to `true` the Web Input will automatically launch and start streaming immediately after creation | [optional] +**liveStreamId** | **String** | The Live Stream ID to broadcast this Web Input to | [optional] +**status** | [**StatusEnum**](#StatusEnum) | | [optional] +**passthrough** | **String** | Arbitrary metadata that will be included in the Web Input details and related webhooks. Can be used to store your own ID for the Web Input. **Max: 255 characters**. | [optional] +**resolution** | [**ResolutionEnum**](#ResolutionEnum) | The resolution of the viewport of the Web Input's browser instance. Defaults to 1920x1080 if not set. | [optional] +**timeout** | **Integer** | The number of seconds that the Web Input should stream for before automatically shutting down. | [optional] + + + +## Enum: StatusEnum + +Name | Value +---- | ----- +IDLE | "idle" +LAUNCHING | "launching" +STREAMING | "streaming" + + + +## Enum: ResolutionEnum + +Name | Value +---- | ----- +_1920X1080 | "1920x1080" +_1280X720 | "1280x720" +_1080X1920 | "1080x1920" +_720X1280 | "720x1280" +_1080X1080 | "1080x1080" +_720X720 | "720x720" + + + diff --git a/docs/Error.md b/docs/Error.md index 1635d73..7122d2c 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **message** | **String** | The error message. | [optional] **lastSeen** | **String** | The last time this error was seen (ISO 8601 timestamp). | [optional] **description** | **String** | Description of the error. | [optional] -**count** | **Long** | The total number of views that experiend this error. | [optional] +**count** | **Long** | The total number of views that experienced this error. | [optional] **code** | **Long** | The error code | [optional] diff --git a/docs/GetMetricTimeseriesDataResponse.md b/docs/GetMetricTimeseriesDataResponse.md index 8876e4b..31173b4 100644 --- a/docs/GetMetricTimeseriesDataResponse.md +++ b/docs/GetMetricTimeseriesDataResponse.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **data** | **java.util.List<java.util.List<String>>** | | [optional] **totalRowCount** | **Long** | | [optional] **timeframe** | **java.util.List<Long>** | | [optional] +**meta** | [**ListBreakdownValuesResponseMeta**](ListBreakdownValuesResponseMeta.md) | | [optional] diff --git a/docs/GetMonitoringHistogramTimeseriesResponseMeta.md b/docs/GetMonitoringHistogramTimeseriesResponseMeta.md index 6d176cf..4ff0395 100644 --- a/docs/GetMonitoringHistogramTimeseriesResponseMeta.md +++ b/docs/GetMonitoringHistogramTimeseriesResponseMeta.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**bucketUnit** | **String** | | [optional] **buckets** | [**java.util.List<MonitoringHistogramTimeseriesBucket>**](MonitoringHistogramTimeseriesBucket.md) | | [optional] diff --git a/docs/GetOverallValuesResponse.md b/docs/GetOverallValuesResponse.md index 073acca..de5b37e 100644 --- a/docs/GetOverallValuesResponse.md +++ b/docs/GetOverallValuesResponse.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **data** | [**OverallValues**](OverallValues.md) | | [optional] **totalRowCount** | **Long** | | [optional] **timeframe** | **java.util.List<Long>** | | [optional] +**meta** | [**ListBreakdownValuesResponseMeta**](ListBreakdownValuesResponseMeta.md) | | [optional] diff --git a/docs/GetRealTimeHistogramTimeseriesResponseMeta.md b/docs/GetRealTimeHistogramTimeseriesResponseMeta.md index 9b7565a..dd6b4d4 100644 --- a/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +++ b/docs/GetRealTimeHistogramTimeseriesResponseMeta.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**bucketUnit** | **String** | | [optional] **buckets** | [**java.util.List<RealTimeHistogramTimeseriesBucket>**](RealTimeHistogramTimeseriesBucket.md) | | [optional] diff --git a/docs/IncidentResponse.md b/docs/IncidentResponse.md index f358ada..017baab 100644 --- a/docs/IncidentResponse.md +++ b/docs/IncidentResponse.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Incident**](Incident.md) | | [optional] +**totalRowCount** | **Long** | | [optional] **timeframe** | **java.util.List<Long>** | | [optional] diff --git a/docs/InputSettings.md b/docs/InputSettings.md index b3ee87c..12575e8 100644 --- a/docs/InputSettings.md +++ b/docs/InputSettings.md @@ -7,7 +7,7 @@ An array of objects that each describe an input file to be used to create the as Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**url** | **String** | The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/video/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/video/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. | [optional] +**url** | **String** | The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. | [optional] **overlaySettings** | [**InputSettingsOverlaySettings**](InputSettingsOverlaySettings.md) | | [optional] **generatedSubtitles** | [**java.util.List<AssetGeneratedSubtitleSettings>**](AssetGeneratedSubtitleSettings.md) | Generate subtitle tracks using automatic speech recognition using this configuration. This may only be provided for the first input object (the main input file). For direct uploads, this first input should omit the url parameter, as the main input file is provided via the direct upload. This will create subtitles based on the audio track ingested from that main input file. Note that subtitle generation happens after initial ingest, so the generated tracks will be in the `preparing` state when the asset transitions to `ready`. | [optional] **startTime** | **Double** | The time offset in seconds from the beginning of the video indicating the clip's starting marker. The default value is 0 when not included. This parameter is only applicable for creating clips when `input.url` has `mux://assets/{asset_id}` format. | [optional] diff --git a/docs/Insight.md b/docs/Insight.md index 5ed0dcd..f765f20 100644 --- a/docs/Insight.md +++ b/docs/Insight.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **totalWatchTime** | **Long** | | [optional] +**totalPlayingTime** | **Long** | | [optional] **totalViews** | **Long** | | [optional] **negativeImpactScore** | **Float** | | [optional] **metric** | **Double** | | [optional] diff --git a/docs/LaunchWebInputResponse.md b/docs/LaunchWebInputResponse.md new file mode 100644 index 0000000..5d073de --- /dev/null +++ b/docs/LaunchWebInputResponse.md @@ -0,0 +1,12 @@ + + +# LaunchWebInputResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **Object** | | [optional] + + + diff --git a/docs/ListBreakdownValuesResponse.md b/docs/ListBreakdownValuesResponse.md index 2b1e9ef..cb6fff2 100644 --- a/docs/ListBreakdownValuesResponse.md +++ b/docs/ListBreakdownValuesResponse.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **data** | [**java.util.List<BreakdownValue>**](BreakdownValue.md) | | [optional] **totalRowCount** | **Long** | | [optional] **timeframe** | **java.util.List<Long>** | | [optional] +**meta** | [**ListBreakdownValuesResponseMeta**](ListBreakdownValuesResponseMeta.md) | | [optional] diff --git a/docs/ListBreakdownValuesResponseMeta.md b/docs/ListBreakdownValuesResponseMeta.md new file mode 100644 index 0000000..620d251 --- /dev/null +++ b/docs/ListBreakdownValuesResponseMeta.md @@ -0,0 +1,13 @@ + + +# ListBreakdownValuesResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**granularity** | **String** | | [optional] +**aggregation** | **String** | | [optional] + + + diff --git a/docs/ListInsightsResponse.md b/docs/ListInsightsResponse.md index ac5f451..ecc3890 100644 --- a/docs/ListInsightsResponse.md +++ b/docs/ListInsightsResponse.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **data** | [**java.util.List<Insight>**](Insight.md) | | [optional] **totalRowCount** | **Long** | | [optional] **timeframe** | **java.util.List<Long>** | | [optional] +**meta** | [**ListBreakdownValuesResponseMeta**](ListBreakdownValuesResponseMeta.md) | | [optional] diff --git a/docs/ListWebInputsResponse.md b/docs/ListWebInputsResponse.md new file mode 100644 index 0000000..a306fb3 --- /dev/null +++ b/docs/ListWebInputsResponse.md @@ -0,0 +1,12 @@ + + +# ListWebInputsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**java.util.List<WebInput>**](WebInput.md) | | [optional] + + + diff --git a/docs/LiveStream.md b/docs/LiveStream.md index 3712a07..aae1b89 100644 --- a/docs/LiveStream.md +++ b/docs/LiveStream.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **activeAssetId** | **String** | The Asset that is currently being created if there is an active broadcast. | [optional] **recentAssetIds** | **java.util.List<String>** | An array of strings with the most recent Asset IDs that were created from this Live Stream. The most recently generated Asset ID is the last entry in the list. | [optional] **status** | **LiveStreamStatus** | | [optional] -**playbackIds** | [**java.util.List<PlaybackID>**](PlaybackID.md) | An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/video/play-your-videos) for more details. | [optional] +**playbackIds** | [**java.util.List<PlaybackID>**](PlaybackID.md) | An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. | [optional] **newAssetSettings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional] **passthrough** | **String** | Arbitrary user-supplied metadata set for the asset. Max 255 characters. | [optional] **audioOnly** | **Boolean** | The live stream only processes the audio track if the value is set to true. Mux drops the video track if broadcasted. | [optional] @@ -21,10 +21,10 @@ Name | Type | Description | Notes **reconnectWindow** | **Float** | When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. **Max**: 1800s (30 minutes). If not specified directly, Standard Latency streams have a Reconnect Window of 60 seconds; Reduced and Low Latency streams have a default of 0 seconds, or no Reconnect Window. For that reason, we suggest specifying a value other than zero for Reduced and Low Latency streams. Reduced and Low Latency streams with a Reconnect Window greater than zero will insert slate media into the recorded asset while waiting for the streaming software to reconnect or when there are brief interruptions in the live stream media. When using a Reconnect Window setting higher than 60 seconds with a Standard Latency stream, we highly recommend enabling slate with the `use_slate_for_standard_latency` option. | [optional] **useSlateForStandardLatency** | **Boolean** | By default, Standard Latency live streams do not have slate media inserted while waiting for live streaming software to reconnect to Mux. Setting this to true enables slate insertion on a Standard Latency stream. | [optional] **reconnectSlateUrl** | **String** | The URL of the image file that Mux should download and use as slate media during interruptions of the live stream media. This file will be downloaded each time a new recorded asset is created from the live stream. If this is not set, the default slate media will be used. | [optional] -**reducedLatency** | **Boolean** | This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. See the [Reduce live stream latency guide](https://docs.mux.com/guides/video/reduce-live-stream-latency) to understand the tradeoffs. | [optional] +**reducedLatency** | **Boolean** | This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. See the [Reduce live stream latency guide](https://docs.mux.com/guides/reduce-live-stream-latency) to understand the tradeoffs. | [optional] **lowLatency** | **Boolean** | This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. | [optional] -**simulcastTargets** | [**java.util.List<SimulcastTarget>**](SimulcastTarget.md) | Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/video/stream-live-to-3rd-party-platforms). | [optional] -**latencyMode** | [**LatencyModeEnum**](#LatencyModeEnum) | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ | [optional] +**simulcastTargets** | [**java.util.List<SimulcastTarget>**](SimulcastTarget.md) | Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/stream-live-to-3rd-party-platforms). | [optional] +**latencyMode** | [**LatencyModeEnum**](#LatencyModeEnum) | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. | [optional] **test** | **Boolean** | True means this live stream is a test live stream. Test live streams can be used to help evaluate the Mux Video APIs for free. There is no limit on the number of test live streams, but they are watermarked with the Mux logo, and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. | [optional] **maxContinuousDuration** | **Integer** | The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. | [optional] diff --git a/docs/LiveStreamsApi.md b/docs/LiveStreamsApi.md index 6e94365..ec4a4d3 100644 --- a/docs/LiveStreamsApi.md +++ b/docs/LiveStreamsApi.md @@ -1180,7 +1180,7 @@ public class Example { LiveStreamsApi apiInstance = new LiveStreamsApi(defaultClient); String LIVE_STREAM_ID = "LIVE_STREAM_ID_example"; // String | The live stream ID - UpdateLiveStreamGeneratedSubtitlesRequest updateLiveStreamGeneratedSubtitlesRequest = {"generated_subtitles":[{"name":"English CC (ASR)","language":"en","passthrough":"Example"}]}; // UpdateLiveStreamGeneratedSubtitlesRequest | + UpdateLiveStreamGeneratedSubtitlesRequest updateLiveStreamGeneratedSubtitlesRequest = {"generated_subtitles":[{"name":"English CC (ASR)","language_code":"en","passthrough":"Example"}]}; // UpdateLiveStreamGeneratedSubtitlesRequest | try { LiveStreamResponse result = apiInstance.updateLiveStreamGeneratedSubtitles(LIVE_STREAM_ID, updateLiveStreamGeneratedSubtitlesRequest) .execute(); diff --git a/docs/MonitoringBreakdownValue.md b/docs/MonitoringBreakdownValue.md index 08867f0..5e87485 100644 --- a/docs/MonitoringBreakdownValue.md +++ b/docs/MonitoringBreakdownValue.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **metricValue** | **Double** | | [optional] **displayValue** | **String** | | [optional] **concurrentViewers** | **Long** | | [optional] +**startingUpViewers** | **Long** | | [optional] diff --git a/docs/OverallValues.md b/docs/OverallValues.md index aaa343f..e3d8914 100644 --- a/docs/OverallValues.md +++ b/docs/OverallValues.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **value** | **Double** | | [optional] **totalWatchTime** | **Long** | | [optional] **totalViews** | **Long** | | [optional] +**totalPlayingTime** | **Long** | | [optional] **globalValue** | **Double** | | [optional] diff --git a/docs/RealTimeBreakdownValue.md b/docs/RealTimeBreakdownValue.md index 7544fe9..7f6ad54 100644 --- a/docs/RealTimeBreakdownValue.md +++ b/docs/RealTimeBreakdownValue.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **metricValue** | **Double** | | [optional] **displayValue** | **String** | | [optional] **concurrentViewers** | **Long** | | [optional] +**startingUpViewers** | **Long** | | [optional] diff --git a/docs/ReloadWebInputResponse.md b/docs/ReloadWebInputResponse.md new file mode 100644 index 0000000..ef6ac69 --- /dev/null +++ b/docs/ReloadWebInputResponse.md @@ -0,0 +1,12 @@ + + +# ReloadWebInputResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **Object** | | [optional] + + + diff --git a/docs/Score.md b/docs/Score.md index 8a41b5c..fd8d0b5 100644 --- a/docs/Score.md +++ b/docs/Score.md @@ -8,8 +8,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **watchTime** | **Long** | | [optional] **viewCount** | **Long** | | [optional] +**uniqueViewers** | **Long** | | [optional] +**startedViews** | **Long** | | [optional] +**totalPlayingTime** | **Long** | | [optional] **name** | **String** | | [optional] +**endedViews** | **Long** | | [optional] **value** | **Double** | | [optional] +**type** | **String** | | [optional] **metric** | **String** | | [optional] **items** | [**java.util.List<Metric>**](Metric.md) | | [optional] diff --git a/docs/ShutdownWebInputResponse.md b/docs/ShutdownWebInputResponse.md new file mode 100644 index 0000000..29701aa --- /dev/null +++ b/docs/ShutdownWebInputResponse.md @@ -0,0 +1,12 @@ + + +# ShutdownWebInputResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **Object** | | [optional] + + + diff --git a/docs/SpacesApi.md b/docs/SpacesApi.md index 70e8a7b..18501c7 100644 --- a/docs/SpacesApi.md +++ b/docs/SpacesApi.md @@ -439,7 +439,7 @@ Name | Type | Description | Notes List spaces -List all spaces in the current enviroment. +List all spaces in the current environment. ### Example ```java diff --git a/docs/UpdateLiveStreamRequest.md b/docs/UpdateLiveStreamRequest.md index 595308f..959f637 100644 --- a/docs/UpdateLiveStreamRequest.md +++ b/docs/UpdateLiveStreamRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **passthrough** | **String** | Arbitrary user-supplied metadata set for the live stream. Max 255 characters. In order to clear this value, the field should be included with an empty-string value. | [optional] -**latencyMode** | [**LatencyModeEnum**](#LatencyModeEnum) | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ | [optional] +**latencyMode** | [**LatencyModeEnum**](#LatencyModeEnum) | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. | [optional] **reconnectWindow** | **Float** | When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. If not specified directly, Standard Latency streams have a Reconnect Window of 60 seconds; Reduced and Low Latency streams have a default of 0 seconds, or no Reconnect Window. For that reason, we suggest specifying a value other than zero for Reduced and Low Latency streams. Reduced and Low Latency streams with a Reconnect Window greater than zero will insert slate media into the recorded asset while waiting for the streaming software to reconnect or when there are brief interruptions in the live stream media. When using a Reconnect Window setting higher than 60 seconds with a Standard Latency stream, we highly recommend enabling slate with the `use_slate_for_standard_latency` option. | [optional] **useSlateForStandardLatency** | **Boolean** | By default, Standard Latency live streams do not have slate media inserted while waiting for live streaming software to reconnect to Mux. Setting this to true enables slate insertion on a Standard Latency stream. | [optional] **reconnectSlateUrl** | **String** | The URL of the image file that Mux should download and use as slate media during interruptions of the live stream media. This file will be downloaded each time a new recorded asset is created from the live stream. Set this to a blank string to clear the value so that the default slate media will be used. | [optional] diff --git a/docs/UpdateWebInputUrlRequest.md b/docs/UpdateWebInputUrlRequest.md new file mode 100644 index 0000000..c966bb2 --- /dev/null +++ b/docs/UpdateWebInputUrlRequest.md @@ -0,0 +1,12 @@ + + +# UpdateWebInputUrlRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | The URL for the Web Input to load. | [optional] + + + diff --git a/docs/VideoView.md b/docs/VideoView.md index dd0393d..4a10107 100644 --- a/docs/VideoView.md +++ b/docs/VideoView.md @@ -147,6 +147,8 @@ Name | Type | Description | Notes **viewDroppedFrameCount** | **Long** | | [optional] **viewHasAd** | **Boolean** | | [optional] **videoStartupFailure** | **Boolean** | | [optional] +**longResume** | **Boolean** | | [optional] +**longRebuffering** | **Boolean** | | [optional] diff --git a/docs/VideoViewEvent.md b/docs/VideoViewEvent.md index 825a1b1..bc0ec9d 100644 --- a/docs/VideoViewEvent.md +++ b/docs/VideoViewEvent.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **playbackTime** | **Long** | | [optional] **name** | **String** | | [optional] **eventTime** | **Long** | | [optional] +**details** | **Map<String, Object>** | | [optional] diff --git a/docs/VideoViewResponse.md b/docs/VideoViewResponse.md index c17fca2..b5b55dd 100644 --- a/docs/VideoViewResponse.md +++ b/docs/VideoViewResponse.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**VideoView**](VideoView.md) | | [optional] **timeframe** | **java.util.List<Long>** | | [optional] +**totalRowCount** | **Long** | | [optional] diff --git a/docs/WebInput.md b/docs/WebInput.md new file mode 100644 index 0000000..5989ef4 --- /dev/null +++ b/docs/WebInput.md @@ -0,0 +1,43 @@ + + +# WebInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | Unique identifier for the Web Input. | [optional] +**createdAt** | **String** | Time the Web Input was created, defined as a Unix timestamp (seconds since epoch). | [optional] +**url** | **String** | The URL for the Web Input to load. | [optional] +**autoLaunch** | **Boolean** | When set to `true` the Web Input will automatically launch and start streaming immediately after creation | [optional] +**liveStreamId** | **String** | The Live Stream ID to broadcast this Web Input to | [optional] +**status** | [**StatusEnum**](#StatusEnum) | | [optional] +**passthrough** | **String** | Arbitrary metadata that will be included in the Web Input details and related webhooks. Can be used to store your own ID for the Web Input. **Max: 255 characters**. | [optional] +**resolution** | [**ResolutionEnum**](#ResolutionEnum) | The resolution of the viewport of the Web Input's browser instance. Defaults to 1920x1080 if not set. | [optional] +**timeout** | **Integer** | The number of seconds that the Web Input should stream for before automatically shutting down. | [optional] + + + +## Enum: StatusEnum + +Name | Value +---- | ----- +IDLE | "idle" +LAUNCHING | "launching" +STREAMING | "streaming" + + + +## Enum: ResolutionEnum + +Name | Value +---- | ----- +_1920X1080 | "1920x1080" +_1280X720 | "1280x720" +_1080X1920 | "1080x1920" +_720X1280 | "720x1280" +_1080X1080 | "1080x1080" +_720X720 | "720x720" + + + diff --git a/docs/WebInputResponse.md b/docs/WebInputResponse.md new file mode 100644 index 0000000..8cc2f23 --- /dev/null +++ b/docs/WebInputResponse.md @@ -0,0 +1,12 @@ + + +# WebInputResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**WebInput**](WebInput.md) | | [optional] + + + diff --git a/docs/WebInputsApi.md b/docs/WebInputsApi.md new file mode 100644 index 0000000..9032630 --- /dev/null +++ b/docs/WebInputsApi.md @@ -0,0 +1,573 @@ +# WebInputsApi + +All URIs are relative to *https://api.mux.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createWebInput**](WebInputsApi.md#createWebInput) | **POST** /video/v1/web-inputs | Create a new Web Input +[**deleteWebInput**](WebInputsApi.md#deleteWebInput) | **DELETE** /video/v1/web-inputs/{WEB_INPUT_ID} | Delete a Web Input +[**getWebInput**](WebInputsApi.md#getWebInput) | **GET** /video/v1/web-inputs/{WEB_INPUT_ID} | Retrieve a Web Input +[**launchWebInput**](WebInputsApi.md#launchWebInput) | **PUT** /video/v1/web-inputs/{WEB_INPUT_ID}/launch | Launch a Web Input +[**listWebInputs**](WebInputsApi.md#listWebInputs) | **GET** /video/v1/web-inputs | List Web Inputs +[**reloadWebInput**](WebInputsApi.md#reloadWebInput) | **PUT** /video/v1/web-inputs/{WEB_INPUT_ID}/reload | Reload a Web Input +[**shutdownWebInput**](WebInputsApi.md#shutdownWebInput) | **PUT** /video/v1/web-inputs/{WEB_INPUT_ID}/shutdown | Shut down a Web Input +[**updateWebInputUrl**](WebInputsApi.md#updateWebInputUrl) | **PUT** /video/v1/web-inputs/{WEB_INPUT_ID}/url | Update Web Input URL + + + +# **createWebInput** +> WebInputResponse createWebInput(createWebInputRequest).execute(); + +Create a new Web Input + +Create a new Web Input + +### Example +```java +// Import classes: +import com.mux.ApiClient; +import com.mux.ApiException; +import com.mux.Configuration; +import com.mux.auth.*; +import com.mux.models.*; +import com.mux.sdk.WebInputsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.mux.com"); + + // Configure HTTP basic authorization: accessToken + HttpBasicAuth accessToken = (HttpBasicAuth) defaultClient.getAuthentication("accessToken"); + accessToken.setUsername("YOUR USERNAME"); + accessToken.setPassword("YOUR PASSWORD"); + + WebInputsApi apiInstance = new WebInputsApi(defaultClient); + CreateWebInputRequest createWebInputRequest = {"url":"https://example.com/hello.html","live_stream_id":"ZEBrNTpHC02iUah025KM3te6ylM7W4S4silsrFtUkn3Ag"}; // CreateWebInputRequest | + try { + WebInputResponse result = apiInstance.createWebInput(createWebInputRequest) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WebInputsApi#createWebInput"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createWebInputRequest** | [**CreateWebInputRequest**](CreateWebInputRequest.md)| | + +### Return type + +[**WebInputResponse**](WebInputResponse.md) + +### Authorization + +[accessToken](../README.md#accessToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Web Input Created | - | + + +# **deleteWebInput** +> deleteWebInput(WEB_INPUT_ID).execute(); + +Delete a Web Input + +Deletes a Web Input and all its data + +### Example +```java +// Import classes: +import com.mux.ApiClient; +import com.mux.ApiException; +import com.mux.Configuration; +import com.mux.auth.*; +import com.mux.models.*; +import com.mux.sdk.WebInputsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.mux.com"); + + // Configure HTTP basic authorization: accessToken + HttpBasicAuth accessToken = (HttpBasicAuth) defaultClient.getAuthentication("accessToken"); + accessToken.setUsername("YOUR USERNAME"); + accessToken.setPassword("YOUR PASSWORD"); + + WebInputsApi apiInstance = new WebInputsApi(defaultClient); + String WEB_INPUT_ID = "abcd1234"; // String | The Web Input ID + try { + apiInstance.deleteWebInput(WEB_INPUT_ID) + .execute(); + } catch (ApiException e) { + System.err.println("Exception when calling WebInputsApi#deleteWebInput"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **WEB_INPUT_ID** | **String**| The Web Input ID | + +### Return type + +null (empty response body) + +### Authorization + +[accessToken](../README.md#accessToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | + + +# **getWebInput** +> WebInputResponse getWebInput(WEB_INPUT_ID).execute(); + +Retrieve a Web Input + +Retrieve a single Web Input's info + +### Example +```java +// Import classes: +import com.mux.ApiClient; +import com.mux.ApiException; +import com.mux.Configuration; +import com.mux.auth.*; +import com.mux.models.*; +import com.mux.sdk.WebInputsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.mux.com"); + + // Configure HTTP basic authorization: accessToken + HttpBasicAuth accessToken = (HttpBasicAuth) defaultClient.getAuthentication("accessToken"); + accessToken.setUsername("YOUR USERNAME"); + accessToken.setPassword("YOUR PASSWORD"); + + WebInputsApi apiInstance = new WebInputsApi(defaultClient); + String WEB_INPUT_ID = "abcd1234"; // String | The Web Input ID + try { + WebInputResponse result = apiInstance.getWebInput(WEB_INPUT_ID) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WebInputsApi#getWebInput"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **WEB_INPUT_ID** | **String**| The Web Input ID | + +### Return type + +[**WebInputResponse**](WebInputResponse.md) + +### Authorization + +[accessToken](../README.md#accessToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **launchWebInput** +> LaunchWebInputResponse launchWebInput(WEB_INPUT_ID).execute(); + +Launch a Web Input + +Launches the browsers instance, loads the URL specified, and then starts streaming to the specified Live Stream. + +### Example +```java +// Import classes: +import com.mux.ApiClient; +import com.mux.ApiException; +import com.mux.Configuration; +import com.mux.auth.*; +import com.mux.models.*; +import com.mux.sdk.WebInputsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.mux.com"); + + // Configure HTTP basic authorization: accessToken + HttpBasicAuth accessToken = (HttpBasicAuth) defaultClient.getAuthentication("accessToken"); + accessToken.setUsername("YOUR USERNAME"); + accessToken.setPassword("YOUR PASSWORD"); + + WebInputsApi apiInstance = new WebInputsApi(defaultClient); + String WEB_INPUT_ID = "abcd1234"; // String | The Web Input ID + try { + LaunchWebInputResponse result = apiInstance.launchWebInput(WEB_INPUT_ID) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WebInputsApi#launchWebInput"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **WEB_INPUT_ID** | **String**| The Web Input ID | + +### Return type + +[**LaunchWebInputResponse**](LaunchWebInputResponse.md) + +### Authorization + +[accessToken](../README.md#accessToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **listWebInputs** +> ListWebInputsResponse listWebInputs().limit(limit).page(page).execute(); + +List Web Inputs + +List Web Inputs + +### Example +```java +// Import classes: +import com.mux.ApiClient; +import com.mux.ApiException; +import com.mux.Configuration; +import com.mux.auth.*; +import com.mux.models.*; +import com.mux.sdk.WebInputsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.mux.com"); + + // Configure HTTP basic authorization: accessToken + HttpBasicAuth accessToken = (HttpBasicAuth) defaultClient.getAuthentication("accessToken"); + accessToken.setUsername("YOUR USERNAME"); + accessToken.setPassword("YOUR PASSWORD"); + + WebInputsApi apiInstance = new WebInputsApi(defaultClient); + Integer limit = 25; // Integer | Number of items to include in the response + Integer page = 1; // Integer | Offset by this many pages, of the size of `limit` + try { + ListWebInputsResponse result = apiInstance.listWebInputs() + .limit(limit) + .page(page) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WebInputsApi#listWebInputs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **Integer**| Number of items to include in the response | [optional] [default to 25] + **page** | **Integer**| Offset by this many pages, of the size of `limit` | [optional] [default to 1] + +### Return type + +[**ListWebInputsResponse**](ListWebInputsResponse.md) + +### Authorization + +[accessToken](../README.md#accessToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **reloadWebInput** +> ReloadWebInputResponse reloadWebInput(WEB_INPUT_ID).execute(); + +Reload a Web Input + +Reloads the page that a Web Input is displaying. Note: Using this when the Web Input is streaming will display the page reloading. + +### Example +```java +// Import classes: +import com.mux.ApiClient; +import com.mux.ApiException; +import com.mux.Configuration; +import com.mux.auth.*; +import com.mux.models.*; +import com.mux.sdk.WebInputsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.mux.com"); + + // Configure HTTP basic authorization: accessToken + HttpBasicAuth accessToken = (HttpBasicAuth) defaultClient.getAuthentication("accessToken"); + accessToken.setUsername("YOUR USERNAME"); + accessToken.setPassword("YOUR PASSWORD"); + + WebInputsApi apiInstance = new WebInputsApi(defaultClient); + String WEB_INPUT_ID = "abcd1234"; // String | The Web Input ID + try { + ReloadWebInputResponse result = apiInstance.reloadWebInput(WEB_INPUT_ID) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WebInputsApi#reloadWebInput"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **WEB_INPUT_ID** | **String**| The Web Input ID | + +### Return type + +[**ReloadWebInputResponse**](ReloadWebInputResponse.md) + +### Authorization + +[accessToken](../README.md#accessToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **shutdownWebInput** +> ShutdownWebInputResponse shutdownWebInput(WEB_INPUT_ID).execute(); + +Shut down a Web Input + +Ends streaming to the specified Live Stream, and then shuts down the Web Input browser instance. + +### Example +```java +// Import classes: +import com.mux.ApiClient; +import com.mux.ApiException; +import com.mux.Configuration; +import com.mux.auth.*; +import com.mux.models.*; +import com.mux.sdk.WebInputsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.mux.com"); + + // Configure HTTP basic authorization: accessToken + HttpBasicAuth accessToken = (HttpBasicAuth) defaultClient.getAuthentication("accessToken"); + accessToken.setUsername("YOUR USERNAME"); + accessToken.setPassword("YOUR PASSWORD"); + + WebInputsApi apiInstance = new WebInputsApi(defaultClient); + String WEB_INPUT_ID = "abcd1234"; // String | The Web Input ID + try { + ShutdownWebInputResponse result = apiInstance.shutdownWebInput(WEB_INPUT_ID) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WebInputsApi#shutdownWebInput"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **WEB_INPUT_ID** | **String**| The Web Input ID | + +### Return type + +[**ShutdownWebInputResponse**](ShutdownWebInputResponse.md) + +### Authorization + +[accessToken](../README.md#accessToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateWebInputUrl** +> WebInputResponse updateWebInputUrl(WEB_INPUT_ID, updateWebInputUrlRequest).execute(); + +Update Web Input URL + +Changes the URL that a Web Input loads when it launches. Note: This can only be called when the Web Input is idle. + +### Example +```java +// Import classes: +import com.mux.ApiClient; +import com.mux.ApiException; +import com.mux.Configuration; +import com.mux.auth.*; +import com.mux.models.*; +import com.mux.sdk.WebInputsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.mux.com"); + + // Configure HTTP basic authorization: accessToken + HttpBasicAuth accessToken = (HttpBasicAuth) defaultClient.getAuthentication("accessToken"); + accessToken.setUsername("YOUR USERNAME"); + accessToken.setPassword("YOUR PASSWORD"); + + WebInputsApi apiInstance = new WebInputsApi(defaultClient); + String WEB_INPUT_ID = "abcd1234"; // String | The Web Input ID + UpdateWebInputUrlRequest updateWebInputUrlRequest = {"url":"https://example.com/hello-there.html"}; // UpdateWebInputUrlRequest | + try { + WebInputResponse result = apiInstance.updateWebInputUrl(WEB_INPUT_ID, updateWebInputUrlRequest) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WebInputsApi#updateWebInputUrl"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **WEB_INPUT_ID** | **String**| The Web Input ID | + **updateWebInputUrlRequest** | [**UpdateWebInputUrlRequest**](UpdateWebInputUrlRequest.md)| | + +### Return type + +[**WebInputResponse**](WebInputResponse.md) + +### Authorization + +[accessToken](../README.md#accessToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/gen/generator-config.json b/gen/generator-config.json index d6d3f73..a5d4b3a 100644 --- a/gen/generator-config.json +++ b/gen/generator-config.json @@ -1,6 +1,6 @@ { "!!source": "https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/java.md", - "artifactVersion": "0.7.3", + "artifactVersion": "0.8.0", "apiPackage": "com.mux.sdk", "artifactDescription": "Mux SDK for Java", "artifactId": "mux-sdk-java", diff --git a/src/main/java/com/mux/ApiClient.java b/src/main/java/com/mux/ApiClient.java index 9225a7a..7269b08 100644 --- a/src/main/java/com/mux/ApiClient.java +++ b/src/main/java/com/mux/ApiClient.java @@ -123,7 +123,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("Mux Java | 0.7.3"); + setUserAgent("Mux Java | 0.8.0"); authentications = new HashMap(); } diff --git a/src/main/java/com/mux/sdk/SpacesApi.java b/src/main/java/com/mux/sdk/SpacesApi.java index 6491100..cf157b6 100644 --- a/src/main/java/com/mux/sdk/SpacesApi.java +++ b/src/main/java/com/mux/sdk/SpacesApi.java @@ -1181,7 +1181,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback /** * List spaces - * List all spaces in the current enviroment. + * List all spaces in the current environment. * @return APIlistSpacesRequest * @http.response.details diff --git a/src/main/java/com/mux/sdk/WebInputsApi.java b/src/main/java/com/mux/sdk/WebInputsApi.java new file mode 100644 index 0000000..24429b1 --- /dev/null +++ b/src/main/java/com/mux/sdk/WebInputsApi.java @@ -0,0 +1,1253 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk; + +import com.mux.ApiCallback; +import com.mux.ApiClient; +import com.mux.ApiException; +import com.mux.ApiResponse; +import com.mux.Configuration; +import com.mux.Pair; +import com.mux.ProgressRequestBody; +import com.mux.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.mux.sdk.models.CreateWebInputRequest; +import com.mux.sdk.models.LaunchWebInputResponse; +import com.mux.sdk.models.ListWebInputsResponse; +import com.mux.sdk.models.ReloadWebInputResponse; +import com.mux.sdk.models.ShutdownWebInputResponse; +import com.mux.sdk.models.UpdateWebInputUrlRequest; +import com.mux.sdk.models.WebInputResponse; +// TODO: due to import parsing issues for the RDR type; fix in spec in future +import com.mux.sdk.models.ReferrerDomainRestriction; + +import java.lang.reflect.Type; + +public class WebInputsApi { + private ApiClient localVarApiClient; + + public WebInputsApi() { + this(Configuration.getDefaultApiClient()); + } + + public WebInputsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + private okhttp3.Call createWebInputCall(CreateWebInputRequest createWebInputRequest, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = createWebInputRequest; + + // create path and map variables + String localVarPath = "/video/v1/web-inputs"; + + java.util.List localVarQueryParams = new java.util.ArrayList(); + java.util.List localVarCollectionQueryParams = new java.util.ArrayList(); + java.util.Map localVarHeaderParams = new java.util.HashMap(); + java.util.Map localVarCookieParams = new java.util.HashMap(); + java.util.Map localVarFormParams = new java.util.HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "accessToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createWebInputValidateBeforeCall(CreateWebInputRequest createWebInputRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'createWebInputRequest' is set + if (createWebInputRequest == null) { + throw new ApiException("Missing the required parameter 'createWebInputRequest' when calling createWebInput(Async)"); + } + + + okhttp3.Call localVarCall = createWebInputCall(createWebInputRequest, _callback); + return localVarCall; + + } + + + private ApiResponse createWebInputWithHttpInfo(CreateWebInputRequest createWebInputRequest) throws ApiException { + okhttp3.Call localVarCall = createWebInputValidateBeforeCall(createWebInputRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createWebInputAsync(CreateWebInputRequest createWebInputRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createWebInputValidateBeforeCall(createWebInputRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateWebInputRequest { + private final CreateWebInputRequest createWebInputRequest; + + private APIcreateWebInputRequest(CreateWebInputRequest createWebInputRequest) { + this.createWebInputRequest = createWebInputRequest; + } + + /** + * Build call for createWebInput + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details +
+ + + +
Response Summary
Status Code Description Response Headers
201 Web Input Created -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createWebInputCall(createWebInputRequest, _callback); + } + + /** + * Execute createWebInput request + * @return WebInputResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
201 Web Input Created -
+ */ + public WebInputResponse execute() throws ApiException { + ApiResponse localVarResp = createWebInputWithHttpInfo(createWebInputRequest); + return localVarResp.getData(); + } + + /** + * Execute createWebInput request with HTTP info returned + * @return ApiResponse<WebInputResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
201 Web Input Created -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createWebInputWithHttpInfo(createWebInputRequest); + } + + /** + * Execute createWebInput request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
201 Web Input Created -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createWebInputAsync(createWebInputRequest, _callback); + } + } + + /** + * Create a new Web Input + * Create a new Web Input + * @param createWebInputRequest (required) + * @return APIcreateWebInputRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
201 Web Input Created -
+ */ + public APIcreateWebInputRequest createWebInput(CreateWebInputRequest createWebInputRequest) { + return new APIcreateWebInputRequest(createWebInputRequest); + } + private okhttp3.Call deleteWebInputCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/video/v1/web-inputs/{WEB_INPUT_ID}" + .replaceAll("\\{" + "WEB_INPUT_ID" + "\\}", localVarApiClient.escapeString(WEB_INPUT_ID.toString())); + + java.util.List localVarQueryParams = new java.util.ArrayList(); + java.util.List localVarCollectionQueryParams = new java.util.ArrayList(); + java.util.Map localVarHeaderParams = new java.util.HashMap(); + java.util.Map localVarCookieParams = new java.util.HashMap(); + java.util.Map localVarFormParams = new java.util.HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "accessToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteWebInputValidateBeforeCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'WEB_INPUT_ID' is set + if (WEB_INPUT_ID == null) { + throw new ApiException("Missing the required parameter 'WEB_INPUT_ID' when calling deleteWebInput(Async)"); + } + + + okhttp3.Call localVarCall = deleteWebInputCall(WEB_INPUT_ID, _callback); + return localVarCall; + + } + + + private ApiResponse deleteWebInputWithHttpInfo(String WEB_INPUT_ID) throws ApiException { + okhttp3.Call localVarCall = deleteWebInputValidateBeforeCall(WEB_INPUT_ID, null); + return localVarApiClient.execute(localVarCall); + } + + private okhttp3.Call deleteWebInputAsync(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteWebInputValidateBeforeCall(WEB_INPUT_ID, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + + public class APIdeleteWebInputRequest { + private final String WEB_INPUT_ID; + + private APIdeleteWebInputRequest(String WEB_INPUT_ID) { + this.WEB_INPUT_ID = WEB_INPUT_ID; + } + + /** + * Build call for deleteWebInput + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteWebInputCall(WEB_INPUT_ID, _callback); + } + + /** + * Execute deleteWebInput request + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
204 No Content -
+ */ + public void execute() throws ApiException { + deleteWebInputWithHttpInfo(WEB_INPUT_ID); + } + + /** + * Execute deleteWebInput request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteWebInputWithHttpInfo(WEB_INPUT_ID); + } + + /** + * Execute deleteWebInput request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteWebInputAsync(WEB_INPUT_ID, _callback); + } + } + + /** + * Delete a Web Input + * Deletes a Web Input and all its data + * @param WEB_INPUT_ID The Web Input ID (required) + * @return APIdeleteWebInputRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
204 No Content -
+ */ + public APIdeleteWebInputRequest deleteWebInput(String WEB_INPUT_ID) { + return new APIdeleteWebInputRequest(WEB_INPUT_ID); + } + private okhttp3.Call getWebInputCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/video/v1/web-inputs/{WEB_INPUT_ID}" + .replaceAll("\\{" + "WEB_INPUT_ID" + "\\}", localVarApiClient.escapeString(WEB_INPUT_ID.toString())); + + java.util.List localVarQueryParams = new java.util.ArrayList(); + java.util.List localVarCollectionQueryParams = new java.util.ArrayList(); + java.util.Map localVarHeaderParams = new java.util.HashMap(); + java.util.Map localVarCookieParams = new java.util.HashMap(); + java.util.Map localVarFormParams = new java.util.HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "accessToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWebInputValidateBeforeCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'WEB_INPUT_ID' is set + if (WEB_INPUT_ID == null) { + throw new ApiException("Missing the required parameter 'WEB_INPUT_ID' when calling getWebInput(Async)"); + } + + + okhttp3.Call localVarCall = getWebInputCall(WEB_INPUT_ID, _callback); + return localVarCall; + + } + + + private ApiResponse getWebInputWithHttpInfo(String WEB_INPUT_ID) throws ApiException { + okhttp3.Call localVarCall = getWebInputValidateBeforeCall(WEB_INPUT_ID, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getWebInputAsync(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWebInputValidateBeforeCall(WEB_INPUT_ID, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetWebInputRequest { + private final String WEB_INPUT_ID; + + private APIgetWebInputRequest(String WEB_INPUT_ID) { + this.WEB_INPUT_ID = WEB_INPUT_ID; + } + + /** + * Build call for getWebInput + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getWebInputCall(WEB_INPUT_ID, _callback); + } + + /** + * Execute getWebInput request + * @return WebInputResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public WebInputResponse execute() throws ApiException { + ApiResponse localVarResp = getWebInputWithHttpInfo(WEB_INPUT_ID); + return localVarResp.getData(); + } + + /** + * Execute getWebInput request with HTTP info returned + * @return ApiResponse<WebInputResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getWebInputWithHttpInfo(WEB_INPUT_ID); + } + + /** + * Execute getWebInput request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getWebInputAsync(WEB_INPUT_ID, _callback); + } + } + + /** + * Retrieve a Web Input + * Retrieve a single Web Input's info + * @param WEB_INPUT_ID The Web Input ID (required) + * @return APIgetWebInputRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public APIgetWebInputRequest getWebInput(String WEB_INPUT_ID) { + return new APIgetWebInputRequest(WEB_INPUT_ID); + } + private okhttp3.Call launchWebInputCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/video/v1/web-inputs/{WEB_INPUT_ID}/launch" + .replaceAll("\\{" + "WEB_INPUT_ID" + "\\}", localVarApiClient.escapeString(WEB_INPUT_ID.toString())); + + java.util.List localVarQueryParams = new java.util.ArrayList(); + java.util.List localVarCollectionQueryParams = new java.util.ArrayList(); + java.util.Map localVarHeaderParams = new java.util.HashMap(); + java.util.Map localVarCookieParams = new java.util.HashMap(); + java.util.Map localVarFormParams = new java.util.HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "accessToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call launchWebInputValidateBeforeCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'WEB_INPUT_ID' is set + if (WEB_INPUT_ID == null) { + throw new ApiException("Missing the required parameter 'WEB_INPUT_ID' when calling launchWebInput(Async)"); + } + + + okhttp3.Call localVarCall = launchWebInputCall(WEB_INPUT_ID, _callback); + return localVarCall; + + } + + + private ApiResponse launchWebInputWithHttpInfo(String WEB_INPUT_ID) throws ApiException { + okhttp3.Call localVarCall = launchWebInputValidateBeforeCall(WEB_INPUT_ID, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call launchWebInputAsync(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = launchWebInputValidateBeforeCall(WEB_INPUT_ID, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlaunchWebInputRequest { + private final String WEB_INPUT_ID; + + private APIlaunchWebInputRequest(String WEB_INPUT_ID) { + this.WEB_INPUT_ID = WEB_INPUT_ID; + } + + /** + * Build call for launchWebInput + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return launchWebInputCall(WEB_INPUT_ID, _callback); + } + + /** + * Execute launchWebInput request + * @return LaunchWebInputResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public LaunchWebInputResponse execute() throws ApiException { + ApiResponse localVarResp = launchWebInputWithHttpInfo(WEB_INPUT_ID); + return localVarResp.getData(); + } + + /** + * Execute launchWebInput request with HTTP info returned + * @return ApiResponse<LaunchWebInputResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return launchWebInputWithHttpInfo(WEB_INPUT_ID); + } + + /** + * Execute launchWebInput request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return launchWebInputAsync(WEB_INPUT_ID, _callback); + } + } + + /** + * Launch a Web Input + * Launches the browsers instance, loads the URL specified, and then starts streaming to the specified Live Stream. + * @param WEB_INPUT_ID The Web Input ID (required) + * @return APIlaunchWebInputRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public APIlaunchWebInputRequest launchWebInput(String WEB_INPUT_ID) { + return new APIlaunchWebInputRequest(WEB_INPUT_ID); + } + private okhttp3.Call listWebInputsCall(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/video/v1/web-inputs"; + + java.util.List localVarQueryParams = new java.util.ArrayList(); + java.util.List localVarCollectionQueryParams = new java.util.ArrayList(); + java.util.Map localVarHeaderParams = new java.util.HashMap(); + java.util.Map localVarCookieParams = new java.util.HashMap(); + java.util.Map localVarFormParams = new java.util.HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "accessToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listWebInputsValidateBeforeCall(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listWebInputsCall(limit, page, _callback); + return localVarCall; + + } + + + private ApiResponse listWebInputsWithHttpInfo(Integer limit, Integer page) throws ApiException { + okhttp3.Call localVarCall = listWebInputsValidateBeforeCall(limit, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listWebInputsAsync(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listWebInputsValidateBeforeCall(limit, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistWebInputsRequest { + private Integer limit; + private Integer page; + + private APIlistWebInputsRequest() { + } + + /** + * Set limit + * @param limit Number of items to include in the response (optional, default to 25) + * @return APIlistWebInputsRequest + */ + public APIlistWebInputsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set page + * @param page Offset by this many pages, of the size of `limit` (optional, default to 1) + * @return APIlistWebInputsRequest + */ + public APIlistWebInputsRequest page(Integer page) { + this.page = page; + return this; + } + + /** + * Build call for listWebInputs + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listWebInputsCall(limit, page, _callback); + } + + /** + * Execute listWebInputs request + * @return ListWebInputsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public ListWebInputsResponse execute() throws ApiException { + ApiResponse localVarResp = listWebInputsWithHttpInfo(limit, page); + return localVarResp.getData(); + } + + /** + * Execute listWebInputs request with HTTP info returned + * @return ApiResponse<ListWebInputsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listWebInputsWithHttpInfo(limit, page); + } + + /** + * Execute listWebInputs request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listWebInputsAsync(limit, page, _callback); + } + } + + /** + * List Web Inputs + * List Web Inputs + * @return APIlistWebInputsRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public APIlistWebInputsRequest listWebInputs() { + return new APIlistWebInputsRequest(); + } + private okhttp3.Call reloadWebInputCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/video/v1/web-inputs/{WEB_INPUT_ID}/reload" + .replaceAll("\\{" + "WEB_INPUT_ID" + "\\}", localVarApiClient.escapeString(WEB_INPUT_ID.toString())); + + java.util.List localVarQueryParams = new java.util.ArrayList(); + java.util.List localVarCollectionQueryParams = new java.util.ArrayList(); + java.util.Map localVarHeaderParams = new java.util.HashMap(); + java.util.Map localVarCookieParams = new java.util.HashMap(); + java.util.Map localVarFormParams = new java.util.HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "accessToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call reloadWebInputValidateBeforeCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'WEB_INPUT_ID' is set + if (WEB_INPUT_ID == null) { + throw new ApiException("Missing the required parameter 'WEB_INPUT_ID' when calling reloadWebInput(Async)"); + } + + + okhttp3.Call localVarCall = reloadWebInputCall(WEB_INPUT_ID, _callback); + return localVarCall; + + } + + + private ApiResponse reloadWebInputWithHttpInfo(String WEB_INPUT_ID) throws ApiException { + okhttp3.Call localVarCall = reloadWebInputValidateBeforeCall(WEB_INPUT_ID, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call reloadWebInputAsync(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = reloadWebInputValidateBeforeCall(WEB_INPUT_ID, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreloadWebInputRequest { + private final String WEB_INPUT_ID; + + private APIreloadWebInputRequest(String WEB_INPUT_ID) { + this.WEB_INPUT_ID = WEB_INPUT_ID; + } + + /** + * Build call for reloadWebInput + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return reloadWebInputCall(WEB_INPUT_ID, _callback); + } + + /** + * Execute reloadWebInput request + * @return ReloadWebInputResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public ReloadWebInputResponse execute() throws ApiException { + ApiResponse localVarResp = reloadWebInputWithHttpInfo(WEB_INPUT_ID); + return localVarResp.getData(); + } + + /** + * Execute reloadWebInput request with HTTP info returned + * @return ApiResponse<ReloadWebInputResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return reloadWebInputWithHttpInfo(WEB_INPUT_ID); + } + + /** + * Execute reloadWebInput request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return reloadWebInputAsync(WEB_INPUT_ID, _callback); + } + } + + /** + * Reload a Web Input + * Reloads the page that a Web Input is displaying. Note: Using this when the Web Input is streaming will display the page reloading. + * @param WEB_INPUT_ID The Web Input ID (required) + * @return APIreloadWebInputRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public APIreloadWebInputRequest reloadWebInput(String WEB_INPUT_ID) { + return new APIreloadWebInputRequest(WEB_INPUT_ID); + } + private okhttp3.Call shutdownWebInputCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/video/v1/web-inputs/{WEB_INPUT_ID}/shutdown" + .replaceAll("\\{" + "WEB_INPUT_ID" + "\\}", localVarApiClient.escapeString(WEB_INPUT_ID.toString())); + + java.util.List localVarQueryParams = new java.util.ArrayList(); + java.util.List localVarCollectionQueryParams = new java.util.ArrayList(); + java.util.Map localVarHeaderParams = new java.util.HashMap(); + java.util.Map localVarCookieParams = new java.util.HashMap(); + java.util.Map localVarFormParams = new java.util.HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "accessToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call shutdownWebInputValidateBeforeCall(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'WEB_INPUT_ID' is set + if (WEB_INPUT_ID == null) { + throw new ApiException("Missing the required parameter 'WEB_INPUT_ID' when calling shutdownWebInput(Async)"); + } + + + okhttp3.Call localVarCall = shutdownWebInputCall(WEB_INPUT_ID, _callback); + return localVarCall; + + } + + + private ApiResponse shutdownWebInputWithHttpInfo(String WEB_INPUT_ID) throws ApiException { + okhttp3.Call localVarCall = shutdownWebInputValidateBeforeCall(WEB_INPUT_ID, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call shutdownWebInputAsync(String WEB_INPUT_ID, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = shutdownWebInputValidateBeforeCall(WEB_INPUT_ID, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIshutdownWebInputRequest { + private final String WEB_INPUT_ID; + + private APIshutdownWebInputRequest(String WEB_INPUT_ID) { + this.WEB_INPUT_ID = WEB_INPUT_ID; + } + + /** + * Build call for shutdownWebInput + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return shutdownWebInputCall(WEB_INPUT_ID, _callback); + } + + /** + * Execute shutdownWebInput request + * @return ShutdownWebInputResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public ShutdownWebInputResponse execute() throws ApiException { + ApiResponse localVarResp = shutdownWebInputWithHttpInfo(WEB_INPUT_ID); + return localVarResp.getData(); + } + + /** + * Execute shutdownWebInput request with HTTP info returned + * @return ApiResponse<ShutdownWebInputResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return shutdownWebInputWithHttpInfo(WEB_INPUT_ID); + } + + /** + * Execute shutdownWebInput request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return shutdownWebInputAsync(WEB_INPUT_ID, _callback); + } + } + + /** + * Shut down a Web Input + * Ends streaming to the specified Live Stream, and then shuts down the Web Input browser instance. + * @param WEB_INPUT_ID The Web Input ID (required) + * @return APIshutdownWebInputRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public APIshutdownWebInputRequest shutdownWebInput(String WEB_INPUT_ID) { + return new APIshutdownWebInputRequest(WEB_INPUT_ID); + } + private okhttp3.Call updateWebInputUrlCall(String WEB_INPUT_ID, UpdateWebInputUrlRequest updateWebInputUrlRequest, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = updateWebInputUrlRequest; + + // create path and map variables + String localVarPath = "/video/v1/web-inputs/{WEB_INPUT_ID}/url" + .replaceAll("\\{" + "WEB_INPUT_ID" + "\\}", localVarApiClient.escapeString(WEB_INPUT_ID.toString())); + + java.util.List localVarQueryParams = new java.util.ArrayList(); + java.util.List localVarCollectionQueryParams = new java.util.ArrayList(); + java.util.Map localVarHeaderParams = new java.util.HashMap(); + java.util.Map localVarCookieParams = new java.util.HashMap(); + java.util.Map localVarFormParams = new java.util.HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "accessToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateWebInputUrlValidateBeforeCall(String WEB_INPUT_ID, UpdateWebInputUrlRequest updateWebInputUrlRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'WEB_INPUT_ID' is set + if (WEB_INPUT_ID == null) { + throw new ApiException("Missing the required parameter 'WEB_INPUT_ID' when calling updateWebInputUrl(Async)"); + } + + // verify the required parameter 'updateWebInputUrlRequest' is set + if (updateWebInputUrlRequest == null) { + throw new ApiException("Missing the required parameter 'updateWebInputUrlRequest' when calling updateWebInputUrl(Async)"); + } + + + okhttp3.Call localVarCall = updateWebInputUrlCall(WEB_INPUT_ID, updateWebInputUrlRequest, _callback); + return localVarCall; + + } + + + private ApiResponse updateWebInputUrlWithHttpInfo(String WEB_INPUT_ID, UpdateWebInputUrlRequest updateWebInputUrlRequest) throws ApiException { + okhttp3.Call localVarCall = updateWebInputUrlValidateBeforeCall(WEB_INPUT_ID, updateWebInputUrlRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call updateWebInputUrlAsync(String WEB_INPUT_ID, UpdateWebInputUrlRequest updateWebInputUrlRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateWebInputUrlValidateBeforeCall(WEB_INPUT_ID, updateWebInputUrlRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIupdateWebInputUrlRequest { + private final String WEB_INPUT_ID; + private final UpdateWebInputUrlRequest updateWebInputUrlRequest; + + private APIupdateWebInputUrlRequest(String WEB_INPUT_ID, UpdateWebInputUrlRequest updateWebInputUrlRequest) { + this.WEB_INPUT_ID = WEB_INPUT_ID; + this.updateWebInputUrlRequest = updateWebInputUrlRequest; + } + + /** + * Build call for updateWebInputUrl + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return updateWebInputUrlCall(WEB_INPUT_ID, updateWebInputUrlRequest, _callback); + } + + /** + * Execute updateWebInputUrl request + * @return WebInputResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public WebInputResponse execute() throws ApiException { + ApiResponse localVarResp = updateWebInputUrlWithHttpInfo(WEB_INPUT_ID, updateWebInputUrlRequest); + return localVarResp.getData(); + } + + /** + * Execute updateWebInputUrl request with HTTP info returned + * @return ApiResponse<WebInputResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateWebInputUrlWithHttpInfo(WEB_INPUT_ID, updateWebInputUrlRequest); + } + + /** + * Execute updateWebInputUrl request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return updateWebInputUrlAsync(WEB_INPUT_ID, updateWebInputUrlRequest, _callback); + } + } + + /** + * Update Web Input URL + * Changes the URL that a Web Input loads when it launches. Note: This can only be called when the Web Input is idle. + * @param WEB_INPUT_ID The Web Input ID (required) + * @param updateWebInputUrlRequest (required) + * @return APIupdateWebInputUrlRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public APIupdateWebInputUrlRequest updateWebInputUrl(String WEB_INPUT_ID, UpdateWebInputUrlRequest updateWebInputUrlRequest) { + return new APIupdateWebInputUrlRequest(WEB_INPUT_ID, updateWebInputUrlRequest); + } +} diff --git a/src/main/java/com/mux/sdk/models/Asset.java b/src/main/java/com/mux/sdk/models/Asset.java index 92e59f3..33d77e8 100644 --- a/src/main/java/com/mux/sdk/models/Asset.java +++ b/src/main/java/com/mux/sdk/models/Asset.java @@ -269,7 +269,7 @@ public MaxResolutionTierEnum read(final JsonReader jsonReader) throws IOExceptio private MaxResolutionTierEnum maxResolutionTier; /** - * The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/video/use-encoding-tiers) + * The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) */ @JsonAdapter(EncodingTierEnum.Adapter.class) public enum EncodingTierEnum { @@ -658,11 +658,11 @@ public Asset encodingTier(EncodingTierEnum encodingTier) { } /** - * The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/video/use-encoding-tiers) + * The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) * @return encodingTier **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/video/use-encoding-tiers)") + @ApiModelProperty(value = "The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)") public EncodingTierEnum getEncodingTier() { return encodingTier; @@ -735,11 +735,11 @@ public Asset addPlaybackIdsItem(PlaybackID playbackIdsItem) { } /** - * An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/video/play-your-videos) for more details. + * An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. * @return playbackIds **/ @javax.annotation.Nullable - @ApiModelProperty(value = "An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/video/play-your-videos) for more details.") + @ApiModelProperty(value = "An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details.") public java.util.List getPlaybackIds() { return playbackIds; diff --git a/src/main/java/com/mux/sdk/models/AssetMaster.java b/src/main/java/com/mux/sdk/models/AssetMaster.java index 5ec64b6..01bb9d4 100644 --- a/src/main/java/com/mux/sdk/models/AssetMaster.java +++ b/src/main/java/com/mux/sdk/models/AssetMaster.java @@ -25,9 +25,9 @@ import java.io.IOException; /** - * An object containing the current status of Master Access and the link to the Master MP4 file when ready. This object does not exist if `master_acess` is set to `none` and when the temporary URL expires. + * An object containing the current status of Master Access and the link to the Master MP4 file when ready. This object does not exist if `master_access` is set to `none` and when the temporary URL expires. */ -@ApiModel(description = "An object containing the current status of Master Access and the link to the Master MP4 file when ready. This object does not exist if `master_acess` is set to `none` and when the temporary URL expires.") +@ApiModel(description = "An object containing the current status of Master Access and the link to the Master MP4 file when ready. This object does not exist if `master_access` is set to `none` and when the temporary URL expires.") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AssetMaster { /** diff --git a/src/main/java/com/mux/sdk/models/AssetNonStandardInputReasons.java b/src/main/java/com/mux/sdk/models/AssetNonStandardInputReasons.java index 48a9997..23a6433 100644 --- a/src/main/java/com/mux/sdk/models/AssetNonStandardInputReasons.java +++ b/src/main/java/com/mux/sdk/models/AssetNonStandardInputReasons.java @@ -25,9 +25,9 @@ import java.io.IOException; /** - * An object containing one or more reasons the input file is non-standard. See [the guide on minimizing processing time](https://docs.mux.com/guides/video/minimize-processing-time) for more information on what a standard input is defined as. This object only exists on on-demand assets that have non-standard inputs, so if missing you can assume the input qualifies as standard. + * An object containing one or more reasons the input file is non-standard. See [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time) for more information on what a standard input is defined as. This object only exists on on-demand assets that have non-standard inputs, so if missing you can assume the input qualifies as standard. */ -@ApiModel(description = "An object containing one or more reasons the input file is non-standard. See [the guide on minimizing processing time](https://docs.mux.com/guides/video/minimize-processing-time) for more information on what a standard input is defined as. This object only exists on on-demand assets that have non-standard inputs, so if missing you can assume the input qualifies as standard.") +@ApiModel(description = "An object containing one or more reasons the input file is non-standard. See [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time) for more information on what a standard input is defined as. This object only exists on on-demand assets that have non-standard inputs, so if missing you can assume the input qualifies as standard.") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AssetNonStandardInputReasons { public static final String SERIALIZED_NAME_VIDEO_CODEC = "video_codec"; diff --git a/src/main/java/com/mux/sdk/models/AssetStaticRenditions.java b/src/main/java/com/mux/sdk/models/AssetStaticRenditions.java index c97d839..bc68d88 100644 --- a/src/main/java/com/mux/sdk/models/AssetStaticRenditions.java +++ b/src/main/java/com/mux/sdk/models/AssetStaticRenditions.java @@ -26,9 +26,9 @@ import java.io.IOException; /** - * An object containing the current status of any static renditions (mp4s). The object does not exist if no static renditions have been requested. See [Download your videos](https://docs.mux.com/guides/video/download-your-videos) for more information. + * An object containing the current status of any static renditions (mp4s). The object does not exist if no static renditions have been requested. See [Download your videos](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */ -@ApiModel(description = "An object containing the current status of any static renditions (mp4s). The object does not exist if no static renditions have been requested. See [Download your videos](https://docs.mux.com/guides/video/download-your-videos) for more information.") +@ApiModel(description = "An object containing the current status of any static renditions (mp4s). The object does not exist if no static renditions have been requested. See [Download your videos](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information.") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AssetStaticRenditions { /** diff --git a/src/main/java/com/mux/sdk/models/BreakdownValue.java b/src/main/java/com/mux/sdk/models/BreakdownValue.java index 9da7d5f..a370de7 100644 --- a/src/main/java/com/mux/sdk/models/BreakdownValue.java +++ b/src/main/java/com/mux/sdk/models/BreakdownValue.java @@ -41,6 +41,10 @@ public class BreakdownValue { @SerializedName(SERIALIZED_NAME_TOTAL_WATCH_TIME) private Long totalWatchTime; + public static final String SERIALIZED_NAME_TOTAL_PLAYING_TIME = "total_playing_time"; + @SerializedName(SERIALIZED_NAME_TOTAL_PLAYING_TIME) + private Long totalPlayingTime; + public static final String SERIALIZED_NAME_NEGATIVE_IMPACT = "negative_impact"; @SerializedName(SERIALIZED_NAME_NEGATIVE_IMPACT) private Integer negativeImpact; @@ -119,6 +123,29 @@ public void setTotalWatchTime(Long totalWatchTime) { } + public BreakdownValue totalPlayingTime(Long totalPlayingTime) { + + this.totalPlayingTime = totalPlayingTime; + return this; + } + + /** + * Get totalPlayingTime + * @return totalPlayingTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getTotalPlayingTime() { + return totalPlayingTime; + } + + + public void setTotalPlayingTime(Long totalPlayingTime) { + this.totalPlayingTime = totalPlayingTime; + } + + public BreakdownValue negativeImpact(Integer negativeImpact) { this.negativeImpact = negativeImpact; @@ -177,13 +204,14 @@ public boolean equals(Object o) { return Objects.equals(this.views, breakdownValue.views) && Objects.equals(this.value, breakdownValue.value) && Objects.equals(this.totalWatchTime, breakdownValue.totalWatchTime) && + Objects.equals(this.totalPlayingTime, breakdownValue.totalPlayingTime) && Objects.equals(this.negativeImpact, breakdownValue.negativeImpact) && Objects.equals(this.field, breakdownValue.field); } @Override public int hashCode() { - return Objects.hash(views, value, totalWatchTime, negativeImpact, field); + return Objects.hash(views, value, totalWatchTime, totalPlayingTime, negativeImpact, field); } @Override @@ -193,6 +221,7 @@ public String toString() { sb.append(" views: ").append(toIndentedString(views)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" totalWatchTime: ").append(toIndentedString(totalWatchTime)).append("\n"); + sb.append(" totalPlayingTime: ").append(toIndentedString(totalPlayingTime)).append("\n"); sb.append(" negativeImpact: ").append(toIndentedString(negativeImpact)).append("\n"); sb.append(" field: ").append(toIndentedString(field)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/mux/sdk/models/CreateAssetRequest.java b/src/main/java/com/mux/sdk/models/CreateAssetRequest.java index f70b3d6..240fe02 100644 --- a/src/main/java/com/mux/sdk/models/CreateAssetRequest.java +++ b/src/main/java/com/mux/sdk/models/CreateAssetRequest.java @@ -48,7 +48,7 @@ public class CreateAssetRequest { private String passthrough; /** - * Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](/guides/video/download-your-videos) for more information. + * Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */ @JsonAdapter(Mp4SupportEnum.Adapter.class) public enum Mp4SupportEnum { @@ -103,7 +103,7 @@ public Mp4SupportEnum read(final JsonReader jsonReader) throws IOException { private Boolean normalizeAudio = false; /** - * Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](/guides/video/download-your-videos) for more information. + * Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */ @JsonAdapter(MasterAccessEnum.Adapter.class) public enum MasterAccessEnum { @@ -211,7 +211,7 @@ public MaxResolutionTierEnum read(final JsonReader jsonReader) throws IOExceptio private MaxResolutionTierEnum maxResolutionTier; /** - * The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/video/use-encoding-tiers) + * The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) */ @JsonAdapter(EncodingTierEnum.Adapter.class) public enum EncodingTierEnum { @@ -377,11 +377,11 @@ public CreateAssetRequest mp4Support(Mp4SupportEnum mp4Support) { } /** - * Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](/guides/video/download-your-videos) for more information. + * Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. * @return mp4Support **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](/guides/video/download-your-videos) for more information.") + @ApiModelProperty(value = "Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information.") public Mp4SupportEnum getMp4Support() { return mp4Support; @@ -423,11 +423,11 @@ public CreateAssetRequest masterAccess(MasterAccessEnum masterAccess) { } /** - * Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](/guides/video/download-your-videos) for more information. + * Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. * @return masterAccess **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](/guides/video/download-your-videos) for more information.") + @ApiModelProperty(value = "Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information.") public MasterAccessEnum getMasterAccess() { return masterAccess; @@ -492,11 +492,11 @@ public CreateAssetRequest encodingTier(EncodingTierEnum encodingTier) { } /** - * The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/video/use-encoding-tiers) + * The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) * @return encodingTier **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/video/use-encoding-tiers)") + @ApiModelProperty(value = "The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)") public EncodingTierEnum getEncodingTier() { return encodingTier; diff --git a/src/main/java/com/mux/sdk/models/CreateLiveStreamRequest.java b/src/main/java/com/mux/sdk/models/CreateLiveStreamRequest.java index 7ea97dc..de1b56f 100644 --- a/src/main/java/com/mux/sdk/models/CreateLiveStreamRequest.java +++ b/src/main/java/com/mux/sdk/models/CreateLiveStreamRequest.java @@ -79,7 +79,7 @@ public class CreateLiveStreamRequest { private Boolean lowLatency; /** - * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ + * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. */ @JsonAdapter(LatencyModeEnum.Adapter.class) public enum LatencyModeEnum { @@ -430,11 +430,11 @@ public CreateLiveStreamRequest latencyMode(LatencyModeEnum latencyMode) { } /** - * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ + * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. * @return latencyMode **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/") + @ApiModelProperty(value = "Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags.") public LatencyModeEnum getLatencyMode() { return latencyMode; diff --git a/src/main/java/com/mux/sdk/models/CreateSimulcastTargetRequest.java b/src/main/java/com/mux/sdk/models/CreateSimulcastTargetRequest.java index 14ca0e4..4d43749 100644 --- a/src/main/java/com/mux/sdk/models/CreateSimulcastTargetRequest.java +++ b/src/main/java/com/mux/sdk/models/CreateSimulcastTargetRequest.java @@ -98,7 +98,8 @@ public CreateSimulcastTargetRequest url(String url) { * RTMP hostname including application name for the third party live streaming service. Example: `rtmp://live.example.com/app`. * @return url **/ - @ApiModelProperty(required = true, value = "RTMP hostname including application name for the third party live streaming service. Example: `rtmp://live.example.com/app`.") + @javax.annotation.Nullable + @ApiModelProperty(value = "RTMP hostname including application name for the third party live streaming service. Example: `rtmp://live.example.com/app`.") public String getUrl() { return url; diff --git a/src/main/java/com/mux/sdk/models/CreateUploadRequest.java b/src/main/java/com/mux/sdk/models/CreateUploadRequest.java index 47c7198..2cda77a 100644 --- a/src/main/java/com/mux/sdk/models/CreateUploadRequest.java +++ b/src/main/java/com/mux/sdk/models/CreateUploadRequest.java @@ -105,7 +105,8 @@ public CreateUploadRequest newAssetSettings(CreateAssetRequest newAssetSettings) * Get newAssetSettings * @return newAssetSettings **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public CreateAssetRequest getNewAssetSettings() { return newAssetSettings; diff --git a/src/main/java/com/mux/sdk/models/CreateWebInputRequest.java b/src/main/java/com/mux/sdk/models/CreateWebInputRequest.java new file mode 100644 index 0000000..1ec75dc --- /dev/null +++ b/src/main/java/com/mux/sdk/models/CreateWebInputRequest.java @@ -0,0 +1,435 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.mux.sdk.models.WebInput; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * CreateWebInputRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateWebInputRequest { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private String createdAt; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; + + public static final String SERIALIZED_NAME_AUTO_LAUNCH = "auto_launch"; + @SerializedName(SERIALIZED_NAME_AUTO_LAUNCH) + private Boolean autoLaunch; + + public static final String SERIALIZED_NAME_LIVE_STREAM_ID = "live_stream_id"; + @SerializedName(SERIALIZED_NAME_LIVE_STREAM_ID) + private String liveStreamId; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + IDLE("idle"), + + LAUNCHING("launching"), + + STREAMING("streaming"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private StatusEnum status; + + public static final String SERIALIZED_NAME_PASSTHROUGH = "passthrough"; + @SerializedName(SERIALIZED_NAME_PASSTHROUGH) + private String passthrough; + + /** + * The resolution of the viewport of the Web Input's browser instance. Defaults to 1920x1080 if not set. + */ + @JsonAdapter(ResolutionEnum.Adapter.class) + public enum ResolutionEnum { + _1920X1080("1920x1080"), + + _1280X720("1280x720"), + + _1080X1920("1080x1920"), + + _720X1280("720x1280"), + + _1080X1080("1080x1080"), + + _720X720("720x720"); + + private String value; + + ResolutionEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ResolutionEnum fromValue(String value) { + for (ResolutionEnum b : ResolutionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ResolutionEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ResolutionEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ResolutionEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_RESOLUTION = "resolution"; + @SerializedName(SERIALIZED_NAME_RESOLUTION) + private ResolutionEnum resolution = ResolutionEnum._1920X1080; + + public static final String SERIALIZED_NAME_TIMEOUT = "timeout"; + @SerializedName(SERIALIZED_NAME_TIMEOUT) + private Integer timeout = 3600; + + + public CreateWebInputRequest id(String id) { + + this.id = id; + return this; + } + + /** + * Unique identifier for the Web Input. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Unique identifier for the Web Input.") + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public CreateWebInputRequest createdAt(String createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Time the Web Input was created, defined as a Unix timestamp (seconds since epoch). + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Time the Web Input was created, defined as a Unix timestamp (seconds since epoch).") + + public String getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + + public CreateWebInputRequest url(String url) { + + this.url = url; + return this; + } + + /** + * The URL for the Web Input to load. + * @return url + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The URL for the Web Input to load.") + + public String getUrl() { + return url; + } + + + public void setUrl(String url) { + this.url = url; + } + + + public CreateWebInputRequest autoLaunch(Boolean autoLaunch) { + + this.autoLaunch = autoLaunch; + return this; + } + + /** + * When set to `true` the Web Input will automatically launch and start streaming immediately after creation + * @return autoLaunch + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "When set to `true` the Web Input will automatically launch and start streaming immediately after creation") + + public Boolean getAutoLaunch() { + return autoLaunch; + } + + + public void setAutoLaunch(Boolean autoLaunch) { + this.autoLaunch = autoLaunch; + } + + + public CreateWebInputRequest liveStreamId(String liveStreamId) { + + this.liveStreamId = liveStreamId; + return this; + } + + /** + * The Live Stream ID to broadcast this Web Input to + * @return liveStreamId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The Live Stream ID to broadcast this Web Input to") + + public String getLiveStreamId() { + return liveStreamId; + } + + + public void setLiveStreamId(String liveStreamId) { + this.liveStreamId = liveStreamId; + } + + + public CreateWebInputRequest status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public CreateWebInputRequest passthrough(String passthrough) { + + this.passthrough = passthrough; + return this; + } + + /** + * Arbitrary metadata that will be included in the Web Input details and related webhooks. Can be used to store your own ID for the Web Input. **Max: 255 characters**. + * @return passthrough + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Arbitrary metadata that will be included in the Web Input details and related webhooks. Can be used to store your own ID for the Web Input. **Max: 255 characters**.") + + public String getPassthrough() { + return passthrough; + } + + + public void setPassthrough(String passthrough) { + this.passthrough = passthrough; + } + + + public CreateWebInputRequest resolution(ResolutionEnum resolution) { + + this.resolution = resolution; + return this; + } + + /** + * The resolution of the viewport of the Web Input's browser instance. Defaults to 1920x1080 if not set. + * @return resolution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The resolution of the viewport of the Web Input's browser instance. Defaults to 1920x1080 if not set.") + + public ResolutionEnum getResolution() { + return resolution; + } + + + public void setResolution(ResolutionEnum resolution) { + this.resolution = resolution; + } + + + public CreateWebInputRequest timeout(Integer timeout) { + + this.timeout = timeout; + return this; + } + + /** + * The number of seconds that the Web Input should stream for before automatically shutting down. + * @return timeout + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The number of seconds that the Web Input should stream for before automatically shutting down.") + + public Integer getTimeout() { + return timeout; + } + + + public void setTimeout(Integer timeout) { + this.timeout = timeout; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWebInputRequest createWebInputRequest = (CreateWebInputRequest) o; + return Objects.equals(this.id, createWebInputRequest.id) && + Objects.equals(this.createdAt, createWebInputRequest.createdAt) && + Objects.equals(this.url, createWebInputRequest.url) && + Objects.equals(this.autoLaunch, createWebInputRequest.autoLaunch) && + Objects.equals(this.liveStreamId, createWebInputRequest.liveStreamId) && + Objects.equals(this.status, createWebInputRequest.status) && + Objects.equals(this.passthrough, createWebInputRequest.passthrough) && + Objects.equals(this.resolution, createWebInputRequest.resolution) && + Objects.equals(this.timeout, createWebInputRequest.timeout); + } + + @Override + public int hashCode() { + return Objects.hash(id, createdAt, url, autoLaunch, liveStreamId, status, passthrough, resolution, timeout); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWebInputRequest {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" autoLaunch: ").append(toIndentedString(autoLaunch)).append("\n"); + sb.append(" liveStreamId: ").append(toIndentedString(liveStreamId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" passthrough: ").append(toIndentedString(passthrough)).append("\n"); + sb.append(" resolution: ").append(toIndentedString(resolution)).append("\n"); + sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/mux/sdk/models/Error.java b/src/main/java/com/mux/sdk/models/Error.java index 978a662..ddb47f6 100644 --- a/src/main/java/com/mux/sdk/models/Error.java +++ b/src/main/java/com/mux/sdk/models/Error.java @@ -207,11 +207,11 @@ public Error count(Long count) { } /** - * The total number of views that experiend this error. + * The total number of views that experienced this error. * @return count **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The total number of views that experiend this error.") + @ApiModelProperty(value = "The total number of views that experienced this error.") public Long getCount() { return count; diff --git a/src/main/java/com/mux/sdk/models/GetMetricTimeseriesDataResponse.java b/src/main/java/com/mux/sdk/models/GetMetricTimeseriesDataResponse.java index ed11af8..3699463 100644 --- a/src/main/java/com/mux/sdk/models/GetMetricTimeseriesDataResponse.java +++ b/src/main/java/com/mux/sdk/models/GetMetricTimeseriesDataResponse.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.mux.sdk.models.ListBreakdownValuesResponseMeta; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -41,6 +42,10 @@ public class GetMetricTimeseriesDataResponse { @SerializedName(SERIALIZED_NAME_TIMEFRAME) private java.util.List timeframe = null; + public static final String SERIALIZED_NAME_META = "meta"; + @SerializedName(SERIALIZED_NAME_META) + private ListBreakdownValuesResponseMeta meta; + public GetMetricTimeseriesDataResponse data(java.util.List> data) { @@ -127,6 +132,29 @@ public void setTimeframe(java.util.List timeframe) { } + public GetMetricTimeseriesDataResponse meta(ListBreakdownValuesResponseMeta meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ListBreakdownValuesResponseMeta getMeta() { + return meta; + } + + + public void setMeta(ListBreakdownValuesResponseMeta meta) { + this.meta = meta; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -138,12 +166,13 @@ public boolean equals(Object o) { GetMetricTimeseriesDataResponse getMetricTimeseriesDataResponse = (GetMetricTimeseriesDataResponse) o; return Objects.equals(this.data, getMetricTimeseriesDataResponse.data) && Objects.equals(this.totalRowCount, getMetricTimeseriesDataResponse.totalRowCount) && - Objects.equals(this.timeframe, getMetricTimeseriesDataResponse.timeframe); + Objects.equals(this.timeframe, getMetricTimeseriesDataResponse.timeframe) && + Objects.equals(this.meta, getMetricTimeseriesDataResponse.meta); } @Override public int hashCode() { - return Objects.hash(data, totalRowCount, timeframe); + return Objects.hash(data, totalRowCount, timeframe, meta); } @Override @@ -153,6 +182,7 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" totalRowCount: ").append(toIndentedString(totalRowCount)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/GetMonitoringHistogramTimeseriesResponseMeta.java b/src/main/java/com/mux/sdk/models/GetMonitoringHistogramTimeseriesResponseMeta.java index 4351fee..0653c96 100644 --- a/src/main/java/com/mux/sdk/models/GetMonitoringHistogramTimeseriesResponseMeta.java +++ b/src/main/java/com/mux/sdk/models/GetMonitoringHistogramTimeseriesResponseMeta.java @@ -30,11 +30,38 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GetMonitoringHistogramTimeseriesResponseMeta { + public static final String SERIALIZED_NAME_BUCKET_UNIT = "bucket_unit"; + @SerializedName(SERIALIZED_NAME_BUCKET_UNIT) + private String bucketUnit; + public static final String SERIALIZED_NAME_BUCKETS = "buckets"; @SerializedName(SERIALIZED_NAME_BUCKETS) private java.util.List buckets = null; + public GetMonitoringHistogramTimeseriesResponseMeta bucketUnit(String bucketUnit) { + + this.bucketUnit = bucketUnit; + return this; + } + + /** + * Get bucketUnit + * @return bucketUnit + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getBucketUnit() { + return bucketUnit; + } + + + public void setBucketUnit(String bucketUnit) { + this.bucketUnit = bucketUnit; + } + + public GetMonitoringHistogramTimeseriesResponseMeta buckets(java.util.List buckets) { this.buckets = buckets; @@ -75,18 +102,20 @@ public boolean equals(Object o) { return false; } GetMonitoringHistogramTimeseriesResponseMeta getMonitoringHistogramTimeseriesResponseMeta = (GetMonitoringHistogramTimeseriesResponseMeta) o; - return Objects.equals(this.buckets, getMonitoringHistogramTimeseriesResponseMeta.buckets); + return Objects.equals(this.bucketUnit, getMonitoringHistogramTimeseriesResponseMeta.bucketUnit) && + Objects.equals(this.buckets, getMonitoringHistogramTimeseriesResponseMeta.buckets); } @Override public int hashCode() { - return Objects.hash(buckets); + return Objects.hash(bucketUnit, buckets); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetMonitoringHistogramTimeseriesResponseMeta {\n"); + sb.append(" bucketUnit: ").append(toIndentedString(bucketUnit)).append("\n"); sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/mux/sdk/models/GetOverallValuesResponse.java b/src/main/java/com/mux/sdk/models/GetOverallValuesResponse.java index 53e2903..2dbe650 100644 --- a/src/main/java/com/mux/sdk/models/GetOverallValuesResponse.java +++ b/src/main/java/com/mux/sdk/models/GetOverallValuesResponse.java @@ -20,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.mux.sdk.models.ListBreakdownValuesResponseMeta; import com.mux.sdk.models.OverallValues; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -42,6 +43,10 @@ public class GetOverallValuesResponse { @SerializedName(SERIALIZED_NAME_TIMEFRAME) private java.util.List timeframe = null; + public static final String SERIALIZED_NAME_META = "meta"; + @SerializedName(SERIALIZED_NAME_META) + private ListBreakdownValuesResponseMeta meta; + public GetOverallValuesResponse data(OverallValues data) { @@ -120,6 +125,29 @@ public void setTimeframe(java.util.List timeframe) { } + public GetOverallValuesResponse meta(ListBreakdownValuesResponseMeta meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ListBreakdownValuesResponseMeta getMeta() { + return meta; + } + + + public void setMeta(ListBreakdownValuesResponseMeta meta) { + this.meta = meta; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -131,12 +159,13 @@ public boolean equals(Object o) { GetOverallValuesResponse getOverallValuesResponse = (GetOverallValuesResponse) o; return Objects.equals(this.data, getOverallValuesResponse.data) && Objects.equals(this.totalRowCount, getOverallValuesResponse.totalRowCount) && - Objects.equals(this.timeframe, getOverallValuesResponse.timeframe); + Objects.equals(this.timeframe, getOverallValuesResponse.timeframe) && + Objects.equals(this.meta, getOverallValuesResponse.meta); } @Override public int hashCode() { - return Objects.hash(data, totalRowCount, timeframe); + return Objects.hash(data, totalRowCount, timeframe, meta); } @Override @@ -146,6 +175,7 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" totalRowCount: ").append(toIndentedString(totalRowCount)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/GetRealTimeHistogramTimeseriesResponseMeta.java b/src/main/java/com/mux/sdk/models/GetRealTimeHistogramTimeseriesResponseMeta.java index 8f65f89..935231d 100644 --- a/src/main/java/com/mux/sdk/models/GetRealTimeHistogramTimeseriesResponseMeta.java +++ b/src/main/java/com/mux/sdk/models/GetRealTimeHistogramTimeseriesResponseMeta.java @@ -30,11 +30,38 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GetRealTimeHistogramTimeseriesResponseMeta { + public static final String SERIALIZED_NAME_BUCKET_UNIT = "bucket_unit"; + @SerializedName(SERIALIZED_NAME_BUCKET_UNIT) + private String bucketUnit; + public static final String SERIALIZED_NAME_BUCKETS = "buckets"; @SerializedName(SERIALIZED_NAME_BUCKETS) private java.util.List buckets = null; + public GetRealTimeHistogramTimeseriesResponseMeta bucketUnit(String bucketUnit) { + + this.bucketUnit = bucketUnit; + return this; + } + + /** + * Get bucketUnit + * @return bucketUnit + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getBucketUnit() { + return bucketUnit; + } + + + public void setBucketUnit(String bucketUnit) { + this.bucketUnit = bucketUnit; + } + + public GetRealTimeHistogramTimeseriesResponseMeta buckets(java.util.List buckets) { this.buckets = buckets; @@ -75,18 +102,20 @@ public boolean equals(Object o) { return false; } GetRealTimeHistogramTimeseriesResponseMeta getRealTimeHistogramTimeseriesResponseMeta = (GetRealTimeHistogramTimeseriesResponseMeta) o; - return Objects.equals(this.buckets, getRealTimeHistogramTimeseriesResponseMeta.buckets); + return Objects.equals(this.bucketUnit, getRealTimeHistogramTimeseriesResponseMeta.bucketUnit) && + Objects.equals(this.buckets, getRealTimeHistogramTimeseriesResponseMeta.buckets); } @Override public int hashCode() { - return Objects.hash(buckets); + return Objects.hash(bucketUnit, buckets); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetRealTimeHistogramTimeseriesResponseMeta {\n"); + sb.append(" bucketUnit: ").append(toIndentedString(bucketUnit)).append("\n"); sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/mux/sdk/models/IncidentResponse.java b/src/main/java/com/mux/sdk/models/IncidentResponse.java index 70cfeab..31c58f0 100644 --- a/src/main/java/com/mux/sdk/models/IncidentResponse.java +++ b/src/main/java/com/mux/sdk/models/IncidentResponse.java @@ -34,6 +34,10 @@ public class IncidentResponse { @SerializedName(SERIALIZED_NAME_DATA) private Incident data; + public static final String SERIALIZED_NAME_TOTAL_ROW_COUNT = "total_row_count"; + @SerializedName(SERIALIZED_NAME_TOTAL_ROW_COUNT) + private Long totalRowCount; + public static final String SERIALIZED_NAME_TIMEFRAME = "timeframe"; @SerializedName(SERIALIZED_NAME_TIMEFRAME) private java.util.List timeframe = null; @@ -62,6 +66,29 @@ public void setData(Incident data) { } + public IncidentResponse totalRowCount(Long totalRowCount) { + + this.totalRowCount = totalRowCount; + return this; + } + + /** + * Get totalRowCount + * @return totalRowCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getTotalRowCount() { + return totalRowCount; + } + + + public void setTotalRowCount(Long totalRowCount) { + this.totalRowCount = totalRowCount; + } + + public IncidentResponse timeframe(java.util.List timeframe) { this.timeframe = timeframe; @@ -103,12 +130,13 @@ public boolean equals(Object o) { } IncidentResponse incidentResponse = (IncidentResponse) o; return Objects.equals(this.data, incidentResponse.data) && + Objects.equals(this.totalRowCount, incidentResponse.totalRowCount) && Objects.equals(this.timeframe, incidentResponse.timeframe); } @Override public int hashCode() { - return Objects.hash(data, timeframe); + return Objects.hash(data, totalRowCount, timeframe); } @Override @@ -116,6 +144,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IncidentResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" totalRowCount: ").append(toIndentedString(totalRowCount)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/mux/sdk/models/InputSettings.java b/src/main/java/com/mux/sdk/models/InputSettings.java index 66dd5c3..1d7ff67 100644 --- a/src/main/java/com/mux/sdk/models/InputSettings.java +++ b/src/main/java/com/mux/sdk/models/InputSettings.java @@ -178,11 +178,11 @@ public InputSettings url(String url) { } /** - * The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/video/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/video/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. + * The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. * @return url **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/video/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/video/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. ") + @ApiModelProperty(value = "The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. ") public String getUrl() { return url; diff --git a/src/main/java/com/mux/sdk/models/Insight.java b/src/main/java/com/mux/sdk/models/Insight.java index eaafbf5..4970db9 100644 --- a/src/main/java/com/mux/sdk/models/Insight.java +++ b/src/main/java/com/mux/sdk/models/Insight.java @@ -33,6 +33,10 @@ public class Insight { @SerializedName(SERIALIZED_NAME_TOTAL_WATCH_TIME) private Long totalWatchTime; + public static final String SERIALIZED_NAME_TOTAL_PLAYING_TIME = "total_playing_time"; + @SerializedName(SERIALIZED_NAME_TOTAL_PLAYING_TIME) + private Long totalPlayingTime; + public static final String SERIALIZED_NAME_TOTAL_VIEWS = "total_views"; @SerializedName(SERIALIZED_NAME_TOTAL_VIEWS) private Long totalViews; @@ -77,6 +81,29 @@ public void setTotalWatchTime(Long totalWatchTime) { } + public Insight totalPlayingTime(Long totalPlayingTime) { + + this.totalPlayingTime = totalPlayingTime; + return this; + } + + /** + * Get totalPlayingTime + * @return totalPlayingTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getTotalPlayingTime() { + return totalPlayingTime; + } + + + public void setTotalPlayingTime(Long totalPlayingTime) { + this.totalPlayingTime = totalPlayingTime; + } + + public Insight totalViews(Long totalViews) { this.totalViews = totalViews; @@ -202,6 +229,7 @@ public boolean equals(Object o) { } Insight insight = (Insight) o; return Objects.equals(this.totalWatchTime, insight.totalWatchTime) && + Objects.equals(this.totalPlayingTime, insight.totalPlayingTime) && Objects.equals(this.totalViews, insight.totalViews) && Objects.equals(this.negativeImpactScore, insight.negativeImpactScore) && Objects.equals(this.metric, insight.metric) && @@ -211,7 +239,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(totalWatchTime, totalViews, negativeImpactScore, metric, filterValue, filterColumn); + return Objects.hash(totalWatchTime, totalPlayingTime, totalViews, negativeImpactScore, metric, filterValue, filterColumn); } @Override @@ -219,6 +247,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Insight {\n"); sb.append(" totalWatchTime: ").append(toIndentedString(totalWatchTime)).append("\n"); + sb.append(" totalPlayingTime: ").append(toIndentedString(totalPlayingTime)).append("\n"); sb.append(" totalViews: ").append(toIndentedString(totalViews)).append("\n"); sb.append(" negativeImpactScore: ").append(toIndentedString(negativeImpactScore)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); diff --git a/src/main/java/com/mux/sdk/models/LaunchWebInputResponse.java b/src/main/java/com/mux/sdk/models/LaunchWebInputResponse.java new file mode 100644 index 0000000..5237672 --- /dev/null +++ b/src/main/java/com/mux/sdk/models/LaunchWebInputResponse.java @@ -0,0 +1,98 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * LaunchWebInputResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class LaunchWebInputResponse { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private Object data; + + + public LaunchWebInputResponse data(Object data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Object getData() { + return data; + } + + + public void setData(Object data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LaunchWebInputResponse launchWebInputResponse = (LaunchWebInputResponse) o; + return Objects.equals(this.data, launchWebInputResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LaunchWebInputResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/mux/sdk/models/ListBreakdownValuesResponse.java b/src/main/java/com/mux/sdk/models/ListBreakdownValuesResponse.java index e5e75bc..2ece75c 100644 --- a/src/main/java/com/mux/sdk/models/ListBreakdownValuesResponse.java +++ b/src/main/java/com/mux/sdk/models/ListBreakdownValuesResponse.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import com.mux.sdk.models.BreakdownValue; +import com.mux.sdk.models.ListBreakdownValuesResponseMeta; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -42,6 +43,10 @@ public class ListBreakdownValuesResponse { @SerializedName(SERIALIZED_NAME_TIMEFRAME) private java.util.List timeframe = null; + public static final String SERIALIZED_NAME_META = "meta"; + @SerializedName(SERIALIZED_NAME_META) + private ListBreakdownValuesResponseMeta meta; + public ListBreakdownValuesResponse data(java.util.List data) { @@ -128,6 +133,29 @@ public void setTimeframe(java.util.List timeframe) { } + public ListBreakdownValuesResponse meta(ListBreakdownValuesResponseMeta meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ListBreakdownValuesResponseMeta getMeta() { + return meta; + } + + + public void setMeta(ListBreakdownValuesResponseMeta meta) { + this.meta = meta; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -139,12 +167,13 @@ public boolean equals(Object o) { ListBreakdownValuesResponse listBreakdownValuesResponse = (ListBreakdownValuesResponse) o; return Objects.equals(this.data, listBreakdownValuesResponse.data) && Objects.equals(this.totalRowCount, listBreakdownValuesResponse.totalRowCount) && - Objects.equals(this.timeframe, listBreakdownValuesResponse.timeframe); + Objects.equals(this.timeframe, listBreakdownValuesResponse.timeframe) && + Objects.equals(this.meta, listBreakdownValuesResponse.meta); } @Override public int hashCode() { - return Objects.hash(data, totalRowCount, timeframe); + return Objects.hash(data, totalRowCount, timeframe, meta); } @Override @@ -154,6 +183,7 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" totalRowCount: ").append(toIndentedString(totalRowCount)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/ListBreakdownValuesResponseMeta.java b/src/main/java/com/mux/sdk/models/ListBreakdownValuesResponseMeta.java new file mode 100644 index 0000000..b57c5a8 --- /dev/null +++ b/src/main/java/com/mux/sdk/models/ListBreakdownValuesResponseMeta.java @@ -0,0 +1,127 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ListBreakdownValuesResponseMeta + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListBreakdownValuesResponseMeta { + public static final String SERIALIZED_NAME_GRANULARITY = "granularity"; + @SerializedName(SERIALIZED_NAME_GRANULARITY) + private String granularity; + + public static final String SERIALIZED_NAME_AGGREGATION = "aggregation"; + @SerializedName(SERIALIZED_NAME_AGGREGATION) + private String aggregation; + + + public ListBreakdownValuesResponseMeta granularity(String granularity) { + + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * @return granularity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getGranularity() { + return granularity; + } + + + public void setGranularity(String granularity) { + this.granularity = granularity; + } + + + public ListBreakdownValuesResponseMeta aggregation(String aggregation) { + + this.aggregation = aggregation; + return this; + } + + /** + * Get aggregation + * @return aggregation + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getAggregation() { + return aggregation; + } + + + public void setAggregation(String aggregation) { + this.aggregation = aggregation; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListBreakdownValuesResponseMeta listBreakdownValuesResponseMeta = (ListBreakdownValuesResponseMeta) o; + return Objects.equals(this.granularity, listBreakdownValuesResponseMeta.granularity) && + Objects.equals(this.aggregation, listBreakdownValuesResponseMeta.aggregation); + } + + @Override + public int hashCode() { + return Objects.hash(granularity, aggregation); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBreakdownValuesResponseMeta {\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/mux/sdk/models/ListInsightsResponse.java b/src/main/java/com/mux/sdk/models/ListInsightsResponse.java index 6803435..fa83c8e 100644 --- a/src/main/java/com/mux/sdk/models/ListInsightsResponse.java +++ b/src/main/java/com/mux/sdk/models/ListInsightsResponse.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import com.mux.sdk.models.Insight; +import com.mux.sdk.models.ListBreakdownValuesResponseMeta; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -42,6 +43,10 @@ public class ListInsightsResponse { @SerializedName(SERIALIZED_NAME_TIMEFRAME) private java.util.List timeframe = null; + public static final String SERIALIZED_NAME_META = "meta"; + @SerializedName(SERIALIZED_NAME_META) + private ListBreakdownValuesResponseMeta meta; + public ListInsightsResponse data(java.util.List data) { @@ -128,6 +133,29 @@ public void setTimeframe(java.util.List timeframe) { } + public ListInsightsResponse meta(ListBreakdownValuesResponseMeta meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ListBreakdownValuesResponseMeta getMeta() { + return meta; + } + + + public void setMeta(ListBreakdownValuesResponseMeta meta) { + this.meta = meta; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -139,12 +167,13 @@ public boolean equals(Object o) { ListInsightsResponse listInsightsResponse = (ListInsightsResponse) o; return Objects.equals(this.data, listInsightsResponse.data) && Objects.equals(this.totalRowCount, listInsightsResponse.totalRowCount) && - Objects.equals(this.timeframe, listInsightsResponse.timeframe); + Objects.equals(this.timeframe, listInsightsResponse.timeframe) && + Objects.equals(this.meta, listInsightsResponse.meta); } @Override public int hashCode() { - return Objects.hash(data, totalRowCount, timeframe); + return Objects.hash(data, totalRowCount, timeframe, meta); } @Override @@ -154,6 +183,7 @@ public String toString() { sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" totalRowCount: ").append(toIndentedString(totalRowCount)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/ListWebInputsResponse.java b/src/main/java/com/mux/sdk/models/ListWebInputsResponse.java new file mode 100644 index 0000000..4ff06cb --- /dev/null +++ b/src/main/java/com/mux/sdk/models/ListWebInputsResponse.java @@ -0,0 +1,107 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.mux.sdk.models.WebInput; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ListWebInputsResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListWebInputsResponse { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private java.util.List data = null; + + + public ListWebInputsResponse data(java.util.List data) { + + this.data = data; + return this; + } + + public ListWebInputsResponse addDataItem(WebInput dataItem) { + if (this.data == null) { + this.data = new java.util.ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public java.util.List getData() { + return data; + } + + + public void setData(java.util.List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWebInputsResponse listWebInputsResponse = (ListWebInputsResponse) o; + return Objects.equals(this.data, listWebInputsResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWebInputsResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/mux/sdk/models/LiveStream.java b/src/main/java/com/mux/sdk/models/LiveStream.java index 2e3c864..cafc9c1 100644 --- a/src/main/java/com/mux/sdk/models/LiveStream.java +++ b/src/main/java/com/mux/sdk/models/LiveStream.java @@ -108,7 +108,7 @@ public class LiveStream { private java.util.List simulcastTargets = null; /** - * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ + * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. */ @JsonAdapter(LatencyModeEnum.Adapter.class) public enum LatencyModeEnum { @@ -330,11 +330,11 @@ public LiveStream addPlaybackIdsItem(PlaybackID playbackIdsItem) { } /** - * An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/video/play-your-videos) for more details. + * An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. * @return playbackIds **/ @javax.annotation.Nullable - @ApiModelProperty(value = "An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/video/play-your-videos) for more details.") + @ApiModelProperty(value = "An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details.") public java.util.List getPlaybackIds() { return playbackIds; @@ -555,11 +555,11 @@ public LiveStream reducedLatency(Boolean reducedLatency) { } /** - * This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. See the [Reduce live stream latency guide](https://docs.mux.com/guides/video/reduce-live-stream-latency) to understand the tradeoffs. + * This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. See the [Reduce live stream latency guide](https://docs.mux.com/guides/reduce-live-stream-latency) to understand the tradeoffs. * @return reducedLatency **/ @javax.annotation.Nullable - @ApiModelProperty(value = "This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. See the [Reduce live stream latency guide](https://docs.mux.com/guides/video/reduce-live-stream-latency) to understand the tradeoffs.") + @ApiModelProperty(value = "This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. See the [Reduce live stream latency guide](https://docs.mux.com/guides/reduce-live-stream-latency) to understand the tradeoffs.") public Boolean getReducedLatency() { return reducedLatency; @@ -609,11 +609,11 @@ public LiveStream addSimulcastTargetsItem(SimulcastTarget simulcastTargetsItem) } /** - * Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/video/stream-live-to-3rd-party-platforms). + * Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/stream-live-to-3rd-party-platforms). * @return simulcastTargets **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/video/stream-live-to-3rd-party-platforms).") + @ApiModelProperty(value = "Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/stream-live-to-3rd-party-platforms).") public java.util.List getSimulcastTargets() { return simulcastTargets; @@ -632,11 +632,11 @@ public LiveStream latencyMode(LatencyModeEnum latencyMode) { } /** - * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ + * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. * @return latencyMode **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/") + @ApiModelProperty(value = "Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags.") public LatencyModeEnum getLatencyMode() { return latencyMode; diff --git a/src/main/java/com/mux/sdk/models/MonitoringBreakdownValue.java b/src/main/java/com/mux/sdk/models/MonitoringBreakdownValue.java index 2418979..18b9c64 100644 --- a/src/main/java/com/mux/sdk/models/MonitoringBreakdownValue.java +++ b/src/main/java/com/mux/sdk/models/MonitoringBreakdownValue.java @@ -49,6 +49,10 @@ public class MonitoringBreakdownValue { @SerializedName(SERIALIZED_NAME_CONCURRENT_VIEWERS) private Long concurrentViewers; + public static final String SERIALIZED_NAME_STARTING_UP_VIEWERS = "starting_up_viewers"; + @SerializedName(SERIALIZED_NAME_STARTING_UP_VIEWERS) + private Long startingUpViewers; + public MonitoringBreakdownValue value(String value) { @@ -165,6 +169,29 @@ public void setConcurrentViewers(Long concurrentViewers) { } + public MonitoringBreakdownValue startingUpViewers(Long startingUpViewers) { + + this.startingUpViewers = startingUpViewers; + return this; + } + + /** + * Get startingUpViewers + * @return startingUpViewers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getStartingUpViewers() { + return startingUpViewers; + } + + + public void setStartingUpViewers(Long startingUpViewers) { + this.startingUpViewers = startingUpViewers; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -178,12 +205,13 @@ public boolean equals(Object o) { Objects.equals(this.negativeImpact, monitoringBreakdownValue.negativeImpact) && Objects.equals(this.metricValue, monitoringBreakdownValue.metricValue) && Objects.equals(this.displayValue, monitoringBreakdownValue.displayValue) && - Objects.equals(this.concurrentViewers, monitoringBreakdownValue.concurrentViewers); + Objects.equals(this.concurrentViewers, monitoringBreakdownValue.concurrentViewers) && + Objects.equals(this.startingUpViewers, monitoringBreakdownValue.startingUpViewers); } @Override public int hashCode() { - return Objects.hash(value, negativeImpact, metricValue, displayValue, concurrentViewers); + return Objects.hash(value, negativeImpact, metricValue, displayValue, concurrentViewers, startingUpViewers); } @Override @@ -195,6 +223,7 @@ public String toString() { sb.append(" metricValue: ").append(toIndentedString(metricValue)).append("\n"); sb.append(" displayValue: ").append(toIndentedString(displayValue)).append("\n"); sb.append(" concurrentViewers: ").append(toIndentedString(concurrentViewers)).append("\n"); + sb.append(" startingUpViewers: ").append(toIndentedString(startingUpViewers)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/OverallValues.java b/src/main/java/com/mux/sdk/models/OverallValues.java index 057cfd9..39f6bc7 100644 --- a/src/main/java/com/mux/sdk/models/OverallValues.java +++ b/src/main/java/com/mux/sdk/models/OverallValues.java @@ -41,6 +41,10 @@ public class OverallValues { @SerializedName(SERIALIZED_NAME_TOTAL_VIEWS) private Long totalViews; + public static final String SERIALIZED_NAME_TOTAL_PLAYING_TIME = "total_playing_time"; + @SerializedName(SERIALIZED_NAME_TOTAL_PLAYING_TIME) + private Long totalPlayingTime; + public static final String SERIALIZED_NAME_GLOBAL_VALUE = "global_value"; @SerializedName(SERIALIZED_NAME_GLOBAL_VALUE) private Double globalValue; @@ -115,6 +119,29 @@ public void setTotalViews(Long totalViews) { } + public OverallValues totalPlayingTime(Long totalPlayingTime) { + + this.totalPlayingTime = totalPlayingTime; + return this; + } + + /** + * Get totalPlayingTime + * @return totalPlayingTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getTotalPlayingTime() { + return totalPlayingTime; + } + + + public void setTotalPlayingTime(Long totalPlayingTime) { + this.totalPlayingTime = totalPlayingTime; + } + + public OverallValues globalValue(Double globalValue) { this.globalValue = globalValue; @@ -150,12 +177,13 @@ public boolean equals(Object o) { return Objects.equals(this.value, overallValues.value) && Objects.equals(this.totalWatchTime, overallValues.totalWatchTime) && Objects.equals(this.totalViews, overallValues.totalViews) && + Objects.equals(this.totalPlayingTime, overallValues.totalPlayingTime) && Objects.equals(this.globalValue, overallValues.globalValue); } @Override public int hashCode() { - return Objects.hash(value, totalWatchTime, totalViews, globalValue); + return Objects.hash(value, totalWatchTime, totalViews, totalPlayingTime, globalValue); } @Override @@ -165,6 +193,7 @@ public String toString() { sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" totalWatchTime: ").append(toIndentedString(totalWatchTime)).append("\n"); sb.append(" totalViews: ").append(toIndentedString(totalViews)).append("\n"); + sb.append(" totalPlayingTime: ").append(toIndentedString(totalPlayingTime)).append("\n"); sb.append(" globalValue: ").append(toIndentedString(globalValue)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/mux/sdk/models/PlaybackPolicy.java b/src/main/java/com/mux/sdk/models/PlaybackPolicy.java index 1f3bd9a..48ad9c2 100644 --- a/src/main/java/com/mux/sdk/models/PlaybackPolicy.java +++ b/src/main/java/com/mux/sdk/models/PlaybackPolicy.java @@ -25,7 +25,7 @@ import com.google.gson.stream.JsonWriter; /** - * * `public` playback IDs are accessible by constructing an HLS URL like `https://stream.mux.com/${PLAYBACK_ID}` * `signed` playback IDs should be used with tokens `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See [Secure video playback](https://docs.mux.com/guides/video/secure-video-playback) for details about creating tokens. + * * `public` playback IDs are accessible by constructing an HLS URL like `https://stream.mux.com/${PLAYBACK_ID}` * `signed` playback IDs should be used with tokens `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for details about creating tokens. */ @JsonAdapter(PlaybackPolicy.Adapter.class) public enum PlaybackPolicy { diff --git a/src/main/java/com/mux/sdk/models/RealTimeBreakdownValue.java b/src/main/java/com/mux/sdk/models/RealTimeBreakdownValue.java index 888b96b..c7913fa 100644 --- a/src/main/java/com/mux/sdk/models/RealTimeBreakdownValue.java +++ b/src/main/java/com/mux/sdk/models/RealTimeBreakdownValue.java @@ -49,6 +49,10 @@ public class RealTimeBreakdownValue { @SerializedName(SERIALIZED_NAME_CONCURRENT_VIEWERS) private Long concurrentViewers; + public static final String SERIALIZED_NAME_STARTING_UP_VIEWERS = "starting_up_viewers"; + @SerializedName(SERIALIZED_NAME_STARTING_UP_VIEWERS) + private Long startingUpViewers; + public RealTimeBreakdownValue value(String value) { @@ -165,6 +169,29 @@ public void setConcurrentViewers(Long concurrentViewers) { } + public RealTimeBreakdownValue startingUpViewers(Long startingUpViewers) { + + this.startingUpViewers = startingUpViewers; + return this; + } + + /** + * Get startingUpViewers + * @return startingUpViewers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getStartingUpViewers() { + return startingUpViewers; + } + + + public void setStartingUpViewers(Long startingUpViewers) { + this.startingUpViewers = startingUpViewers; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -178,12 +205,13 @@ public boolean equals(Object o) { Objects.equals(this.negativeImpact, realTimeBreakdownValue.negativeImpact) && Objects.equals(this.metricValue, realTimeBreakdownValue.metricValue) && Objects.equals(this.displayValue, realTimeBreakdownValue.displayValue) && - Objects.equals(this.concurrentViewers, realTimeBreakdownValue.concurrentViewers); + Objects.equals(this.concurrentViewers, realTimeBreakdownValue.concurrentViewers) && + Objects.equals(this.startingUpViewers, realTimeBreakdownValue.startingUpViewers); } @Override public int hashCode() { - return Objects.hash(value, negativeImpact, metricValue, displayValue, concurrentViewers); + return Objects.hash(value, negativeImpact, metricValue, displayValue, concurrentViewers, startingUpViewers); } @Override @@ -195,6 +223,7 @@ public String toString() { sb.append(" metricValue: ").append(toIndentedString(metricValue)).append("\n"); sb.append(" displayValue: ").append(toIndentedString(displayValue)).append("\n"); sb.append(" concurrentViewers: ").append(toIndentedString(concurrentViewers)).append("\n"); + sb.append(" startingUpViewers: ").append(toIndentedString(startingUpViewers)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/ReloadWebInputResponse.java b/src/main/java/com/mux/sdk/models/ReloadWebInputResponse.java new file mode 100644 index 0000000..5e5acae --- /dev/null +++ b/src/main/java/com/mux/sdk/models/ReloadWebInputResponse.java @@ -0,0 +1,98 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ReloadWebInputResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ReloadWebInputResponse { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private Object data; + + + public ReloadWebInputResponse data(Object data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Object getData() { + return data; + } + + + public void setData(Object data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReloadWebInputResponse reloadWebInputResponse = (ReloadWebInputResponse) o; + return Objects.equals(this.data, reloadWebInputResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReloadWebInputResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/mux/sdk/models/Score.java b/src/main/java/com/mux/sdk/models/Score.java index 8f870f3..a3f7a1a 100644 --- a/src/main/java/com/mux/sdk/models/Score.java +++ b/src/main/java/com/mux/sdk/models/Score.java @@ -38,14 +38,34 @@ public class Score { @SerializedName(SERIALIZED_NAME_VIEW_COUNT) private Long viewCount; + public static final String SERIALIZED_NAME_UNIQUE_VIEWERS = "unique_viewers"; + @SerializedName(SERIALIZED_NAME_UNIQUE_VIEWERS) + private Long uniqueViewers; + + public static final String SERIALIZED_NAME_STARTED_VIEWS = "started_views"; + @SerializedName(SERIALIZED_NAME_STARTED_VIEWS) + private Long startedViews; + + public static final String SERIALIZED_NAME_TOTAL_PLAYING_TIME = "total_playing_time"; + @SerializedName(SERIALIZED_NAME_TOTAL_PLAYING_TIME) + private Long totalPlayingTime; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; + public static final String SERIALIZED_NAME_ENDED_VIEWS = "ended_views"; + @SerializedName(SERIALIZED_NAME_ENDED_VIEWS) + private Long endedViews; + public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) private Double value; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + public static final String SERIALIZED_NAME_METRIC = "metric"; @SerializedName(SERIALIZED_NAME_METRIC) private String metric; @@ -101,6 +121,75 @@ public void setViewCount(Long viewCount) { } + public Score uniqueViewers(Long uniqueViewers) { + + this.uniqueViewers = uniqueViewers; + return this; + } + + /** + * Get uniqueViewers + * @return uniqueViewers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getUniqueViewers() { + return uniqueViewers; + } + + + public void setUniqueViewers(Long uniqueViewers) { + this.uniqueViewers = uniqueViewers; + } + + + public Score startedViews(Long startedViews) { + + this.startedViews = startedViews; + return this; + } + + /** + * Get startedViews + * @return startedViews + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getStartedViews() { + return startedViews; + } + + + public void setStartedViews(Long startedViews) { + this.startedViews = startedViews; + } + + + public Score totalPlayingTime(Long totalPlayingTime) { + + this.totalPlayingTime = totalPlayingTime; + return this; + } + + /** + * Get totalPlayingTime + * @return totalPlayingTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getTotalPlayingTime() { + return totalPlayingTime; + } + + + public void setTotalPlayingTime(Long totalPlayingTime) { + this.totalPlayingTime = totalPlayingTime; + } + + public Score name(String name) { this.name = name; @@ -124,6 +213,29 @@ public void setName(String name) { } + public Score endedViews(Long endedViews) { + + this.endedViews = endedViews; + return this; + } + + /** + * Get endedViews + * @return endedViews + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getEndedViews() { + return endedViews; + } + + + public void setEndedViews(Long endedViews) { + this.endedViews = endedViews; + } + + public Score value(Double value) { this.value = value; @@ -147,6 +259,29 @@ public void setValue(Double value) { } + public Score type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + public Score metric(String metric) { this.metric = metric; @@ -212,15 +347,20 @@ public boolean equals(Object o) { Score score = (Score) o; return Objects.equals(this.watchTime, score.watchTime) && Objects.equals(this.viewCount, score.viewCount) && + Objects.equals(this.uniqueViewers, score.uniqueViewers) && + Objects.equals(this.startedViews, score.startedViews) && + Objects.equals(this.totalPlayingTime, score.totalPlayingTime) && Objects.equals(this.name, score.name) && + Objects.equals(this.endedViews, score.endedViews) && Objects.equals(this.value, score.value) && + Objects.equals(this.type, score.type) && Objects.equals(this.metric, score.metric) && Objects.equals(this.items, score.items); } @Override public int hashCode() { - return Objects.hash(watchTime, viewCount, name, value, metric, items); + return Objects.hash(watchTime, viewCount, uniqueViewers, startedViews, totalPlayingTime, name, endedViews, value, type, metric, items); } @Override @@ -229,8 +369,13 @@ public String toString() { sb.append("class Score {\n"); sb.append(" watchTime: ").append(toIndentedString(watchTime)).append("\n"); sb.append(" viewCount: ").append(toIndentedString(viewCount)).append("\n"); + sb.append(" uniqueViewers: ").append(toIndentedString(uniqueViewers)).append("\n"); + sb.append(" startedViews: ").append(toIndentedString(startedViews)).append("\n"); + sb.append(" totalPlayingTime: ").append(toIndentedString(totalPlayingTime)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" endedViews: ").append(toIndentedString(endedViews)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/mux/sdk/models/ShutdownWebInputResponse.java b/src/main/java/com/mux/sdk/models/ShutdownWebInputResponse.java new file mode 100644 index 0000000..2f6f2f9 --- /dev/null +++ b/src/main/java/com/mux/sdk/models/ShutdownWebInputResponse.java @@ -0,0 +1,98 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ShutdownWebInputResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ShutdownWebInputResponse { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private Object data; + + + public ShutdownWebInputResponse data(Object data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Object getData() { + return data; + } + + + public void setData(Object data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ShutdownWebInputResponse shutdownWebInputResponse = (ShutdownWebInputResponse) o; + return Objects.equals(this.data, shutdownWebInputResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShutdownWebInputResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/mux/sdk/models/UpdateLiveStreamRequest.java b/src/main/java/com/mux/sdk/models/UpdateLiveStreamRequest.java index 89fee2c..6aba319 100644 --- a/src/main/java/com/mux/sdk/models/UpdateLiveStreamRequest.java +++ b/src/main/java/com/mux/sdk/models/UpdateLiveStreamRequest.java @@ -34,7 +34,7 @@ public class UpdateLiveStreamRequest { private String passthrough; /** - * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ + * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. */ @JsonAdapter(LatencyModeEnum.Adapter.class) public enum LatencyModeEnum { @@ -133,11 +133,11 @@ public UpdateLiveStreamRequest latencyMode(LatencyModeEnum latencyMode) { } /** - * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ + * Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. * @return latencyMode **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/") + @ApiModelProperty(value = "Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags.") public LatencyModeEnum getLatencyMode() { return latencyMode; diff --git a/src/main/java/com/mux/sdk/models/UpdateWebInputUrlRequest.java b/src/main/java/com/mux/sdk/models/UpdateWebInputUrlRequest.java new file mode 100644 index 0000000..0df8130 --- /dev/null +++ b/src/main/java/com/mux/sdk/models/UpdateWebInputUrlRequest.java @@ -0,0 +1,98 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * UpdateWebInputUrlRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateWebInputUrlRequest { + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; + + + public UpdateWebInputUrlRequest url(String url) { + + this.url = url; + return this; + } + + /** + * The URL for the Web Input to load. + * @return url + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The URL for the Web Input to load.") + + public String getUrl() { + return url; + } + + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateWebInputUrlRequest updateWebInputUrlRequest = (UpdateWebInputUrlRequest) o; + return Objects.equals(this.url, updateWebInputUrlRequest.url); + } + + @Override + public int hashCode() { + return Objects.hash(url); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWebInputUrlRequest {\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/mux/sdk/models/VideoView.java b/src/main/java/com/mux/sdk/models/VideoView.java index 43eef01..d0789d6 100644 --- a/src/main/java/com/mux/sdk/models/VideoView.java +++ b/src/main/java/com/mux/sdk/models/VideoView.java @@ -594,6 +594,14 @@ public class VideoView { @SerializedName(SERIALIZED_NAME_VIDEO_STARTUP_FAILURE) private Boolean videoStartupFailure; + public static final String SERIALIZED_NAME_LONG_RESUME = "long_resume"; + @SerializedName(SERIALIZED_NAME_LONG_RESUME) + private Boolean longResume; + + public static final String SERIALIZED_NAME_LONG_REBUFFERING = "long_rebuffering"; + @SerializedName(SERIALIZED_NAME_LONG_REBUFFERING) + private Boolean longRebuffering; + public VideoView viewTotalUpscaling(String viewTotalUpscaling) { @@ -3846,6 +3854,52 @@ public void setVideoStartupFailure(Boolean videoStartupFailure) { } + public VideoView longResume(Boolean longResume) { + + this.longResume = longResume; + return this; + } + + /** + * Get longResume + * @return longResume + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getLongResume() { + return longResume; + } + + + public void setLongResume(Boolean longResume) { + this.longResume = longResume; + } + + + public VideoView longRebuffering(Boolean longRebuffering) { + + this.longRebuffering = longRebuffering; + return this; + } + + /** + * Get longRebuffering + * @return longRebuffering + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getLongRebuffering() { + return longRebuffering; + } + + + public void setLongRebuffering(Boolean longRebuffering) { + this.longRebuffering = longRebuffering; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -3995,12 +4049,14 @@ public boolean equals(Object o) { Objects.equals(this.viewDrmType, videoView.viewDrmType) && Objects.equals(this.viewDroppedFrameCount, videoView.viewDroppedFrameCount) && Objects.equals(this.viewHasAd, videoView.viewHasAd) && - Objects.equals(this.videoStartupFailure, videoView.videoStartupFailure); + Objects.equals(this.videoStartupFailure, videoView.videoStartupFailure) && + Objects.equals(this.longResume, videoView.longResume) && + Objects.equals(this.longRebuffering, videoView.longRebuffering); } @Override public int hashCode() { - return Objects.hash(viewTotalUpscaling, prerollAdAssetHostname, playerSourceDomain, region, viewerUserAgent, prerollRequested, pageType, startupScore, viewSeekDuration, countryName, playerSourceHeight, longitude, bufferingCount, videoDuration, playerSourceType, city, viewId, platformDescription, videoStartupPrerollRequestTime, viewerDeviceName, videoSeries, viewerApplicationName, updatedAt, viewTotalContentPlaybackTime, cdn, playerInstanceId, videoLanguage, playerSourceWidth, playerErrorMessage, playerMuxPluginVersion, watched, playbackScore, pageUrl, metro, viewMaxRequestLatency, requestsForFirstPreroll, viewTotalDownscaling, latitude, playerSourceHostName, insertedAt, viewEnd, muxEmbedVersion, playerLanguage, pageLoadTime, viewerDeviceCategory, videoStartupPrerollLoadTime, playerVersion, watchTime, playerSourceStreamType, prerollAdTagHostname, viewerDeviceManufacturer, rebufferingScore, experimentName, viewerOsVersion, playerPreload, bufferingDuration, playerViewCount, playerSoftware, playerLoadTime, platformSummary, videoEncodingVariant, playerWidth, viewSeekCount, viewerExperienceScore, viewErrorId, videoVariantName, prerollPlayed, viewerApplicationEngine, viewerOsArchitecture, playerErrorCode, bufferingRate, events, playerName, viewStart, viewAverageRequestThroughput, videoProducer, errorTypeId, muxViewerId, videoId, continentCode, sessionId, exitBeforeVideoStart, videoContentType, viewerOsFamily, playerPoster, viewAverageRequestLatency, videoVariantId, playerSourceDuration, playerSourceUrl, muxApiVersion, videoTitle, id, shortTime, rebufferPercentage, timeToFirstFrame, viewerUserId, videoStreamType, playerStartupTime, viewerApplicationVersion, viewMaxDownscalePercentage, viewMaxUpscalePercentage, countryCode, usedFullscreen, isp, propertyId, playerAutoplay, playerHeight, asn, asnName, qualityScore, playerSoftwareVersion, playerMuxPluginName, subPropertyId, playerRemotePlayed, viewMaxPlayheadPosition, viewPlayingTime, viewSessionId, viewerConnectionType, viewerDeviceModel, weightedAverageBitrate, custom1, custom2, custom3, custom4, custom5, custom6, custom7, custom8, custom9, custom10, liveStreamLatency, assetId, environmentId, liveStreamId, muxEmbed, playbackId, playerErrorContext, viewDrmType, viewDroppedFrameCount, viewHasAd, videoStartupFailure); + return Objects.hash(viewTotalUpscaling, prerollAdAssetHostname, playerSourceDomain, region, viewerUserAgent, prerollRequested, pageType, startupScore, viewSeekDuration, countryName, playerSourceHeight, longitude, bufferingCount, videoDuration, playerSourceType, city, viewId, platformDescription, videoStartupPrerollRequestTime, viewerDeviceName, videoSeries, viewerApplicationName, updatedAt, viewTotalContentPlaybackTime, cdn, playerInstanceId, videoLanguage, playerSourceWidth, playerErrorMessage, playerMuxPluginVersion, watched, playbackScore, pageUrl, metro, viewMaxRequestLatency, requestsForFirstPreroll, viewTotalDownscaling, latitude, playerSourceHostName, insertedAt, viewEnd, muxEmbedVersion, playerLanguage, pageLoadTime, viewerDeviceCategory, videoStartupPrerollLoadTime, playerVersion, watchTime, playerSourceStreamType, prerollAdTagHostname, viewerDeviceManufacturer, rebufferingScore, experimentName, viewerOsVersion, playerPreload, bufferingDuration, playerViewCount, playerSoftware, playerLoadTime, platformSummary, videoEncodingVariant, playerWidth, viewSeekCount, viewerExperienceScore, viewErrorId, videoVariantName, prerollPlayed, viewerApplicationEngine, viewerOsArchitecture, playerErrorCode, bufferingRate, events, playerName, viewStart, viewAverageRequestThroughput, videoProducer, errorTypeId, muxViewerId, videoId, continentCode, sessionId, exitBeforeVideoStart, videoContentType, viewerOsFamily, playerPoster, viewAverageRequestLatency, videoVariantId, playerSourceDuration, playerSourceUrl, muxApiVersion, videoTitle, id, shortTime, rebufferPercentage, timeToFirstFrame, viewerUserId, videoStreamType, playerStartupTime, viewerApplicationVersion, viewMaxDownscalePercentage, viewMaxUpscalePercentage, countryCode, usedFullscreen, isp, propertyId, playerAutoplay, playerHeight, asn, asnName, qualityScore, playerSoftwareVersion, playerMuxPluginName, subPropertyId, playerRemotePlayed, viewMaxPlayheadPosition, viewPlayingTime, viewSessionId, viewerConnectionType, viewerDeviceModel, weightedAverageBitrate, custom1, custom2, custom3, custom4, custom5, custom6, custom7, custom8, custom9, custom10, liveStreamLatency, assetId, environmentId, liveStreamId, muxEmbed, playbackId, playerErrorContext, viewDrmType, viewDroppedFrameCount, viewHasAd, videoStartupFailure, longResume, longRebuffering); } @Override @@ -4148,6 +4204,8 @@ public String toString() { sb.append(" viewDroppedFrameCount: ").append(toIndentedString(viewDroppedFrameCount)).append("\n"); sb.append(" viewHasAd: ").append(toIndentedString(viewHasAd)).append("\n"); sb.append(" videoStartupFailure: ").append(toIndentedString(videoStartupFailure)).append("\n"); + sb.append(" longResume: ").append(toIndentedString(longResume)).append("\n"); + sb.append(" longRebuffering: ").append(toIndentedString(longRebuffering)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/VideoViewEvent.java b/src/main/java/com/mux/sdk/models/VideoViewEvent.java index 5392f3a..b3a58cc 100644 --- a/src/main/java/com/mux/sdk/models/VideoViewEvent.java +++ b/src/main/java/com/mux/sdk/models/VideoViewEvent.java @@ -45,6 +45,10 @@ public class VideoViewEvent { @SerializedName(SERIALIZED_NAME_EVENT_TIME) private Long eventTime; + public static final String SERIALIZED_NAME_DETAILS = "details"; + @SerializedName(SERIALIZED_NAME_DETAILS) + private java.util.Map details = null; + public VideoViewEvent viewerTime(Long viewerTime) { @@ -138,6 +142,37 @@ public void setEventTime(Long eventTime) { } + public VideoViewEvent details(java.util.Map details) { + + this.details = details; + return this; + } + + public VideoViewEvent putDetailsItem(String key, Object detailsItem) { + if (this.details == null) { + this.details = new java.util.HashMap<>(); + } + this.details.put(key, detailsItem); + return this; + } + + /** + * Get details + * @return details + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public java.util.Map getDetails() { + return details; + } + + + public void setDetails(java.util.Map details) { + this.details = details; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -150,12 +185,13 @@ public boolean equals(Object o) { return Objects.equals(this.viewerTime, videoViewEvent.viewerTime) && Objects.equals(this.playbackTime, videoViewEvent.playbackTime) && Objects.equals(this.name, videoViewEvent.name) && - Objects.equals(this.eventTime, videoViewEvent.eventTime); + Objects.equals(this.eventTime, videoViewEvent.eventTime) && + Objects.equals(this.details, videoViewEvent.details); } @Override public int hashCode() { - return Objects.hash(viewerTime, playbackTime, name, eventTime); + return Objects.hash(viewerTime, playbackTime, name, eventTime, details); } @Override @@ -166,6 +202,7 @@ public String toString() { sb.append(" playbackTime: ").append(toIndentedString(playbackTime)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/VideoViewResponse.java b/src/main/java/com/mux/sdk/models/VideoViewResponse.java index 9d688d6..897ff56 100644 --- a/src/main/java/com/mux/sdk/models/VideoViewResponse.java +++ b/src/main/java/com/mux/sdk/models/VideoViewResponse.java @@ -38,6 +38,10 @@ public class VideoViewResponse { @SerializedName(SERIALIZED_NAME_TIMEFRAME) private java.util.List timeframe = null; + public static final String SERIALIZED_NAME_TOTAL_ROW_COUNT = "total_row_count"; + @SerializedName(SERIALIZED_NAME_TOTAL_ROW_COUNT) + private Long totalRowCount; + public VideoViewResponse data(VideoView data) { @@ -93,6 +97,29 @@ public void setTimeframe(java.util.List timeframe) { } + public VideoViewResponse totalRowCount(Long totalRowCount) { + + this.totalRowCount = totalRowCount; + return this; + } + + /** + * Get totalRowCount + * @return totalRowCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getTotalRowCount() { + return totalRowCount; + } + + + public void setTotalRowCount(Long totalRowCount) { + this.totalRowCount = totalRowCount; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -103,12 +130,13 @@ public boolean equals(Object o) { } VideoViewResponse videoViewResponse = (VideoViewResponse) o; return Objects.equals(this.data, videoViewResponse.data) && - Objects.equals(this.timeframe, videoViewResponse.timeframe); + Objects.equals(this.timeframe, videoViewResponse.timeframe) && + Objects.equals(this.totalRowCount, videoViewResponse.totalRowCount); } @Override public int hashCode() { - return Objects.hash(data, timeframe); + return Objects.hash(data, timeframe, totalRowCount); } @Override @@ -117,6 +145,7 @@ public String toString() { sb.append("class VideoViewResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append(" totalRowCount: ").append(toIndentedString(totalRowCount)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/WebInput.java b/src/main/java/com/mux/sdk/models/WebInput.java new file mode 100644 index 0000000..9c9127d --- /dev/null +++ b/src/main/java/com/mux/sdk/models/WebInput.java @@ -0,0 +1,434 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WebInput + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WebInput { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private String createdAt; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; + + public static final String SERIALIZED_NAME_AUTO_LAUNCH = "auto_launch"; + @SerializedName(SERIALIZED_NAME_AUTO_LAUNCH) + private Boolean autoLaunch; + + public static final String SERIALIZED_NAME_LIVE_STREAM_ID = "live_stream_id"; + @SerializedName(SERIALIZED_NAME_LIVE_STREAM_ID) + private String liveStreamId; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + IDLE("idle"), + + LAUNCHING("launching"), + + STREAMING("streaming"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private StatusEnum status; + + public static final String SERIALIZED_NAME_PASSTHROUGH = "passthrough"; + @SerializedName(SERIALIZED_NAME_PASSTHROUGH) + private String passthrough; + + /** + * The resolution of the viewport of the Web Input's browser instance. Defaults to 1920x1080 if not set. + */ + @JsonAdapter(ResolutionEnum.Adapter.class) + public enum ResolutionEnum { + _1920X1080("1920x1080"), + + _1280X720("1280x720"), + + _1080X1920("1080x1920"), + + _720X1280("720x1280"), + + _1080X1080("1080x1080"), + + _720X720("720x720"); + + private String value; + + ResolutionEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ResolutionEnum fromValue(String value) { + for (ResolutionEnum b : ResolutionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ResolutionEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ResolutionEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ResolutionEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_RESOLUTION = "resolution"; + @SerializedName(SERIALIZED_NAME_RESOLUTION) + private ResolutionEnum resolution = ResolutionEnum._1920X1080; + + public static final String SERIALIZED_NAME_TIMEOUT = "timeout"; + @SerializedName(SERIALIZED_NAME_TIMEOUT) + private Integer timeout = 3600; + + + public WebInput id(String id) { + + this.id = id; + return this; + } + + /** + * Unique identifier for the Web Input. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Unique identifier for the Web Input.") + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public WebInput createdAt(String createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Time the Web Input was created, defined as a Unix timestamp (seconds since epoch). + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Time the Web Input was created, defined as a Unix timestamp (seconds since epoch).") + + public String getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + + public WebInput url(String url) { + + this.url = url; + return this; + } + + /** + * The URL for the Web Input to load. + * @return url + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The URL for the Web Input to load.") + + public String getUrl() { + return url; + } + + + public void setUrl(String url) { + this.url = url; + } + + + public WebInput autoLaunch(Boolean autoLaunch) { + + this.autoLaunch = autoLaunch; + return this; + } + + /** + * When set to `true` the Web Input will automatically launch and start streaming immediately after creation + * @return autoLaunch + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "When set to `true` the Web Input will automatically launch and start streaming immediately after creation") + + public Boolean getAutoLaunch() { + return autoLaunch; + } + + + public void setAutoLaunch(Boolean autoLaunch) { + this.autoLaunch = autoLaunch; + } + + + public WebInput liveStreamId(String liveStreamId) { + + this.liveStreamId = liveStreamId; + return this; + } + + /** + * The Live Stream ID to broadcast this Web Input to + * @return liveStreamId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The Live Stream ID to broadcast this Web Input to") + + public String getLiveStreamId() { + return liveStreamId; + } + + + public void setLiveStreamId(String liveStreamId) { + this.liveStreamId = liveStreamId; + } + + + public WebInput status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public WebInput passthrough(String passthrough) { + + this.passthrough = passthrough; + return this; + } + + /** + * Arbitrary metadata that will be included in the Web Input details and related webhooks. Can be used to store your own ID for the Web Input. **Max: 255 characters**. + * @return passthrough + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Arbitrary metadata that will be included in the Web Input details and related webhooks. Can be used to store your own ID for the Web Input. **Max: 255 characters**.") + + public String getPassthrough() { + return passthrough; + } + + + public void setPassthrough(String passthrough) { + this.passthrough = passthrough; + } + + + public WebInput resolution(ResolutionEnum resolution) { + + this.resolution = resolution; + return this; + } + + /** + * The resolution of the viewport of the Web Input's browser instance. Defaults to 1920x1080 if not set. + * @return resolution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The resolution of the viewport of the Web Input's browser instance. Defaults to 1920x1080 if not set.") + + public ResolutionEnum getResolution() { + return resolution; + } + + + public void setResolution(ResolutionEnum resolution) { + this.resolution = resolution; + } + + + public WebInput timeout(Integer timeout) { + + this.timeout = timeout; + return this; + } + + /** + * The number of seconds that the Web Input should stream for before automatically shutting down. + * @return timeout + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The number of seconds that the Web Input should stream for before automatically shutting down.") + + public Integer getTimeout() { + return timeout; + } + + + public void setTimeout(Integer timeout) { + this.timeout = timeout; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebInput webInput = (WebInput) o; + return Objects.equals(this.id, webInput.id) && + Objects.equals(this.createdAt, webInput.createdAt) && + Objects.equals(this.url, webInput.url) && + Objects.equals(this.autoLaunch, webInput.autoLaunch) && + Objects.equals(this.liveStreamId, webInput.liveStreamId) && + Objects.equals(this.status, webInput.status) && + Objects.equals(this.passthrough, webInput.passthrough) && + Objects.equals(this.resolution, webInput.resolution) && + Objects.equals(this.timeout, webInput.timeout); + } + + @Override + public int hashCode() { + return Objects.hash(id, createdAt, url, autoLaunch, liveStreamId, status, passthrough, resolution, timeout); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebInput {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" autoLaunch: ").append(toIndentedString(autoLaunch)).append("\n"); + sb.append(" liveStreamId: ").append(toIndentedString(liveStreamId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" passthrough: ").append(toIndentedString(passthrough)).append("\n"); + sb.append(" resolution: ").append(toIndentedString(resolution)).append("\n"); + sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/mux/sdk/models/WebInputResponse.java b/src/main/java/com/mux/sdk/models/WebInputResponse.java new file mode 100644 index 0000000..b31cc28 --- /dev/null +++ b/src/main/java/com/mux/sdk/models/WebInputResponse.java @@ -0,0 +1,99 @@ +/* + * Mux API + * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. + * + * The version of the OpenAPI document: v1 + * Contact: devex@mux.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.mux.sdk.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.mux.sdk.models.WebInput; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WebInputResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WebInputResponse { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private WebInput data = null; + + + public WebInputResponse data(WebInput data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public WebInput getData() { + return data; + } + + + public void setData(WebInput data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebInputResponse webInputResponse = (WebInputResponse) o; + return Objects.equals(this.data, webInputResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebInputResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} +