diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index f221e51..6bcf935 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -50,6 +50,10 @@ docs/GetAssetOrLiveStreamIdResponseDataObject.md docs/GetAssetPlaybackIDResponse.md docs/GetLiveStreamPlaybackIDResponse.md docs/GetMetricTimeseriesDataResponse.md +docs/GetMonitoringBreakdownResponse.md +docs/GetMonitoringHistogramTimeseriesResponse.md +docs/GetMonitoringHistogramTimeseriesResponseMeta.md +docs/GetMonitoringTimeseriesResponse.md docs/GetOverallValuesResponse.md docs/GetRealTimeBreakdownResponse.md docs/GetRealTimeHistogramTimeseriesResponse.md @@ -81,9 +85,11 @@ docs/ListFiltersResponseData.md docs/ListIncidentsResponse.md docs/ListInsightsResponse.md docs/ListLiveStreamsResponse.md +docs/ListMonitoringDimensionsResponse.md +docs/ListMonitoringDimensionsResponseData.md +docs/ListMonitoringMetricsResponse.md docs/ListPlaybackRestrictionsResponse.md docs/ListRealTimeDimensionsResponse.md -docs/ListRealTimeDimensionsResponseData.md docs/ListRealTimeMetricsResponse.md docs/ListRelatedIncidentsResponse.md docs/ListSigningKeysResponse.md @@ -100,6 +106,12 @@ docs/LiveStreamStatus.md docs/LiveStreamsApi.md docs/Metric.md docs/MetricsApi.md +docs/MonitoringApi.md +docs/MonitoringBreakdownValue.md +docs/MonitoringHistogramTimeseriesBucket.md +docs/MonitoringHistogramTimeseriesBucketValues.md +docs/MonitoringHistogramTimeseriesDatapoint.md +docs/MonitoringTimeseriesDatapoint.md docs/NotificationRule.md docs/OverallValues.md docs/PlaybackID.md @@ -160,6 +172,7 @@ mux_python/api/filters_api.py mux_python/api/incidents_api.py mux_python/api/live_streams_api.py mux_python/api/metrics_api.py +mux_python/api/monitoring_api.py mux_python/api/playback_id_api.py mux_python/api/playback_restrictions_api.py mux_python/api/real_time_api.py @@ -213,6 +226,10 @@ mux_python/models/get_asset_or_live_stream_id_response_data_object.py mux_python/models/get_asset_playback_id_response.py mux_python/models/get_live_stream_playback_id_response.py mux_python/models/get_metric_timeseries_data_response.py +mux_python/models/get_monitoring_breakdown_response.py +mux_python/models/get_monitoring_histogram_timeseries_response.py +mux_python/models/get_monitoring_histogram_timeseries_response_meta.py +mux_python/models/get_monitoring_timeseries_response.py mux_python/models/get_overall_values_response.py mux_python/models/get_real_time_breakdown_response.py mux_python/models/get_real_time_histogram_timeseries_response.py @@ -243,9 +260,11 @@ mux_python/models/list_filters_response_data.py mux_python/models/list_incidents_response.py mux_python/models/list_insights_response.py mux_python/models/list_live_streams_response.py +mux_python/models/list_monitoring_dimensions_response.py +mux_python/models/list_monitoring_dimensions_response_data.py +mux_python/models/list_monitoring_metrics_response.py mux_python/models/list_playback_restrictions_response.py mux_python/models/list_real_time_dimensions_response.py -mux_python/models/list_real_time_dimensions_response_data.py mux_python/models/list_real_time_metrics_response.py mux_python/models/list_related_incidents_response.py mux_python/models/list_signing_keys_response.py @@ -260,6 +279,11 @@ mux_python/models/live_stream_generated_subtitle_settings.py mux_python/models/live_stream_response.py mux_python/models/live_stream_status.py mux_python/models/metric.py +mux_python/models/monitoring_breakdown_value.py +mux_python/models/monitoring_histogram_timeseries_bucket.py +mux_python/models/monitoring_histogram_timeseries_bucket_values.py +mux_python/models/monitoring_histogram_timeseries_datapoint.py +mux_python/models/monitoring_timeseries_datapoint.py mux_python/models/notification_rule.py mux_python/models/overall_values.py mux_python/models/playback_id.py diff --git a/docs/GetMonitoringBreakdownResponse.md b/docs/GetMonitoringBreakdownResponse.md new file mode 100644 index 0000000..d759757 --- /dev/null +++ b/docs/GetMonitoringBreakdownResponse.md @@ -0,0 +1,12 @@ +# GetMonitoringBreakdownResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[MonitoringBreakdownValue]**](MonitoringBreakdownValue.md) | | [optional] +**total_row_count** | **int** | | [optional] +**timeframe** | **list[int]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetMonitoringHistogramTimeseriesResponse.md b/docs/GetMonitoringHistogramTimeseriesResponse.md new file mode 100644 index 0000000..8c114b4 --- /dev/null +++ b/docs/GetMonitoringHistogramTimeseriesResponse.md @@ -0,0 +1,13 @@ +# GetMonitoringHistogramTimeseriesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**GetMonitoringHistogramTimeseriesResponseMeta**](GetMonitoringHistogramTimeseriesResponseMeta.md) | | [optional] +**data** | [**list[MonitoringHistogramTimeseriesDatapoint]**](MonitoringHistogramTimeseriesDatapoint.md) | | [optional] +**total_row_count** | **int** | | [optional] +**timeframe** | **list[int]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetMonitoringHistogramTimeseriesResponseMeta.md b/docs/GetMonitoringHistogramTimeseriesResponseMeta.md new file mode 100644 index 0000000..23212d2 --- /dev/null +++ b/docs/GetMonitoringHistogramTimeseriesResponseMeta.md @@ -0,0 +1,10 @@ +# GetMonitoringHistogramTimeseriesResponseMeta + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**buckets** | [**list[MonitoringHistogramTimeseriesBucket]**](MonitoringHistogramTimeseriesBucket.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetMonitoringTimeseriesResponse.md b/docs/GetMonitoringTimeseriesResponse.md new file mode 100644 index 0000000..adced93 --- /dev/null +++ b/docs/GetMonitoringTimeseriesResponse.md @@ -0,0 +1,12 @@ +# GetMonitoringTimeseriesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[MonitoringTimeseriesDatapoint]**](MonitoringTimeseriesDatapoint.md) | | [optional] +**total_row_count** | **int** | | [optional] +**timeframe** | **list[int]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListMonitoringDimensionsResponse.md b/docs/ListMonitoringDimensionsResponse.md new file mode 100644 index 0000000..261826b --- /dev/null +++ b/docs/ListMonitoringDimensionsResponse.md @@ -0,0 +1,12 @@ +# ListMonitoringDimensionsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[ListMonitoringDimensionsResponseData]**](ListMonitoringDimensionsResponseData.md) | | [optional] +**total_row_count** | **int** | | [optional] +**timeframe** | **list[int]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListRealTimeDimensionsResponseData.md b/docs/ListMonitoringDimensionsResponseData.md similarity index 90% rename from docs/ListRealTimeDimensionsResponseData.md rename to docs/ListMonitoringDimensionsResponseData.md index ee269a7..701c32e 100644 --- a/docs/ListRealTimeDimensionsResponseData.md +++ b/docs/ListMonitoringDimensionsResponseData.md @@ -1,4 +1,4 @@ -# ListRealTimeDimensionsResponseData +# ListMonitoringDimensionsResponseData ## Properties Name | Type | Description | Notes diff --git a/docs/ListMonitoringMetricsResponse.md b/docs/ListMonitoringMetricsResponse.md new file mode 100644 index 0000000..43ffb3a --- /dev/null +++ b/docs/ListMonitoringMetricsResponse.md @@ -0,0 +1,12 @@ +# ListMonitoringMetricsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[ListMonitoringDimensionsResponseData]**](ListMonitoringDimensionsResponseData.md) | | [optional] +**total_row_count** | **int** | | [optional] +**timeframe** | **list[int]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListRealTimeDimensionsResponse.md b/docs/ListRealTimeDimensionsResponse.md index bc02817..b3d8d44 100644 --- a/docs/ListRealTimeDimensionsResponse.md +++ b/docs/ListRealTimeDimensionsResponse.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**list[ListRealTimeDimensionsResponseData]**](ListRealTimeDimensionsResponseData.md) | | [optional] +**data** | [**list[ListMonitoringDimensionsResponseData]**](ListMonitoringDimensionsResponseData.md) | | [optional] **total_row_count** | **int** | | [optional] **timeframe** | **list[int]** | | [optional] diff --git a/docs/ListRealTimeMetricsResponse.md b/docs/ListRealTimeMetricsResponse.md index 33ec658..066e5b0 100644 --- a/docs/ListRealTimeMetricsResponse.md +++ b/docs/ListRealTimeMetricsResponse.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**list[ListRealTimeDimensionsResponseData]**](ListRealTimeDimensionsResponseData.md) | | [optional] +**data** | [**list[ListMonitoringDimensionsResponseData]**](ListMonitoringDimensionsResponseData.md) | | [optional] **total_row_count** | **int** | | [optional] **timeframe** | **list[int]** | | [optional] diff --git a/docs/MonitoringApi.md b/docs/MonitoringApi.md new file mode 100644 index 0000000..cf68c46 --- /dev/null +++ b/docs/MonitoringApi.md @@ -0,0 +1,384 @@ +# mux_python.MonitoringApi + +All URIs are relative to *https://api.mux.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_monitoring_breakdown**](MonitoringApi.md#get_monitoring_breakdown) | **GET** /data/v1/monitoring/metrics/{MONITORING_METRIC_ID}/breakdown | Get Monitoring Breakdown +[**get_monitoring_histogram_timeseries**](MonitoringApi.md#get_monitoring_histogram_timeseries) | **GET** /data/v1/monitoring/metrics/{MONITORING_HISTOGRAM_METRIC_ID}/histogram-timeseries | Get Monitoring Histogram Timeseries +[**get_monitoring_timeseries**](MonitoringApi.md#get_monitoring_timeseries) | **GET** /data/v1/monitoring/metrics/{MONITORING_METRIC_ID}/timeseries | Get Monitoring Timeseries +[**list_monitoring_dimensions**](MonitoringApi.md#list_monitoring_dimensions) | **GET** /data/v1/monitoring/dimensions | List Monitoring Dimensions +[**list_monitoring_metrics**](MonitoringApi.md#list_monitoring_metrics) | **GET** /data/v1/monitoring/metrics | List Monitoring Metrics + + +# **get_monitoring_breakdown** +> GetMonitoringBreakdownResponse get_monitoring_breakdown(monitoring_metric_id, dimension=dimension, timestamp=timestamp, filters=filters, order_by=order_by, order_direction=order_direction) + +Get Monitoring Breakdown + +Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. + +### Example + +* Basic Authentication (accessToken): +```python +from __future__ import print_function +import time +import mux_python +from mux_python.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.mux.com +# See configuration.py for a list of all supported configuration parameters. +configuration = mux_python.Configuration( + host = "https://api.mux.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: accessToken +configuration = mux_python.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with mux_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = mux_python.MonitoringApi(api_client) + monitoring_metric_id = 'current-concurrent-viewers' # str | ID of the Monitoring Metric +dimension = 'dimension_example' # str | Dimension the specified value belongs to (optional) +timestamp = 56 # int | Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp. (optional) +filters = ['filters_example'] # list[str] | 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) +order_by = 'order_by_example' # str | Value to order the results by (optional) +order_direction = 'order_direction_example' # str | Sort order. (optional) + + try: + # Get Monitoring Breakdown + api_response = api_instance.get_monitoring_breakdown(monitoring_metric_id, dimension=dimension, timestamp=timestamp, filters=filters, order_by=order_by, order_direction=order_direction) + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringApi->get_monitoring_breakdown: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **monitoring_metric_id** | **str**| ID of the Monitoring Metric | + **dimension** | **str**| Dimension the specified value belongs to | [optional] + **timestamp** | **int**| Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp. | [optional] + **filters** | [**list[str]**](str.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] + **order_by** | **str**| Value to order the results by | [optional] + **order_direction** | **str**| Sort order. | [optional] + +### Return type + +[**GetMonitoringBreakdownResponse**](GetMonitoringBreakdownResponse.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_monitoring_histogram_timeseries** +> GetMonitoringHistogramTimeseriesResponse get_monitoring_histogram_timeseries(monitoring_histogram_metric_id, filters=filters) + +Get Monitoring Histogram Timeseries + +Gets histogram timeseries information for a specific metric. + +### Example + +* Basic Authentication (accessToken): +```python +from __future__ import print_function +import time +import mux_python +from mux_python.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.mux.com +# See configuration.py for a list of all supported configuration parameters. +configuration = mux_python.Configuration( + host = "https://api.mux.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: accessToken +configuration = mux_python.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with mux_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = mux_python.MonitoringApi(api_client) + monitoring_histogram_metric_id = 'video-startup-time' # str | ID of the Monitoring Histogram Metric +filters = ['filters_example'] # list[str] | 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) + + try: + # Get Monitoring Histogram Timeseries + api_response = api_instance.get_monitoring_histogram_timeseries(monitoring_histogram_metric_id, filters=filters) + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringApi->get_monitoring_histogram_timeseries: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **monitoring_histogram_metric_id** | **str**| ID of the Monitoring Histogram Metric | + **filters** | [**list[str]**](str.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] + +### Return type + +[**GetMonitoringHistogramTimeseriesResponse**](GetMonitoringHistogramTimeseriesResponse.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_monitoring_timeseries** +> GetMonitoringTimeseriesResponse get_monitoring_timeseries(monitoring_metric_id, filters=filters) + +Get Monitoring Timeseries + +Gets Time series information for a specific metric along with the number of concurrent viewers. + +### Example + +* Basic Authentication (accessToken): +```python +from __future__ import print_function +import time +import mux_python +from mux_python.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.mux.com +# See configuration.py for a list of all supported configuration parameters. +configuration = mux_python.Configuration( + host = "https://api.mux.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: accessToken +configuration = mux_python.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with mux_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = mux_python.MonitoringApi(api_client) + monitoring_metric_id = 'current-concurrent-viewers' # str | ID of the Monitoring Metric +filters = ['filters_example'] # list[str] | 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) + + try: + # Get Monitoring Timeseries + api_response = api_instance.get_monitoring_timeseries(monitoring_metric_id, filters=filters) + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringApi->get_monitoring_timeseries: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **monitoring_metric_id** | **str**| ID of the Monitoring Metric | + **filters** | [**list[str]**](str.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] + +### Return type + +[**GetMonitoringTimeseriesResponse**](GetMonitoringTimeseriesResponse.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_monitoring_dimensions** +> ListMonitoringDimensionsResponse list_monitoring_dimensions() + +List Monitoring Dimensions + +Lists available monitoring dimensions. + +### Example + +* Basic Authentication (accessToken): +```python +from __future__ import print_function +import time +import mux_python +from mux_python.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.mux.com +# See configuration.py for a list of all supported configuration parameters. +configuration = mux_python.Configuration( + host = "https://api.mux.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: accessToken +configuration = mux_python.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with mux_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = mux_python.MonitoringApi(api_client) + + try: + # List Monitoring Dimensions + api_response = api_instance.list_monitoring_dimensions() + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringApi->list_monitoring_dimensions: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ListMonitoringDimensionsResponse**](ListMonitoringDimensionsResponse.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_monitoring_metrics** +> ListMonitoringMetricsResponse list_monitoring_metrics() + +List Monitoring Metrics + +Lists available monitoring metrics. + +### Example + +* Basic Authentication (accessToken): +```python +from __future__ import print_function +import time +import mux_python +from mux_python.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.mux.com +# See configuration.py for a list of all supported configuration parameters. +configuration = mux_python.Configuration( + host = "https://api.mux.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: accessToken +configuration = mux_python.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with mux_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = mux_python.MonitoringApi(api_client) + + try: + # List Monitoring Metrics + api_response = api_instance.list_monitoring_metrics() + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringApi->list_monitoring_metrics: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ListMonitoringMetricsResponse**](ListMonitoringMetricsResponse.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MonitoringBreakdownValue.md b/docs/MonitoringBreakdownValue.md new file mode 100644 index 0000000..9139949 --- /dev/null +++ b/docs/MonitoringBreakdownValue.md @@ -0,0 +1,14 @@ +# MonitoringBreakdownValue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | [optional] +**negative_impact** | **int** | | [optional] +**metric_value** | **float** | | [optional] +**display_value** | **str** | | [optional] +**concurrent_viewers** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringHistogramTimeseriesBucket.md b/docs/MonitoringHistogramTimeseriesBucket.md new file mode 100644 index 0000000..7a71e86 --- /dev/null +++ b/docs/MonitoringHistogramTimeseriesBucket.md @@ -0,0 +1,11 @@ +# MonitoringHistogramTimeseriesBucket + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start** | **int** | | [optional] +**end** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringHistogramTimeseriesBucketValues.md b/docs/MonitoringHistogramTimeseriesBucketValues.md new file mode 100644 index 0000000..37d0fee --- /dev/null +++ b/docs/MonitoringHistogramTimeseriesBucketValues.md @@ -0,0 +1,11 @@ +# MonitoringHistogramTimeseriesBucketValues + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**percentage** | **float** | | [optional] +**count** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringHistogramTimeseriesDatapoint.md b/docs/MonitoringHistogramTimeseriesDatapoint.md new file mode 100644 index 0000000..30061ff --- /dev/null +++ b/docs/MonitoringHistogramTimeseriesDatapoint.md @@ -0,0 +1,16 @@ +# MonitoringHistogramTimeseriesDatapoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**timestamp** | **str** | | [optional] +**sum** | **int** | | [optional] +**p95** | **float** | | [optional] +**median** | **float** | | [optional] +**max_percentage** | **float** | | [optional] +**bucket_values** | [**list[MonitoringHistogramTimeseriesBucketValues]**](MonitoringHistogramTimeseriesBucketValues.md) | | [optional] +**average** | **float** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringTimeseriesDatapoint.md b/docs/MonitoringTimeseriesDatapoint.md new file mode 100644 index 0000000..c19f35b --- /dev/null +++ b/docs/MonitoringTimeseriesDatapoint.md @@ -0,0 +1,12 @@ +# MonitoringTimeseriesDatapoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **float** | | [optional] +**date** | **str** | | [optional] +**concurrent_viewers** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RealTimeApi.md b/docs/RealTimeApi.md index 891602f..d196574 100644 --- a/docs/RealTimeApi.md +++ b/docs/RealTimeApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description Get Real-Time Breakdown -Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. +Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. This API is now deprecated, please use the `Get Monitoring Breakdown` API. ### Example @@ -99,7 +99,7 @@ Name | Type | Description | Notes Get Real-Time Histogram Timeseries -Gets histogram timeseries information for a specific metric. +Gets histogram timeseries information for a specific metric. This API is now deprecated, please use the `Get Monitoring Histogram Timeseries` API. ### Example @@ -174,7 +174,7 @@ Name | Type | Description | Notes Get Real-Time Timeseries -Gets Time series information for a specific metric along with the number of concurrent viewers. +Gets Time series information for a specific metric along with the number of concurrent viewers. This API is now deprecated, please use the `Get Monitoring Timeseries` API. ### Example @@ -249,7 +249,7 @@ Name | Type | Description | Notes List Real-Time Dimensions -Lists available real-time dimensions. +Lists available real-time dimensions. This API is now deprecated, please use the `List Monitoring Dimensions` API. ### Example @@ -318,7 +318,7 @@ This endpoint does not need any parameter. List Real-Time Metrics -Lists available real-time metrics. +Lists available real-time metrics. This API is now deprecated, please use the `List Monitoring Metrics` API. ### Example diff --git a/examples/data/exercise-realtime.py b/examples/data/exercise-monitoring.py similarity index 50% rename from examples/data/exercise-realtime.py rename to examples/data/exercise-monitoring.py index 3caefa6..578c62e 100644 --- a/examples/data/exercise-realtime.py +++ b/examples/data/exercise-monitoring.py @@ -13,54 +13,54 @@ configuration.password = os.environ['MUX_TOKEN_SECRET'] # API Client Initialization -realtime_api = mux_python.RealTimeApi(mux_python.ApiClient(configuration)) +monitoring_api = mux_python.MonitoringApi(mux_python.ApiClient(configuration)) # Test coverage here isn't fantastic due to not knowning if the account we're testing against has -# any real-time data. The behaviour has been manually verified against real-world data. +# any monitoring data. The behaviour has been manually verified against real-world data. -# ========== list-realtime-dimensions ========== -dimensions = realtime_api.list_realtime_dimensions() +# ========== list-monitoring-dimensions ========== +dimensions = monitoring_api.list_monitoring_dimensions() logger.print_debug('List Dimensions Response: ' + str(dimensions)) assert dimensions != None assert dimensions.data != None assert len(dimensions.data) > 0 assert dimensions.data[0].name != None assert dimensions.data[0].display_name != None -print("list-realtime-dimensions OK ✅") +print("list-monitoring-dimensions OK ✅") -# ========== list-realtime-metrics ========== -metrics = realtime_api.list_realtime_metrics() +# ========== list-monitoring-metrics ========== +metrics = monitoring_api.list_monitoring_metrics() logger.print_debug('List Metrics Response: ' + str(metrics)) assert metrics != None assert metrics.data != None assert len(metrics.data) > 0 assert metrics.data[0].name != None assert metrics.data[0].display_name != None -print("list-realtime-metrics OK ✅") +print("list-monitoring-metrics OK ✅") -# ========== get-realtime-breakdown ========== -breakdown = realtime_api.get_realtime_breakdown('current-rebuffering-percentage', dimension='asn') -logger.print_debug('Get Realtime Breakdown Response: ' + str(breakdown)) +# ========== get-monitoring-breakdown ========== +breakdown = monitoring_api.get_monitoring_breakdown('current-rebuffering-percentage', dimension='asn') +logger.print_debug('Get Monitoring Breakdown Response: ' + str(breakdown)) assert breakdown != None assert breakdown.data != None -print("get-realtime-breakdown OK ✅") +print("get-monitoring-breakdown OK ✅") -# ========== get-realtime-histogram-timeseries ========== -histogram_timeseries = realtime_api.get_realtime_histogram_timeseries('video-startup-time') -logger.print_debug('Get Realtime Histogram Timeseries Response: ' + str(histogram_timeseries)) +# ========== get-monitoring-histogram-timeseries ========== +histogram_timeseries = monitoring_api.get_monitoring_histogram_timeseries('video-startup-time') +logger.print_debug('Get Monitoring Histogram Timeseries Response: ' + str(histogram_timeseries)) assert histogram_timeseries != None assert histogram_timeseries.meta != None assert histogram_timeseries.meta.buckets != None assert len(histogram_timeseries.meta.buckets) > 0 assert histogram_timeseries.data != None assert len(histogram_timeseries.data) > 0 -print("get-realtime-histogram-timeseries OK ✅") +print("get-monitoring-histogram-timeseries OK ✅") -# ========== get-realtime-timeseries ========== -timeseries = realtime_api.get_realtime_timeseries('current-rebuffering-percentage') -logger.print_debug('Get Realtime Timeseries Response: ' + str(timeseries)) +# ========== get-monitoring-timeseries ========== +timeseries = monitoring_api.get_monitoring_timeseries('current-rebuffering-percentage') +logger.print_debug('Get Monitoring Timeseries Response: ' + str(timeseries)) assert timeseries != None assert timeseries.data != None assert len(timeseries.data) > 0 assert timeseries.data[0].date != '' -print("get-realtime-timeseries OK ✅") +print("get-monitoring-timeseries OK ✅") diff --git a/gen/generator-config.json b/gen/generator-config.json index 87364b2..e340542 100644 --- a/gen/generator-config.json +++ b/gen/generator-config.json @@ -2,5 +2,5 @@ "!!source": "https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/python.md", "packageName": "mux_python", "projectName": "mux_python", - "packageVersion": "3.7.1" + "packageVersion": "3.8.0" } diff --git a/gen/templates/model.mustache b/gen/templates/model.mustache index 5b40489..236b8f8 100644 --- a/gen/templates/model.mustache +++ b/gen/templates/model.mustache @@ -2,7 +2,10 @@ {{>partial_header}} -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -203,7 +206,7 @@ class {{classname}}(object): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/__init__.py b/mux_python/__init__.py index da486fb..06b4654 100644 --- a/mux_python/__init__.py +++ b/mux_python/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import -__version__ = "3.7.1" +__version__ = "3.8.0" # import apis into sdk package from mux_python.api.assets_api import AssetsApi @@ -28,6 +28,7 @@ from mux_python.api.incidents_api import IncidentsApi from mux_python.api.live_streams_api import LiveStreamsApi from mux_python.api.metrics_api import MetricsApi +from mux_python.api.monitoring_api import MonitoringApi from mux_python.api.playback_id_api import PlaybackIDApi from mux_python.api.playback_restrictions_api import PlaybackRestrictionsApi from mux_python.api.real_time_api import RealTimeApi @@ -88,6 +89,10 @@ from mux_python.models.get_asset_playback_id_response import GetAssetPlaybackIDResponse from mux_python.models.get_live_stream_playback_id_response import GetLiveStreamPlaybackIDResponse from mux_python.models.get_metric_timeseries_data_response import GetMetricTimeseriesDataResponse +from mux_python.models.get_monitoring_breakdown_response import GetMonitoringBreakdownResponse +from mux_python.models.get_monitoring_histogram_timeseries_response import GetMonitoringHistogramTimeseriesResponse +from mux_python.models.get_monitoring_histogram_timeseries_response_meta import GetMonitoringHistogramTimeseriesResponseMeta +from mux_python.models.get_monitoring_timeseries_response import GetMonitoringTimeseriesResponse from mux_python.models.get_overall_values_response import GetOverallValuesResponse from mux_python.models.get_real_time_breakdown_response import GetRealTimeBreakdownResponse from mux_python.models.get_real_time_histogram_timeseries_response import GetRealTimeHistogramTimeseriesResponse @@ -118,9 +123,11 @@ from mux_python.models.list_incidents_response import ListIncidentsResponse from mux_python.models.list_insights_response import ListInsightsResponse from mux_python.models.list_live_streams_response import ListLiveStreamsResponse +from mux_python.models.list_monitoring_dimensions_response import ListMonitoringDimensionsResponse +from mux_python.models.list_monitoring_dimensions_response_data import ListMonitoringDimensionsResponseData +from mux_python.models.list_monitoring_metrics_response import ListMonitoringMetricsResponse from mux_python.models.list_playback_restrictions_response import ListPlaybackRestrictionsResponse from mux_python.models.list_real_time_dimensions_response import ListRealTimeDimensionsResponse -from mux_python.models.list_real_time_dimensions_response_data import ListRealTimeDimensionsResponseData from mux_python.models.list_real_time_metrics_response import ListRealTimeMetricsResponse from mux_python.models.list_related_incidents_response import ListRelatedIncidentsResponse from mux_python.models.list_signing_keys_response import ListSigningKeysResponse @@ -135,6 +142,11 @@ from mux_python.models.live_stream_response import LiveStreamResponse from mux_python.models.live_stream_status import LiveStreamStatus from mux_python.models.metric import Metric +from mux_python.models.monitoring_breakdown_value import MonitoringBreakdownValue +from mux_python.models.monitoring_histogram_timeseries_bucket import MonitoringHistogramTimeseriesBucket +from mux_python.models.monitoring_histogram_timeseries_bucket_values import MonitoringHistogramTimeseriesBucketValues +from mux_python.models.monitoring_histogram_timeseries_datapoint import MonitoringHistogramTimeseriesDatapoint +from mux_python.models.monitoring_timeseries_datapoint import MonitoringTimeseriesDatapoint from mux_python.models.notification_rule import NotificationRule from mux_python.models.overall_values import OverallValues from mux_python.models.playback_id import PlaybackID diff --git a/mux_python/api/__init__.py b/mux_python/api/__init__.py index a6b93e5..598ebe3 100644 --- a/mux_python/api/__init__.py +++ b/mux_python/api/__init__.py @@ -13,6 +13,7 @@ from mux_python.api.incidents_api import IncidentsApi from mux_python.api.live_streams_api import LiveStreamsApi from mux_python.api.metrics_api import MetricsApi +from mux_python.api.monitoring_api import MonitoringApi from mux_python.api.playback_id_api import PlaybackIDApi from mux_python.api.playback_restrictions_api import PlaybackRestrictionsApi from mux_python.api.real_time_api import RealTimeApi diff --git a/mux_python/api/monitoring_api.py b/mux_python/api/monitoring_api.py new file mode 100644 index 0000000..1feb5d8 --- /dev/null +++ b/mux_python/api/monitoring_api.py @@ -0,0 +1,743 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from mux_python.api_client import ApiClient +from mux_python.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MonitoringApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_monitoring_breakdown(self, monitoring_metric_id, **kwargs): # noqa: E501 + """Get Monitoring Breakdown # noqa: E501 + + Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_monitoring_breakdown(monitoring_metric_id, async_req=True) + >>> result = thread.get() + + :param monitoring_metric_id: ID of the Monitoring Metric (required) + :type monitoring_metric_id: str + :param dimension: Dimension the specified value belongs to + :type dimension: str + :param timestamp: Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp. + :type timestamp: int + :param filters: 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` + :type filters: list[str] + :param order_by: Value to order the results by + :type order_by: str + :param order_direction: Sort order. + :type order_direction: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: GetMonitoringBreakdownResponse + """ + kwargs['_return_http_data_only'] = True + return self.get_monitoring_breakdown_with_http_info(monitoring_metric_id, **kwargs) # noqa: E501 + + def get_monitoring_breakdown_with_http_info(self, monitoring_metric_id, **kwargs): # noqa: E501 + """Get Monitoring Breakdown # noqa: E501 + + Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_monitoring_breakdown_with_http_info(monitoring_metric_id, async_req=True) + >>> result = thread.get() + + :param monitoring_metric_id: ID of the Monitoring Metric (required) + :type monitoring_metric_id: str + :param dimension: Dimension the specified value belongs to + :type dimension: str + :param timestamp: Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp. + :type timestamp: int + :param filters: 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` + :type filters: list[str] + :param order_by: Value to order the results by + :type order_by: str + :param order_direction: Sort order. + :type order_direction: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(GetMonitoringBreakdownResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'monitoring_metric_id', + 'dimension', + 'timestamp', + 'filters', + 'order_by', + 'order_direction' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_monitoring_breakdown" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'monitoring_metric_id' is set + if self.api_client.client_side_validation and ('monitoring_metric_id' not in local_var_params or # noqa: E501 + local_var_params['monitoring_metric_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `monitoring_metric_id` when calling `get_monitoring_breakdown`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'monitoring_metric_id' in local_var_params: + path_params['MONITORING_METRIC_ID'] = local_var_params['monitoring_metric_id'] # noqa: E501 + + query_params = [] + if 'dimension' in local_var_params and local_var_params['dimension'] is not None: # noqa: E501 + query_params.append(('dimension', local_var_params['dimension'])) # noqa: E501 + if 'timestamp' in local_var_params and local_var_params['timestamp'] is not None: # noqa: E501 + query_params.append(('timestamp', local_var_params['timestamp'])) # noqa: E501 + if 'filters' in local_var_params and local_var_params['filters'] is not None: # noqa: E501 + query_params.append(('filters[]', local_var_params['filters'])) # noqa: E501 + collection_formats['filters[]'] = 'multi' # noqa: E501 + if 'order_by' in local_var_params and local_var_params['order_by'] is not None: # noqa: E501 + query_params.append(('order_by', local_var_params['order_by'])) # noqa: E501 + if 'order_direction' in local_var_params and local_var_params['order_direction'] is not None: # noqa: E501 + query_params.append(('order_direction', local_var_params['order_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['accessToken'] # noqa: E501 + + response_types_map = { + 200: "GetMonitoringBreakdownResponse", + } + + return self.api_client.call_api( + '/data/v1/monitoring/metrics/{MONITORING_METRIC_ID}/breakdown', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def get_monitoring_histogram_timeseries(self, monitoring_histogram_metric_id, **kwargs): # noqa: E501 + """Get Monitoring Histogram Timeseries # noqa: E501 + + Gets histogram timeseries information for a specific metric. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_monitoring_histogram_timeseries(monitoring_histogram_metric_id, async_req=True) + >>> result = thread.get() + + :param monitoring_histogram_metric_id: ID of the Monitoring Histogram Metric (required) + :type monitoring_histogram_metric_id: str + :param filters: 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` + :type filters: list[str] + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: GetMonitoringHistogramTimeseriesResponse + """ + kwargs['_return_http_data_only'] = True + return self.get_monitoring_histogram_timeseries_with_http_info(monitoring_histogram_metric_id, **kwargs) # noqa: E501 + + def get_monitoring_histogram_timeseries_with_http_info(self, monitoring_histogram_metric_id, **kwargs): # noqa: E501 + """Get Monitoring Histogram Timeseries # noqa: E501 + + Gets histogram timeseries information for a specific metric. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_monitoring_histogram_timeseries_with_http_info(monitoring_histogram_metric_id, async_req=True) + >>> result = thread.get() + + :param monitoring_histogram_metric_id: ID of the Monitoring Histogram Metric (required) + :type monitoring_histogram_metric_id: str + :param filters: 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` + :type filters: list[str] + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(GetMonitoringHistogramTimeseriesResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'monitoring_histogram_metric_id', + 'filters' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_monitoring_histogram_timeseries" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'monitoring_histogram_metric_id' is set + if self.api_client.client_side_validation and ('monitoring_histogram_metric_id' not in local_var_params or # noqa: E501 + local_var_params['monitoring_histogram_metric_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `monitoring_histogram_metric_id` when calling `get_monitoring_histogram_timeseries`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'monitoring_histogram_metric_id' in local_var_params: + path_params['MONITORING_HISTOGRAM_METRIC_ID'] = local_var_params['monitoring_histogram_metric_id'] # noqa: E501 + + query_params = [] + if 'filters' in local_var_params and local_var_params['filters'] is not None: # noqa: E501 + query_params.append(('filters[]', local_var_params['filters'])) # noqa: E501 + collection_formats['filters[]'] = 'multi' # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['accessToken'] # noqa: E501 + + response_types_map = { + 200: "GetMonitoringHistogramTimeseriesResponse", + } + + return self.api_client.call_api( + '/data/v1/monitoring/metrics/{MONITORING_HISTOGRAM_METRIC_ID}/histogram-timeseries', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def get_monitoring_timeseries(self, monitoring_metric_id, **kwargs): # noqa: E501 + """Get Monitoring Timeseries # noqa: E501 + + Gets Time series information for a specific metric along with the number of concurrent viewers. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_monitoring_timeseries(monitoring_metric_id, async_req=True) + >>> result = thread.get() + + :param monitoring_metric_id: ID of the Monitoring Metric (required) + :type monitoring_metric_id: str + :param filters: 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` + :type filters: list[str] + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: GetMonitoringTimeseriesResponse + """ + kwargs['_return_http_data_only'] = True + return self.get_monitoring_timeseries_with_http_info(monitoring_metric_id, **kwargs) # noqa: E501 + + def get_monitoring_timeseries_with_http_info(self, monitoring_metric_id, **kwargs): # noqa: E501 + """Get Monitoring Timeseries # noqa: E501 + + Gets Time series information for a specific metric along with the number of concurrent viewers. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_monitoring_timeseries_with_http_info(monitoring_metric_id, async_req=True) + >>> result = thread.get() + + :param monitoring_metric_id: ID of the Monitoring Metric (required) + :type monitoring_metric_id: str + :param filters: 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` + :type filters: list[str] + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(GetMonitoringTimeseriesResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'monitoring_metric_id', + 'filters' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_monitoring_timeseries" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'monitoring_metric_id' is set + if self.api_client.client_side_validation and ('monitoring_metric_id' not in local_var_params or # noqa: E501 + local_var_params['monitoring_metric_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `monitoring_metric_id` when calling `get_monitoring_timeseries`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'monitoring_metric_id' in local_var_params: + path_params['MONITORING_METRIC_ID'] = local_var_params['monitoring_metric_id'] # noqa: E501 + + query_params = [] + if 'filters' in local_var_params and local_var_params['filters'] is not None: # noqa: E501 + query_params.append(('filters[]', local_var_params['filters'])) # noqa: E501 + collection_formats['filters[]'] = 'multi' # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['accessToken'] # noqa: E501 + + response_types_map = { + 200: "GetMonitoringTimeseriesResponse", + } + + return self.api_client.call_api( + '/data/v1/monitoring/metrics/{MONITORING_METRIC_ID}/timeseries', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def list_monitoring_dimensions(self, **kwargs): # noqa: E501 + """List Monitoring Dimensions # noqa: E501 + + Lists available monitoring dimensions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.list_monitoring_dimensions(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ListMonitoringDimensionsResponse + """ + kwargs['_return_http_data_only'] = True + return self.list_monitoring_dimensions_with_http_info(**kwargs) # noqa: E501 + + def list_monitoring_dimensions_with_http_info(self, **kwargs): # noqa: E501 + """List Monitoring Dimensions # noqa: E501 + + Lists available monitoring dimensions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.list_monitoring_dimensions_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ListMonitoringDimensionsResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_monitoring_dimensions" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['accessToken'] # noqa: E501 + + response_types_map = { + 200: "ListMonitoringDimensionsResponse", + } + + return self.api_client.call_api( + '/data/v1/monitoring/dimensions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def list_monitoring_metrics(self, **kwargs): # noqa: E501 + """List Monitoring Metrics # noqa: E501 + + Lists available monitoring metrics. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.list_monitoring_metrics(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ListMonitoringMetricsResponse + """ + kwargs['_return_http_data_only'] = True + return self.list_monitoring_metrics_with_http_info(**kwargs) # noqa: E501 + + def list_monitoring_metrics_with_http_info(self, **kwargs): # noqa: E501 + """List Monitoring Metrics # noqa: E501 + + Lists available monitoring metrics. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.list_monitoring_metrics_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ListMonitoringMetricsResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_monitoring_metrics" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['accessToken'] # noqa: E501 + + response_types_map = { + 200: "ListMonitoringMetricsResponse", + } + + return self.api_client.call_api( + '/data/v1/monitoring/metrics', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/mux_python/api/real_time_api.py b/mux_python/api/real_time_api.py index 17ebba2..7578c7c 100644 --- a/mux_python/api/real_time_api.py +++ b/mux_python/api/real_time_api.py @@ -40,7 +40,7 @@ def __init__(self, api_client=None): def get_realtime_breakdown(self, realtime_metric_id, **kwargs): # noqa: E501 """Get Real-Time Breakdown # noqa: E501 - Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. # noqa: E501 + Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. This API is now deprecated, please use the `Get Monitoring Breakdown` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -80,7 +80,7 @@ def get_realtime_breakdown(self, realtime_metric_id, **kwargs): # noqa: E501 def get_realtime_breakdown_with_http_info(self, realtime_metric_id, **kwargs): # noqa: E501 """Get Real-Time Breakdown # noqa: E501 - Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. # noqa: E501 + Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. This API is now deprecated, please use the `Get Monitoring Breakdown` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -211,7 +211,7 @@ def get_realtime_breakdown_with_http_info(self, realtime_metric_id, **kwargs): def get_realtime_histogram_timeseries(self, realtime_histogram_metric_id, **kwargs): # noqa: E501 """Get Real-Time Histogram Timeseries # noqa: E501 - Gets histogram timeseries information for a specific metric. # noqa: E501 + Gets histogram timeseries information for a specific metric. This API is now deprecated, please use the `Get Monitoring Histogram Timeseries` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -243,7 +243,7 @@ def get_realtime_histogram_timeseries(self, realtime_histogram_metric_id, **kwar def get_realtime_histogram_timeseries_with_http_info(self, realtime_histogram_metric_id, **kwargs): # noqa: E501 """Get Real-Time Histogram Timeseries # noqa: E501 - Gets histogram timeseries information for a specific metric. # noqa: E501 + Gets histogram timeseries information for a specific metric. This API is now deprecated, please use the `Get Monitoring Histogram Timeseries` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -354,7 +354,7 @@ def get_realtime_histogram_timeseries_with_http_info(self, realtime_histogram_me def get_realtime_timeseries(self, realtime_metric_id, **kwargs): # noqa: E501 """Get Real-Time Timeseries # noqa: E501 - Gets Time series information for a specific metric along with the number of concurrent viewers. # noqa: E501 + Gets Time series information for a specific metric along with the number of concurrent viewers. This API is now deprecated, please use the `Get Monitoring Timeseries` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -386,7 +386,7 @@ def get_realtime_timeseries(self, realtime_metric_id, **kwargs): # noqa: E501 def get_realtime_timeseries_with_http_info(self, realtime_metric_id, **kwargs): # noqa: E501 """Get Real-Time Timeseries # noqa: E501 - Gets Time series information for a specific metric along with the number of concurrent viewers. # noqa: E501 + Gets Time series information for a specific metric along with the number of concurrent viewers. This API is now deprecated, please use the `Get Monitoring Timeseries` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -497,7 +497,7 @@ def get_realtime_timeseries_with_http_info(self, realtime_metric_id, **kwargs): def list_realtime_dimensions(self, **kwargs): # noqa: E501 """List Real-Time Dimensions # noqa: E501 - Lists available real-time dimensions. # noqa: E501 + Lists available real-time dimensions. This API is now deprecated, please use the `List Monitoring Dimensions` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -525,7 +525,7 @@ def list_realtime_dimensions(self, **kwargs): # noqa: E501 def list_realtime_dimensions_with_http_info(self, **kwargs): # noqa: E501 """List Real-Time Dimensions # noqa: E501 - Lists available real-time dimensions. # noqa: E501 + Lists available real-time dimensions. This API is now deprecated, please use the `List Monitoring Dimensions` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -621,7 +621,7 @@ def list_realtime_dimensions_with_http_info(self, **kwargs): # noqa: E501 def list_realtime_metrics(self, **kwargs): # noqa: E501 """List Real-Time Metrics # noqa: E501 - Lists available real-time metrics. # noqa: E501 + Lists available real-time metrics. This API is now deprecated, please use the `List Monitoring Metrics` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -649,7 +649,7 @@ def list_realtime_metrics(self, **kwargs): # noqa: E501 def list_realtime_metrics_with_http_info(self, **kwargs): # noqa: E501 """List Real-Time Metrics # noqa: E501 - Lists available real-time metrics. # noqa: E501 + Lists available real-time metrics. This API is now deprecated, please use the `List Monitoring Metrics` API. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/mux_python/api_client.py b/mux_python/api_client.py index 5f8ba5d..46548d9 100644 --- a/mux_python/api_client.py +++ b/mux_python/api_client.py @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/3.7.1/python' + self.user_agent = 'OpenAPI-Generator/3.8.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/mux_python/configuration.py b/mux_python/configuration.py index a44df89..1782765 100644 --- a/mux_python/configuration.py +++ b/mux_python/configuration.py @@ -406,7 +406,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 3.7.1".\ + "SDK Package Version: 3.8.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/mux_python/models/__init__.py b/mux_python/models/__init__.py index f1646dd..936cf41 100644 --- a/mux_python/models/__init__.py +++ b/mux_python/models/__init__.py @@ -57,6 +57,10 @@ from mux_python.models.get_asset_playback_id_response import GetAssetPlaybackIDResponse from mux_python.models.get_live_stream_playback_id_response import GetLiveStreamPlaybackIDResponse from mux_python.models.get_metric_timeseries_data_response import GetMetricTimeseriesDataResponse +from mux_python.models.get_monitoring_breakdown_response import GetMonitoringBreakdownResponse +from mux_python.models.get_monitoring_histogram_timeseries_response import GetMonitoringHistogramTimeseriesResponse +from mux_python.models.get_monitoring_histogram_timeseries_response_meta import GetMonitoringHistogramTimeseriesResponseMeta +from mux_python.models.get_monitoring_timeseries_response import GetMonitoringTimeseriesResponse from mux_python.models.get_overall_values_response import GetOverallValuesResponse from mux_python.models.get_real_time_breakdown_response import GetRealTimeBreakdownResponse from mux_python.models.get_real_time_histogram_timeseries_response import GetRealTimeHistogramTimeseriesResponse @@ -87,9 +91,11 @@ from mux_python.models.list_incidents_response import ListIncidentsResponse from mux_python.models.list_insights_response import ListInsightsResponse from mux_python.models.list_live_streams_response import ListLiveStreamsResponse +from mux_python.models.list_monitoring_dimensions_response import ListMonitoringDimensionsResponse +from mux_python.models.list_monitoring_dimensions_response_data import ListMonitoringDimensionsResponseData +from mux_python.models.list_monitoring_metrics_response import ListMonitoringMetricsResponse from mux_python.models.list_playback_restrictions_response import ListPlaybackRestrictionsResponse from mux_python.models.list_real_time_dimensions_response import ListRealTimeDimensionsResponse -from mux_python.models.list_real_time_dimensions_response_data import ListRealTimeDimensionsResponseData from mux_python.models.list_real_time_metrics_response import ListRealTimeMetricsResponse from mux_python.models.list_related_incidents_response import ListRelatedIncidentsResponse from mux_python.models.list_signing_keys_response import ListSigningKeysResponse @@ -104,6 +110,11 @@ from mux_python.models.live_stream_response import LiveStreamResponse from mux_python.models.live_stream_status import LiveStreamStatus from mux_python.models.metric import Metric +from mux_python.models.monitoring_breakdown_value import MonitoringBreakdownValue +from mux_python.models.monitoring_histogram_timeseries_bucket import MonitoringHistogramTimeseriesBucket +from mux_python.models.monitoring_histogram_timeseries_bucket_values import MonitoringHistogramTimeseriesBucketValues +from mux_python.models.monitoring_histogram_timeseries_datapoint import MonitoringHistogramTimeseriesDatapoint +from mux_python.models.monitoring_timeseries_datapoint import MonitoringTimeseriesDatapoint from mux_python.models.notification_rule import NotificationRule from mux_python.models.overall_values import OverallValues from mux_python.models.playback_id import PlaybackID diff --git a/mux_python/models/abridged_video_view.py b/mux_python/models/abridged_video_view.py index 9128534..bddb0cd 100644 --- a/mux_python/models/abridged_video_view.py +++ b/mux_python/models/abridged_video_view.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -333,7 +336,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/asset.py b/mux_python/models/asset.py index d74f123..e2f9fa1 100644 --- a/mux_python/models/asset.py +++ b/mux_python/models/asset.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -736,7 +739,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/asset_errors.py b/mux_python/models/asset_errors.py index a9a90c9..898877c 100644 --- a/mux_python/models/asset_errors.py +++ b/mux_python/models/asset_errors.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -110,7 +113,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/asset_master.py b/mux_python/models/asset_master.py index d2c499c..c100ded 100644 --- a/mux_python/models/asset_master.py +++ b/mux_python/models/asset_master.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -114,7 +117,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/asset_non_standard_input_reasons.py b/mux_python/models/asset_non_standard_input_reasons.py index 3ab845d..231a9f9 100644 --- a/mux_python/models/asset_non_standard_input_reasons.py +++ b/mux_python/models/asset_non_standard_input_reasons.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -364,7 +367,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/asset_recording_times.py b/mux_python/models/asset_recording_times.py index 90ea98c..b92d5b8 100644 --- a/mux_python/models/asset_recording_times.py +++ b/mux_python/models/asset_recording_times.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -144,7 +147,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/asset_response.py b/mux_python/models/asset_response.py index c325414..a0f8034 100644 --- a/mux_python/models/asset_response.py +++ b/mux_python/models/asset_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/asset_static_renditions.py b/mux_python/models/asset_static_renditions.py index 55ac78d..8e2e0a7 100644 --- a/mux_python/models/asset_static_renditions.py +++ b/mux_python/models/asset_static_renditions.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -116,7 +119,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/asset_static_renditions_files.py b/mux_python/models/asset_static_renditions_files.py index 7f4953e..55f2049 100644 --- a/mux_python/models/asset_static_renditions_files.py +++ b/mux_python/models/asset_static_renditions_files.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -232,7 +235,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/breakdown_value.py b/mux_python/models/breakdown_value.py index 0b23e08..9bc0b2c 100644 --- a/mux_python/models/breakdown_value.py +++ b/mux_python/models/breakdown_value.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -184,7 +187,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/broadcast.py b/mux_python/models/broadcast.py index faea9c5..2a4bd49 100644 --- a/mux_python/models/broadcast.py +++ b/mux_python/models/broadcast.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -249,7 +252,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/broadcast_layout.py b/mux_python/models/broadcast_layout.py index 659049e..dd68106 100644 --- a/mux_python/models/broadcast_layout.py +++ b/mux_python/models/broadcast_layout.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -60,7 +63,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/broadcast_resolution.py b/mux_python/models/broadcast_resolution.py index 147a773..547fbe7 100644 --- a/mux_python/models/broadcast_resolution.py +++ b/mux_python/models/broadcast_resolution.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -64,7 +67,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/broadcast_response.py b/mux_python/models/broadcast_response.py index 5d7948f..d7d2ecb 100644 --- a/mux_python/models/broadcast_response.py +++ b/mux_python/models/broadcast_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -81,7 +84,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/broadcast_status.py b/mux_python/models/broadcast_status.py index 5c56825..1649384 100644 --- a/mux_python/models/broadcast_status.py +++ b/mux_python/models/broadcast_status.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -60,7 +63,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_asset_request.py b/mux_python/models/create_asset_request.py index 57998da..d2c79c3 100644 --- a/mux_python/models/create_asset_request.py +++ b/mux_python/models/create_asset_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -288,7 +291,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_broadcast_request.py b/mux_python/models/create_broadcast_request.py index 9009730..2bed912 100644 --- a/mux_python/models/create_broadcast_request.py +++ b/mux_python/models/create_broadcast_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -191,7 +194,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_live_stream_request.py b/mux_python/models/create_live_stream_request.py index 8dcee05..ab03994 100644 --- a/mux_python/models/create_live_stream_request.py +++ b/mux_python/models/create_live_stream_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -484,7 +487,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_playback_id_request.py b/mux_python/models/create_playback_id_request.py index e9b99ec..48130de 100644 --- a/mux_python/models/create_playback_id_request.py +++ b/mux_python/models/create_playback_id_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_playback_id_response.py b/mux_python/models/create_playback_id_response.py index 9bbc070..42624be 100644 --- a/mux_python/models/create_playback_id_response.py +++ b/mux_python/models/create_playback_id_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_playback_restriction_request.py b/mux_python/models/create_playback_restriction_request.py index cf44566..303adda 100644 --- a/mux_python/models/create_playback_restriction_request.py +++ b/mux_python/models/create_playback_restriction_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_simulcast_target_request.py b/mux_python/models/create_simulcast_target_request.py index 099f821..23b6337 100644 --- a/mux_python/models/create_simulcast_target_request.py +++ b/mux_python/models/create_simulcast_target_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -139,7 +142,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_space_request.py b/mux_python/models/create_space_request.py index 55a1320..e606ea5 100644 --- a/mux_python/models/create_space_request.py +++ b/mux_python/models/create_space_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -136,7 +139,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_track_request.py b/mux_python/models/create_track_request.py index 6db1d17..015ed8e 100644 --- a/mux_python/models/create_track_request.py +++ b/mux_python/models/create_track_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -260,7 +263,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_track_response.py b/mux_python/models/create_track_response.py index cb981da..0aa8aec 100644 --- a/mux_python/models/create_track_response.py +++ b/mux_python/models/create_track_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_transcription_vocabulary_request.py b/mux_python/models/create_transcription_vocabulary_request.py index 9b14896..49d37d4 100644 --- a/mux_python/models/create_transcription_vocabulary_request.py +++ b/mux_python/models/create_transcription_vocabulary_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -142,7 +145,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/create_upload_request.py b/mux_python/models/create_upload_request.py index 8b345fe..122a9fc 100644 --- a/mux_python/models/create_upload_request.py +++ b/mux_python/models/create_upload_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -169,7 +172,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/delivery_report.py b/mux_python/models/delivery_report.py index 9361b7f..9700e20 100644 --- a/mux_python/models/delivery_report.py +++ b/mux_python/models/delivery_report.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -284,7 +287,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/dimension_value.py b/mux_python/models/dimension_value.py index 1fa84b7..dc3e489 100644 --- a/mux_python/models/dimension_value.py +++ b/mux_python/models/dimension_value.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/disable_live_stream_response.py b/mux_python/models/disable_live_stream_response.py index 45bd968..1488ba8 100644 --- a/mux_python/models/disable_live_stream_response.py +++ b/mux_python/models/disable_live_stream_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/enable_live_stream_response.py b/mux_python/models/enable_live_stream_response.py index b0b6c7d..8b8525e 100644 --- a/mux_python/models/enable_live_stream_response.py +++ b/mux_python/models/enable_live_stream_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/error.py b/mux_python/models/error.py index 886952a..b830ef8 100644 --- a/mux_python/models/error.py +++ b/mux_python/models/error.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -278,7 +281,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/export_date.py b/mux_python/models/export_date.py index 63af52e..03e87da 100644 --- a/mux_python/models/export_date.py +++ b/mux_python/models/export_date.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/export_file.py b/mux_python/models/export_file.py index 6d56d2c..17dec90 100644 --- a/mux_python/models/export_file.py +++ b/mux_python/models/export_file.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/filter_value.py b/mux_python/models/filter_value.py index 78b1b25..b16950d 100644 --- a/mux_python/models/filter_value.py +++ b/mux_python/models/filter_value.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_asset_input_info_response.py b/mux_python/models/get_asset_input_info_response.py index c0d7cac..1c57097 100644 --- a/mux_python/models/get_asset_input_info_response.py +++ b/mux_python/models/get_asset_input_info_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_asset_or_live_stream_id_response.py b/mux_python/models/get_asset_or_live_stream_id_response.py index b9156b6..96968a4 100644 --- a/mux_python/models/get_asset_or_live_stream_id_response.py +++ b/mux_python/models/get_asset_or_live_stream_id_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_asset_or_live_stream_id_response_data.py b/mux_python/models/get_asset_or_live_stream_id_response_data.py index 3947d32..dfb9ec1 100644 --- a/mux_python/models/get_asset_or_live_stream_id_response_data.py +++ b/mux_python/models/get_asset_or_live_stream_id_response_data.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -134,7 +137,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_asset_or_live_stream_id_response_data_object.py b/mux_python/models/get_asset_or_live_stream_id_response_data_object.py index 62f1c0d..42ca1a3 100644 --- a/mux_python/models/get_asset_or_live_stream_id_response_data_object.py +++ b/mux_python/models/get_asset_or_live_stream_id_response_data_object.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -116,7 +119,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_asset_playback_id_response.py b/mux_python/models/get_asset_playback_id_response.py index 451903b..182d766 100644 --- a/mux_python/models/get_asset_playback_id_response.py +++ b/mux_python/models/get_asset_playback_id_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_live_stream_playback_id_response.py b/mux_python/models/get_live_stream_playback_id_response.py index 77738a4..2f81335 100644 --- a/mux_python/models/get_live_stream_playback_id_response.py +++ b/mux_python/models/get_live_stream_playback_id_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_metric_timeseries_data_response.py b/mux_python/models/get_metric_timeseries_data_response.py index 6e662d2..8d49a28 100644 --- a/mux_python/models/get_metric_timeseries_data_response.py +++ b/mux_python/models/get_metric_timeseries_data_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_monitoring_breakdown_response.py b/mux_python/models/get_monitoring_breakdown_response.py new file mode 100644 index 0000000..ecc190b --- /dev/null +++ b/mux_python/models/get_monitoring_breakdown_response.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class GetMonitoringBreakdownResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'list[MonitoringBreakdownValue]', + 'total_row_count': 'int', + 'timeframe': 'list[int]' + } + + attribute_map = { + 'data': 'data', + 'total_row_count': 'total_row_count', + 'timeframe': 'timeframe' + } + + def __init__(self, data=None, total_row_count=None, timeframe=None, local_vars_configuration=None): # noqa: E501 + """GetMonitoringBreakdownResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._data = None + self._total_row_count = None + self._timeframe = None + self.discriminator = None + + if data is not None: + self.data = data + if total_row_count is not None: + self.total_row_count = total_row_count + if timeframe is not None: + self.timeframe = timeframe + + @property + def data(self): + """Gets the data of this GetMonitoringBreakdownResponse. # noqa: E501 + + + :return: The data of this GetMonitoringBreakdownResponse. # noqa: E501 + :rtype: list[MonitoringBreakdownValue] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this GetMonitoringBreakdownResponse. + + + :param data: The data of this GetMonitoringBreakdownResponse. # noqa: E501 + :type data: list[MonitoringBreakdownValue] + """ + + self._data = data + + @property + def total_row_count(self): + """Gets the total_row_count of this GetMonitoringBreakdownResponse. # noqa: E501 + + + :return: The total_row_count of this GetMonitoringBreakdownResponse. # noqa: E501 + :rtype: int + """ + return self._total_row_count + + @total_row_count.setter + def total_row_count(self, total_row_count): + """Sets the total_row_count of this GetMonitoringBreakdownResponse. + + + :param total_row_count: The total_row_count of this GetMonitoringBreakdownResponse. # noqa: E501 + :type total_row_count: int + """ + + self._total_row_count = total_row_count + + @property + def timeframe(self): + """Gets the timeframe of this GetMonitoringBreakdownResponse. # noqa: E501 + + + :return: The timeframe of this GetMonitoringBreakdownResponse. # noqa: E501 + :rtype: list[int] + """ + return self._timeframe + + @timeframe.setter + def timeframe(self, timeframe): + """Sets the timeframe of this GetMonitoringBreakdownResponse. + + + :param timeframe: The timeframe of this GetMonitoringBreakdownResponse. # noqa: E501 + :type timeframe: list[int] + """ + + self._timeframe = timeframe + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetMonitoringBreakdownResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetMonitoringBreakdownResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/get_monitoring_histogram_timeseries_response.py b/mux_python/models/get_monitoring_histogram_timeseries_response.py new file mode 100644 index 0000000..a938f41 --- /dev/null +++ b/mux_python/models/get_monitoring_histogram_timeseries_response.py @@ -0,0 +1,210 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class GetMonitoringHistogramTimeseriesResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'meta': 'GetMonitoringHistogramTimeseriesResponseMeta', + 'data': 'list[MonitoringHistogramTimeseriesDatapoint]', + 'total_row_count': 'int', + 'timeframe': 'list[int]' + } + + attribute_map = { + 'meta': 'meta', + 'data': 'data', + 'total_row_count': 'total_row_count', + 'timeframe': 'timeframe' + } + + def __init__(self, meta=None, data=None, total_row_count=None, timeframe=None, local_vars_configuration=None): # noqa: E501 + """GetMonitoringHistogramTimeseriesResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._meta = None + self._data = None + self._total_row_count = None + self._timeframe = None + self.discriminator = None + + if meta is not None: + self.meta = meta + if data is not None: + self.data = data + if total_row_count is not None: + self.total_row_count = total_row_count + if timeframe is not None: + self.timeframe = timeframe + + @property + def meta(self): + """Gets the meta of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + + + :return: The meta of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + :rtype: GetMonitoringHistogramTimeseriesResponseMeta + """ + return self._meta + + @meta.setter + def meta(self, meta): + """Sets the meta of this GetMonitoringHistogramTimeseriesResponse. + + + :param meta: The meta of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + :type meta: GetMonitoringHistogramTimeseriesResponseMeta + """ + + self._meta = meta + + @property + def data(self): + """Gets the data of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + + + :return: The data of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + :rtype: list[MonitoringHistogramTimeseriesDatapoint] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this GetMonitoringHistogramTimeseriesResponse. + + + :param data: The data of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + :type data: list[MonitoringHistogramTimeseriesDatapoint] + """ + + self._data = data + + @property + def total_row_count(self): + """Gets the total_row_count of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + + + :return: The total_row_count of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + :rtype: int + """ + return self._total_row_count + + @total_row_count.setter + def total_row_count(self, total_row_count): + """Sets the total_row_count of this GetMonitoringHistogramTimeseriesResponse. + + + :param total_row_count: The total_row_count of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + :type total_row_count: int + """ + + self._total_row_count = total_row_count + + @property + def timeframe(self): + """Gets the timeframe of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + + + :return: The timeframe of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + :rtype: list[int] + """ + return self._timeframe + + @timeframe.setter + def timeframe(self, timeframe): + """Sets the timeframe of this GetMonitoringHistogramTimeseriesResponse. + + + :param timeframe: The timeframe of this GetMonitoringHistogramTimeseriesResponse. # noqa: E501 + :type timeframe: list[int] + """ + + self._timeframe = timeframe + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetMonitoringHistogramTimeseriesResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetMonitoringHistogramTimeseriesResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/get_monitoring_histogram_timeseries_response_meta.py b/mux_python/models/get_monitoring_histogram_timeseries_response_meta.py new file mode 100644 index 0000000..f7856cb --- /dev/null +++ b/mux_python/models/get_monitoring_histogram_timeseries_response_meta.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class GetMonitoringHistogramTimeseriesResponseMeta(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'buckets': 'list[MonitoringHistogramTimeseriesBucket]' + } + + attribute_map = { + 'buckets': 'buckets' + } + + def __init__(self, buckets=None, local_vars_configuration=None): # noqa: E501 + """GetMonitoringHistogramTimeseriesResponseMeta - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._buckets = None + self.discriminator = None + + if buckets is not None: + self.buckets = buckets + + @property + def buckets(self): + """Gets the buckets of this GetMonitoringHistogramTimeseriesResponseMeta. # noqa: E501 + + + :return: The buckets of this GetMonitoringHistogramTimeseriesResponseMeta. # noqa: E501 + :rtype: list[MonitoringHistogramTimeseriesBucket] + """ + return self._buckets + + @buckets.setter + def buckets(self, buckets): + """Sets the buckets of this GetMonitoringHistogramTimeseriesResponseMeta. + + + :param buckets: The buckets of this GetMonitoringHistogramTimeseriesResponseMeta. # noqa: E501 + :type buckets: list[MonitoringHistogramTimeseriesBucket] + """ + + self._buckets = buckets + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetMonitoringHistogramTimeseriesResponseMeta): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetMonitoringHistogramTimeseriesResponseMeta): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/get_monitoring_timeseries_response.py b/mux_python/models/get_monitoring_timeseries_response.py new file mode 100644 index 0000000..7ec1088 --- /dev/null +++ b/mux_python/models/get_monitoring_timeseries_response.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class GetMonitoringTimeseriesResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'list[MonitoringTimeseriesDatapoint]', + 'total_row_count': 'int', + 'timeframe': 'list[int]' + } + + attribute_map = { + 'data': 'data', + 'total_row_count': 'total_row_count', + 'timeframe': 'timeframe' + } + + def __init__(self, data=None, total_row_count=None, timeframe=None, local_vars_configuration=None): # noqa: E501 + """GetMonitoringTimeseriesResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._data = None + self._total_row_count = None + self._timeframe = None + self.discriminator = None + + if data is not None: + self.data = data + if total_row_count is not None: + self.total_row_count = total_row_count + if timeframe is not None: + self.timeframe = timeframe + + @property + def data(self): + """Gets the data of this GetMonitoringTimeseriesResponse. # noqa: E501 + + + :return: The data of this GetMonitoringTimeseriesResponse. # noqa: E501 + :rtype: list[MonitoringTimeseriesDatapoint] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this GetMonitoringTimeseriesResponse. + + + :param data: The data of this GetMonitoringTimeseriesResponse. # noqa: E501 + :type data: list[MonitoringTimeseriesDatapoint] + """ + + self._data = data + + @property + def total_row_count(self): + """Gets the total_row_count of this GetMonitoringTimeseriesResponse. # noqa: E501 + + + :return: The total_row_count of this GetMonitoringTimeseriesResponse. # noqa: E501 + :rtype: int + """ + return self._total_row_count + + @total_row_count.setter + def total_row_count(self, total_row_count): + """Sets the total_row_count of this GetMonitoringTimeseriesResponse. + + + :param total_row_count: The total_row_count of this GetMonitoringTimeseriesResponse. # noqa: E501 + :type total_row_count: int + """ + + self._total_row_count = total_row_count + + @property + def timeframe(self): + """Gets the timeframe of this GetMonitoringTimeseriesResponse. # noqa: E501 + + + :return: The timeframe of this GetMonitoringTimeseriesResponse. # noqa: E501 + :rtype: list[int] + """ + return self._timeframe + + @timeframe.setter + def timeframe(self, timeframe): + """Sets the timeframe of this GetMonitoringTimeseriesResponse. + + + :param timeframe: The timeframe of this GetMonitoringTimeseriesResponse. # noqa: E501 + :type timeframe: list[int] + """ + + self._timeframe = timeframe + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetMonitoringTimeseriesResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GetMonitoringTimeseriesResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/get_overall_values_response.py b/mux_python/models/get_overall_values_response.py index 8a8f8d5..79535f5 100644 --- a/mux_python/models/get_overall_values_response.py +++ b/mux_python/models/get_overall_values_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_real_time_breakdown_response.py b/mux_python/models/get_real_time_breakdown_response.py index f884229..d34f477 100644 --- a/mux_python/models/get_real_time_breakdown_response.py +++ b/mux_python/models/get_real_time_breakdown_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_real_time_histogram_timeseries_response.py b/mux_python/models/get_real_time_histogram_timeseries_response.py index a2cdcbc..061ae5f 100644 --- a/mux_python/models/get_real_time_histogram_timeseries_response.py +++ b/mux_python/models/get_real_time_histogram_timeseries_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -158,7 +161,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_real_time_histogram_timeseries_response_meta.py b/mux_python/models/get_real_time_histogram_timeseries_response_meta.py index a1f88c1..4641a1f 100644 --- a/mux_python/models/get_real_time_histogram_timeseries_response_meta.py +++ b/mux_python/models/get_real_time_histogram_timeseries_response_meta.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/get_real_time_timeseries_response.py b/mux_python/models/get_real_time_timeseries_response.py index 3cbb113..08f8904 100644 --- a/mux_python/models/get_real_time_timeseries_response.py +++ b/mux_python/models/get_real_time_timeseries_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/incident.py b/mux_python/models/incident.py index 5cc3ad7..1ffebb6 100644 --- a/mux_python/models/incident.py +++ b/mux_python/models/incident.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -600,7 +603,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/incident_breakdown.py b/mux_python/models/incident_breakdown.py index 29551a1..3ceae37 100644 --- a/mux_python/models/incident_breakdown.py +++ b/mux_python/models/incident_breakdown.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/incident_notification.py b/mux_python/models/incident_notification.py index 72c7b0b..ae29bb8 100644 --- a/mux_python/models/incident_notification.py +++ b/mux_python/models/incident_notification.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/incident_notification_rule.py b/mux_python/models/incident_notification_rule.py index e6bd0d6..90ee2d9 100644 --- a/mux_python/models/incident_notification_rule.py +++ b/mux_python/models/incident_notification_rule.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -184,7 +187,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/incident_response.py b/mux_python/models/incident_response.py index 07affc0..07b79cc 100644 --- a/mux_python/models/incident_response.py +++ b/mux_python/models/incident_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/input_file.py b/mux_python/models/input_file.py index 6f20a87..d321210 100644 --- a/mux_python/models/input_file.py +++ b/mux_python/models/input_file.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/input_info.py b/mux_python/models/input_info.py index ea7df2c..27b83b3 100644 --- a/mux_python/models/input_info.py +++ b/mux_python/models/input_info.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/input_settings.py b/mux_python/models/input_settings.py index 0340a80..b2f63b9 100644 --- a/mux_python/models/input_settings.py +++ b/mux_python/models/input_settings.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -344,7 +347,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/input_settings_overlay_settings.py b/mux_python/models/input_settings_overlay_settings.py index 2f3cbba..3e9dc2e 100644 --- a/mux_python/models/input_settings_overlay_settings.py +++ b/mux_python/models/input_settings_overlay_settings.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -262,7 +265,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/input_track.py b/mux_python/models/input_track.py index 68c12c5..6b0a200 100644 --- a/mux_python/models/input_track.py +++ b/mux_python/models/input_track.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -288,7 +291,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/insight.py b/mux_python/models/insight.py index e161041..2e39f3f 100644 --- a/mux_python/models/insight.py +++ b/mux_python/models/insight.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -210,7 +213,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_all_metric_values_response.py b/mux_python/models/list_all_metric_values_response.py index c43350d..8088af4 100644 --- a/mux_python/models/list_all_metric_values_response.py +++ b/mux_python/models/list_all_metric_values_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_assets_response.py b/mux_python/models/list_assets_response.py index 1d66bf3..21caae6 100644 --- a/mux_python/models/list_assets_response.py +++ b/mux_python/models/list_assets_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_breakdown_values_response.py b/mux_python/models/list_breakdown_values_response.py index f7bc3c8..fec9c36 100644 --- a/mux_python/models/list_breakdown_values_response.py +++ b/mux_python/models/list_breakdown_values_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_delivery_usage_response.py b/mux_python/models/list_delivery_usage_response.py index 5251076..f72cf3e 100644 --- a/mux_python/models/list_delivery_usage_response.py +++ b/mux_python/models/list_delivery_usage_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -160,7 +163,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_dimension_values_response.py b/mux_python/models/list_dimension_values_response.py index 57f55e4..8a3b3a6 100644 --- a/mux_python/models/list_dimension_values_response.py +++ b/mux_python/models/list_dimension_values_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_dimensions_response.py b/mux_python/models/list_dimensions_response.py index 47a1918..2fc5b8f 100644 --- a/mux_python/models/list_dimensions_response.py +++ b/mux_python/models/list_dimensions_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_errors_response.py b/mux_python/models/list_errors_response.py index ca305dd..2b3609b 100644 --- a/mux_python/models/list_errors_response.py +++ b/mux_python/models/list_errors_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_exports_response.py b/mux_python/models/list_exports_response.py index 3418680..366a36a 100644 --- a/mux_python/models/list_exports_response.py +++ b/mux_python/models/list_exports_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_filter_values_response.py b/mux_python/models/list_filter_values_response.py index 33df286..b9496c9 100644 --- a/mux_python/models/list_filter_values_response.py +++ b/mux_python/models/list_filter_values_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_filters_response.py b/mux_python/models/list_filters_response.py index 6cac940..e6ee108 100644 --- a/mux_python/models/list_filters_response.py +++ b/mux_python/models/list_filters_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_filters_response_data.py b/mux_python/models/list_filters_response_data.py index 415c71c..ed71c63 100644 --- a/mux_python/models/list_filters_response_data.py +++ b/mux_python/models/list_filters_response_data.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_incidents_response.py b/mux_python/models/list_incidents_response.py index 8f6e74a..5a72818 100644 --- a/mux_python/models/list_incidents_response.py +++ b/mux_python/models/list_incidents_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_insights_response.py b/mux_python/models/list_insights_response.py index f3ccd95..4aa2543 100644 --- a/mux_python/models/list_insights_response.py +++ b/mux_python/models/list_insights_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_live_streams_response.py b/mux_python/models/list_live_streams_response.py index 7bbd512..54fea62 100644 --- a/mux_python/models/list_live_streams_response.py +++ b/mux_python/models/list_live_streams_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_monitoring_dimensions_response.py b/mux_python/models/list_monitoring_dimensions_response.py new file mode 100644 index 0000000..c31df79 --- /dev/null +++ b/mux_python/models/list_monitoring_dimensions_response.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class ListMonitoringDimensionsResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'list[ListMonitoringDimensionsResponseData]', + 'total_row_count': 'int', + 'timeframe': 'list[int]' + } + + attribute_map = { + 'data': 'data', + 'total_row_count': 'total_row_count', + 'timeframe': 'timeframe' + } + + def __init__(self, data=None, total_row_count=None, timeframe=None, local_vars_configuration=None): # noqa: E501 + """ListMonitoringDimensionsResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._data = None + self._total_row_count = None + self._timeframe = None + self.discriminator = None + + if data is not None: + self.data = data + if total_row_count is not None: + self.total_row_count = total_row_count + if timeframe is not None: + self.timeframe = timeframe + + @property + def data(self): + """Gets the data of this ListMonitoringDimensionsResponse. # noqa: E501 + + + :return: The data of this ListMonitoringDimensionsResponse. # noqa: E501 + :rtype: list[ListMonitoringDimensionsResponseData] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListMonitoringDimensionsResponse. + + + :param data: The data of this ListMonitoringDimensionsResponse. # noqa: E501 + :type data: list[ListMonitoringDimensionsResponseData] + """ + + self._data = data + + @property + def total_row_count(self): + """Gets the total_row_count of this ListMonitoringDimensionsResponse. # noqa: E501 + + + :return: The total_row_count of this ListMonitoringDimensionsResponse. # noqa: E501 + :rtype: int + """ + return self._total_row_count + + @total_row_count.setter + def total_row_count(self, total_row_count): + """Sets the total_row_count of this ListMonitoringDimensionsResponse. + + + :param total_row_count: The total_row_count of this ListMonitoringDimensionsResponse. # noqa: E501 + :type total_row_count: int + """ + + self._total_row_count = total_row_count + + @property + def timeframe(self): + """Gets the timeframe of this ListMonitoringDimensionsResponse. # noqa: E501 + + + :return: The timeframe of this ListMonitoringDimensionsResponse. # noqa: E501 + :rtype: list[int] + """ + return self._timeframe + + @timeframe.setter + def timeframe(self, timeframe): + """Sets the timeframe of this ListMonitoringDimensionsResponse. + + + :param timeframe: The timeframe of this ListMonitoringDimensionsResponse. # noqa: E501 + :type timeframe: list[int] + """ + + self._timeframe = timeframe + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListMonitoringDimensionsResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ListMonitoringDimensionsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/list_real_time_dimensions_response_data.py b/mux_python/models/list_monitoring_dimensions_response_data.py similarity index 75% rename from mux_python/models/list_real_time_dimensions_response_data.py rename to mux_python/models/list_monitoring_dimensions_response_data.py index c09f529..d796289 100644 --- a/mux_python/models/list_real_time_dimensions_response_data.py +++ b/mux_python/models/list_monitoring_dimensions_response_data.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -19,7 +22,7 @@ from mux_python.configuration import Configuration -class ListRealTimeDimensionsResponseData(object): +class ListMonitoringDimensionsResponseData(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -44,7 +47,7 @@ class ListRealTimeDimensionsResponseData(object): } def __init__(self, name=None, display_name=None, local_vars_configuration=None): # noqa: E501 - """ListRealTimeDimensionsResponseData - a model defined in OpenAPI""" # noqa: E501 + """ListMonitoringDimensionsResponseData - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration @@ -60,20 +63,20 @@ def __init__(self, name=None, display_name=None, local_vars_configuration=None): @property def name(self): - """Gets the name of this ListRealTimeDimensionsResponseData. # noqa: E501 + """Gets the name of this ListMonitoringDimensionsResponseData. # noqa: E501 - :return: The name of this ListRealTimeDimensionsResponseData. # noqa: E501 + :return: The name of this ListMonitoringDimensionsResponseData. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this ListRealTimeDimensionsResponseData. + """Sets the name of this ListMonitoringDimensionsResponseData. - :param name: The name of this ListRealTimeDimensionsResponseData. # noqa: E501 + :param name: The name of this ListMonitoringDimensionsResponseData. # noqa: E501 :type name: str """ @@ -81,20 +84,20 @@ def name(self, name): @property def display_name(self): - """Gets the display_name of this ListRealTimeDimensionsResponseData. # noqa: E501 + """Gets the display_name of this ListMonitoringDimensionsResponseData. # noqa: E501 - :return: The display_name of this ListRealTimeDimensionsResponseData. # noqa: E501 + :return: The display_name of this ListMonitoringDimensionsResponseData. # noqa: E501 :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): - """Sets the display_name of this ListRealTimeDimensionsResponseData. + """Sets the display_name of this ListMonitoringDimensionsResponseData. - :param display_name: The display_name of this ListRealTimeDimensionsResponseData. # noqa: E501 + :param display_name: The display_name of this ListMonitoringDimensionsResponseData. # noqa: E501 :type display_name: str """ @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: @@ -142,14 +145,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ListRealTimeDimensionsResponseData): + if not isinstance(other, ListMonitoringDimensionsResponseData): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ListRealTimeDimensionsResponseData): + if not isinstance(other, ListMonitoringDimensionsResponseData): return True return self.to_dict() != other.to_dict() diff --git a/mux_python/models/list_monitoring_metrics_response.py b/mux_python/models/list_monitoring_metrics_response.py new file mode 100644 index 0000000..4243ca8 --- /dev/null +++ b/mux_python/models/list_monitoring_metrics_response.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class ListMonitoringMetricsResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'list[ListMonitoringDimensionsResponseData]', + 'total_row_count': 'int', + 'timeframe': 'list[int]' + } + + attribute_map = { + 'data': 'data', + 'total_row_count': 'total_row_count', + 'timeframe': 'timeframe' + } + + def __init__(self, data=None, total_row_count=None, timeframe=None, local_vars_configuration=None): # noqa: E501 + """ListMonitoringMetricsResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._data = None + self._total_row_count = None + self._timeframe = None + self.discriminator = None + + if data is not None: + self.data = data + if total_row_count is not None: + self.total_row_count = total_row_count + if timeframe is not None: + self.timeframe = timeframe + + @property + def data(self): + """Gets the data of this ListMonitoringMetricsResponse. # noqa: E501 + + + :return: The data of this ListMonitoringMetricsResponse. # noqa: E501 + :rtype: list[ListMonitoringDimensionsResponseData] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListMonitoringMetricsResponse. + + + :param data: The data of this ListMonitoringMetricsResponse. # noqa: E501 + :type data: list[ListMonitoringDimensionsResponseData] + """ + + self._data = data + + @property + def total_row_count(self): + """Gets the total_row_count of this ListMonitoringMetricsResponse. # noqa: E501 + + + :return: The total_row_count of this ListMonitoringMetricsResponse. # noqa: E501 + :rtype: int + """ + return self._total_row_count + + @total_row_count.setter + def total_row_count(self, total_row_count): + """Sets the total_row_count of this ListMonitoringMetricsResponse. + + + :param total_row_count: The total_row_count of this ListMonitoringMetricsResponse. # noqa: E501 + :type total_row_count: int + """ + + self._total_row_count = total_row_count + + @property + def timeframe(self): + """Gets the timeframe of this ListMonitoringMetricsResponse. # noqa: E501 + + + :return: The timeframe of this ListMonitoringMetricsResponse. # noqa: E501 + :rtype: list[int] + """ + return self._timeframe + + @timeframe.setter + def timeframe(self, timeframe): + """Sets the timeframe of this ListMonitoringMetricsResponse. + + + :param timeframe: The timeframe of this ListMonitoringMetricsResponse. # noqa: E501 + :type timeframe: list[int] + """ + + self._timeframe = timeframe + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListMonitoringMetricsResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ListMonitoringMetricsResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/list_playback_restrictions_response.py b/mux_python/models/list_playback_restrictions_response.py index 88a9149..c3b4b8a 100644 --- a/mux_python/models/list_playback_restrictions_response.py +++ b/mux_python/models/list_playback_restrictions_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_real_time_dimensions_response.py b/mux_python/models/list_real_time_dimensions_response.py index 42efef9..28f45c3 100644 --- a/mux_python/models/list_real_time_dimensions_response.py +++ b/mux_python/models/list_real_time_dimensions_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -34,7 +37,7 @@ class ListRealTimeDimensionsResponse(object): and the value is json key in definition. """ openapi_types = { - 'data': 'list[ListRealTimeDimensionsResponseData]', + 'data': 'list[ListMonitoringDimensionsResponseData]', 'total_row_count': 'int', 'timeframe': 'list[int]' } @@ -69,7 +72,7 @@ def data(self): :return: The data of this ListRealTimeDimensionsResponse. # noqa: E501 - :rtype: list[ListRealTimeDimensionsResponseData] + :rtype: list[ListMonitoringDimensionsResponseData] """ return self._data @@ -79,7 +82,7 @@ def data(self, data): :param data: The data of this ListRealTimeDimensionsResponse. # noqa: E501 - :type data: list[ListRealTimeDimensionsResponseData] + :type data: list[ListMonitoringDimensionsResponseData] """ self._data = data @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_real_time_metrics_response.py b/mux_python/models/list_real_time_metrics_response.py index bcab382..8dfce74 100644 --- a/mux_python/models/list_real_time_metrics_response.py +++ b/mux_python/models/list_real_time_metrics_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -34,7 +37,7 @@ class ListRealTimeMetricsResponse(object): and the value is json key in definition. """ openapi_types = { - 'data': 'list[ListRealTimeDimensionsResponseData]', + 'data': 'list[ListMonitoringDimensionsResponseData]', 'total_row_count': 'int', 'timeframe': 'list[int]' } @@ -69,7 +72,7 @@ def data(self): :return: The data of this ListRealTimeMetricsResponse. # noqa: E501 - :rtype: list[ListRealTimeDimensionsResponseData] + :rtype: list[ListMonitoringDimensionsResponseData] """ return self._data @@ -79,7 +82,7 @@ def data(self, data): :param data: The data of this ListRealTimeMetricsResponse. # noqa: E501 - :type data: list[ListRealTimeDimensionsResponseData] + :type data: list[ListMonitoringDimensionsResponseData] """ self._data = data @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_related_incidents_response.py b/mux_python/models/list_related_incidents_response.py index 876c951..5d62e8b 100644 --- a/mux_python/models/list_related_incidents_response.py +++ b/mux_python/models/list_related_incidents_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_signing_keys_response.py b/mux_python/models/list_signing_keys_response.py index 7f67432..7096232 100644 --- a/mux_python/models/list_signing_keys_response.py +++ b/mux_python/models/list_signing_keys_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_spaces_response.py b/mux_python/models/list_spaces_response.py index f9ae6f7..6d2dd94 100644 --- a/mux_python/models/list_spaces_response.py +++ b/mux_python/models/list_spaces_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -81,7 +84,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_transcription_vocabularies_response.py b/mux_python/models/list_transcription_vocabularies_response.py index fd09bd7..eddb26c 100644 --- a/mux_python/models/list_transcription_vocabularies_response.py +++ b/mux_python/models/list_transcription_vocabularies_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_uploads_response.py b/mux_python/models/list_uploads_response.py index 0c623f2..fc54610 100644 --- a/mux_python/models/list_uploads_response.py +++ b/mux_python/models/list_uploads_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_video_view_exports_response.py b/mux_python/models/list_video_view_exports_response.py index 8aeb978..87b9e7a 100644 --- a/mux_python/models/list_video_view_exports_response.py +++ b/mux_python/models/list_video_view_exports_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/list_video_views_response.py b/mux_python/models/list_video_views_response.py index c5b82ed..0bdf559 100644 --- a/mux_python/models/list_video_views_response.py +++ b/mux_python/models/list_video_views_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/live_stream.py b/mux_python/models/live_stream.py index f104fe1..855725a 100644 --- a/mux_python/models/live_stream.py +++ b/mux_python/models/live_stream.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -656,7 +659,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/live_stream_embedded_subtitle_settings.py b/mux_python/models/live_stream_embedded_subtitle_settings.py index 0ace26a..f9cb8d6 100644 --- a/mux_python/models/live_stream_embedded_subtitle_settings.py +++ b/mux_python/models/live_stream_embedded_subtitle_settings.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -172,7 +175,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/live_stream_generated_subtitle_settings.py b/mux_python/models/live_stream_generated_subtitle_settings.py index 8c9f5f3..910c20b 100644 --- a/mux_python/models/live_stream_generated_subtitle_settings.py +++ b/mux_python/models/live_stream_generated_subtitle_settings.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -172,7 +175,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/live_stream_response.py b/mux_python/models/live_stream_response.py index 5feb970..1fc4c6a 100644 --- a/mux_python/models/live_stream_response.py +++ b/mux_python/models/live_stream_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/live_stream_status.py b/mux_python/models/live_stream_status.py index d551309..053e73a 100644 --- a/mux_python/models/live_stream_status.py +++ b/mux_python/models/live_stream_status.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -61,7 +64,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/metric.py b/mux_python/models/metric.py index 87b8e5f..7925b82 100644 --- a/mux_python/models/metric.py +++ b/mux_python/models/metric.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -184,7 +187,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/monitoring_breakdown_value.py b/mux_python/models/monitoring_breakdown_value.py new file mode 100644 index 0000000..ebc2012 --- /dev/null +++ b/mux_python/models/monitoring_breakdown_value.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class MonitoringBreakdownValue(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'value': 'str', + 'negative_impact': 'int', + 'metric_value': 'float', + 'display_value': 'str', + 'concurrent_viewers': 'int' + } + + attribute_map = { + 'value': 'value', + 'negative_impact': 'negative_impact', + 'metric_value': 'metric_value', + 'display_value': 'display_value', + 'concurrent_viewers': 'concurrent_viewers' + } + + def __init__(self, value=None, negative_impact=None, metric_value=None, display_value=None, concurrent_viewers=None, local_vars_configuration=None): # noqa: E501 + """MonitoringBreakdownValue - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._value = None + self._negative_impact = None + self._metric_value = None + self._display_value = None + self._concurrent_viewers = None + self.discriminator = None + + if value is not None: + self.value = value + if negative_impact is not None: + self.negative_impact = negative_impact + if metric_value is not None: + self.metric_value = metric_value + if display_value is not None: + self.display_value = display_value + if concurrent_viewers is not None: + self.concurrent_viewers = concurrent_viewers + + @property + def value(self): + """Gets the value of this MonitoringBreakdownValue. # noqa: E501 + + + :return: The value of this MonitoringBreakdownValue. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this MonitoringBreakdownValue. + + + :param value: The value of this MonitoringBreakdownValue. # noqa: E501 + :type value: str + """ + + self._value = value + + @property + def negative_impact(self): + """Gets the negative_impact of this MonitoringBreakdownValue. # noqa: E501 + + + :return: The negative_impact of this MonitoringBreakdownValue. # noqa: E501 + :rtype: int + """ + return self._negative_impact + + @negative_impact.setter + def negative_impact(self, negative_impact): + """Sets the negative_impact of this MonitoringBreakdownValue. + + + :param negative_impact: The negative_impact of this MonitoringBreakdownValue. # noqa: E501 + :type negative_impact: int + """ + + self._negative_impact = negative_impact + + @property + def metric_value(self): + """Gets the metric_value of this MonitoringBreakdownValue. # noqa: E501 + + + :return: The metric_value of this MonitoringBreakdownValue. # noqa: E501 + :rtype: float + """ + return self._metric_value + + @metric_value.setter + def metric_value(self, metric_value): + """Sets the metric_value of this MonitoringBreakdownValue. + + + :param metric_value: The metric_value of this MonitoringBreakdownValue. # noqa: E501 + :type metric_value: float + """ + + self._metric_value = metric_value + + @property + def display_value(self): + """Gets the display_value of this MonitoringBreakdownValue. # noqa: E501 + + + :return: The display_value of this MonitoringBreakdownValue. # noqa: E501 + :rtype: str + """ + return self._display_value + + @display_value.setter + def display_value(self, display_value): + """Sets the display_value of this MonitoringBreakdownValue. + + + :param display_value: The display_value of this MonitoringBreakdownValue. # noqa: E501 + :type display_value: str + """ + + self._display_value = display_value + + @property + def concurrent_viewers(self): + """Gets the concurrent_viewers of this MonitoringBreakdownValue. # noqa: E501 + + + :return: The concurrent_viewers of this MonitoringBreakdownValue. # noqa: E501 + :rtype: int + """ + return self._concurrent_viewers + + @concurrent_viewers.setter + def concurrent_viewers(self, concurrent_viewers): + """Sets the concurrent_viewers of this MonitoringBreakdownValue. + + + :param concurrent_viewers: The concurrent_viewers of this MonitoringBreakdownValue. # noqa: E501 + :type concurrent_viewers: int + """ + + self._concurrent_viewers = concurrent_viewers + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringBreakdownValue): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringBreakdownValue): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/monitoring_histogram_timeseries_bucket.py b/mux_python/models/monitoring_histogram_timeseries_bucket.py new file mode 100644 index 0000000..cc2dfcd --- /dev/null +++ b/mux_python/models/monitoring_histogram_timeseries_bucket.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class MonitoringHistogramTimeseriesBucket(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'start': 'int', + 'end': 'int' + } + + attribute_map = { + 'start': 'start', + 'end': 'end' + } + + def __init__(self, start=None, end=None, local_vars_configuration=None): # noqa: E501 + """MonitoringHistogramTimeseriesBucket - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._start = None + self._end = None + self.discriminator = None + + if start is not None: + self.start = start + if end is not None: + self.end = end + + @property + def start(self): + """Gets the start of this MonitoringHistogramTimeseriesBucket. # noqa: E501 + + + :return: The start of this MonitoringHistogramTimeseriesBucket. # noqa: E501 + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this MonitoringHistogramTimeseriesBucket. + + + :param start: The start of this MonitoringHistogramTimeseriesBucket. # noqa: E501 + :type start: int + """ + + self._start = start + + @property + def end(self): + """Gets the end of this MonitoringHistogramTimeseriesBucket. # noqa: E501 + + + :return: The end of this MonitoringHistogramTimeseriesBucket. # noqa: E501 + :rtype: int + """ + return self._end + + @end.setter + def end(self, end): + """Sets the end of this MonitoringHistogramTimeseriesBucket. + + + :param end: The end of this MonitoringHistogramTimeseriesBucket. # noqa: E501 + :type end: int + """ + + self._end = end + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringHistogramTimeseriesBucket): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringHistogramTimeseriesBucket): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/monitoring_histogram_timeseries_bucket_values.py b/mux_python/models/monitoring_histogram_timeseries_bucket_values.py new file mode 100644 index 0000000..7dba7dc --- /dev/null +++ b/mux_python/models/monitoring_histogram_timeseries_bucket_values.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class MonitoringHistogramTimeseriesBucketValues(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'percentage': 'float', + 'count': 'int' + } + + attribute_map = { + 'percentage': 'percentage', + 'count': 'count' + } + + def __init__(self, percentage=None, count=None, local_vars_configuration=None): # noqa: E501 + """MonitoringHistogramTimeseriesBucketValues - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._percentage = None + self._count = None + self.discriminator = None + + if percentage is not None: + self.percentage = percentage + if count is not None: + self.count = count + + @property + def percentage(self): + """Gets the percentage of this MonitoringHistogramTimeseriesBucketValues. # noqa: E501 + + + :return: The percentage of this MonitoringHistogramTimeseriesBucketValues. # noqa: E501 + :rtype: float + """ + return self._percentage + + @percentage.setter + def percentage(self, percentage): + """Sets the percentage of this MonitoringHistogramTimeseriesBucketValues. + + + :param percentage: The percentage of this MonitoringHistogramTimeseriesBucketValues. # noqa: E501 + :type percentage: float + """ + + self._percentage = percentage + + @property + def count(self): + """Gets the count of this MonitoringHistogramTimeseriesBucketValues. # noqa: E501 + + + :return: The count of this MonitoringHistogramTimeseriesBucketValues. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this MonitoringHistogramTimeseriesBucketValues. + + + :param count: The count of this MonitoringHistogramTimeseriesBucketValues. # noqa: E501 + :type count: int + """ + + self._count = count + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringHistogramTimeseriesBucketValues): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringHistogramTimeseriesBucketValues): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/monitoring_histogram_timeseries_datapoint.py b/mux_python/models/monitoring_histogram_timeseries_datapoint.py new file mode 100644 index 0000000..1961da8 --- /dev/null +++ b/mux_python/models/monitoring_histogram_timeseries_datapoint.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class MonitoringHistogramTimeseriesDatapoint(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'timestamp': 'str', + 'sum': 'int', + 'p95': 'float', + 'median': 'float', + 'max_percentage': 'float', + 'bucket_values': 'list[MonitoringHistogramTimeseriesBucketValues]', + 'average': 'float' + } + + attribute_map = { + 'timestamp': 'timestamp', + 'sum': 'sum', + 'p95': 'p95', + 'median': 'median', + 'max_percentage': 'max_percentage', + 'bucket_values': 'bucket_values', + 'average': 'average' + } + + def __init__(self, timestamp=None, sum=None, p95=None, median=None, max_percentage=None, bucket_values=None, average=None, local_vars_configuration=None): # noqa: E501 + """MonitoringHistogramTimeseriesDatapoint - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._timestamp = None + self._sum = None + self._p95 = None + self._median = None + self._max_percentage = None + self._bucket_values = None + self._average = None + self.discriminator = None + + if timestamp is not None: + self.timestamp = timestamp + if sum is not None: + self.sum = sum + if p95 is not None: + self.p95 = p95 + if median is not None: + self.median = median + if max_percentage is not None: + self.max_percentage = max_percentage + if bucket_values is not None: + self.bucket_values = bucket_values + if average is not None: + self.average = average + + @property + def timestamp(self): + """Gets the timestamp of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + + + :return: The timestamp of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :rtype: str + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this MonitoringHistogramTimeseriesDatapoint. + + + :param timestamp: The timestamp of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :type timestamp: str + """ + + self._timestamp = timestamp + + @property + def sum(self): + """Gets the sum of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + + + :return: The sum of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :rtype: int + """ + return self._sum + + @sum.setter + def sum(self, sum): + """Sets the sum of this MonitoringHistogramTimeseriesDatapoint. + + + :param sum: The sum of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :type sum: int + """ + + self._sum = sum + + @property + def p95(self): + """Gets the p95 of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + + + :return: The p95 of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :rtype: float + """ + return self._p95 + + @p95.setter + def p95(self, p95): + """Sets the p95 of this MonitoringHistogramTimeseriesDatapoint. + + + :param p95: The p95 of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :type p95: float + """ + + self._p95 = p95 + + @property + def median(self): + """Gets the median of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + + + :return: The median of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :rtype: float + """ + return self._median + + @median.setter + def median(self, median): + """Sets the median of this MonitoringHistogramTimeseriesDatapoint. + + + :param median: The median of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :type median: float + """ + + self._median = median + + @property + def max_percentage(self): + """Gets the max_percentage of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + + + :return: The max_percentage of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :rtype: float + """ + return self._max_percentage + + @max_percentage.setter + def max_percentage(self, max_percentage): + """Sets the max_percentage of this MonitoringHistogramTimeseriesDatapoint. + + + :param max_percentage: The max_percentage of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :type max_percentage: float + """ + + self._max_percentage = max_percentage + + @property + def bucket_values(self): + """Gets the bucket_values of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + + + :return: The bucket_values of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :rtype: list[MonitoringHistogramTimeseriesBucketValues] + """ + return self._bucket_values + + @bucket_values.setter + def bucket_values(self, bucket_values): + """Sets the bucket_values of this MonitoringHistogramTimeseriesDatapoint. + + + :param bucket_values: The bucket_values of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :type bucket_values: list[MonitoringHistogramTimeseriesBucketValues] + """ + + self._bucket_values = bucket_values + + @property + def average(self): + """Gets the average of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + + + :return: The average of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :rtype: float + """ + return self._average + + @average.setter + def average(self, average): + """Sets the average of this MonitoringHistogramTimeseriesDatapoint. + + + :param average: The average of this MonitoringHistogramTimeseriesDatapoint. # noqa: E501 + :type average: float + """ + + self._average = average + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringHistogramTimeseriesDatapoint): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringHistogramTimeseriesDatapoint): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/monitoring_timeseries_datapoint.py b/mux_python/models/monitoring_timeseries_datapoint.py new file mode 100644 index 0000000..65ac3fe --- /dev/null +++ b/mux_python/models/monitoring_timeseries_datapoint.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from mux_python.configuration import Configuration + + +class MonitoringTimeseriesDatapoint(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'value': 'float', + 'date': 'str', + 'concurrent_viewers': 'int' + } + + attribute_map = { + 'value': 'value', + 'date': 'date', + 'concurrent_viewers': 'concurrent_viewers' + } + + def __init__(self, value=None, date=None, concurrent_viewers=None, local_vars_configuration=None): # noqa: E501 + """MonitoringTimeseriesDatapoint - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._value = None + self._date = None + self._concurrent_viewers = None + self.discriminator = None + + if value is not None: + self.value = value + if date is not None: + self.date = date + if concurrent_viewers is not None: + self.concurrent_viewers = concurrent_viewers + + @property + def value(self): + """Gets the value of this MonitoringTimeseriesDatapoint. # noqa: E501 + + + :return: The value of this MonitoringTimeseriesDatapoint. # noqa: E501 + :rtype: float + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this MonitoringTimeseriesDatapoint. + + + :param value: The value of this MonitoringTimeseriesDatapoint. # noqa: E501 + :type value: float + """ + + self._value = value + + @property + def date(self): + """Gets the date of this MonitoringTimeseriesDatapoint. # noqa: E501 + + + :return: The date of this MonitoringTimeseriesDatapoint. # noqa: E501 + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this MonitoringTimeseriesDatapoint. + + + :param date: The date of this MonitoringTimeseriesDatapoint. # noqa: E501 + :type date: str + """ + + self._date = date + + @property + def concurrent_viewers(self): + """Gets the concurrent_viewers of this MonitoringTimeseriesDatapoint. # noqa: E501 + + + :return: The concurrent_viewers of this MonitoringTimeseriesDatapoint. # noqa: E501 + :rtype: int + """ + return self._concurrent_viewers + + @concurrent_viewers.setter + def concurrent_viewers(self, concurrent_viewers): + """Sets the concurrent_viewers of this MonitoringTimeseriesDatapoint. + + + :param concurrent_viewers: The concurrent_viewers of this MonitoringTimeseriesDatapoint. # noqa: E501 + :type concurrent_viewers: int + """ + + self._concurrent_viewers = concurrent_viewers + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringTimeseriesDatapoint): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringTimeseriesDatapoint): + return True + + return self.to_dict() != other.to_dict() diff --git a/mux_python/models/notification_rule.py b/mux_python/models/notification_rule.py index 415e55b..1ac2dd7 100644 --- a/mux_python/models/notification_rule.py +++ b/mux_python/models/notification_rule.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/overall_values.py b/mux_python/models/overall_values.py index e8a33a9..b8b3e58 100644 --- a/mux_python/models/overall_values.py +++ b/mux_python/models/overall_values.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -158,7 +161,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/playback_id.py b/mux_python/models/playback_id.py index 9276e5c..37bccfc 100644 --- a/mux_python/models/playback_id.py +++ b/mux_python/models/playback_id.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -108,7 +111,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/playback_policy.py b/mux_python/models/playback_policy.py index 4d1d7a9..1e82cfe 100644 --- a/mux_python/models/playback_policy.py +++ b/mux_python/models/playback_policy.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -60,7 +63,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/playback_restriction.py b/mux_python/models/playback_restriction.py index 349d4b5..8b60d92 100644 --- a/mux_python/models/playback_restriction.py +++ b/mux_python/models/playback_restriction.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -164,7 +167,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/playback_restriction_response.py b/mux_python/models/playback_restriction_response.py index fe93d7e..5b3a9a5 100644 --- a/mux_python/models/playback_restriction_response.py +++ b/mux_python/models/playback_restriction_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/real_time_breakdown_value.py b/mux_python/models/real_time_breakdown_value.py index 1c2dc95..cfc481b 100644 --- a/mux_python/models/real_time_breakdown_value.py +++ b/mux_python/models/real_time_breakdown_value.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -184,7 +187,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/real_time_histogram_timeseries_bucket.py b/mux_python/models/real_time_histogram_timeseries_bucket.py index 33dc3d4..b4d3f82 100644 --- a/mux_python/models/real_time_histogram_timeseries_bucket.py +++ b/mux_python/models/real_time_histogram_timeseries_bucket.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/real_time_histogram_timeseries_bucket_values.py b/mux_python/models/real_time_histogram_timeseries_bucket_values.py index 8a97101..370bb1c 100644 --- a/mux_python/models/real_time_histogram_timeseries_bucket_values.py +++ b/mux_python/models/real_time_histogram_timeseries_bucket_values.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/real_time_histogram_timeseries_datapoint.py b/mux_python/models/real_time_histogram_timeseries_datapoint.py index 9b372a4..6dc65fa 100644 --- a/mux_python/models/real_time_histogram_timeseries_datapoint.py +++ b/mux_python/models/real_time_histogram_timeseries_datapoint.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -236,7 +239,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/real_time_timeseries_datapoint.py b/mux_python/models/real_time_timeseries_datapoint.py index dc9a555..f906269 100644 --- a/mux_python/models/real_time_timeseries_datapoint.py +++ b/mux_python/models/real_time_timeseries_datapoint.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -132,7 +135,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/referrer_domain_restriction.py b/mux_python/models/referrer_domain_restriction.py index 39a015a..73a2ada 100644 --- a/mux_python/models/referrer_domain_restriction.py +++ b/mux_python/models/referrer_domain_restriction.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -110,7 +113,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/score.py b/mux_python/models/score.py index b6fe3ad..2f9e0b2 100644 --- a/mux_python/models/score.py +++ b/mux_python/models/score.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -210,7 +213,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/signal_live_stream_complete_response.py b/mux_python/models/signal_live_stream_complete_response.py index ae176ac..22ba61d 100644 --- a/mux_python/models/signal_live_stream_complete_response.py +++ b/mux_python/models/signal_live_stream_complete_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/signing_key.py b/mux_python/models/signing_key.py index 405709c..ae2f13e 100644 --- a/mux_python/models/signing_key.py +++ b/mux_python/models/signing_key.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -138,7 +141,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/signing_key_response.py b/mux_python/models/signing_key_response.py index c905240..5687a4e 100644 --- a/mux_python/models/signing_key_response.py +++ b/mux_python/models/signing_key_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/simulcast_target.py b/mux_python/models/simulcast_target.py index cd5cbe1..1e7dfac 100644 --- a/mux_python/models/simulcast_target.py +++ b/mux_python/models/simulcast_target.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -200,7 +203,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/simulcast_target_response.py b/mux_python/models/simulcast_target_response.py index cf9395d..a9d093c 100644 --- a/mux_python/models/simulcast_target_response.py +++ b/mux_python/models/simulcast_target_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/space.py b/mux_python/models/space.py index 8fd37c8..ab24aaa 100644 --- a/mux_python/models/space.py +++ b/mux_python/models/space.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -250,7 +253,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/space_response.py b/mux_python/models/space_response.py index 4ee68bf..e67c688 100644 --- a/mux_python/models/space_response.py +++ b/mux_python/models/space_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -81,7 +84,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/space_status.py b/mux_python/models/space_status.py index 9990fbb..ced9107 100644 --- a/mux_python/models/space_status.py +++ b/mux_python/models/space_status.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -60,7 +63,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/space_type.py b/mux_python/models/space_type.py index 7947109..abc0e6d 100644 --- a/mux_python/models/space_type.py +++ b/mux_python/models/space_type.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -59,7 +62,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/start_space_broadcast_response.py b/mux_python/models/start_space_broadcast_response.py index 0874088..9a83c56 100644 --- a/mux_python/models/start_space_broadcast_response.py +++ b/mux_python/models/start_space_broadcast_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/stop_space_broadcast_response.py b/mux_python/models/stop_space_broadcast_response.py index a3c8550..93d3dd4 100644 --- a/mux_python/models/stop_space_broadcast_response.py +++ b/mux_python/models/stop_space_broadcast_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/track.py b/mux_python/models/track.py index e91f29a..b1fe5d4 100644 --- a/mux_python/models/track.py +++ b/mux_python/models/track.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -498,7 +501,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/transcription_vocabulary.py b/mux_python/models/transcription_vocabulary.py index ea27af7..c62a810 100644 --- a/mux_python/models/transcription_vocabulary.py +++ b/mux_python/models/transcription_vocabulary.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -225,7 +228,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/transcription_vocabulary_response.py b/mux_python/models/transcription_vocabulary_response.py index 1b293d2..2eace87 100644 --- a/mux_python/models/transcription_vocabulary_response.py +++ b/mux_python/models/transcription_vocabulary_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/update_asset_master_access_request.py b/mux_python/models/update_asset_master_access_request.py index 3b3c43a..7f35f08 100644 --- a/mux_python/models/update_asset_master_access_request.py +++ b/mux_python/models/update_asset_master_access_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -88,7 +91,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/update_asset_mp4_support_request.py b/mux_python/models/update_asset_mp4_support_request.py index 62ed0f2..dc2e951 100644 --- a/mux_python/models/update_asset_mp4_support_request.py +++ b/mux_python/models/update_asset_mp4_support_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -88,7 +91,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/update_asset_request.py b/mux_python/models/update_asset_request.py index f73477b..76b3571 100644 --- a/mux_python/models/update_asset_request.py +++ b/mux_python/models/update_asset_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -82,7 +85,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/update_live_stream_embedded_subtitles_request.py b/mux_python/models/update_live_stream_embedded_subtitles_request.py index 8d64639..77cd001 100644 --- a/mux_python/models/update_live_stream_embedded_subtitles_request.py +++ b/mux_python/models/update_live_stream_embedded_subtitles_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -82,7 +85,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/update_live_stream_generated_subtitles_request.py b/mux_python/models/update_live_stream_generated_subtitles_request.py index a0875cf..9374b11 100644 --- a/mux_python/models/update_live_stream_generated_subtitles_request.py +++ b/mux_python/models/update_live_stream_generated_subtitles_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -82,7 +85,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/update_live_stream_request.py b/mux_python/models/update_live_stream_request.py index 693ccac..61cde4f 100644 --- a/mux_python/models/update_live_stream_request.py +++ b/mux_python/models/update_live_stream_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -240,7 +243,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/update_referrer_domain_restriction_request.py b/mux_python/models/update_referrer_domain_restriction_request.py index 201f801..0200c2e 100644 --- a/mux_python/models/update_referrer_domain_restriction_request.py +++ b/mux_python/models/update_referrer_domain_restriction_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -110,7 +113,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/update_transcription_vocabulary_request.py b/mux_python/models/update_transcription_vocabulary_request.py index 474dc9a..4a7b803 100644 --- a/mux_python/models/update_transcription_vocabulary_request.py +++ b/mux_python/models/update_transcription_vocabulary_request.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -142,7 +145,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/upload.py b/mux_python/models/upload.py index edec6b7..9dfeff5 100644 --- a/mux_python/models/upload.py +++ b/mux_python/models/upload.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -312,7 +315,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/upload_error.py b/mux_python/models/upload_error.py index 6665e56..2685690 100644 --- a/mux_python/models/upload_error.py +++ b/mux_python/models/upload_error.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -110,7 +113,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/upload_response.py b/mux_python/models/upload_response.py index 4a15790..889931a 100644 --- a/mux_python/models/upload_response.py +++ b/mux_python/models/upload_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -80,7 +83,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/video_view.py b/mux_python/models/video_view.py index 69fc32c..4616070 100644 --- a/mux_python/models/video_view.py +++ b/mux_python/models/video_view.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -3196,7 +3199,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/video_view_event.py b/mux_python/models/video_view_event.py index 2bd3fc6..8ef7e8b 100644 --- a/mux_python/models/video_view_event.py +++ b/mux_python/models/video_view_event.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -158,7 +161,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/mux_python/models/video_view_response.py b/mux_python/models/video_view_response.py index 01f0196..35706c9 100644 --- a/mux_python/models/video_view_response.py +++ b/mux_python/models/video_view_response.py @@ -11,7 +11,10 @@ """ -import inspect +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six @@ -106,7 +109,7 @@ def to_dict(self, serialize=False): def convert(x): if hasattr(x, "to_dict"): - args = inspect.getargspec(x.to_dict).args + args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: diff --git a/setup.py b/setup.py index 16076b3..165b5c4 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "mux_python" -VERSION = "3.7.1" +VERSION = "3.8.0" # To install the library, run the following # # python setup.py install diff --git a/test/test_get_monitoring_breakdown_response.py b/test/test_get_monitoring_breakdown_response.py new file mode 100644 index 0000000..a4d88b2 --- /dev/null +++ b/test/test_get_monitoring_breakdown_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.get_monitoring_breakdown_response import GetMonitoringBreakdownResponse # noqa: E501 +from mux_python.rest import ApiException + +class TestGetMonitoringBreakdownResponse(unittest.TestCase): + """GetMonitoringBreakdownResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GetMonitoringBreakdownResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.get_monitoring_breakdown_response.GetMonitoringBreakdownResponse() # noqa: E501 + if include_optional : + return GetMonitoringBreakdownResponse( + data = [ + mux_python.models.monitoring_breakdown_value.MonitoringBreakdownValue( + value = '', + negative_impact = 56, + metric_value = 1.337, + display_value = '', + concurrent_viewers = 56, ) + ], + total_row_count = 56, + timeframe = [ + 56 + ] + ) + else : + return GetMonitoringBreakdownResponse( + ) + + def testGetMonitoringBreakdownResponse(self): + """Test GetMonitoringBreakdownResponse""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_monitoring_histogram_timeseries_response.py b/test/test_get_monitoring_histogram_timeseries_response.py new file mode 100644 index 0000000..5dc8295 --- /dev/null +++ b/test/test_get_monitoring_histogram_timeseries_response.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.get_monitoring_histogram_timeseries_response import GetMonitoringHistogramTimeseriesResponse # noqa: E501 +from mux_python.rest import ApiException + +class TestGetMonitoringHistogramTimeseriesResponse(unittest.TestCase): + """GetMonitoringHistogramTimeseriesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GetMonitoringHistogramTimeseriesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.get_monitoring_histogram_timeseries_response.GetMonitoringHistogramTimeseriesResponse() # noqa: E501 + if include_optional : + return GetMonitoringHistogramTimeseriesResponse( + meta = mux_python.models.get_monitoring_histogram_timeseries_response_meta.GetMonitoringHistogramTimeseriesResponse_meta( + buckets = [ + mux_python.models.monitoring_histogram_timeseries_bucket.MonitoringHistogramTimeseriesBucket( + start = 56, + end = 56, ) + ], ), + data = [ + mux_python.models.monitoring_histogram_timeseries_datapoint.MonitoringHistogramTimeseriesDatapoint( + timestamp = '', + sum = 56, + p95 = 1.337, + median = 1.337, + max_percentage = 1.337, + bucket_values = [ + mux_python.models.monitoring_histogram_timeseries_bucket_values.MonitoringHistogramTimeseriesBucketValues( + percentage = 1.337, + count = 56, ) + ], + average = 1.337, ) + ], + total_row_count = 56, + timeframe = [ + 56 + ] + ) + else : + return GetMonitoringHistogramTimeseriesResponse( + ) + + def testGetMonitoringHistogramTimeseriesResponse(self): + """Test GetMonitoringHistogramTimeseriesResponse""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_monitoring_histogram_timeseries_response_meta.py b/test/test_get_monitoring_histogram_timeseries_response_meta.py new file mode 100644 index 0000000..d9011d8 --- /dev/null +++ b/test/test_get_monitoring_histogram_timeseries_response_meta.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.get_monitoring_histogram_timeseries_response_meta import GetMonitoringHistogramTimeseriesResponseMeta # noqa: E501 +from mux_python.rest import ApiException + +class TestGetMonitoringHistogramTimeseriesResponseMeta(unittest.TestCase): + """GetMonitoringHistogramTimeseriesResponseMeta unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GetMonitoringHistogramTimeseriesResponseMeta + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.get_monitoring_histogram_timeseries_response_meta.GetMonitoringHistogramTimeseriesResponseMeta() # noqa: E501 + if include_optional : + return GetMonitoringHistogramTimeseriesResponseMeta( + buckets = [ + mux_python.models.monitoring_histogram_timeseries_bucket.MonitoringHistogramTimeseriesBucket( + start = 56, + end = 56, ) + ] + ) + else : + return GetMonitoringHistogramTimeseriesResponseMeta( + ) + + def testGetMonitoringHistogramTimeseriesResponseMeta(self): + """Test GetMonitoringHistogramTimeseriesResponseMeta""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_monitoring_timeseries_response.py b/test/test_get_monitoring_timeseries_response.py new file mode 100644 index 0000000..64598d8 --- /dev/null +++ b/test/test_get_monitoring_timeseries_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.get_monitoring_timeseries_response import GetMonitoringTimeseriesResponse # noqa: E501 +from mux_python.rest import ApiException + +class TestGetMonitoringTimeseriesResponse(unittest.TestCase): + """GetMonitoringTimeseriesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GetMonitoringTimeseriesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.get_monitoring_timeseries_response.GetMonitoringTimeseriesResponse() # noqa: E501 + if include_optional : + return GetMonitoringTimeseriesResponse( + data = [ + mux_python.models.monitoring_timeseries_datapoint.MonitoringTimeseriesDatapoint( + value = 1.337, + date = '', + concurrent_viewers = 56, ) + ], + total_row_count = 56, + timeframe = [ + 56 + ] + ) + else : + return GetMonitoringTimeseriesResponse( + ) + + def testGetMonitoringTimeseriesResponse(self): + """Test GetMonitoringTimeseriesResponse""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_monitoring_dimensions_response.py b/test/test_list_monitoring_dimensions_response.py new file mode 100644 index 0000000..050fe72 --- /dev/null +++ b/test/test_list_monitoring_dimensions_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.list_monitoring_dimensions_response import ListMonitoringDimensionsResponse # noqa: E501 +from mux_python.rest import ApiException + +class TestListMonitoringDimensionsResponse(unittest.TestCase): + """ListMonitoringDimensionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ListMonitoringDimensionsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.list_monitoring_dimensions_response.ListMonitoringDimensionsResponse() # noqa: E501 + if include_optional : + return ListMonitoringDimensionsResponse( + data = [ + mux_python.models.list_monitoring_dimensions_response_data.ListMonitoringDimensionsResponse_data( + name = '', + display_name = '', ) + ], + total_row_count = 56, + timeframe = [ + 56 + ] + ) + else : + return ListMonitoringDimensionsResponse( + ) + + def testListMonitoringDimensionsResponse(self): + """Test ListMonitoringDimensionsResponse""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_monitoring_dimensions_response_data.py b/test/test_list_monitoring_dimensions_response_data.py new file mode 100644 index 0000000..ccc0b8a --- /dev/null +++ b/test/test_list_monitoring_dimensions_response_data.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.list_monitoring_dimensions_response_data import ListMonitoringDimensionsResponseData # noqa: E501 +from mux_python.rest import ApiException + +class TestListMonitoringDimensionsResponseData(unittest.TestCase): + """ListMonitoringDimensionsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ListMonitoringDimensionsResponseData + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.list_monitoring_dimensions_response_data.ListMonitoringDimensionsResponseData() # noqa: E501 + if include_optional : + return ListMonitoringDimensionsResponseData( + name = '', + display_name = '' + ) + else : + return ListMonitoringDimensionsResponseData( + ) + + def testListMonitoringDimensionsResponseData(self): + """Test ListMonitoringDimensionsResponseData""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_monitoring_metrics_response.py b/test/test_list_monitoring_metrics_response.py new file mode 100644 index 0000000..66144ad --- /dev/null +++ b/test/test_list_monitoring_metrics_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.list_monitoring_metrics_response import ListMonitoringMetricsResponse # noqa: E501 +from mux_python.rest import ApiException + +class TestListMonitoringMetricsResponse(unittest.TestCase): + """ListMonitoringMetricsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ListMonitoringMetricsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.list_monitoring_metrics_response.ListMonitoringMetricsResponse() # noqa: E501 + if include_optional : + return ListMonitoringMetricsResponse( + data = [ + mux_python.models.list_monitoring_dimensions_response_data.ListMonitoringDimensionsResponse_data( + name = '', + display_name = '', ) + ], + total_row_count = 56, + timeframe = [ + 56 + ] + ) + else : + return ListMonitoringMetricsResponse( + ) + + def testListMonitoringMetricsResponse(self): + """Test ListMonitoringMetricsResponse""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_api.py b/test/test_monitoring_api.py new file mode 100644 index 0000000..6617aa7 --- /dev/null +++ b/test/test_monitoring_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import mux_python +from mux_python.api.monitoring_api import MonitoringApi # noqa: E501 +from mux_python.rest import ApiException + + +class TestMonitoringApi(unittest.TestCase): + """MonitoringApi unit test stubs""" + + def setUp(self): + self.api = mux_python.api.monitoring_api.MonitoringApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_monitoring_breakdown(self): + """Test case for get_monitoring_breakdown + + Get Monitoring Breakdown # noqa: E501 + """ + pass + + def test_get_monitoring_histogram_timeseries(self): + """Test case for get_monitoring_histogram_timeseries + + Get Monitoring Histogram Timeseries # noqa: E501 + """ + pass + + def test_get_monitoring_timeseries(self): + """Test case for get_monitoring_timeseries + + Get Monitoring Timeseries # noqa: E501 + """ + pass + + def test_list_monitoring_dimensions(self): + """Test case for list_monitoring_dimensions + + List Monitoring Dimensions # noqa: E501 + """ + pass + + def test_list_monitoring_metrics(self): + """Test case for list_monitoring_metrics + + List Monitoring Metrics # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_breakdown_value.py b/test/test_monitoring_breakdown_value.py new file mode 100644 index 0000000..542eb28 --- /dev/null +++ b/test/test_monitoring_breakdown_value.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.monitoring_breakdown_value import MonitoringBreakdownValue # noqa: E501 +from mux_python.rest import ApiException + +class TestMonitoringBreakdownValue(unittest.TestCase): + """MonitoringBreakdownValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MonitoringBreakdownValue + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.monitoring_breakdown_value.MonitoringBreakdownValue() # noqa: E501 + if include_optional : + return MonitoringBreakdownValue( + value = '', + negative_impact = 56, + metric_value = 1.337, + display_value = '', + concurrent_viewers = 56 + ) + else : + return MonitoringBreakdownValue( + ) + + def testMonitoringBreakdownValue(self): + """Test MonitoringBreakdownValue""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_histogram_timeseries_bucket.py b/test/test_monitoring_histogram_timeseries_bucket.py new file mode 100644 index 0000000..76f65f6 --- /dev/null +++ b/test/test_monitoring_histogram_timeseries_bucket.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.monitoring_histogram_timeseries_bucket import MonitoringHistogramTimeseriesBucket # noqa: E501 +from mux_python.rest import ApiException + +class TestMonitoringHistogramTimeseriesBucket(unittest.TestCase): + """MonitoringHistogramTimeseriesBucket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MonitoringHistogramTimeseriesBucket + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.monitoring_histogram_timeseries_bucket.MonitoringHistogramTimeseriesBucket() # noqa: E501 + if include_optional : + return MonitoringHistogramTimeseriesBucket( + start = 56, + end = 56 + ) + else : + return MonitoringHistogramTimeseriesBucket( + ) + + def testMonitoringHistogramTimeseriesBucket(self): + """Test MonitoringHistogramTimeseriesBucket""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_histogram_timeseries_bucket_values.py b/test/test_monitoring_histogram_timeseries_bucket_values.py new file mode 100644 index 0000000..0e4da09 --- /dev/null +++ b/test/test_monitoring_histogram_timeseries_bucket_values.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.monitoring_histogram_timeseries_bucket_values import MonitoringHistogramTimeseriesBucketValues # noqa: E501 +from mux_python.rest import ApiException + +class TestMonitoringHistogramTimeseriesBucketValues(unittest.TestCase): + """MonitoringHistogramTimeseriesBucketValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MonitoringHistogramTimeseriesBucketValues + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.monitoring_histogram_timeseries_bucket_values.MonitoringHistogramTimeseriesBucketValues() # noqa: E501 + if include_optional : + return MonitoringHistogramTimeseriesBucketValues( + percentage = 1.337, + count = 56 + ) + else : + return MonitoringHistogramTimeseriesBucketValues( + ) + + def testMonitoringHistogramTimeseriesBucketValues(self): + """Test MonitoringHistogramTimeseriesBucketValues""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_histogram_timeseries_datapoint.py b/test/test_monitoring_histogram_timeseries_datapoint.py new file mode 100644 index 0000000..dc25e73 --- /dev/null +++ b/test/test_monitoring_histogram_timeseries_datapoint.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.monitoring_histogram_timeseries_datapoint import MonitoringHistogramTimeseriesDatapoint # noqa: E501 +from mux_python.rest import ApiException + +class TestMonitoringHistogramTimeseriesDatapoint(unittest.TestCase): + """MonitoringHistogramTimeseriesDatapoint unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MonitoringHistogramTimeseriesDatapoint + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.monitoring_histogram_timeseries_datapoint.MonitoringHistogramTimeseriesDatapoint() # noqa: E501 + if include_optional : + return MonitoringHistogramTimeseriesDatapoint( + timestamp = '', + sum = 56, + p95 = 1.337, + median = 1.337, + max_percentage = 1.337, + bucket_values = [ + mux_python.models.monitoring_histogram_timeseries_bucket_values.MonitoringHistogramTimeseriesBucketValues( + percentage = 1.337, + count = 56, ) + ], + average = 1.337 + ) + else : + return MonitoringHistogramTimeseriesDatapoint( + ) + + def testMonitoringHistogramTimeseriesDatapoint(self): + """Test MonitoringHistogramTimeseriesDatapoint""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_timeseries_datapoint.py b/test/test_monitoring_timeseries_datapoint.py new file mode 100644 index 0000000..d5b6c13 --- /dev/null +++ b/test/test_monitoring_timeseries_datapoint.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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. # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: devex@mux.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import mux_python +from mux_python.models.monitoring_timeseries_datapoint import MonitoringTimeseriesDatapoint # noqa: E501 +from mux_python.rest import ApiException + +class TestMonitoringTimeseriesDatapoint(unittest.TestCase): + """MonitoringTimeseriesDatapoint unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MonitoringTimeseriesDatapoint + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = mux_python.models.monitoring_timeseries_datapoint.MonitoringTimeseriesDatapoint() # noqa: E501 + if include_optional : + return MonitoringTimeseriesDatapoint( + value = 1.337, + date = '', + concurrent_viewers = 56 + ) + else : + return MonitoringTimeseriesDatapoint( + ) + + def testMonitoringTimeseriesDatapoint(self): + """Test MonitoringTimeseriesDatapoint""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main()