From 1b8fa8f9503e2d1efa55ad232a647ef53c520dff Mon Sep 17 00:00:00 2001 From: Jared Smith Date: Tue, 18 Apr 2023 12:23:02 -0400 Subject: [PATCH] Bump to version 0.6.3 Signed-off-by: Jared Smith --- .openapi-generator/FILES | 2 + README.md | 10 +- build.gradle | 2 +- docs/AssetNonStandardInputReasons.md | 1 + docs/CreateLiveStreamRequest.md | 2 +- ...iveryReportDeliveredSecondsByResolution.md | 4 +- docs/DirectUploadsApi.md | 2 +- docs/LiveStream.md | 4 +- docs/MetricsApi.md | 4 +- docs/MonitoringApi.md | 7 +- docs/RealTimeApi.md | 5 +- docs/SigningKeysApi.md | 287 ++++++++ docs/UpdateLiveStreamRequest.md | 2 +- docs/UrlSigningKeysApi.md | 8 +- docs/VideoView.md | 5 + gen/generator-config.json | 2 +- src/main/java/com/mux/ApiClient.java | 2 +- .../java/com/mux/sdk/DirectUploadsApi.java | 2 +- src/main/java/com/mux/sdk/MonitoringApi.java | 37 +- src/main/java/com/mux/sdk/RealTimeApi.java | 37 +- src/main/java/com/mux/sdk/SigningKeysApi.java | 648 ++++++++++++++++++ .../java/com/mux/sdk/UrlSigningKeysApi.java | 52 +- .../models/AssetNonStandardInputReasons.java | 33 +- .../sdk/models/CreateLiveStreamRequest.java | 4 +- ...eryReportDeliveredSecondsByResolution.java | 66 +- .../java/com/mux/sdk/models/LiveStream.java | 8 +- .../sdk/models/UpdateLiveStreamRequest.java | 4 +- .../java/com/mux/sdk/models/VideoView.java | 149 +++- 28 files changed, 1325 insertions(+), 64 deletions(-) create mode 100644 docs/SigningKeysApi.md create mode 100644 src/main/java/com/mux/sdk/SigningKeysApi.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9d2cd78..4492e51 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -132,6 +132,7 @@ docs/Score.md docs/SignalLiveStreamCompleteResponse.md docs/SigningKey.md docs/SigningKeyResponse.md +docs/SigningKeysApi.md docs/SimulcastTarget.md docs/SimulcastTargetResponse.md docs/Space.md @@ -198,6 +199,7 @@ src/main/java/com/mux/sdk/MonitoringApi.java src/main/java/com/mux/sdk/PlaybackIdApi.java src/main/java/com/mux/sdk/PlaybackRestrictionsApi.java src/main/java/com/mux/sdk/RealTimeApi.java +src/main/java/com/mux/sdk/SigningKeysApi.java src/main/java/com/mux/sdk/SpacesApi.java src/main/java/com/mux/sdk/TranscriptionVocabulariesApi.java src/main/java/com/mux/sdk/UrlSigningKeysApi.java diff --git a/README.md b/README.md index 9c572a9..65ac462 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.6.0 + 0.6.3 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.6.0" +compile "com.mux:mux-sdk-java:0.6.3" ``` ### Others @@ -71,7 +71,7 @@ mvn clean package Then manually install the following JARs: -* `target/mux-sdk-java-0.6.0.jar` +* `target/mux-sdk-java-0.6.3.jar` * `target/lib/*.jar` ## Getting Started @@ -188,6 +188,10 @@ Class | Method | HTTP request | Description *RealTimeApi* | [**getRealtimeTimeseries**](docs/RealTimeApi.md#getRealtimeTimeseries) | **GET** /data/v1/realtime/metrics/{REALTIME_METRIC_ID}/timeseries | Get Real-Time Timeseries *RealTimeApi* | [**listRealtimeDimensions**](docs/RealTimeApi.md#listRealtimeDimensions) | **GET** /data/v1/realtime/dimensions | List Real-Time Dimensions *RealTimeApi* | [**listRealtimeMetrics**](docs/RealTimeApi.md#listRealtimeMetrics) | **GET** /data/v1/realtime/metrics | List Real-Time Metrics +*SigningKeysApi* | [**createSigningKey**](docs/SigningKeysApi.md#createSigningKey) | **POST** /system/v1/signing-keys | Create a signing key +*SigningKeysApi* | [**deleteSigningKey**](docs/SigningKeysApi.md#deleteSigningKey) | **DELETE** /system/v1/signing-keys/{SIGNING_KEY_ID} | Delete a signing key +*SigningKeysApi* | [**getSigningKey**](docs/SigningKeysApi.md#getSigningKey) | **GET** /system/v1/signing-keys/{SIGNING_KEY_ID} | Retrieve a signing key +*SigningKeysApi* | [**listSigningKeys**](docs/SigningKeysApi.md#listSigningKeys) | **GET** /system/v1/signing-keys | List signing keys *SpacesApi* | [**createSpace**](docs/SpacesApi.md#createSpace) | **POST** /video/v1/spaces | Create a space *SpacesApi* | [**createSpaceBroadcast**](docs/SpacesApi.md#createSpaceBroadcast) | **POST** /video/v1/spaces/{SPACE_ID}/broadcasts | Create a space broadcast *SpacesApi* | [**deleteSpace**](docs/SpacesApi.md#deleteSpace) | **DELETE** /video/v1/spaces/{SPACE_ID} | Delete a space diff --git a/build.gradle b/build.gradle index 91741b5..ae3163a 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ plugins { } group = 'com.mux' -version = '0.6.0' +version = '0.6.3' repositories { mavenCentral() diff --git a/docs/AssetNonStandardInputReasons.md b/docs/AssetNonStandardInputReasons.md index 140cdff..a483147 100644 --- a/docs/AssetNonStandardInputReasons.md +++ b/docs/AssetNonStandardInputReasons.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **videoEditList** | [**VideoEditListEnum**](#VideoEditListEnum) | Video Edit List reason indicates that the input file's video track contains a complex Edit Decision List. | [optional] **audioEditList** | [**AudioEditListEnum**](#AudioEditListEnum) | Audio Edit List reason indicates that the input file's audio track contains a complex Edit Decision List. | [optional] **unexpectedMediaFileParameters** | [**UnexpectedMediaFileParametersEnum**](#UnexpectedMediaFileParametersEnum) | A catch-all reason when the input file in created with non-standard encoding parameters. | [optional] +**unsupportedPixelFormat** | **String** | The video pixel format, as a string, returned by libav. Considered non-standard if not one of yuv420p or yuvj420p. | [optional] diff --git a/docs/CreateLiveStreamRequest.md b/docs/CreateLiveStreamRequest.md index 57a46ea..869d290 100644 --- a/docs/CreateLiveStreamRequest.md +++ b/docs/CreateLiveStreamRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **playbackPolicy** | **java.util.List<PlaybackPolicy>** | | [optional] **newAssetSettings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [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. Defaults to 60 seconds on the API if not specified. 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] +**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. Defaults to 60 seconds on the API if not specified. 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] **passthrough** | **String** | | [optional] diff --git a/docs/DeliveryReportDeliveredSecondsByResolution.md b/docs/DeliveryReportDeliveredSecondsByResolution.md index 11fe9d6..d804536 100644 --- a/docs/DeliveryReportDeliveredSecondsByResolution.md +++ b/docs/DeliveryReportDeliveredSecondsByResolution.md @@ -7,7 +7,9 @@ Seconds delivered broken into resolution tiers. Each tier will only be displayed Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**tier1080p** | **Double** | Total number of delivered seconds during this time window that had a resolution larger than the 720p tier (over 921,600 pixels total). | [optional] +**tier2160p** | **Double** | Total number of delivered seconds during this time window that had a resolution larger than the 1440p tier (over 4,194,304 pixels total). | [optional] +**tier1440p** | **Double** | Total number of delivered seconds during this time window that had a resolution larger than the 1080p tier but less than or equal to the 2160p tier (over 2,073,600 and <= 4,194,304 pixels total). | [optional] +**tier1080p** | **Double** | Total number of delivered seconds during this time window that had a resolution larger than the 720p tier but less than or equal to the 1440p tier (over 921,600 and <= 2,073,600 pixels total). | [optional] **tier720p** | **Double** | Total number of delivered seconds during this time window that had a resolution within the 720p tier (up to 921,600 pixels total, based on typical 1280x720). | [optional] **tierAudioOnly** | **Double** | Total number of delivered seconds during this time window that had a resolution of audio only. | [optional] diff --git a/docs/DirectUploadsApi.md b/docs/DirectUploadsApi.md index afa84db..602c751 100644 --- a/docs/DirectUploadsApi.md +++ b/docs/DirectUploadsApi.md @@ -224,7 +224,7 @@ Name | Type | Description | Notes List direct uploads -Lists currently extant direct uploads in the current environment. +Lists direct uploads in the current environment. ### Example ```java diff --git a/docs/LiveStream.md b/docs/LiveStream.md index 46831d9..966162a 100644 --- a/docs/LiveStream.md +++ b/docs/LiveStream.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **createdAt** | **String** | Time the Live Stream was created, defined as a Unix timestamp (seconds since epoch). | [optional] **streamKey** | **String** | Unique key used for streaming to a Mux RTMP endpoint. This should be considered as sensitive as credentials, anyone with this stream key can begin streaming. | [optional] **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 Assets that were created from this live stream. | [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] **newAssetSettings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes **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] **embeddedSubtitles** | [**java.util.List<LiveStreamEmbeddedSubtitleSettings>**](LiveStreamEmbeddedSubtitleSettings.md) | Describes the embedded closed caption configuration of the incoming live stream. | [optional] **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] -**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). 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] +**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] diff --git a/docs/MetricsApi.md b/docs/MetricsApi.md index 222821d..f1a85e8 100644 --- a/docs/MetricsApi.md +++ b/docs/MetricsApi.md @@ -231,7 +231,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **timeframe** | [**java.util.List<String>**](String.md)| Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days` | [optional] **filters** | [**java.util.List<String>**](String.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] - **dimension** | **String**| Dimension the specified value belongs to | [optional] [enum: asn, browser, browser_version, cdn, continent_code, country, exit_before_video_start, experiment_name, operating_system, operating_system_version, player_autoplay, player_error_code, player_mux_plugin_name, player_mux_plugin_version, player_name, player_preload, player_remote_played, player_software, player_software_version, player_version, preroll_ad_asset_hostname, preroll_ad_tag_hostname, preroll_played, preroll_requested, region, source_hostname, source_type, stream_type, sub_property_id, video_encoding_variant, video_id, video_series, video_title, view_session_id, viewer_connection_type, viewer_device_category, viewer_device_manufacturer, viewer_device_model, viewer_device_name, viewer_user_id] + **dimension** | **String**| Dimension the specified value belongs to | [optional] [enum: asn, asset_id, browser, browser_version, cdn, continent_code, country, exit_before_video_start, experiment_name, live_stream_id, operating_system, operating_system_version, playback_id, player_autoplay, player_error_code, player_mux_plugin_name, player_mux_plugin_version, player_name, player_preload, player_remote_played, player_software, player_software_version, player_version, preroll_ad_asset_hostname, preroll_ad_tag_hostname, preroll_played, preroll_requested, region, source_hostname, source_type, stream_type, sub_property_id, video_encoding_variant, video_id, video_series, video_title, view_session_id, viewer_connection_type, viewer_device_category, viewer_device_manufacturer, viewer_device_model, viewer_device_name, viewer_user_id] **value** | **String**| Value to show all available metrics for | [optional] ### Return type @@ -318,7 +318,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **METRIC_ID** | **String**| ID of the Metric | [enum: aggregate_startup_time, downscale_percentage, exits_before_video_start, max_downscale_percentage, max_upscale_percentage, page_load_time, playback_failure_percentage, playback_failure_score, player_startup_time, playing_time, rebuffer_count, rebuffer_duration, rebuffer_frequency, rebuffer_percentage, rebuffer_score, requests_for_first_preroll, seek_latency, startup_time_score, unique_viewers, upscale_percentage, video_quality_score, video_startup_preroll_load_time, video_startup_preroll_request_time, video_startup_time, viewer_experience_score, views, weighted_average_bitrate] - **groupBy** | **String**| Breakdown value to group the results by | [optional] [enum: asn, browser, browser_version, cdn, continent_code, country, exit_before_video_start, experiment_name, operating_system, operating_system_version, player_autoplay, player_error_code, player_mux_plugin_name, player_mux_plugin_version, player_name, player_preload, player_remote_played, player_software, player_software_version, player_version, preroll_ad_asset_hostname, preroll_ad_tag_hostname, preroll_played, preroll_requested, region, source_hostname, source_type, stream_type, sub_property_id, video_encoding_variant, video_id, video_series, video_title, view_session_id, viewer_connection_type, viewer_device_category, viewer_device_manufacturer, viewer_device_model, viewer_device_name, viewer_user_id] + **groupBy** | **String**| Breakdown value to group the results by | [optional] [enum: asn, asset_id, browser, browser_version, cdn, continent_code, country, exit_before_video_start, experiment_name, live_stream_id, operating_system, operating_system_version, playback_id, player_autoplay, player_error_code, player_mux_plugin_name, player_mux_plugin_version, player_name, player_preload, player_remote_played, player_software, player_software_version, player_version, preroll_ad_asset_hostname, preroll_ad_tag_hostname, preroll_played, preroll_requested, region, source_hostname, source_type, stream_type, sub_property_id, video_encoding_variant, video_id, video_series, video_title, view_session_id, viewer_connection_type, viewer_device_category, viewer_device_manufacturer, viewer_device_model, viewer_device_name, viewer_user_id] **measurement** | **String**| Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] [enum: 95th, median, avg, count, sum] **filters** | [**java.util.List<String>**](String.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] **limit** | **Integer**| Number of items to include in the response | [optional] [default to 25] diff --git a/docs/MonitoringApi.md b/docs/MonitoringApi.md index 6721839..dbbe8bd 100644 --- a/docs/MonitoringApi.md +++ b/docs/MonitoringApi.md @@ -71,7 +71,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **MONITORING_METRIC_ID** | **String**| ID of the Monitoring Metric | [enum: current-concurrent-viewers, current-rebuffering-percentage, exits-before-video-start, playback-failure-percentage, current-average-bitrate] - **dimension** | **String**| Dimension the specified value belongs to | [optional] [enum: asn, cdn, country, operating_system, player_name, region, stream_type, sub_property_id, video_series, video_title] + **dimension** | **String**| Dimension the specified value belongs to | [optional] [enum: asn, cdn, country, operating_system, player_name, region, stream_type, sub_property_id, video_series, video_title, view_has_ad] **timestamp** | **Integer**| Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp. | [optional] **filters** | [**java.util.List<String>**](String.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] **orderBy** | **String**| Value to order the results by | [optional] [enum: negative_impact, value, views, field] @@ -169,7 +169,7 @@ Name | Type | Description | Notes # **getMonitoringTimeseries** -> GetMonitoringTimeseriesResponse getMonitoringTimeseries(MONITORING_METRIC_ID).filters(filters).execute(); +> GetMonitoringTimeseriesResponse getMonitoringTimeseries(MONITORING_METRIC_ID).filters(filters).timestamp(timestamp).execute(); Get Monitoring Timeseries @@ -198,9 +198,11 @@ public class Example { MonitoringApi apiInstance = new MonitoringApi(defaultClient); String MONITORING_METRIC_ID = "current-concurrent-viewers"; // String | ID of the Monitoring Metric java.util.List filters = Arrays.asList(); // java.util.List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` + Integer timestamp = 56; // Integer | Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago. try { GetMonitoringTimeseriesResponse result = apiInstance.getMonitoringTimeseries(MONITORING_METRIC_ID) .filters(filters) + .timestamp(timestamp) .execute(); System.out.println(result); } catch (ApiException e) { @@ -220,6 +222,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **MONITORING_METRIC_ID** | **String**| ID of the Monitoring Metric | [enum: current-concurrent-viewers, current-rebuffering-percentage, exits-before-video-start, playback-failure-percentage, current-average-bitrate] **filters** | [**java.util.List<String>**](String.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **timestamp** | **Integer**| Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago. | [optional] ### Return type diff --git a/docs/RealTimeApi.md b/docs/RealTimeApi.md index f1ac282..eae82de 100644 --- a/docs/RealTimeApi.md +++ b/docs/RealTimeApi.md @@ -169,7 +169,7 @@ Name | Type | Description | Notes # **getRealtimeTimeseries** -> GetRealTimeTimeseriesResponse getRealtimeTimeseries(REALTIME_METRIC_ID).filters(filters).execute(); +> GetRealTimeTimeseriesResponse getRealtimeTimeseries(REALTIME_METRIC_ID).filters(filters).timestamp(timestamp).execute(); Get Real-Time Timeseries @@ -198,9 +198,11 @@ public class Example { RealTimeApi apiInstance = new RealTimeApi(defaultClient); String REALTIME_METRIC_ID = "current-concurrent-viewers"; // String | ID of the Realtime Metric java.util.List filters = Arrays.asList(); // java.util.List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` + Integer timestamp = 56; // Integer | Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago. try { GetRealTimeTimeseriesResponse result = apiInstance.getRealtimeTimeseries(REALTIME_METRIC_ID) .filters(filters) + .timestamp(timestamp) .execute(); System.out.println(result); } catch (ApiException e) { @@ -220,6 +222,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **REALTIME_METRIC_ID** | **String**| ID of the Realtime Metric | [enum: current-concurrent-viewers, current-rebuffering-percentage, exits-before-video-start, playback-failure-percentage, current-average-bitrate] **filters** | [**java.util.List<String>**](String.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **timestamp** | **Integer**| Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago. | [optional] ### Return type diff --git a/docs/SigningKeysApi.md b/docs/SigningKeysApi.md new file mode 100644 index 0000000..4d8b893 --- /dev/null +++ b/docs/SigningKeysApi.md @@ -0,0 +1,287 @@ +# SigningKeysApi + +All URIs are relative to *https://api.mux.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createSigningKey**](SigningKeysApi.md#createSigningKey) | **POST** /system/v1/signing-keys | Create a signing key +[**deleteSigningKey**](SigningKeysApi.md#deleteSigningKey) | **DELETE** /system/v1/signing-keys/{SIGNING_KEY_ID} | Delete a signing key +[**getSigningKey**](SigningKeysApi.md#getSigningKey) | **GET** /system/v1/signing-keys/{SIGNING_KEY_ID} | Retrieve a signing key +[**listSigningKeys**](SigningKeysApi.md#listSigningKeys) | **GET** /system/v1/signing-keys | List signing keys + + + +# **createSigningKey** +> SigningKeyResponse createSigningKey().execute(); + +Create a signing key + +Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. + +### 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.SigningKeysApi; + +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"); + + SigningKeysApi apiInstance = new SigningKeysApi(defaultClient); + try { + SigningKeyResponse result = apiInstance.createSigningKey() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SigningKeysApi#createSigningKey"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SigningKeyResponse**](SigningKeyResponse.md) + +### Authorization + +[accessToken](../README.md#accessToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | + + +# **deleteSigningKey** +> deleteSigningKey(SIGNING_KEY_ID).execute(); + +Delete a signing key + +Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no JWTs can be signed using the key again. + +### 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.SigningKeysApi; + +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"); + + SigningKeysApi apiInstance = new SigningKeysApi(defaultClient); + String SIGNING_KEY_ID = "SIGNING_KEY_ID_example"; // String | The ID of the signing key. + try { + apiInstance.deleteSigningKey(SIGNING_KEY_ID) + .execute(); + } catch (ApiException e) { + System.err.println("Exception when calling SigningKeysApi#deleteSigningKey"); + 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 +------------- | ------------- | ------------- | ------------- + **SIGNING_KEY_ID** | **String**| The ID of the signing key. | + +### 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 | - | + + +# **getSigningKey** +> SigningKeyResponse getSigningKey(SIGNING_KEY_ID).execute(); + +Retrieve a signing key + +Retrieves the details of a signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** + +### 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.SigningKeysApi; + +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"); + + SigningKeysApi apiInstance = new SigningKeysApi(defaultClient); + String SIGNING_KEY_ID = "SIGNING_KEY_ID_example"; // String | The ID of the signing key. + try { + SigningKeyResponse result = apiInstance.getSigningKey(SIGNING_KEY_ID) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SigningKeysApi#getSigningKey"); + 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 +------------- | ------------- | ------------- | ------------- + **SIGNING_KEY_ID** | **String**| The ID of the signing key. | + +### Return type + +[**SigningKeyResponse**](SigningKeyResponse.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 | - | + + +# **listSigningKeys** +> ListSigningKeysResponse listSigningKeys().limit(limit).page(page).execute(); + +List signing keys + +Returns a list of signing keys. + +### 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.SigningKeysApi; + +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"); + + SigningKeysApi apiInstance = new SigningKeysApi(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 { + ListSigningKeysResponse result = apiInstance.listSigningKeys() + .limit(limit) + .page(page) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SigningKeysApi#listSigningKeys"); + 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 + +[**ListSigningKeysResponse**](ListSigningKeysResponse.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 | - | + diff --git a/docs/UpdateLiveStreamRequest.md b/docs/UpdateLiveStreamRequest.md index 41bae82..595308f 100644 --- a/docs/UpdateLiveStreamRequest.md +++ b/docs/UpdateLiveStreamRequest.md @@ -8,7 +8,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] -**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. 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] +**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] **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/UrlSigningKeysApi.md b/docs/UrlSigningKeysApi.md index aa9ed35..9a4a4e3 100644 --- a/docs/UrlSigningKeysApi.md +++ b/docs/UrlSigningKeysApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description Create a URL signing key -Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. +This route is now deprecated, please use the `Signing Keys` API. Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. Note: Any new access tokens authenticating this route will be required to have `System` level permissions. ### Example ```java @@ -81,7 +81,7 @@ This endpoint does not need any parameter. Delete a URL signing key -Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no URLs can be signed using the key again. +This route is now deprecated, please use the `Signing Keys` API. Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no URLs can be signed using the key again. Note: Any new access tokens authenticating this route will be required to have `System` level permissions. ### Example ```java @@ -149,7 +149,7 @@ null (empty response body) Retrieve a URL signing key -Retrieves the details of a URL signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** +This route is now deprecated, please use the `Signing Keys` API. Retrieves the details of a URL signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** Note: Any new access tokens authenticating this route will be required to have `System` level permissions. ### Example ```java @@ -218,7 +218,7 @@ Name | Type | Description | Notes List URL signing keys -Returns a list of URL signing keys. +This route is now deprecated, please use the `Signing Keys` API. Returns a list of URL signing keys. Note: Any new access tokens authenticating this route will be required to have `System` level permissions. ### Example ```java diff --git a/docs/VideoView.md b/docs/VideoView.md index f026408..6f18c74 100644 --- a/docs/VideoView.md +++ b/docs/VideoView.md @@ -131,6 +131,11 @@ Name | Type | Description | Notes **custom3** | **String** | | [optional] **custom4** | **String** | | [optional] **custom5** | **String** | | [optional] +**custom6** | **String** | | [optional] +**custom7** | **String** | | [optional] +**custom8** | **String** | | [optional] +**custom9** | **String** | | [optional] +**custom10** | **String** | | [optional] diff --git a/gen/generator-config.json b/gen/generator-config.json index c23e7d5..facae86 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.6.0", + "artifactVersion": "0.6.3", "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 1a0ddf7..4a1618c 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.6.0"); + setUserAgent("Mux Java | 0.6.3"); authentications = new HashMap(); } diff --git a/src/main/java/com/mux/sdk/DirectUploadsApi.java b/src/main/java/com/mux/sdk/DirectUploadsApi.java index 765240b..1e6e7a5 100644 --- a/src/main/java/com/mux/sdk/DirectUploadsApi.java +++ b/src/main/java/com/mux/sdk/DirectUploadsApi.java @@ -651,7 +651,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac /** * List direct uploads - * Lists currently extant direct uploads in the current environment. + * Lists direct uploads in the current environment. * @return APIlistDirectUploadsRequest * @http.response.details diff --git a/src/main/java/com/mux/sdk/MonitoringApi.java b/src/main/java/com/mux/sdk/MonitoringApi.java index 7039448..32aa381 100644 --- a/src/main/java/com/mux/sdk/MonitoringApi.java +++ b/src/main/java/com/mux/sdk/MonitoringApi.java @@ -438,7 +438,7 @@ public okhttp3.Call executeAsync(final ApiCallback filters, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMonitoringTimeseriesCall(String MONITORING_METRIC_ID, java.util.List filters, Integer timestamp, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -455,6 +455,10 @@ private okhttp3.Call getMonitoringTimeseriesCall(String MONITORING_METRIC_ID, ja localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "filters[]", filters)); } + if (timestamp != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timestamp", timestamp)); + } + final String[] localVarAccepts = { "application/json" }; @@ -474,7 +478,7 @@ private okhttp3.Call getMonitoringTimeseriesCall(String MONITORING_METRIC_ID, ja } @SuppressWarnings("rawtypes") - private okhttp3.Call getMonitoringTimeseriesValidateBeforeCall(String MONITORING_METRIC_ID, java.util.List filters, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMonitoringTimeseriesValidateBeforeCall(String MONITORING_METRIC_ID, java.util.List filters, Integer timestamp, final ApiCallback _callback) throws ApiException { // verify the required parameter 'MONITORING_METRIC_ID' is set if (MONITORING_METRIC_ID == null) { @@ -482,21 +486,21 @@ private okhttp3.Call getMonitoringTimeseriesValidateBeforeCall(String MONITORING } - okhttp3.Call localVarCall = getMonitoringTimeseriesCall(MONITORING_METRIC_ID, filters, _callback); + okhttp3.Call localVarCall = getMonitoringTimeseriesCall(MONITORING_METRIC_ID, filters, timestamp, _callback); return localVarCall; } - private ApiResponse getMonitoringTimeseriesWithHttpInfo(String MONITORING_METRIC_ID, java.util.List filters) throws ApiException { - okhttp3.Call localVarCall = getMonitoringTimeseriesValidateBeforeCall(MONITORING_METRIC_ID, filters, null); + private ApiResponse getMonitoringTimeseriesWithHttpInfo(String MONITORING_METRIC_ID, java.util.List filters, Integer timestamp) throws ApiException { + okhttp3.Call localVarCall = getMonitoringTimeseriesValidateBeforeCall(MONITORING_METRIC_ID, filters, timestamp, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getMonitoringTimeseriesAsync(String MONITORING_METRIC_ID, java.util.List filters, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMonitoringTimeseriesAsync(String MONITORING_METRIC_ID, java.util.List filters, Integer timestamp, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getMonitoringTimeseriesValidateBeforeCall(MONITORING_METRIC_ID, filters, _callback); + okhttp3.Call localVarCall = getMonitoringTimeseriesValidateBeforeCall(MONITORING_METRIC_ID, filters, timestamp, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -505,6 +509,7 @@ private okhttp3.Call getMonitoringTimeseriesAsync(String MONITORING_METRIC_ID, j public class APIgetMonitoringTimeseriesRequest { private final String MONITORING_METRIC_ID; private java.util.List filters; + private Integer timestamp; private APIgetMonitoringTimeseriesRequest(String MONITORING_METRIC_ID) { this.MONITORING_METRIC_ID = MONITORING_METRIC_ID; @@ -520,6 +525,16 @@ public APIgetMonitoringTimeseriesRequest filters(java.util.List filters) return this; } + /** + * Set timestamp + * @param timestamp Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago. (optional) + * @return APIgetMonitoringTimeseriesRequest + */ + public APIgetMonitoringTimeseriesRequest timestamp(Integer timestamp) { + this.timestamp = timestamp; + return this; + } + /** * Build call for getMonitoringTimeseries * @param _callback ApiCallback API callback @@ -533,7 +548,7 @@ public APIgetMonitoringTimeseriesRequest filters(java.util.List filters)
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getMonitoringTimeseriesCall(MONITORING_METRIC_ID, filters, _callback); + return getMonitoringTimeseriesCall(MONITORING_METRIC_ID, filters, timestamp, _callback); } /** @@ -548,7 +563,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetMonitoringTimeseriesResponse execute() throws ApiException { - ApiResponse localVarResp = getMonitoringTimeseriesWithHttpInfo(MONITORING_METRIC_ID, filters); + ApiResponse localVarResp = getMonitoringTimeseriesWithHttpInfo(MONITORING_METRIC_ID, filters, timestamp); return localVarResp.getData(); } @@ -564,7 +579,7 @@ public GetMonitoringTimeseriesResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getMonitoringTimeseriesWithHttpInfo(MONITORING_METRIC_ID, filters); + return getMonitoringTimeseriesWithHttpInfo(MONITORING_METRIC_ID, filters, timestamp); } /** @@ -580,7 +595,7 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getMonitoringTimeseriesAsync(MONITORING_METRIC_ID, filters, _callback); + return getMonitoringTimeseriesAsync(MONITORING_METRIC_ID, filters, timestamp, _callback); } } diff --git a/src/main/java/com/mux/sdk/RealTimeApi.java b/src/main/java/com/mux/sdk/RealTimeApi.java index d2eb00f..2c8f230 100644 --- a/src/main/java/com/mux/sdk/RealTimeApi.java +++ b/src/main/java/com/mux/sdk/RealTimeApi.java @@ -460,7 +460,7 @@ public okhttp3.Call executeAsync(final ApiCallback filters, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRealtimeTimeseriesCall(String REALTIME_METRIC_ID, java.util.List filters, Integer timestamp, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -477,6 +477,10 @@ private okhttp3.Call getRealtimeTimeseriesCall(String REALTIME_METRIC_ID, java.u localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "filters[]", filters)); } + if (timestamp != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timestamp", timestamp)); + } + final String[] localVarAccepts = { "application/json" }; @@ -497,7 +501,7 @@ private okhttp3.Call getRealtimeTimeseriesCall(String REALTIME_METRIC_ID, java.u @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call getRealtimeTimeseriesValidateBeforeCall(String REALTIME_METRIC_ID, java.util.List filters, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRealtimeTimeseriesValidateBeforeCall(String REALTIME_METRIC_ID, java.util.List filters, Integer timestamp, final ApiCallback _callback) throws ApiException { // verify the required parameter 'REALTIME_METRIC_ID' is set if (REALTIME_METRIC_ID == null) { @@ -505,21 +509,21 @@ private okhttp3.Call getRealtimeTimeseriesValidateBeforeCall(String REALTIME_MET } - okhttp3.Call localVarCall = getRealtimeTimeseriesCall(REALTIME_METRIC_ID, filters, _callback); + okhttp3.Call localVarCall = getRealtimeTimeseriesCall(REALTIME_METRIC_ID, filters, timestamp, _callback); return localVarCall; } - private ApiResponse getRealtimeTimeseriesWithHttpInfo(String REALTIME_METRIC_ID, java.util.List filters) throws ApiException { - okhttp3.Call localVarCall = getRealtimeTimeseriesValidateBeforeCall(REALTIME_METRIC_ID, filters, null); + private ApiResponse getRealtimeTimeseriesWithHttpInfo(String REALTIME_METRIC_ID, java.util.List filters, Integer timestamp) throws ApiException { + okhttp3.Call localVarCall = getRealtimeTimeseriesValidateBeforeCall(REALTIME_METRIC_ID, filters, timestamp, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getRealtimeTimeseriesAsync(String REALTIME_METRIC_ID, java.util.List filters, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRealtimeTimeseriesAsync(String REALTIME_METRIC_ID, java.util.List filters, Integer timestamp, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getRealtimeTimeseriesValidateBeforeCall(REALTIME_METRIC_ID, filters, _callback); + okhttp3.Call localVarCall = getRealtimeTimeseriesValidateBeforeCall(REALTIME_METRIC_ID, filters, timestamp, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -528,6 +532,7 @@ private okhttp3.Call getRealtimeTimeseriesAsync(String REALTIME_METRIC_ID, java. public class APIgetRealtimeTimeseriesRequest { private final String REALTIME_METRIC_ID; private java.util.List filters; + private Integer timestamp; private APIgetRealtimeTimeseriesRequest(String REALTIME_METRIC_ID) { this.REALTIME_METRIC_ID = REALTIME_METRIC_ID; @@ -543,6 +548,16 @@ public APIgetRealtimeTimeseriesRequest filters(java.util.List filters) { return this; } + /** + * Set timestamp + * @param timestamp Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago. (optional) + * @return APIgetRealtimeTimeseriesRequest + */ + public APIgetRealtimeTimeseriesRequest timestamp(Integer timestamp) { + this.timestamp = timestamp; + return this; + } + /** * Build call for getRealtimeTimeseries * @param _callback ApiCallback API callback @@ -558,7 +573,7 @@ public APIgetRealtimeTimeseriesRequest filters(java.util.List filters) { */ @Deprecated public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getRealtimeTimeseriesCall(REALTIME_METRIC_ID, filters, _callback); + return getRealtimeTimeseriesCall(REALTIME_METRIC_ID, filters, timestamp, _callback); } /** @@ -575,7 +590,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ @Deprecated public GetRealTimeTimeseriesResponse execute() throws ApiException { - ApiResponse localVarResp = getRealtimeTimeseriesWithHttpInfo(REALTIME_METRIC_ID, filters); + ApiResponse localVarResp = getRealtimeTimeseriesWithHttpInfo(REALTIME_METRIC_ID, filters, timestamp); return localVarResp.getData(); } @@ -593,7 +608,7 @@ public GetRealTimeTimeseriesResponse execute() throws ApiException { */ @Deprecated public ApiResponse executeWithHttpInfo() throws ApiException { - return getRealtimeTimeseriesWithHttpInfo(REALTIME_METRIC_ID, filters); + return getRealtimeTimeseriesWithHttpInfo(REALTIME_METRIC_ID, filters, timestamp); } /** @@ -611,7 +626,7 @@ public ApiResponse executeWithHttpInfo() throws A */ @Deprecated public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getRealtimeTimeseriesAsync(REALTIME_METRIC_ID, filters, _callback); + return getRealtimeTimeseriesAsync(REALTIME_METRIC_ID, filters, timestamp, _callback); } } diff --git a/src/main/java/com/mux/sdk/SigningKeysApi.java b/src/main/java/com/mux/sdk/SigningKeysApi.java new file mode 100644 index 0000000..d5d2641 --- /dev/null +++ b/src/main/java/com/mux/sdk/SigningKeysApi.java @@ -0,0 +1,648 @@ +/* + * 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.ListSigningKeysResponse; +import com.mux.sdk.models.SigningKeyResponse; +// 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 SigningKeysApi { + private ApiClient localVarApiClient; + + public SigningKeysApi() { + this(Configuration.getDefaultApiClient()); + } + + public SigningKeysApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + private okhttp3.Call createSigningKeyCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/system/v1/signing-keys"; + + 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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createSigningKeyValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = createSigningKeyCall(_callback); + return localVarCall; + + } + + + private ApiResponse createSigningKeyWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = createSigningKeyValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createSigningKeyAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createSigningKeyValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateSigningKeyRequest { + + private APIcreateSigningKeyRequest() { + } + + /** + * Build call for createSigningKey + * @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 Created -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createSigningKeyCall(_callback); + } + + /** + * Execute createSigningKey request + * @return SigningKeyResponse + * @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 Created -
+ */ + public SigningKeyResponse execute() throws ApiException { + ApiResponse localVarResp = createSigningKeyWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute createSigningKey request with HTTP info returned + * @return ApiResponse<SigningKeyResponse> + * @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 Created -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createSigningKeyWithHttpInfo(); + } + + /** + * Execute createSigningKey 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 Created -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createSigningKeyAsync(_callback); + } + } + + /** + * Create a signing key + * Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. + * @return APIcreateSigningKeyRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
201 Created -
+ */ + public APIcreateSigningKeyRequest createSigningKey() { + return new APIcreateSigningKeyRequest(); + } + private okhttp3.Call deleteSigningKeyCall(String SIGNING_KEY_ID, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/system/v1/signing-keys/{SIGNING_KEY_ID}" + .replaceAll("\\{" + "SIGNING_KEY_ID" + "\\}", localVarApiClient.escapeString(SIGNING_KEY_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 deleteSigningKeyValidateBeforeCall(String SIGNING_KEY_ID, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'SIGNING_KEY_ID' is set + if (SIGNING_KEY_ID == null) { + throw new ApiException("Missing the required parameter 'SIGNING_KEY_ID' when calling deleteSigningKey(Async)"); + } + + + okhttp3.Call localVarCall = deleteSigningKeyCall(SIGNING_KEY_ID, _callback); + return localVarCall; + + } + + + private ApiResponse deleteSigningKeyWithHttpInfo(String SIGNING_KEY_ID) throws ApiException { + okhttp3.Call localVarCall = deleteSigningKeyValidateBeforeCall(SIGNING_KEY_ID, null); + return localVarApiClient.execute(localVarCall); + } + + private okhttp3.Call deleteSigningKeyAsync(String SIGNING_KEY_ID, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteSigningKeyValidateBeforeCall(SIGNING_KEY_ID, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + + public class APIdeleteSigningKeyRequest { + private final String SIGNING_KEY_ID; + + private APIdeleteSigningKeyRequest(String SIGNING_KEY_ID) { + this.SIGNING_KEY_ID = SIGNING_KEY_ID; + } + + /** + * Build call for deleteSigningKey + * @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 deleteSigningKeyCall(SIGNING_KEY_ID, _callback); + } + + /** + * Execute deleteSigningKey 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 { + deleteSigningKeyWithHttpInfo(SIGNING_KEY_ID); + } + + /** + * Execute deleteSigningKey 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 deleteSigningKeyWithHttpInfo(SIGNING_KEY_ID); + } + + /** + * Execute deleteSigningKey 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 deleteSigningKeyAsync(SIGNING_KEY_ID, _callback); + } + } + + /** + * Delete a signing key + * Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no JWTs can be signed using the key again. + * @param SIGNING_KEY_ID The ID of the signing key. (required) + * @return APIdeleteSigningKeyRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
204 No Content -
+ */ + public APIdeleteSigningKeyRequest deleteSigningKey(String SIGNING_KEY_ID) { + return new APIdeleteSigningKeyRequest(SIGNING_KEY_ID); + } + private okhttp3.Call getSigningKeyCall(String SIGNING_KEY_ID, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/system/v1/signing-keys/{SIGNING_KEY_ID}" + .replaceAll("\\{" + "SIGNING_KEY_ID" + "\\}", localVarApiClient.escapeString(SIGNING_KEY_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 getSigningKeyValidateBeforeCall(String SIGNING_KEY_ID, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'SIGNING_KEY_ID' is set + if (SIGNING_KEY_ID == null) { + throw new ApiException("Missing the required parameter 'SIGNING_KEY_ID' when calling getSigningKey(Async)"); + } + + + okhttp3.Call localVarCall = getSigningKeyCall(SIGNING_KEY_ID, _callback); + return localVarCall; + + } + + + private ApiResponse getSigningKeyWithHttpInfo(String SIGNING_KEY_ID) throws ApiException { + okhttp3.Call localVarCall = getSigningKeyValidateBeforeCall(SIGNING_KEY_ID, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getSigningKeyAsync(String SIGNING_KEY_ID, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSigningKeyValidateBeforeCall(SIGNING_KEY_ID, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetSigningKeyRequest { + private final String SIGNING_KEY_ID; + + private APIgetSigningKeyRequest(String SIGNING_KEY_ID) { + this.SIGNING_KEY_ID = SIGNING_KEY_ID; + } + + /** + * Build call for getSigningKey + * @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 getSigningKeyCall(SIGNING_KEY_ID, _callback); + } + + /** + * Execute getSigningKey request + * @return SigningKeyResponse + * @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 SigningKeyResponse execute() throws ApiException { + ApiResponse localVarResp = getSigningKeyWithHttpInfo(SIGNING_KEY_ID); + return localVarResp.getData(); + } + + /** + * Execute getSigningKey request with HTTP info returned + * @return ApiResponse<SigningKeyResponse> + * @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 getSigningKeyWithHttpInfo(SIGNING_KEY_ID); + } + + /** + * Execute getSigningKey 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 getSigningKeyAsync(SIGNING_KEY_ID, _callback); + } + } + + /** + * Retrieve a signing key + * Retrieves the details of a signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** + * @param SIGNING_KEY_ID The ID of the signing key. (required) + * @return APIgetSigningKeyRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public APIgetSigningKeyRequest getSigningKey(String SIGNING_KEY_ID) { + return new APIgetSigningKeyRequest(SIGNING_KEY_ID); + } + private okhttp3.Call listSigningKeysCall(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/system/v1/signing-keys"; + + 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 listSigningKeysValidateBeforeCall(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listSigningKeysCall(limit, page, _callback); + return localVarCall; + + } + + + private ApiResponse listSigningKeysWithHttpInfo(Integer limit, Integer page) throws ApiException { + okhttp3.Call localVarCall = listSigningKeysValidateBeforeCall(limit, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listSigningKeysAsync(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listSigningKeysValidateBeforeCall(limit, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistSigningKeysRequest { + private Integer limit; + private Integer page; + + private APIlistSigningKeysRequest() { + } + + /** + * Set limit + * @param limit Number of items to include in the response (optional, default to 25) + * @return APIlistSigningKeysRequest + */ + public APIlistSigningKeysRequest 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 APIlistSigningKeysRequest + */ + public APIlistSigningKeysRequest page(Integer page) { + this.page = page; + return this; + } + + /** + * Build call for listSigningKeys + * @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 listSigningKeysCall(limit, page, _callback); + } + + /** + * Execute listSigningKeys request + * @return ListSigningKeysResponse + * @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 ListSigningKeysResponse execute() throws ApiException { + ApiResponse localVarResp = listSigningKeysWithHttpInfo(limit, page); + return localVarResp.getData(); + } + + /** + * Execute listSigningKeys request with HTTP info returned + * @return ApiResponse<ListSigningKeysResponse> + * @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 listSigningKeysWithHttpInfo(limit, page); + } + + /** + * Execute listSigningKeys 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 listSigningKeysAsync(limit, page, _callback); + } + } + + /** + * List signing keys + * Returns a list of signing keys. + * @return APIlistSigningKeysRequest + * @http.response.details + + + + +
Response Summary
Status Code Description Response Headers
200 OK -
+ */ + public APIlistSigningKeysRequest listSigningKeys() { + return new APIlistSigningKeysRequest(); + } +} diff --git a/src/main/java/com/mux/sdk/UrlSigningKeysApi.java b/src/main/java/com/mux/sdk/UrlSigningKeysApi.java index 7cf769c..f06f952 100644 --- a/src/main/java/com/mux/sdk/UrlSigningKeysApi.java +++ b/src/main/java/com/mux/sdk/UrlSigningKeysApi.java @@ -83,6 +83,7 @@ private okhttp3.Call createUrlSigningKeyCall(final ApiCallback _callback) throws return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call createUrlSigningKeyValidateBeforeCall(final ApiCallback _callback) throws ApiException { @@ -123,7 +124,9 @@ private APIcreateUrlSigningKeyRequest() { Status Code Description Response Headers 201 Created - + * @deprecated */ + @Deprecated public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createUrlSigningKeyCall(_callback); } @@ -138,7 +141,9 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Status Code Description Response Headers 201 Created - + * @deprecated */ + @Deprecated public SigningKeyResponse execute() throws ApiException { ApiResponse localVarResp = createUrlSigningKeyWithHttpInfo(); return localVarResp.getData(); @@ -154,7 +159,9 @@ public SigningKeyResponse execute() throws ApiException { Status Code Description Response Headers 201 Created - + * @deprecated */ + @Deprecated public ApiResponse executeWithHttpInfo() throws ApiException { return createUrlSigningKeyWithHttpInfo(); } @@ -170,7 +177,9 @@ public ApiResponse executeWithHttpInfo() throws ApiException Status Code Description Response Headers 201 Created - + * @deprecated */ + @Deprecated public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createUrlSigningKeyAsync(_callback); } @@ -178,7 +187,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback /** * Create a URL signing key - * Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. + * This route is now deprecated, please use the `Signing Keys` API. Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens. Note: Any new access tokens authenticating this route will be required to have `System` level permissions. * @return APIcreateUrlSigningKeyRequest * @http.response.details @@ -186,7 +195,9 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Status Code Description Response Headers
201 Created -
+ * @deprecated */ + @Deprecated public APIcreateUrlSigningKeyRequest createUrlSigningKey() { return new APIcreateUrlSigningKeyRequest(); } @@ -221,6 +232,7 @@ private okhttp3.Call deleteUrlSigningKeyCall(String SIGNING_KEY_ID, final ApiCal return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call deleteUrlSigningKeyValidateBeforeCall(String SIGNING_KEY_ID, final ApiCallback _callback) throws ApiException { @@ -266,7 +278,9 @@ private APIdeleteUrlSigningKeyRequest(String SIGNING_KEY_ID) { Status Code Description Response Headers 204 No Content - + * @deprecated */ + @Deprecated public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteUrlSigningKeyCall(SIGNING_KEY_ID, _callback); } @@ -280,7 +294,9 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Status Code Description Response Headers 204 No Content - + * @deprecated */ + @Deprecated public void execute() throws ApiException { deleteUrlSigningKeyWithHttpInfo(SIGNING_KEY_ID); } @@ -295,7 +311,9 @@ public void execute() throws ApiException { Status Code Description Response Headers 204 No Content - + * @deprecated */ + @Deprecated public ApiResponse executeWithHttpInfo() throws ApiException { return deleteUrlSigningKeyWithHttpInfo(SIGNING_KEY_ID); } @@ -311,7 +329,9 @@ public ApiResponse executeWithHttpInfo() throws ApiException { Status Code Description Response Headers 204 No Content - + * @deprecated */ + @Deprecated public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteUrlSigningKeyAsync(SIGNING_KEY_ID, _callback); } @@ -319,7 +339,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiEx /** * Delete a URL signing key - * Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no URLs can be signed using the key again. + * This route is now deprecated, please use the `Signing Keys` API. Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no URLs can be signed using the key again. Note: Any new access tokens authenticating this route will be required to have `System` level permissions. * @param SIGNING_KEY_ID The ID of the signing key. (required) * @return APIdeleteUrlSigningKeyRequest * @http.response.details @@ -328,7 +348,9 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiEx Status Code Description Response Headers 204 No Content - + * @deprecated */ + @Deprecated public APIdeleteUrlSigningKeyRequest deleteUrlSigningKey(String SIGNING_KEY_ID) { return new APIdeleteUrlSigningKeyRequest(SIGNING_KEY_ID); } @@ -363,6 +385,7 @@ private okhttp3.Call getUrlSigningKeyCall(String SIGNING_KEY_ID, final ApiCallba return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getUrlSigningKeyValidateBeforeCall(String SIGNING_KEY_ID, final ApiCallback _callback) throws ApiException { @@ -410,7 +433,9 @@ private APIgetUrlSigningKeyRequest(String SIGNING_KEY_ID) { Status Code Description Response Headers 200 OK - + * @deprecated */ + @Deprecated public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getUrlSigningKeyCall(SIGNING_KEY_ID, _callback); } @@ -425,7 +450,9 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Status Code Description Response Headers 200 OK - + * @deprecated */ + @Deprecated public SigningKeyResponse execute() throws ApiException { ApiResponse localVarResp = getUrlSigningKeyWithHttpInfo(SIGNING_KEY_ID); return localVarResp.getData(); @@ -441,7 +468,9 @@ public SigningKeyResponse execute() throws ApiException { Status Code Description Response Headers 200 OK - + * @deprecated */ + @Deprecated public ApiResponse executeWithHttpInfo() throws ApiException { return getUrlSigningKeyWithHttpInfo(SIGNING_KEY_ID); } @@ -457,7 +486,9 @@ public ApiResponse executeWithHttpInfo() throws ApiException Status Code Description Response Headers 200 OK - + * @deprecated */ + @Deprecated public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUrlSigningKeyAsync(SIGNING_KEY_ID, _callback); } @@ -465,7 +496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback /** * Retrieve a URL signing key - * Retrieves the details of a URL signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** + * This route is now deprecated, please use the `Signing Keys` API. Retrieves the details of a URL signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.** Note: Any new access tokens authenticating this route will be required to have `System` level permissions. * @param SIGNING_KEY_ID The ID of the signing key. (required) * @return APIgetUrlSigningKeyRequest * @http.response.details @@ -474,7 +505,9 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Status Code Description Response Headers 200 OK - + * @deprecated */ + @Deprecated public APIgetUrlSigningKeyRequest getUrlSigningKey(String SIGNING_KEY_ID) { return new APIgetUrlSigningKeyRequest(SIGNING_KEY_ID); } @@ -516,6 +549,7 @@ private okhttp3.Call listUrlSigningKeysCall(Integer limit, Integer page, final A return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call listUrlSigningKeysValidateBeforeCall(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { @@ -578,7 +612,9 @@ public APIlistUrlSigningKeysRequest page(Integer page) { Status Code Description Response Headers 200 OK - + * @deprecated */ + @Deprecated public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listUrlSigningKeysCall(limit, page, _callback); } @@ -593,7 +629,9 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Status Code Description Response Headers 200 OK - + * @deprecated */ + @Deprecated public ListSigningKeysResponse execute() throws ApiException { ApiResponse localVarResp = listUrlSigningKeysWithHttpInfo(limit, page); return localVarResp.getData(); @@ -609,7 +647,9 @@ public ListSigningKeysResponse execute() throws ApiException { Status Code Description Response Headers 200 OK - + * @deprecated */ + @Deprecated public ApiResponse executeWithHttpInfo() throws ApiException { return listUrlSigningKeysWithHttpInfo(limit, page); } @@ -625,7 +665,9 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Status Code Description Response Headers 200 OK - + * @deprecated */ + @Deprecated public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listUrlSigningKeysAsync(limit, page, _callback); } @@ -633,7 +675,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal /** * List URL signing keys - * Returns a list of URL signing keys. + * This route is now deprecated, please use the `Signing Keys` API. Returns a list of URL signing keys. Note: Any new access tokens authenticating this route will be required to have `System` level permissions. * @return APIlistUrlSigningKeysRequest * @http.response.details @@ -641,7 +683,9 @@ public okhttp3.Call executeAsync(final ApiCallback _cal
Status Code Description Response Headers
200 OK -
+ * @deprecated */ + @Deprecated public APIlistUrlSigningKeysRequest listUrlSigningKeys() { return new APIlistUrlSigningKeysRequest(); } diff --git a/src/main/java/com/mux/sdk/models/AssetNonStandardInputReasons.java b/src/main/java/com/mux/sdk/models/AssetNonStandardInputReasons.java index 68af9d6..48a9997 100644 --- a/src/main/java/com/mux/sdk/models/AssetNonStandardInputReasons.java +++ b/src/main/java/com/mux/sdk/models/AssetNonStandardInputReasons.java @@ -295,6 +295,10 @@ public UnexpectedMediaFileParametersEnum read(final JsonReader jsonReader) throw @SerializedName(SERIALIZED_NAME_UNEXPECTED_MEDIA_FILE_PARAMETERS) private UnexpectedMediaFileParametersEnum unexpectedMediaFileParameters; + public static final String SERIALIZED_NAME_UNSUPPORTED_PIXEL_FORMAT = "unsupported_pixel_format"; + @SerializedName(SERIALIZED_NAME_UNSUPPORTED_PIXEL_FORMAT) + private String unsupportedPixelFormat; + public AssetNonStandardInputReasons videoCodec(String videoCodec) { @@ -526,6 +530,29 @@ public void setUnexpectedMediaFileParameters(UnexpectedMediaFileParametersEnum u } + public AssetNonStandardInputReasons unsupportedPixelFormat(String unsupportedPixelFormat) { + + this.unsupportedPixelFormat = unsupportedPixelFormat; + return this; + } + + /** + * The video pixel format, as a string, returned by libav. Considered non-standard if not one of yuv420p or yuvj420p. + * @return unsupportedPixelFormat + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The video pixel format, as a string, returned by libav. Considered non-standard if not one of yuv420p or yuvj420p.") + + public String getUnsupportedPixelFormat() { + return unsupportedPixelFormat; + } + + + public void setUnsupportedPixelFormat(String unsupportedPixelFormat) { + this.unsupportedPixelFormat = unsupportedPixelFormat; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -544,12 +571,13 @@ public boolean equals(Object o) { Objects.equals(this.pixelAspectRatio, assetNonStandardInputReasons.pixelAspectRatio) && Objects.equals(this.videoEditList, assetNonStandardInputReasons.videoEditList) && Objects.equals(this.audioEditList, assetNonStandardInputReasons.audioEditList) && - Objects.equals(this.unexpectedMediaFileParameters, assetNonStandardInputReasons.unexpectedMediaFileParameters); + Objects.equals(this.unexpectedMediaFileParameters, assetNonStandardInputReasons.unexpectedMediaFileParameters) && + Objects.equals(this.unsupportedPixelFormat, assetNonStandardInputReasons.unsupportedPixelFormat); } @Override public int hashCode() { - return Objects.hash(videoCodec, audioCodec, videoGopSize, videoFrameRate, videoResolution, videoBitrate, pixelAspectRatio, videoEditList, audioEditList, unexpectedMediaFileParameters); + return Objects.hash(videoCodec, audioCodec, videoGopSize, videoFrameRate, videoResolution, videoBitrate, pixelAspectRatio, videoEditList, audioEditList, unexpectedMediaFileParameters, unsupportedPixelFormat); } @Override @@ -566,6 +594,7 @@ public String toString() { sb.append(" videoEditList: ").append(toIndentedString(videoEditList)).append("\n"); sb.append(" audioEditList: ").append(toIndentedString(audioEditList)).append("\n"); sb.append(" unexpectedMediaFileParameters: ").append(toIndentedString(unexpectedMediaFileParameters)).append("\n"); + sb.append(" unsupportedPixelFormat: ").append(toIndentedString(unsupportedPixelFormat)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/mux/sdk/models/CreateLiveStreamRequest.java b/src/main/java/com/mux/sdk/models/CreateLiveStreamRequest.java index 4180c8f..023d8dd 100644 --- a/src/main/java/com/mux/sdk/models/CreateLiveStreamRequest.java +++ b/src/main/java/com/mux/sdk/models/CreateLiveStreamRequest.java @@ -205,13 +205,13 @@ public CreateLiveStreamRequest reconnectWindow(Float reconnectWindow) { } /** - * 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. Defaults to 60 seconds on the API if not specified. 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. + * 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. Defaults to 60 seconds on the API if not specified. 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. * minimum: 0 * maximum: 1800 * @return reconnectWindow **/ @javax.annotation.Nullable - @ApiModelProperty(value = "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. Defaults to 60 seconds on the API if not specified. 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. ") + @ApiModelProperty(value = "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. Defaults to 60 seconds on the API if not specified. 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. ") public Float getReconnectWindow() { return reconnectWindow; diff --git a/src/main/java/com/mux/sdk/models/DeliveryReportDeliveredSecondsByResolution.java b/src/main/java/com/mux/sdk/models/DeliveryReportDeliveredSecondsByResolution.java index 577b09d..d065cdc 100644 --- a/src/main/java/com/mux/sdk/models/DeliveryReportDeliveredSecondsByResolution.java +++ b/src/main/java/com/mux/sdk/models/DeliveryReportDeliveredSecondsByResolution.java @@ -30,6 +30,14 @@ @ApiModel(description = "Seconds delivered broken into resolution tiers. Each tier will only be displayed if there was content delivered in the tier.") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DeliveryReportDeliveredSecondsByResolution { + public static final String SERIALIZED_NAME_TIER2160P = "tier_2160p"; + @SerializedName(SERIALIZED_NAME_TIER2160P) + private Double tier2160p; + + public static final String SERIALIZED_NAME_TIER1440P = "tier_1440p"; + @SerializedName(SERIALIZED_NAME_TIER1440P) + private Double tier1440p; + public static final String SERIALIZED_NAME_TIER1080P = "tier_1080p"; @SerializedName(SERIALIZED_NAME_TIER1080P) private Double tier1080p; @@ -43,6 +51,52 @@ public class DeliveryReportDeliveredSecondsByResolution { private Double tierAudioOnly; + public DeliveryReportDeliveredSecondsByResolution tier2160p(Double tier2160p) { + + this.tier2160p = tier2160p; + return this; + } + + /** + * Total number of delivered seconds during this time window that had a resolution larger than the 1440p tier (over 4,194,304 pixels total). + * @return tier2160p + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Total number of delivered seconds during this time window that had a resolution larger than the 1440p tier (over 4,194,304 pixels total).") + + public Double getTier2160p() { + return tier2160p; + } + + + public void setTier2160p(Double tier2160p) { + this.tier2160p = tier2160p; + } + + + public DeliveryReportDeliveredSecondsByResolution tier1440p(Double tier1440p) { + + this.tier1440p = tier1440p; + return this; + } + + /** + * Total number of delivered seconds during this time window that had a resolution larger than the 1080p tier but less than or equal to the 2160p tier (over 2,073,600 and <= 4,194,304 pixels total). + * @return tier1440p + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Total number of delivered seconds during this time window that had a resolution larger than the 1080p tier but less than or equal to the 2160p tier (over 2,073,600 and <= 4,194,304 pixels total).") + + public Double getTier1440p() { + return tier1440p; + } + + + public void setTier1440p(Double tier1440p) { + this.tier1440p = tier1440p; + } + + public DeliveryReportDeliveredSecondsByResolution tier1080p(Double tier1080p) { this.tier1080p = tier1080p; @@ -50,11 +104,11 @@ public DeliveryReportDeliveredSecondsByResolution tier1080p(Double tier1080p) { } /** - * Total number of delivered seconds during this time window that had a resolution larger than the 720p tier (over 921,600 pixels total). + * Total number of delivered seconds during this time window that had a resolution larger than the 720p tier but less than or equal to the 1440p tier (over 921,600 and <= 2,073,600 pixels total). * @return tier1080p **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of delivered seconds during this time window that had a resolution larger than the 720p tier (over 921,600 pixels total).") + @ApiModelProperty(value = "Total number of delivered seconds during this time window that had a resolution larger than the 720p tier but less than or equal to the 1440p tier (over 921,600 and <= 2,073,600 pixels total).") public Double getTier1080p() { return tier1080p; @@ -121,20 +175,24 @@ public boolean equals(Object o) { return false; } DeliveryReportDeliveredSecondsByResolution deliveryReportDeliveredSecondsByResolution = (DeliveryReportDeliveredSecondsByResolution) o; - return Objects.equals(this.tier1080p, deliveryReportDeliveredSecondsByResolution.tier1080p) && + return Objects.equals(this.tier2160p, deliveryReportDeliveredSecondsByResolution.tier2160p) && + Objects.equals(this.tier1440p, deliveryReportDeliveredSecondsByResolution.tier1440p) && + Objects.equals(this.tier1080p, deliveryReportDeliveredSecondsByResolution.tier1080p) && Objects.equals(this.tier720p, deliveryReportDeliveredSecondsByResolution.tier720p) && Objects.equals(this.tierAudioOnly, deliveryReportDeliveredSecondsByResolution.tierAudioOnly); } @Override public int hashCode() { - return Objects.hash(tier1080p, tier720p, tierAudioOnly); + return Objects.hash(tier2160p, tier1440p, tier1080p, tier720p, tierAudioOnly); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeliveryReportDeliveredSecondsByResolution {\n"); + sb.append(" tier2160p: ").append(toIndentedString(tier2160p)).append("\n"); + sb.append(" tier1440p: ").append(toIndentedString(tier1440p)).append("\n"); sb.append(" tier1080p: ").append(toIndentedString(tier1080p)).append("\n"); sb.append(" tier720p: ").append(toIndentedString(tier720p)).append("\n"); sb.append(" tierAudioOnly: ").append(toIndentedString(tierAudioOnly)).append("\n"); diff --git a/src/main/java/com/mux/sdk/models/LiveStream.java b/src/main/java/com/mux/sdk/models/LiveStream.java index 8ef02b4..589b5b1 100644 --- a/src/main/java/com/mux/sdk/models/LiveStream.java +++ b/src/main/java/com/mux/sdk/models/LiveStream.java @@ -276,11 +276,11 @@ public LiveStream addRecentAssetIdsItem(String recentAssetIdsItem) { } /** - * An array of strings with the most recent Assets that were created from this live stream. + * 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. * @return recentAssetIds **/ @javax.annotation.Nullable - @ApiModelProperty(value = "An array of strings with the most recent Assets that were created from this live stream.") + @ApiModelProperty(value = "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.") public java.util.List getRecentAssetIds() { return recentAssetIds; @@ -484,13 +484,13 @@ public LiveStream reconnectWindow(Float reconnectWindow) { } /** - * 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). 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. + * 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. * minimum: 0 * maximum: 1800 * @return reconnectWindow **/ @javax.annotation.Nullable - @ApiModelProperty(value = "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). 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. ") + @ApiModelProperty(value = "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. ") public Float getReconnectWindow() { return reconnectWindow; diff --git a/src/main/java/com/mux/sdk/models/UpdateLiveStreamRequest.java b/src/main/java/com/mux/sdk/models/UpdateLiveStreamRequest.java index e2b336f..89fee2c 100644 --- a/src/main/java/com/mux/sdk/models/UpdateLiveStreamRequest.java +++ b/src/main/java/com/mux/sdk/models/UpdateLiveStreamRequest.java @@ -156,13 +156,13 @@ public UpdateLiveStreamRequest reconnectWindow(Float reconnectWindow) { } /** - * 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. 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. + * 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. * minimum: 0 * maximum: 1800 * @return reconnectWindow **/ @javax.annotation.Nullable - @ApiModelProperty(value = "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. 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. ") + @ApiModelProperty(value = "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. ") public Float getReconnectWindow() { return reconnectWindow; diff --git a/src/main/java/com/mux/sdk/models/VideoView.java b/src/main/java/com/mux/sdk/models/VideoView.java index 6f3b35a..c79e2a5 100644 --- a/src/main/java/com/mux/sdk/models/VideoView.java +++ b/src/main/java/com/mux/sdk/models/VideoView.java @@ -530,6 +530,26 @@ public class VideoView { @SerializedName(SERIALIZED_NAME_CUSTOM5) private String custom5; + public static final String SERIALIZED_NAME_CUSTOM6 = "custom_6"; + @SerializedName(SERIALIZED_NAME_CUSTOM6) + private String custom6; + + public static final String SERIALIZED_NAME_CUSTOM7 = "custom_7"; + @SerializedName(SERIALIZED_NAME_CUSTOM7) + private String custom7; + + public static final String SERIALIZED_NAME_CUSTOM8 = "custom_8"; + @SerializedName(SERIALIZED_NAME_CUSTOM8) + private String custom8; + + public static final String SERIALIZED_NAME_CUSTOM9 = "custom_9"; + @SerializedName(SERIALIZED_NAME_CUSTOM9) + private String custom9; + + public static final String SERIALIZED_NAME_CUSTOM10 = "custom_10"; + @SerializedName(SERIALIZED_NAME_CUSTOM10) + private String custom10; + public VideoView viewTotalUpscaling(String viewTotalUpscaling) { @@ -3414,6 +3434,121 @@ public void setCustom5(String custom5) { } + public VideoView custom6(String custom6) { + + this.custom6 = custom6; + return this; + } + + /** + * Get custom6 + * @return custom6 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCustom6() { + return custom6; + } + + + public void setCustom6(String custom6) { + this.custom6 = custom6; + } + + + public VideoView custom7(String custom7) { + + this.custom7 = custom7; + return this; + } + + /** + * Get custom7 + * @return custom7 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCustom7() { + return custom7; + } + + + public void setCustom7(String custom7) { + this.custom7 = custom7; + } + + + public VideoView custom8(String custom8) { + + this.custom8 = custom8; + return this; + } + + /** + * Get custom8 + * @return custom8 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCustom8() { + return custom8; + } + + + public void setCustom8(String custom8) { + this.custom8 = custom8; + } + + + public VideoView custom9(String custom9) { + + this.custom9 = custom9; + return this; + } + + /** + * Get custom9 + * @return custom9 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCustom9() { + return custom9; + } + + + public void setCustom9(String custom9) { + this.custom9 = custom9; + } + + + public VideoView custom10(String custom10) { + + this.custom10 = custom10; + return this; + } + + /** + * Get custom10 + * @return custom10 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCustom10() { + return custom10; + } + + + public void setCustom10(String custom10) { + this.custom10 = custom10; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -3547,12 +3682,17 @@ public boolean equals(Object o) { Objects.equals(this.custom2, videoView.custom2) && Objects.equals(this.custom3, videoView.custom3) && Objects.equals(this.custom4, videoView.custom4) && - Objects.equals(this.custom5, videoView.custom5); + Objects.equals(this.custom5, videoView.custom5) && + Objects.equals(this.custom6, videoView.custom6) && + Objects.equals(this.custom7, videoView.custom7) && + Objects.equals(this.custom8, videoView.custom8) && + Objects.equals(this.custom9, videoView.custom9) && + Objects.equals(this.custom10, videoView.custom10); } @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); + 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); } @Override @@ -3684,6 +3824,11 @@ public String toString() { sb.append(" custom3: ").append(toIndentedString(custom3)).append("\n"); sb.append(" custom4: ").append(toIndentedString(custom4)).append("\n"); sb.append(" custom5: ").append(toIndentedString(custom5)).append("\n"); + sb.append(" custom6: ").append(toIndentedString(custom6)).append("\n"); + sb.append(" custom7: ").append(toIndentedString(custom7)).append("\n"); + sb.append(" custom8: ").append(toIndentedString(custom8)).append("\n"); + sb.append(" custom9: ").append(toIndentedString(custom9)).append("\n"); + sb.append(" custom10: ").append(toIndentedString(custom10)).append("\n"); sb.append("}"); return sb.toString(); }