diff --git a/README.md b/README.md index a43df63..570aa4c 100644 --- a/README.md +++ b/README.md @@ -151,8 +151,8 @@ AnalyticsApi analytics = client.analytics() Method | HTTP request | Description ------------- | ------------- | ------------- -[**getLiveStreamsPlays**](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsApi.md#getLiveStreamsPlays) | **GET** /analytics/live-streams/plays | Get play events for live stream -[**getVideosPlays**](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsApi.md#getVideosPlays) | **GET** /analytics/videos/plays | Get play events for video +**(deprecated)** [**getLiveStreamsPlays**](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsApi.md#getLiveStreamsPlays) | **GET** /analytics/live-streams/plays | Get play events for live stream +**(deprecated)** [**getVideosPlays**](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsApi.md#getVideosPlays) | **GET** /analytics/videos/plays | Get play events for video ### CaptionsApi @@ -340,7 +340,16 @@ Method | HTTP request | Description - [AccessToken](https://github.com/apivideo/api.video-java-client/blob/main/docs/AccessToken.md) - [AdditionalBadRequestErrors](https://github.com/apivideo/api.video-java-client/blob/main/docs/AdditionalBadRequestErrors.md) + - [AnalyticsAggregatedMetricsResponse](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsAggregatedMetricsResponse.md) + - [AnalyticsAggregatedMetricsResponseContext](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsAggregatedMetricsResponseContext.md) + - [AnalyticsAggregatedMetricsResponseContextTimeframe](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsAggregatedMetricsResponseContextTimeframe.md) - [AnalyticsData](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsData.md) + - [AnalyticsMetricsBreakdownResponse](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsMetricsBreakdownResponse.md) + - [AnalyticsMetricsBreakdownResponseContext](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsMetricsBreakdownResponseContext.md) + - [AnalyticsMetricsBreakdownResponseData](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsMetricsBreakdownResponseData.md) + - [AnalyticsMetricsOverTimeResponse](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsMetricsOverTimeResponse.md) + - [AnalyticsMetricsOverTimeResponseContext](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsMetricsOverTimeResponseContext.md) + - [AnalyticsMetricsOverTimeResponseData](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsMetricsOverTimeResponseData.md) - [AnalyticsPlays400Error](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsPlays400Error.md) - [AnalyticsPlaysResponse](https://github.com/apivideo/api.video-java-client/blob/main/docs/AnalyticsPlaysResponse.md) - [AuthenticatePayload](https://github.com/apivideo/api.video-java-client/blob/main/docs/AuthenticatePayload.md) @@ -356,12 +365,6 @@ Method | HTTP request | Description - [LiveStreamAssets](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamAssets.md) - [LiveStreamCreationPayload](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamCreationPayload.md) - [LiveStreamListResponse](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamListResponse.md) - - [LiveStreamSession](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamSession.md) - - [LiveStreamSessionClient](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamSessionClient.md) - - [LiveStreamSessionDevice](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamSessionDevice.md) - - [LiveStreamSessionLocation](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamSessionLocation.md) - - [LiveStreamSessionReferrer](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamSessionReferrer.md) - - [LiveStreamSessionSession](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamSessionSession.md) - [LiveStreamUpdatePayload](https://github.com/apivideo/api.video-java-client/blob/main/docs/LiveStreamUpdatePayload.md) - [Metadata](https://github.com/apivideo/api.video-java-client/blob/main/docs/Metadata.md) - [Model403ErrorSchema](https://github.com/apivideo/api.video-java-client/blob/main/docs/Model403ErrorSchema.md) @@ -381,18 +384,12 @@ Method | HTTP request | Description - [TokenCreationPayload](https://github.com/apivideo/api.video-java-client/blob/main/docs/TokenCreationPayload.md) - [TokenListResponse](https://github.com/apivideo/api.video-java-client/blob/main/docs/TokenListResponse.md) - [TooManyRequests](https://github.com/apivideo/api.video-java-client/blob/main/docs/TooManyRequests.md) + - [UnrecognizedRequestUrl](https://github.com/apivideo/api.video-java-client/blob/main/docs/UnrecognizedRequestUrl.md) - [UploadToken](https://github.com/apivideo/api.video-java-client/blob/main/docs/UploadToken.md) - [Video](https://github.com/apivideo/api.video-java-client/blob/main/docs/Video.md) - [VideoAssets](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoAssets.md) - [VideoClip](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoClip.md) - [VideoCreationPayload](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoCreationPayload.md) - - [VideoSession](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSession.md) - - [VideoSessionClient](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSessionClient.md) - - [VideoSessionDevice](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSessionDevice.md) - - [VideoSessionLocation](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSessionLocation.md) - - [VideoSessionOs](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSessionOs.md) - - [VideoSessionReferrer](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSessionReferrer.md) - - [VideoSessionSession](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSessionSession.md) - [VideoSource](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSource.md) - [VideoSourceLiveStream](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSourceLiveStream.md) - [VideoSourceLiveStreamLink](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoSourceLiveStreamLink.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 0c4c208..e05b825 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -453,7 +453,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -735,7 +735,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -1145,7 +1145,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -1515,7 +1515,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -1673,7 +1673,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -1936,7 +1936,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -2125,7 +2125,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -2425,7 +2425,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -2643,7 +2643,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -2876,7 +2876,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -3171,7 +3171,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -3482,7 +3482,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -3747,7 +3747,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -3993,7 +3993,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -4193,7 +4193,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -4419,7 +4419,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -4692,7 +4692,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -4961,7 +4961,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -5282,7 +5282,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -5480,7 +5480,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -5673,7 +5673,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -5971,7 +5971,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -6257,7 +6257,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -6500,7 +6500,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -6796,7 +6796,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -7096,7 +7096,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -7419,7 +7419,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -7725,7 +7725,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -8021,7 +8021,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -8267,7 +8267,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -8506,7 +8506,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -8786,7 +8786,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -9073,7 +9073,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -9418,7 +9418,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -9654,7 +9654,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -9941,7 +9941,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -10183,7 +10183,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -10411,7 +10411,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -10686,7 +10686,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -10951,7 +10951,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -11121,8 +11121,11 @@ paths: x-accepts: application/json /analytics/videos/plays: get: - description: Retrieve filtered analytics about the number of plays for your - videos in a project. + deprecated: true + description: | + Retrieve filtered analytics about the number of plays for your videos in a project. + + This endpoint will be deprecated with the release of Analytics v2.0. operationId: GET_analytics-videos-plays parameters: - description: | @@ -11464,7 +11467,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -11804,8 +11807,11 @@ paths: x-accepts: application/json /analytics/live-streams/plays: get: - description: Retrieve filtered analytics about the number of plays for your - live streams in a project. + deprecated: true + description: | + Retrieve filtered analytics about the number of plays for your live streams in a project. + + This endpoint will be deprecated with the release of Analytics v2.0. operationId: GET_analytics-live-streams-plays parameters: - description: | @@ -12145,7 +12151,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -12579,7 +12585,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -12839,7 +12845,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -13072,7 +13078,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -13266,7 +13272,7 @@ paths: content: application/json: examples: - response: + Too many requests: value: type: https://docs.api.video/reference/too-many-requests title: Too many requests. @@ -14063,47 +14069,6 @@ components: type: boolean title: Caption type: object - video-session: - example: - session: - sessionId: psEmFwGQUAXR2lFHj5nDOpy - loadedAt: 2019-06-24T11:45:01.109Z - endedAt: 2019-06-24T11:49:19.243Z - location: - country: France - city: Paris - referrer: - url: https://api.video - medium: organic - source: https://google.com - searchTerm: video encoding hosting and delivery - device: - type: desktop - vendor: Dell - model: unknown - os: - name: Microsoft Windows - shortname: W10 - version: Windows10 - client: - type: browser - name: Firefox - version: "67.0" - properties: - session: - $ref: '#/components/schemas/video-session-session' - location: - $ref: '#/components/schemas/video-session-location' - referrer: - $ref: '#/components/schemas/video-session-referrer' - device: - $ref: '#/components/schemas/video-session-device' - os: - $ref: '#/components/schemas/video-session-os' - client: - $ref: '#/components/schemas/video-session-client' - title: VideoSession - type: object live-stream: example: streamKey: dw-dew8-q6w9-k67w-1ws8 @@ -14179,22 +14144,6 @@ components: - restreams title: LiveStream type: object - live-stream-session: - properties: - session: - $ref: '#/components/schemas/live-stream-session-session' - location: - $ref: '#/components/schemas/live-stream-session-location' - referrer: - $ref: '#/components/schemas/live-stream-session-referrer' - device: - $ref: '#/components/schemas/live-stream-session-device' - os: - $ref: '#/components/schemas/video-session-os' - client: - $ref: '#/components/schemas/live-stream-session-client' - title: LiveStreamSession - type: object player-session-event: properties: type: @@ -15232,6 +15181,71 @@ components: description: The name of the parameter that caused the error. type: string type: object + analytics-aggregated-metrics-response: + properties: + context: + $ref: '#/components/schemas/analytics_aggregated_metrics_response_context' + data: + items: + example: 356.2 + format: float + type: number + type: array + pagination: + $ref: '#/components/schemas/pagination' + required: + - context + - data + - pagination + title: AggregatedMetrics + type: object + analytics-metrics-breakdown-response: + properties: + context: + $ref: '#/components/schemas/analytics_metrics_breakdown_response_context' + data: + description: Returns an array of dimensions and their respective metrics. + items: + $ref: '#/components/schemas/analytics_metrics_breakdown_response_data' + type: array + pagination: + $ref: '#/components/schemas/pagination' + required: + - context + - data + - pagination + title: Analytics v2.0 response for metrics breakdown by dimension + type: object + analytics-metrics-over-time-response: + properties: + context: + $ref: '#/components/schemas/analytics_metrics_over_time_response_context' + data: + description: Returns an array of metrics and the timestamps . + items: + $ref: '#/components/schemas/analytics_metrics_over_time_response_data' + type: array + pagination: + $ref: '#/components/schemas/pagination' + required: + - context + - data + - pagination + title: Analytics v2.0 response for metrics over time + type: object + unrecognized-request-url: + properties: + type: + description: A link to the error documentation. + type: string + title: + description: A description of the error that occurred. + type: string + status: + description: The HTTP status code. + type: integer + title: Unrecognized request URL + type: object webhooks-list-response: example: pagination: @@ -15441,124 +15455,6 @@ components: type: string title: VideoAssets type: object - video-session-session: - properties: - sessionId: - description: The unique identifier for the session that you can use to track - what happens during it. - example: psEmFwGQUAXR2lFHj5nDOpy - type: string - loadedAt: - description: When the video session started, presented in ISO-8601 format. - example: 2019-06-24T11:45:01.109Z - format: date-time - type: string - endedAt: - description: When the video session ended, presented in ISO-8601 format. - example: 2019-06-24T12:45:01.109Z - format: date-time - type: string - metadata: - description: A list of key value pairs that you use to provide metadata - for your video. These pairs can be made dynamic, allowing you to segment - your audience. You can also just use the pairs as another way to tag and - categorize your videos. - example: '[{"key": "Author", "value": "John Doe"}]' - items: - $ref: '#/components/schemas/metadata' - type: array - title: VideoSessionSession - type: object - video-session-location: - description: The location of the viewer. - properties: - country: - description: The country of the viewer. - example: France - type: string - city: - description: The city of the viewer. - example: Paris - nullable: true - type: string - title: VideoSessionLocation - type: object - video-session-referrer: - properties: - url: - description: The link the viewer used to reach the video session. - example: https://api.video - nullable: true - type: string - medium: - description: How they arrived at the site, for example organic or paid. - Organic meaning they found it themselves and paid meaning they followed - a link from an advertisement. - example: organic - type: string - source: - description: The source the referrer came from to the video session. For - example if they searched through google to find the stream. - example: https://google.com - type: string - searchTerm: - description: The search term they typed to arrive at the video session. - type: string - title: VideoSessionReferrer - type: object - video-session-device: - description: What type of device the user is on when in the video session. - properties: - type: - description: What the type is like desktop, laptop, mobile. - example: desktop - type: string - vendor: - description: If known, what the brand of the device is, like Apple, Dell, - etc. - example: Dell - type: string - model: - description: The specific model of the device, if known. - example: unknown - type: string - title: VideoSessionDevice - type: object - video-session-os: - description: The operating system the viewer is on. - properties: - name: - description: The name of the operating system. - example: Microsoft Windows - type: string - shortname: - description: The nickname for the operating system, often representing the - version. - example: W10 - type: string - version: - description: The version of the operating system. - example: Windows 10 - type: string - title: VideoSessionOs - type: object - video-session-client: - description: What kind of browser the viewer is using for the video session. - properties: - name: - description: The name of the browser used to view the video session. - example: Firefox - type: string - version: - description: The version of the browser used to view the video session. - example: "67.0" - type: string - type: - description: The type of client used to view the video session. - example: browser - type: string - title: VideoSessionClient - type: object live-stream-assets: example: thumbnail: https://live.api.video/li400mYKSgQ6xs7taUeSaEKr/thumbnail.jpg @@ -15589,98 +15485,6 @@ components: type: string title: LiveStreamAssets type: object - live-stream-session-session: - properties: - sessionId: - description: A unique identifier for your session. You can use this to track - what happens during a specific session. - type: string - loadedAt: - description: When the session started, with the date and time presented - in ISO-8601 format. - example: 2019-06-24T11:45:01.109Z - format: date-time - type: string - endedAt: - description: When the session ended, with the date and time presented in - ISO-8601 format. - example: 2019-06-24T12:45:01.109Z - format: date-time - type: string - title: LiveStreamSessionSession - type: object - live-stream-session-location: - description: The location of the viewer of the live stream. - properties: - country: - description: The country of the viewer of the live stream. - example: France - type: string - city: - description: The city of the viewer of the live stream. - example: Paris - type: string - title: LiveStreamSessionLocation - type: object - live-stream-session-referrer: - properties: - url: - description: The website the viewer of the live stream was referred to in - order to view the live stream. - example: https://api.video - type: string - medium: - description: The type of search that brought the viewer to the live stream. - Organic would be they found it on their own, paid would be they found - it via an advertisement. - example: organic - type: string - source: - description: Where the viewer came from to see the live stream (usually - where they searched from). - example: https://google.com - type: string - searchTerm: - description: What term they searched for that led them to the live stream. - example: video stream - type: string - title: LiveStreamSessionReferrer - type: object - live-stream-session-device: - description: What type of device the user is on when in the live stream session. - properties: - type: - description: What the type is like desktop, laptop, mobile. - example: desktop - type: string - vendor: - description: If known, what the brand of the device is, like Apple, Dell, - etc. - example: Dell - type: string - model: - description: The specific model of the device, if known. - example: unknown - type: string - title: LiveStreamSessionDevice - type: object - live-stream-session-client: - description: What kind of browser the viewer is using for the live stream session. - properties: - name: - description: The name of the browser used to view the live stream session. - example: Firefox - type: string - version: - description: The version of the browser used to view the live stream session. - example: "67.0" - type: string - type: - description: The type of client used to view the live stream session. - example: browser - type: string - title: LiveStreamSessionClient - type: object video-status-ingest: description: Details about the capturing, transferring, and storing of your video for use immediately or in the future. @@ -15789,6 +15593,123 @@ components: example: path/to/my/logo/mylogo.jpg type: string type: object + analytics_aggregated_metrics_response_context_timeframe: + description: Returns the starting and ending date-times of the period you want + analytics for. + properties: + from: + description: Returns the starting date-time of the period you want analytics + for in ATOM date-time format. + example: 2024-05-28T11:15:07Z + format: date-time + type: string + to: + description: Returns the starting date-time of the period you want analytics + for in ATOM date-time format. + example: 2024-05-29T11:15:07Z + format: date-time + type: string + type: object + analytics_aggregated_metrics_response_context: + properties: + metric: + description: Returns the metric you selected. + enum: + - play + - start + - end + - impression + - impression-time + - watch-time + example: impression + type: string + aggregation: + description: Returns the aggregation you selected. + enum: + - count + - rate + - total + - average + - sum + example: count + type: string + timeframe: + $ref: '#/components/schemas/analytics_aggregated_metrics_response_context_timeframe' + type: object + analytics_metrics_breakdown_response_context: + properties: + metric: + description: Returns the metric you selected. + enum: + - play + - play-rate + - start + - end + - impression + example: impression + type: string + breakdown: + description: Returns the dimension you selected. + enum: + - media-id + - media-type + - continent + - country + - device-type + - operating-system + - browser + example: country + type: string + timeframe: + $ref: '#/components/schemas/analytics_aggregated_metrics_response_context_timeframe' + type: object + analytics_metrics_breakdown_response_data: + properties: + dimensionValue: + description: Returns a specific value for the dimension you selected, based + on the data. For example if you select `continent` as a dimension, then + `dimensionValue` returns values like `EU` or "AZ". + type: string + metricValue: + description: Returns the data for a specific dimension value. + format: float + type: number + type: object + analytics_metrics_over_time_response_context: + properties: + metric: + description: Returns the metric you selected. + enum: + - play + - play-rate + - start + - end + - impression + example: impression + type: string + interval: + description: Returns the interval you selected. + enum: + - hour + - day + example: day + type: string + timeframe: + $ref: '#/components/schemas/analytics_aggregated_metrics_response_context_timeframe' + type: object + analytics_metrics_over_time_response_data: + properties: + emittedAt: + description: Returns the timestamp of the event that belongs to a specific + metric in ATOM date-time format. For example, if you set `play` with an + `hour` interval in your request, then `emittedAt` returns the hourly timestamps + of every play event within the timeframe you defined. + type: string + metricValue: + description: Returns the data for a specific metric value. + format: float + type: number + type: object video_status_ingest_receivedParts: properties: parts: diff --git a/docs/AnalyticsAggregatedMetricsResponse.md b/docs/AnalyticsAggregatedMetricsResponse.md new file mode 100644 index 0000000..e15301f --- /dev/null +++ b/docs/AnalyticsAggregatedMetricsResponse.md @@ -0,0 +1,18 @@ + + +# AnalyticsAggregatedMetricsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**AnalyticsAggregatedMetricsResponseContext**](AnalyticsAggregatedMetricsResponseContext.md) | | +**data** | **List<Float>** | | +**pagination** | [**Pagination**](Pagination.md) | | + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/AnalyticsAggregatedMetricsResponseContext.md b/docs/AnalyticsAggregatedMetricsResponseContext.md new file mode 100644 index 0000000..c991a0b --- /dev/null +++ b/docs/AnalyticsAggregatedMetricsResponseContext.md @@ -0,0 +1,43 @@ + + +# AnalyticsAggregatedMetricsResponseContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metric** | [**MetricEnum**](#MetricEnum) | Returns the metric you selected. | [optional] +**aggregation** | [**AggregationEnum**](#AggregationEnum) | Returns the aggregation you selected. | [optional] +**timeframe** | [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional] + + + +## Enum: MetricEnum + +Name | Value +---- | ----- +PLAY | "play" +START | "start" +END | "end" +IMPRESSION | "impression" +IMPRESSION_TIME | "impression-time" +WATCH_TIME | "watch-time" + + + +## Enum: AggregationEnum + +Name | Value +---- | ----- +COUNT | "count" +RATE | "rate" +TOTAL | "total" +AVERAGE | "average" +SUM | "sum" + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/AnalyticsAggregatedMetricsResponseContextTimeframe.md b/docs/AnalyticsAggregatedMetricsResponseContextTimeframe.md new file mode 100644 index 0000000..3184f36 --- /dev/null +++ b/docs/AnalyticsAggregatedMetricsResponseContextTimeframe.md @@ -0,0 +1,18 @@ + + +# AnalyticsAggregatedMetricsResponseContextTimeframe + +Returns the starting and ending date-times of the period you want analytics for. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from** | **OffsetDateTime** | Returns the starting date-time of the period you want analytics for in ATOM date-time format. | [optional] +**to** | **OffsetDateTime** | Returns the starting date-time of the period you want analytics for in ATOM date-time format. | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/AnalyticsApi.md b/docs/AnalyticsApi.md index 97f7823..873ac29 100644 --- a/docs/AnalyticsApi.md +++ b/docs/AnalyticsApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description Get play events for live stream -Retrieve filtered analytics about the number of plays for your live streams in a project. +Retrieve filtered analytics about the number of plays for your live streams in a project. This endpoint will be deprecated with the release of Analytics v2.0. ### Example ```java @@ -103,7 +103,7 @@ Name | Type | Description | Notes Get play events for video -Retrieve filtered analytics about the number of plays for your videos in a project. +Retrieve filtered analytics about the number of plays for your videos in a project. This endpoint will be deprecated with the release of Analytics v2.0. ### Example ```java diff --git a/docs/AnalyticsMetricsBreakdownResponse.md b/docs/AnalyticsMetricsBreakdownResponse.md new file mode 100644 index 0000000..fae2983 --- /dev/null +++ b/docs/AnalyticsMetricsBreakdownResponse.md @@ -0,0 +1,18 @@ + + +# AnalyticsMetricsBreakdownResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**AnalyticsMetricsBreakdownResponseContext**](AnalyticsMetricsBreakdownResponseContext.md) | | +**data** | [**List<AnalyticsMetricsBreakdownResponseData>**](AnalyticsMetricsBreakdownResponseData.md) | Returns an array of dimensions and their respective metrics. | +**pagination** | [**Pagination**](Pagination.md) | | + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/AnalyticsMetricsBreakdownResponseContext.md b/docs/AnalyticsMetricsBreakdownResponseContext.md new file mode 100644 index 0000000..811184e --- /dev/null +++ b/docs/AnalyticsMetricsBreakdownResponseContext.md @@ -0,0 +1,44 @@ + + +# AnalyticsMetricsBreakdownResponseContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metric** | [**MetricEnum**](#MetricEnum) | Returns the metric you selected. | [optional] +**breakdown** | [**BreakdownEnum**](#BreakdownEnum) | Returns the dimension you selected. | [optional] +**timeframe** | [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional] + + + +## Enum: MetricEnum + +Name | Value +---- | ----- +PLAY | "play" +PLAY_RATE | "play-rate" +START | "start" +END | "end" +IMPRESSION | "impression" + + + +## Enum: BreakdownEnum + +Name | Value +---- | ----- +MEDIA_ID | "media-id" +MEDIA_TYPE | "media-type" +CONTINENT | "continent" +COUNTRY | "country" +DEVICE_TYPE | "device-type" +OPERATING_SYSTEM | "operating-system" +BROWSER | "browser" + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/AnalyticsMetricsBreakdownResponseData.md b/docs/AnalyticsMetricsBreakdownResponseData.md new file mode 100644 index 0000000..3b8a18a --- /dev/null +++ b/docs/AnalyticsMetricsBreakdownResponseData.md @@ -0,0 +1,17 @@ + + +# AnalyticsMetricsBreakdownResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dimensionValue** | **String** | Returns a specific value for the dimension you selected, based on the data. For example if you select `continent` as a dimension, then `dimensionValue` returns values like `EU` or \"AZ\". | [optional] +**metricValue** | **Float** | Returns the data for a specific dimension value. | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/AnalyticsMetricsOverTimeResponse.md b/docs/AnalyticsMetricsOverTimeResponse.md new file mode 100644 index 0000000..a7b74c1 --- /dev/null +++ b/docs/AnalyticsMetricsOverTimeResponse.md @@ -0,0 +1,18 @@ + + +# AnalyticsMetricsOverTimeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | [**AnalyticsMetricsOverTimeResponseContext**](AnalyticsMetricsOverTimeResponseContext.md) | | +**data** | [**List<AnalyticsMetricsOverTimeResponseData>**](AnalyticsMetricsOverTimeResponseData.md) | Returns an array of metrics and the timestamps . | +**pagination** | [**Pagination**](Pagination.md) | | + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/AnalyticsMetricsOverTimeResponseContext.md b/docs/AnalyticsMetricsOverTimeResponseContext.md new file mode 100644 index 0000000..117eb1d --- /dev/null +++ b/docs/AnalyticsMetricsOverTimeResponseContext.md @@ -0,0 +1,39 @@ + + +# AnalyticsMetricsOverTimeResponseContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metric** | [**MetricEnum**](#MetricEnum) | Returns the metric you selected. | [optional] +**interval** | [**IntervalEnum**](#IntervalEnum) | Returns the interval you selected. | [optional] +**timeframe** | [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional] + + + +## Enum: MetricEnum + +Name | Value +---- | ----- +PLAY | "play" +PLAY_RATE | "play-rate" +START | "start" +END | "end" +IMPRESSION | "impression" + + + +## Enum: IntervalEnum + +Name | Value +---- | ----- +HOUR | "hour" +DAY | "day" + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/AnalyticsMetricsOverTimeResponseData.md b/docs/AnalyticsMetricsOverTimeResponseData.md new file mode 100644 index 0000000..937fac8 --- /dev/null +++ b/docs/AnalyticsMetricsOverTimeResponseData.md @@ -0,0 +1,17 @@ + + +# AnalyticsMetricsOverTimeResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emittedAt** | **String** | Returns the timestamp of the event that belongs to a specific metric in ATOM date-time format. For example, if you set `play` with an `hour` interval in your request, then `emittedAt` returns the hourly timestamps of every play event within the timeframe you defined. | [optional] +**metricValue** | **Float** | Returns the data for a specific metric value. | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/LiveStreamSession.md b/docs/LiveStreamSession.md deleted file mode 100644 index 476b07b..0000000 --- a/docs/LiveStreamSession.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# LiveStreamSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**session** | [**LiveStreamSessionSession**](LiveStreamSessionSession.md) | | [optional] -**location** | [**LiveStreamSessionLocation**](LiveStreamSessionLocation.md) | | [optional] -**referrer** | [**LiveStreamSessionReferrer**](LiveStreamSessionReferrer.md) | | [optional] -**device** | [**LiveStreamSessionDevice**](LiveStreamSessionDevice.md) | | [optional] -**os** | [**VideoSessionOs**](VideoSessionOs.md) | | [optional] -**client** | [**LiveStreamSessionClient**](LiveStreamSessionClient.md) | | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/LiveStreamSessionClient.md b/docs/LiveStreamSessionClient.md deleted file mode 100644 index e0ab9a3..0000000 --- a/docs/LiveStreamSessionClient.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# LiveStreamSessionClient - -What kind of browser the viewer is using for the live stream session. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the browser used to view the live stream session. | [optional] -**version** | **String** | The version of the browser used to view the live stream session. | [optional] -**type** | **String** | The type of client used to view the live stream session. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/LiveStreamSessionDevice.md b/docs/LiveStreamSessionDevice.md deleted file mode 100644 index 915a4cd..0000000 --- a/docs/LiveStreamSessionDevice.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# LiveStreamSessionDevice - -What type of device the user is on when in the live stream session. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **String** | What the type is like desktop, laptop, mobile. | [optional] -**vendor** | **String** | If known, what the brand of the device is, like Apple, Dell, etc. | [optional] -**model** | **String** | The specific model of the device, if known. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/LiveStreamSessionLocation.md b/docs/LiveStreamSessionLocation.md deleted file mode 100644 index fe1b3e2..0000000 --- a/docs/LiveStreamSessionLocation.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# LiveStreamSessionLocation - -The location of the viewer of the live stream. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | **String** | The country of the viewer of the live stream. | [optional] -**city** | **String** | The city of the viewer of the live stream. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/LiveStreamSessionReferrer.md b/docs/LiveStreamSessionReferrer.md deleted file mode 100644 index 6e4767c..0000000 --- a/docs/LiveStreamSessionReferrer.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# LiveStreamSessionReferrer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | The website the viewer of the live stream was referred to in order to view the live stream. | [optional] -**medium** | **String** | The type of search that brought the viewer to the live stream. Organic would be they found it on their own, paid would be they found it via an advertisement. | [optional] -**source** | **String** | Where the viewer came from to see the live stream (usually where they searched from). | [optional] -**searchTerm** | **String** | What term they searched for that led them to the live stream. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/LiveStreamSessionSession.md b/docs/LiveStreamSessionSession.md deleted file mode 100644 index d213e79..0000000 --- a/docs/LiveStreamSessionSession.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# LiveStreamSessionSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **String** | A unique identifier for your session. You can use this to track what happens during a specific session. | [optional] -**loadedAt** | **OffsetDateTime** | When the session started, with the date and time presented in ISO-8601 format. | [optional] -**endedAt** | **OffsetDateTime** | When the session ended, with the date and time presented in ISO-8601 format. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/UnrecognizedRequestUrl.md b/docs/UnrecognizedRequestUrl.md new file mode 100644 index 0000000..1f08819 --- /dev/null +++ b/docs/UnrecognizedRequestUrl.md @@ -0,0 +1,18 @@ + + +# UnrecognizedRequestUrl + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | A link to the error documentation. | [optional] +**title** | **String** | A description of the error that occurred. | [optional] +**status** | **Integer** | The HTTP status code. | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/VideoSession.md b/docs/VideoSession.md deleted file mode 100644 index 1bdfeec..0000000 --- a/docs/VideoSession.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# VideoSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**session** | [**VideoSessionSession**](VideoSessionSession.md) | | [optional] -**location** | [**VideoSessionLocation**](VideoSessionLocation.md) | | [optional] -**referrer** | [**VideoSessionReferrer**](VideoSessionReferrer.md) | | [optional] -**device** | [**VideoSessionDevice**](VideoSessionDevice.md) | | [optional] -**os** | [**VideoSessionOs**](VideoSessionOs.md) | | [optional] -**client** | [**VideoSessionClient**](VideoSessionClient.md) | | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/VideoSessionClient.md b/docs/VideoSessionClient.md deleted file mode 100644 index 3b69cfd..0000000 --- a/docs/VideoSessionClient.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# VideoSessionClient - -What kind of browser the viewer is using for the video session. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the browser used to view the video session. | [optional] -**version** | **String** | The version of the browser used to view the video session. | [optional] -**type** | **String** | The type of client used to view the video session. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/VideoSessionDevice.md b/docs/VideoSessionDevice.md deleted file mode 100644 index 2064211..0000000 --- a/docs/VideoSessionDevice.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# VideoSessionDevice - -What type of device the user is on when in the video session. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **String** | What the type is like desktop, laptop, mobile. | [optional] -**vendor** | **String** | If known, what the brand of the device is, like Apple, Dell, etc. | [optional] -**model** | **String** | The specific model of the device, if known. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/VideoSessionLocation.md b/docs/VideoSessionLocation.md deleted file mode 100644 index e40e243..0000000 --- a/docs/VideoSessionLocation.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# VideoSessionLocation - -The location of the viewer. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | **String** | The country of the viewer. | [optional] -**city** | **String** | The city of the viewer. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/VideoSessionOs.md b/docs/VideoSessionOs.md deleted file mode 100644 index c948c2e..0000000 --- a/docs/VideoSessionOs.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# VideoSessionOs - -The operating system the viewer is on. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the operating system. | [optional] -**shortname** | **String** | The nickname for the operating system, often representing the version. | [optional] -**version** | **String** | The version of the operating system. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/VideoSessionReferrer.md b/docs/VideoSessionReferrer.md deleted file mode 100644 index eb4784e..0000000 --- a/docs/VideoSessionReferrer.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# VideoSessionReferrer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | The link the viewer used to reach the video session. | [optional] -**medium** | **String** | How they arrived at the site, for example organic or paid. Organic meaning they found it themselves and paid meaning they followed a link from an advertisement. | [optional] -**source** | **String** | The source the referrer came from to the video session. For example if they searched through google to find the stream. | [optional] -**searchTerm** | **String** | The search term they typed to arrive at the video session. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/docs/VideoSessionSession.md b/docs/VideoSessionSession.md deleted file mode 100644 index dfb58ea..0000000 --- a/docs/VideoSessionSession.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# VideoSessionSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **String** | The unique identifier for the session that you can use to track what happens during it. | [optional] -**loadedAt** | **OffsetDateTime** | When the video session started, presented in ISO-8601 format. | [optional] -**endedAt** | **OffsetDateTime** | When the video session ended, presented in ISO-8601 format. | [optional] -**metadata** | [**List<Metadata>**](Metadata.md) | A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos. | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/src/main/java/video/api/client/api/clients/AnalyticsApi.java b/src/main/java/video/api/client/api/clients/AnalyticsApi.java index 585a796..0428884 100644 --- a/src/main/java/video/api/client/api/clients/AnalyticsApi.java +++ b/src/main/java/video/api/client/api/clients/AnalyticsApi.java @@ -151,6 +151,7 @@ private okhttp3.Call getLiveStreamsPlaysCall(LocalDate from, String dimension, L localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getLiveStreamsPlaysValidateBeforeCall(LocalDate from, String dimension, LocalDate to, String filter, Integer currentPage, Integer pageSize, final ApiCallback _callback) throws ApiException { @@ -330,7 +331,10 @@ public APIgetLiveStreamsPlaysRequest pageSize(Integer pageSize) { * * * + * + * @deprecated */ + @Deprecated public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getLiveStreamsPlaysCall(from, dimension, to, filter, currentPage, pageSize, _callback); } @@ -401,7 +405,10 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * * * + * + * @deprecated */ + @Deprecated public Page execute() throws ApiException { ApiResponse localVarResp = getLiveStreamsPlaysWithHttpInfo(from, dimension, to, filter, currentPage, pageSize); @@ -489,7 +496,10 @@ private APIgetLiveStreamsPlaysRequest copy() { * * * + * + * @deprecated */ + @Deprecated public ApiResponse executeWithHttpInfo() throws ApiException { return getLiveStreamsPlaysWithHttpInfo(from, dimension, to, filter, currentPage, pageSize); } @@ -563,7 +573,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * * * + * + * @deprecated */ + @Deprecated public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { ApiCallback apiCallback = new ApiCallback() { @@ -601,7 +614,8 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) /** * Get play events for live stream * - * Retrieve filtered analytics about the number of plays for your live streams in a project. + * Retrieve filtered analytics about the number of plays for your live streams in a project. This endpoint will be + * deprecated with the release of Analytics v2.0. * * @param from * Use this query parameter to set the start date for the time period that you want analytics for. - The @@ -686,7 +700,10 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) * * * + * + * @deprecated */ + @Deprecated public APIgetLiveStreamsPlaysRequest getLiveStreamsPlays(LocalDate from, String dimension) { return new APIgetLiveStreamsPlaysRequest(from, dimension); } @@ -744,6 +761,7 @@ private okhttp3.Call getVideosPlaysCall(LocalDate from, String dimension, LocalD localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getVideosPlaysValidateBeforeCall(LocalDate from, String dimension, LocalDate to, String filter, Integer currentPage, Integer pageSize, final ApiCallback _callback) throws ApiException { @@ -921,7 +939,10 @@ public APIgetVideosPlaysRequest pageSize(Integer pageSize) { * * * + * + * @deprecated */ + @Deprecated public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getVideosPlaysCall(from, dimension, to, filter, currentPage, pageSize, _callback); } @@ -992,7 +1013,10 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * * * + * + * @deprecated */ + @Deprecated public Page execute() throws ApiException { ApiResponse localVarResp = getVideosPlaysWithHttpInfo(from, dimension, to, filter, currentPage, pageSize); @@ -1080,7 +1104,10 @@ private APIgetVideosPlaysRequest copy() { * * * + * + * @deprecated */ + @Deprecated public ApiResponse executeWithHttpInfo() throws ApiException { return getVideosPlaysWithHttpInfo(from, dimension, to, filter, currentPage, pageSize); } @@ -1154,7 +1181,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * * * + * + * @deprecated */ + @Deprecated public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { ApiCallback apiCallback = new ApiCallback() { @@ -1192,7 +1222,8 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) /** * Get play events for video * - * Retrieve filtered analytics about the number of plays for your videos in a project. + * Retrieve filtered analytics about the number of plays for your videos in a project. This endpoint will be + * deprecated with the release of Analytics v2.0. * * @param from * Use this query parameter to set the start date for the time period that you want analytics for. - The @@ -1276,7 +1307,10 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) * * * + * + * @deprecated */ + @Deprecated public APIgetVideosPlaysRequest getVideosPlays(LocalDate from, String dimension) { return new APIgetVideosPlaysRequest(from, dimension); } diff --git a/src/main/java/video/api/client/api/models/AnalyticsAggregatedMetricsResponse.java b/src/main/java/video/api/client/api/models/AnalyticsAggregatedMetricsResponse.java new file mode 100644 index 0000000..182997f --- /dev/null +++ b/src/main/java/video/api/client/api/models/AnalyticsAggregatedMetricsResponse.java @@ -0,0 +1,154 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import video.api.client.api.models.AnalyticsAggregatedMetricsResponseContext; +import video.api.client.api.models.Pagination; +import java.io.Serializable; + +/** + * AnalyticsAggregatedMetricsResponse + */ + +public class AnalyticsAggregatedMetricsResponse implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + private AnalyticsAggregatedMetricsResponseContext context; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PAGINATION = "pagination"; + @SerializedName(SERIALIZED_NAME_PAGINATION) + private Pagination pagination; + + public AnalyticsAggregatedMetricsResponse context(AnalyticsAggregatedMetricsResponseContext context) { + this.context = context; + return this; + } + + /** + * Get context + * + * @return context + **/ + @ApiModelProperty(required = true, value = "") + + public AnalyticsAggregatedMetricsResponseContext getContext() { + return context; + } + + public void setContext(AnalyticsAggregatedMetricsResponseContext context) { + this.context = context; + } + + public AnalyticsAggregatedMetricsResponse data(List data) { + this.data = data; + return this; + } + + public AnalyticsAggregatedMetricsResponse addDataItem(Float dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Get data + * + * @return data + **/ + @ApiModelProperty(required = true, value = "") + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public AnalyticsAggregatedMetricsResponse pagination(Pagination pagination) { + this.pagination = pagination; + return this; + } + + /** + * Get pagination + * + * @return pagination + **/ + @ApiModelProperty(required = true, value = "") + + public Pagination getPagination() { + return pagination; + } + + public void setPagination(Pagination pagination) { + this.pagination = pagination; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsAggregatedMetricsResponse analyticsAggregatedMetricsResponse = (AnalyticsAggregatedMetricsResponse) o; + return Objects.equals(this.context, analyticsAggregatedMetricsResponse.context) + && Objects.equals(this.data, analyticsAggregatedMetricsResponse.data) + && Objects.equals(this.pagination, analyticsAggregatedMetricsResponse.pagination); + } + + @Override + public int hashCode() { + return Objects.hash(context, data, pagination); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsAggregatedMetricsResponse {\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/video/api/client/api/models/AnalyticsAggregatedMetricsResponseContext.java b/src/main/java/video/api/client/api/models/AnalyticsAggregatedMetricsResponseContext.java new file mode 100644 index 0000000..c86de95 --- /dev/null +++ b/src/main/java/video/api/client/api/models/AnalyticsAggregatedMetricsResponseContext.java @@ -0,0 +1,258 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import video.api.client.api.models.AnalyticsAggregatedMetricsResponseContextTimeframe; +import java.io.Serializable; + +/** + * AnalyticsAggregatedMetricsResponseContext + */ + +public class AnalyticsAggregatedMetricsResponseContext implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * Returns the metric you selected. + */ + @JsonAdapter(MetricEnum.Adapter.class) + public enum MetricEnum { + PLAY("play"), + + START("start"), + + END("end"), + + IMPRESSION("impression"), + + IMPRESSION_TIME("impression-time"), + + WATCH_TIME("watch-time"); + + private String value; + + MetricEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MetricEnum fromValue(String value) { + for (MetricEnum b : MetricEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MetricEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MetricEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MetricEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_METRIC = "metric"; + @SerializedName(SERIALIZED_NAME_METRIC) + private MetricEnum metric; + + /** + * Returns the aggregation you selected. + */ + @JsonAdapter(AggregationEnum.Adapter.class) + public enum AggregationEnum { + COUNT("count"), + + RATE("rate"), + + TOTAL("total"), + + AVERAGE("average"), + + SUM("sum"); + + private String value; + + AggregationEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AggregationEnum fromValue(String value) { + for (AggregationEnum b : AggregationEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AggregationEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AggregationEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AggregationEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_AGGREGATION = "aggregation"; + @SerializedName(SERIALIZED_NAME_AGGREGATION) + private AggregationEnum aggregation; + + public static final String SERIALIZED_NAME_TIMEFRAME = "timeframe"; + @SerializedName(SERIALIZED_NAME_TIMEFRAME) + private AnalyticsAggregatedMetricsResponseContextTimeframe timeframe; + + public AnalyticsAggregatedMetricsResponseContext metric(MetricEnum metric) { + this.metric = metric; + return this; + } + + /** + * Returns the metric you selected. + * + * @return metric + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "impression", value = "Returns the metric you selected.") + + public MetricEnum getMetric() { + return metric; + } + + public void setMetric(MetricEnum metric) { + this.metric = metric; + } + + public AnalyticsAggregatedMetricsResponseContext aggregation(AggregationEnum aggregation) { + this.aggregation = aggregation; + return this; + } + + /** + * Returns the aggregation you selected. + * + * @return aggregation + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "count", value = "Returns the aggregation you selected.") + + public AggregationEnum getAggregation() { + return aggregation; + } + + public void setAggregation(AggregationEnum aggregation) { + this.aggregation = aggregation; + } + + public AnalyticsAggregatedMetricsResponseContext timeframe( + AnalyticsAggregatedMetricsResponseContextTimeframe timeframe) { + this.timeframe = timeframe; + return this; + } + + /** + * Get timeframe + * + * @return timeframe + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AnalyticsAggregatedMetricsResponseContextTimeframe getTimeframe() { + return timeframe; + } + + public void setTimeframe(AnalyticsAggregatedMetricsResponseContextTimeframe timeframe) { + this.timeframe = timeframe; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsAggregatedMetricsResponseContext analyticsAggregatedMetricsResponseContext = (AnalyticsAggregatedMetricsResponseContext) o; + return Objects.equals(this.metric, analyticsAggregatedMetricsResponseContext.metric) + && Objects.equals(this.aggregation, analyticsAggregatedMetricsResponseContext.aggregation) + && Objects.equals(this.timeframe, analyticsAggregatedMetricsResponseContext.timeframe); + } + + @Override + public int hashCode() { + return Objects.hash(metric, aggregation, timeframe); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsAggregatedMetricsResponseContext {\n"); + sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); + sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); + sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/video/api/client/api/models/AnalyticsAggregatedMetricsResponseContextTimeframe.java b/src/main/java/video/api/client/api/models/AnalyticsAggregatedMetricsResponseContextTimeframe.java new file mode 100644 index 0000000..e58b434 --- /dev/null +++ b/src/main/java/video/api/client/api/models/AnalyticsAggregatedMetricsResponseContextTimeframe.java @@ -0,0 +1,123 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.io.Serializable; + +/** + * Returns the starting and ending date-times of the period you want analytics for. + */ +@ApiModel(description = "Returns the starting and ending date-times of the period you want analytics for.") + +public class AnalyticsAggregatedMetricsResponseContextTimeframe implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_FROM = "from"; + @SerializedName(SERIALIZED_NAME_FROM) + private OffsetDateTime from; + + public static final String SERIALIZED_NAME_TO = "to"; + @SerializedName(SERIALIZED_NAME_TO) + private OffsetDateTime to; + + public AnalyticsAggregatedMetricsResponseContextTimeframe from(OffsetDateTime from) { + this.from = from; + return this; + } + + /** + * Returns the starting date-time of the period you want analytics for in ATOM date-time format. + * + * @return from + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2024-05-28T11:15:07Z", value = "Returns the starting date-time of the period you want analytics for in ATOM date-time format.") + + public OffsetDateTime getFrom() { + return from; + } + + public void setFrom(OffsetDateTime from) { + this.from = from; + } + + public AnalyticsAggregatedMetricsResponseContextTimeframe to(OffsetDateTime to) { + this.to = to; + return this; + } + + /** + * Returns the starting date-time of the period you want analytics for in ATOM date-time format. + * + * @return to + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2024-05-29T11:15:07Z", value = "Returns the starting date-time of the period you want analytics for in ATOM date-time format.") + + public OffsetDateTime getTo() { + return to; + } + + public void setTo(OffsetDateTime to) { + this.to = to; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsAggregatedMetricsResponseContextTimeframe analyticsAggregatedMetricsResponseContextTimeframe = (AnalyticsAggregatedMetricsResponseContextTimeframe) o; + return Objects.equals(this.from, analyticsAggregatedMetricsResponseContextTimeframe.from) + && Objects.equals(this.to, analyticsAggregatedMetricsResponseContextTimeframe.to); + } + + @Override + public int hashCode() { + return Objects.hash(from, to); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsAggregatedMetricsResponseContextTimeframe {\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/video/api/client/api/models/AnalyticsMetricsBreakdownResponse.java b/src/main/java/video/api/client/api/models/AnalyticsMetricsBreakdownResponse.java new file mode 100644 index 0000000..79938a6 --- /dev/null +++ b/src/main/java/video/api/client/api/models/AnalyticsMetricsBreakdownResponse.java @@ -0,0 +1,155 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import video.api.client.api.models.AnalyticsMetricsBreakdownResponseContext; +import video.api.client.api.models.AnalyticsMetricsBreakdownResponseData; +import video.api.client.api.models.Pagination; +import java.io.Serializable; + +/** + * AnalyticsMetricsBreakdownResponse + */ + +public class AnalyticsMetricsBreakdownResponse implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + private AnalyticsMetricsBreakdownResponseContext context; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PAGINATION = "pagination"; + @SerializedName(SERIALIZED_NAME_PAGINATION) + private Pagination pagination; + + public AnalyticsMetricsBreakdownResponse context(AnalyticsMetricsBreakdownResponseContext context) { + this.context = context; + return this; + } + + /** + * Get context + * + * @return context + **/ + @ApiModelProperty(required = true, value = "") + + public AnalyticsMetricsBreakdownResponseContext getContext() { + return context; + } + + public void setContext(AnalyticsMetricsBreakdownResponseContext context) { + this.context = context; + } + + public AnalyticsMetricsBreakdownResponse data(List data) { + this.data = data; + return this; + } + + public AnalyticsMetricsBreakdownResponse addDataItem(AnalyticsMetricsBreakdownResponseData dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Returns an array of dimensions and their respective metrics. + * + * @return data + **/ + @ApiModelProperty(required = true, value = "Returns an array of dimensions and their respective metrics.") + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public AnalyticsMetricsBreakdownResponse pagination(Pagination pagination) { + this.pagination = pagination; + return this; + } + + /** + * Get pagination + * + * @return pagination + **/ + @ApiModelProperty(required = true, value = "") + + public Pagination getPagination() { + return pagination; + } + + public void setPagination(Pagination pagination) { + this.pagination = pagination; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsMetricsBreakdownResponse analyticsMetricsBreakdownResponse = (AnalyticsMetricsBreakdownResponse) o; + return Objects.equals(this.context, analyticsMetricsBreakdownResponse.context) + && Objects.equals(this.data, analyticsMetricsBreakdownResponse.data) + && Objects.equals(this.pagination, analyticsMetricsBreakdownResponse.pagination); + } + + @Override + public int hashCode() { + return Objects.hash(context, data, pagination); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsMetricsBreakdownResponse {\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/video/api/client/api/models/AnalyticsMetricsBreakdownResponseContext.java b/src/main/java/video/api/client/api/models/AnalyticsMetricsBreakdownResponseContext.java new file mode 100644 index 0000000..e76b75c --- /dev/null +++ b/src/main/java/video/api/client/api/models/AnalyticsMetricsBreakdownResponseContext.java @@ -0,0 +1,260 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import video.api.client.api.models.AnalyticsAggregatedMetricsResponseContextTimeframe; +import java.io.Serializable; + +/** + * AnalyticsMetricsBreakdownResponseContext + */ + +public class AnalyticsMetricsBreakdownResponseContext implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * Returns the metric you selected. + */ + @JsonAdapter(MetricEnum.Adapter.class) + public enum MetricEnum { + PLAY("play"), + + PLAY_RATE("play-rate"), + + START("start"), + + END("end"), + + IMPRESSION("impression"); + + private String value; + + MetricEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MetricEnum fromValue(String value) { + for (MetricEnum b : MetricEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MetricEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MetricEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MetricEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_METRIC = "metric"; + @SerializedName(SERIALIZED_NAME_METRIC) + private MetricEnum metric; + + /** + * Returns the dimension you selected. + */ + @JsonAdapter(BreakdownEnum.Adapter.class) + public enum BreakdownEnum { + MEDIA_ID("media-id"), + + MEDIA_TYPE("media-type"), + + CONTINENT("continent"), + + COUNTRY("country"), + + DEVICE_TYPE("device-type"), + + OPERATING_SYSTEM("operating-system"), + + BROWSER("browser"); + + private String value; + + BreakdownEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static BreakdownEnum fromValue(String value) { + for (BreakdownEnum b : BreakdownEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final BreakdownEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public BreakdownEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return BreakdownEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_BREAKDOWN = "breakdown"; + @SerializedName(SERIALIZED_NAME_BREAKDOWN) + private BreakdownEnum breakdown; + + public static final String SERIALIZED_NAME_TIMEFRAME = "timeframe"; + @SerializedName(SERIALIZED_NAME_TIMEFRAME) + private AnalyticsAggregatedMetricsResponseContextTimeframe timeframe; + + public AnalyticsMetricsBreakdownResponseContext metric(MetricEnum metric) { + this.metric = metric; + return this; + } + + /** + * Returns the metric you selected. + * + * @return metric + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "impression", value = "Returns the metric you selected.") + + public MetricEnum getMetric() { + return metric; + } + + public void setMetric(MetricEnum metric) { + this.metric = metric; + } + + public AnalyticsMetricsBreakdownResponseContext breakdown(BreakdownEnum breakdown) { + this.breakdown = breakdown; + return this; + } + + /** + * Returns the dimension you selected. + * + * @return breakdown + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "country", value = "Returns the dimension you selected.") + + public BreakdownEnum getBreakdown() { + return breakdown; + } + + public void setBreakdown(BreakdownEnum breakdown) { + this.breakdown = breakdown; + } + + public AnalyticsMetricsBreakdownResponseContext timeframe( + AnalyticsAggregatedMetricsResponseContextTimeframe timeframe) { + this.timeframe = timeframe; + return this; + } + + /** + * Get timeframe + * + * @return timeframe + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AnalyticsAggregatedMetricsResponseContextTimeframe getTimeframe() { + return timeframe; + } + + public void setTimeframe(AnalyticsAggregatedMetricsResponseContextTimeframe timeframe) { + this.timeframe = timeframe; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsMetricsBreakdownResponseContext analyticsMetricsBreakdownResponseContext = (AnalyticsMetricsBreakdownResponseContext) o; + return Objects.equals(this.metric, analyticsMetricsBreakdownResponseContext.metric) + && Objects.equals(this.breakdown, analyticsMetricsBreakdownResponseContext.breakdown) + && Objects.equals(this.timeframe, analyticsMetricsBreakdownResponseContext.timeframe); + } + + @Override + public int hashCode() { + return Objects.hash(metric, breakdown, timeframe); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsMetricsBreakdownResponseContext {\n"); + sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); + sb.append(" breakdown: ").append(toIndentedString(breakdown)).append("\n"); + sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/video/api/client/api/models/AnalyticsMetricsBreakdownResponseData.java b/src/main/java/video/api/client/api/models/AnalyticsMetricsBreakdownResponseData.java new file mode 100644 index 0000000..abbe3c5 --- /dev/null +++ b/src/main/java/video/api/client/api/models/AnalyticsMetricsBreakdownResponseData.java @@ -0,0 +1,123 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * AnalyticsMetricsBreakdownResponseData + */ + +public class AnalyticsMetricsBreakdownResponseData implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_DIMENSION_VALUE = "dimensionValue"; + @SerializedName(SERIALIZED_NAME_DIMENSION_VALUE) + private String dimensionValue; + + public static final String SERIALIZED_NAME_METRIC_VALUE = "metricValue"; + @SerializedName(SERIALIZED_NAME_METRIC_VALUE) + private Float metricValue; + + public AnalyticsMetricsBreakdownResponseData dimensionValue(String dimensionValue) { + this.dimensionValue = dimensionValue; + return this; + } + + /** + * Returns a specific value for the dimension you selected, based on the data. For example if you select + * `continent` as a dimension, then `dimensionValue` returns values like `EU` or + * \"AZ\". + * + * @return dimensionValue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Returns a specific value for the dimension you selected, based on the data. For example if you select `continent` as a dimension, then `dimensionValue` returns values like `EU` or \"AZ\".") + + public String getDimensionValue() { + return dimensionValue; + } + + public void setDimensionValue(String dimensionValue) { + this.dimensionValue = dimensionValue; + } + + public AnalyticsMetricsBreakdownResponseData metricValue(Float metricValue) { + this.metricValue = metricValue; + return this; + } + + /** + * Returns the data for a specific dimension value. + * + * @return metricValue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Returns the data for a specific dimension value.") + + public Float getMetricValue() { + return metricValue; + } + + public void setMetricValue(Float metricValue) { + this.metricValue = metricValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsMetricsBreakdownResponseData analyticsMetricsBreakdownResponseData = (AnalyticsMetricsBreakdownResponseData) o; + return Objects.equals(this.dimensionValue, analyticsMetricsBreakdownResponseData.dimensionValue) + && Objects.equals(this.metricValue, analyticsMetricsBreakdownResponseData.metricValue); + } + + @Override + public int hashCode() { + return Objects.hash(dimensionValue, metricValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsMetricsBreakdownResponseData {\n"); + sb.append(" dimensionValue: ").append(toIndentedString(dimensionValue)).append("\n"); + sb.append(" metricValue: ").append(toIndentedString(metricValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/video/api/client/api/models/AnalyticsMetricsOverTimeResponse.java b/src/main/java/video/api/client/api/models/AnalyticsMetricsOverTimeResponse.java new file mode 100644 index 0000000..cb3cc12 --- /dev/null +++ b/src/main/java/video/api/client/api/models/AnalyticsMetricsOverTimeResponse.java @@ -0,0 +1,155 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import video.api.client.api.models.AnalyticsMetricsOverTimeResponseContext; +import video.api.client.api.models.AnalyticsMetricsOverTimeResponseData; +import video.api.client.api.models.Pagination; +import java.io.Serializable; + +/** + * AnalyticsMetricsOverTimeResponse + */ + +public class AnalyticsMetricsOverTimeResponse implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + private AnalyticsMetricsOverTimeResponseContext context; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PAGINATION = "pagination"; + @SerializedName(SERIALIZED_NAME_PAGINATION) + private Pagination pagination; + + public AnalyticsMetricsOverTimeResponse context(AnalyticsMetricsOverTimeResponseContext context) { + this.context = context; + return this; + } + + /** + * Get context + * + * @return context + **/ + @ApiModelProperty(required = true, value = "") + + public AnalyticsMetricsOverTimeResponseContext getContext() { + return context; + } + + public void setContext(AnalyticsMetricsOverTimeResponseContext context) { + this.context = context; + } + + public AnalyticsMetricsOverTimeResponse data(List data) { + this.data = data; + return this; + } + + public AnalyticsMetricsOverTimeResponse addDataItem(AnalyticsMetricsOverTimeResponseData dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Returns an array of metrics and the timestamps . + * + * @return data + **/ + @ApiModelProperty(required = true, value = "Returns an array of metrics and the timestamps .") + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public AnalyticsMetricsOverTimeResponse pagination(Pagination pagination) { + this.pagination = pagination; + return this; + } + + /** + * Get pagination + * + * @return pagination + **/ + @ApiModelProperty(required = true, value = "") + + public Pagination getPagination() { + return pagination; + } + + public void setPagination(Pagination pagination) { + this.pagination = pagination; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsMetricsOverTimeResponse analyticsMetricsOverTimeResponse = (AnalyticsMetricsOverTimeResponse) o; + return Objects.equals(this.context, analyticsMetricsOverTimeResponse.context) + && Objects.equals(this.data, analyticsMetricsOverTimeResponse.data) + && Objects.equals(this.pagination, analyticsMetricsOverTimeResponse.pagination); + } + + @Override + public int hashCode() { + return Objects.hash(context, data, pagination); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsMetricsOverTimeResponse {\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/video/api/client/api/models/AnalyticsMetricsOverTimeResponseContext.java b/src/main/java/video/api/client/api/models/AnalyticsMetricsOverTimeResponseContext.java new file mode 100644 index 0000000..2a5831a --- /dev/null +++ b/src/main/java/video/api/client/api/models/AnalyticsMetricsOverTimeResponseContext.java @@ -0,0 +1,250 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import video.api.client.api.models.AnalyticsAggregatedMetricsResponseContextTimeframe; +import java.io.Serializable; + +/** + * AnalyticsMetricsOverTimeResponseContext + */ + +public class AnalyticsMetricsOverTimeResponseContext implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * Returns the metric you selected. + */ + @JsonAdapter(MetricEnum.Adapter.class) + public enum MetricEnum { + PLAY("play"), + + PLAY_RATE("play-rate"), + + START("start"), + + END("end"), + + IMPRESSION("impression"); + + private String value; + + MetricEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MetricEnum fromValue(String value) { + for (MetricEnum b : MetricEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MetricEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MetricEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MetricEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_METRIC = "metric"; + @SerializedName(SERIALIZED_NAME_METRIC) + private MetricEnum metric; + + /** + * Returns the interval you selected. + */ + @JsonAdapter(IntervalEnum.Adapter.class) + public enum IntervalEnum { + HOUR("hour"), + + DAY("day"); + + private String value; + + IntervalEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static IntervalEnum fromValue(String value) { + for (IntervalEnum b : IntervalEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final IntervalEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public IntervalEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return IntervalEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_INTERVAL = "interval"; + @SerializedName(SERIALIZED_NAME_INTERVAL) + private IntervalEnum interval; + + public static final String SERIALIZED_NAME_TIMEFRAME = "timeframe"; + @SerializedName(SERIALIZED_NAME_TIMEFRAME) + private AnalyticsAggregatedMetricsResponseContextTimeframe timeframe; + + public AnalyticsMetricsOverTimeResponseContext metric(MetricEnum metric) { + this.metric = metric; + return this; + } + + /** + * Returns the metric you selected. + * + * @return metric + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "impression", value = "Returns the metric you selected.") + + public MetricEnum getMetric() { + return metric; + } + + public void setMetric(MetricEnum metric) { + this.metric = metric; + } + + public AnalyticsMetricsOverTimeResponseContext interval(IntervalEnum interval) { + this.interval = interval; + return this; + } + + /** + * Returns the interval you selected. + * + * @return interval + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "day", value = "Returns the interval you selected.") + + public IntervalEnum getInterval() { + return interval; + } + + public void setInterval(IntervalEnum interval) { + this.interval = interval; + } + + public AnalyticsMetricsOverTimeResponseContext timeframe( + AnalyticsAggregatedMetricsResponseContextTimeframe timeframe) { + this.timeframe = timeframe; + return this; + } + + /** + * Get timeframe + * + * @return timeframe + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AnalyticsAggregatedMetricsResponseContextTimeframe getTimeframe() { + return timeframe; + } + + public void setTimeframe(AnalyticsAggregatedMetricsResponseContextTimeframe timeframe) { + this.timeframe = timeframe; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsMetricsOverTimeResponseContext analyticsMetricsOverTimeResponseContext = (AnalyticsMetricsOverTimeResponseContext) o; + return Objects.equals(this.metric, analyticsMetricsOverTimeResponseContext.metric) + && Objects.equals(this.interval, analyticsMetricsOverTimeResponseContext.interval) + && Objects.equals(this.timeframe, analyticsMetricsOverTimeResponseContext.timeframe); + } + + @Override + public int hashCode() { + return Objects.hash(metric, interval, timeframe); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsMetricsOverTimeResponseContext {\n"); + sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); + sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); + sb.append(" timeframe: ").append(toIndentedString(timeframe)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/video/api/client/api/models/AnalyticsMetricsOverTimeResponseData.java b/src/main/java/video/api/client/api/models/AnalyticsMetricsOverTimeResponseData.java new file mode 100644 index 0000000..f4676a7 --- /dev/null +++ b/src/main/java/video/api/client/api/models/AnalyticsMetricsOverTimeResponseData.java @@ -0,0 +1,123 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * AnalyticsMetricsOverTimeResponseData + */ + +public class AnalyticsMetricsOverTimeResponseData implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_EMITTED_AT = "emittedAt"; + @SerializedName(SERIALIZED_NAME_EMITTED_AT) + private String emittedAt; + + public static final String SERIALIZED_NAME_METRIC_VALUE = "metricValue"; + @SerializedName(SERIALIZED_NAME_METRIC_VALUE) + private Float metricValue; + + public AnalyticsMetricsOverTimeResponseData emittedAt(String emittedAt) { + this.emittedAt = emittedAt; + return this; + } + + /** + * Returns the timestamp of the event that belongs to a specific metric in ATOM date-time format. For example, if + * you set `play` with an `hour` interval in your request, then `emittedAt` returns + * the hourly timestamps of every play event within the timeframe you defined. + * + * @return emittedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Returns the timestamp of the event that belongs to a specific metric in ATOM date-time format. For example, if you set `play` with an `hour` interval in your request, then `emittedAt` returns the hourly timestamps of every play event within the timeframe you defined.") + + public String getEmittedAt() { + return emittedAt; + } + + public void setEmittedAt(String emittedAt) { + this.emittedAt = emittedAt; + } + + public AnalyticsMetricsOverTimeResponseData metricValue(Float metricValue) { + this.metricValue = metricValue; + return this; + } + + /** + * Returns the data for a specific metric value. + * + * @return metricValue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Returns the data for a specific metric value.") + + public Float getMetricValue() { + return metricValue; + } + + public void setMetricValue(Float metricValue) { + this.metricValue = metricValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsMetricsOverTimeResponseData analyticsMetricsOverTimeResponseData = (AnalyticsMetricsOverTimeResponseData) o; + return Objects.equals(this.emittedAt, analyticsMetricsOverTimeResponseData.emittedAt) + && Objects.equals(this.metricValue, analyticsMetricsOverTimeResponseData.metricValue); + } + + @Override + public int hashCode() { + return Objects.hash(emittedAt, metricValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsMetricsOverTimeResponseData {\n"); + sb.append(" emittedAt: ").append(toIndentedString(emittedAt)).append("\n"); + sb.append(" metricValue: ").append(toIndentedString(metricValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/video/api/client/api/models/LiveStreamSession.java b/src/main/java/video/api/client/api/models/LiveStreamSession.java deleted file mode 100644 index 03c6a76..0000000 --- a/src/main/java/video/api/client/api/models/LiveStreamSession.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import video.api.client.api.models.LiveStreamSessionClient; -import video.api.client.api.models.LiveStreamSessionDevice; -import video.api.client.api.models.LiveStreamSessionLocation; -import video.api.client.api.models.LiveStreamSessionReferrer; -import video.api.client.api.models.LiveStreamSessionSession; -import video.api.client.api.models.VideoSessionOs; -import java.io.Serializable; - -/** - * LiveStreamSession - */ - -public class LiveStreamSession implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_SESSION = "session"; - @SerializedName(SERIALIZED_NAME_SESSION) - private LiveStreamSessionSession session; - - public static final String SERIALIZED_NAME_LOCATION = "location"; - @SerializedName(SERIALIZED_NAME_LOCATION) - private LiveStreamSessionLocation location; - - public static final String SERIALIZED_NAME_REFERRER = "referrer"; - @SerializedName(SERIALIZED_NAME_REFERRER) - private LiveStreamSessionReferrer referrer; - - public static final String SERIALIZED_NAME_DEVICE = "device"; - @SerializedName(SERIALIZED_NAME_DEVICE) - private LiveStreamSessionDevice device; - - public static final String SERIALIZED_NAME_OS = "os"; - @SerializedName(SERIALIZED_NAME_OS) - private VideoSessionOs os; - - public static final String SERIALIZED_NAME_CLIENT = "client"; - @SerializedName(SERIALIZED_NAME_CLIENT) - private LiveStreamSessionClient client; - - public LiveStreamSession session(LiveStreamSessionSession session) { - this.session = session; - return this; - } - - /** - * Get session - * - * @return session - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public LiveStreamSessionSession getSession() { - return session; - } - - public void setSession(LiveStreamSessionSession session) { - this.session = session; - } - - public LiveStreamSession location(LiveStreamSessionLocation location) { - this.location = location; - return this; - } - - /** - * Get location - * - * @return location - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public LiveStreamSessionLocation getLocation() { - return location; - } - - public void setLocation(LiveStreamSessionLocation location) { - this.location = location; - } - - public LiveStreamSession referrer(LiveStreamSessionReferrer referrer) { - this.referrer = referrer; - return this; - } - - /** - * Get referrer - * - * @return referrer - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public LiveStreamSessionReferrer getReferrer() { - return referrer; - } - - public void setReferrer(LiveStreamSessionReferrer referrer) { - this.referrer = referrer; - } - - public LiveStreamSession device(LiveStreamSessionDevice device) { - this.device = device; - return this; - } - - /** - * Get device - * - * @return device - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public LiveStreamSessionDevice getDevice() { - return device; - } - - public void setDevice(LiveStreamSessionDevice device) { - this.device = device; - } - - public LiveStreamSession os(VideoSessionOs os) { - this.os = os; - return this; - } - - /** - * Get os - * - * @return os - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public VideoSessionOs getOs() { - return os; - } - - public void setOs(VideoSessionOs os) { - this.os = os; - } - - public LiveStreamSession client(LiveStreamSessionClient client) { - this.client = client; - return this; - } - - /** - * Get client - * - * @return client - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public LiveStreamSessionClient getClient() { - return client; - } - - public void setClient(LiveStreamSessionClient client) { - this.client = client; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LiveStreamSession liveStreamSession = (LiveStreamSession) o; - return Objects.equals(this.session, liveStreamSession.session) - && Objects.equals(this.location, liveStreamSession.location) - && Objects.equals(this.referrer, liveStreamSession.referrer) - && Objects.equals(this.device, liveStreamSession.device) - && Objects.equals(this.os, liveStreamSession.os) - && Objects.equals(this.client, liveStreamSession.client); - } - - @Override - public int hashCode() { - return Objects.hash(session, location, referrer, device, os, client); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LiveStreamSession {\n"); - sb.append(" session: ").append(toIndentedString(session)).append("\n"); - sb.append(" location: ").append(toIndentedString(location)).append("\n"); - sb.append(" referrer: ").append(toIndentedString(referrer)).append("\n"); - sb.append(" device: ").append(toIndentedString(device)).append("\n"); - sb.append(" os: ").append(toIndentedString(os)).append("\n"); - sb.append(" client: ").append(toIndentedString(client)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/LiveStreamSessionClient.java b/src/main/java/video/api/client/api/models/LiveStreamSessionClient.java deleted file mode 100644 index 393495e..0000000 --- a/src/main/java/video/api/client/api/models/LiveStreamSessionClient.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.io.Serializable; - -/** - * What kind of browser the viewer is using for the live stream session. - */ -@ApiModel(description = "What kind of browser the viewer is using for the live stream session.") - -public class LiveStreamSessionClient implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_VERSION = "version"; - @SerializedName(SERIALIZED_NAME_VERSION) - private String version; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public LiveStreamSessionClient name(String name) { - this.name = name; - return this; - } - - /** - * The name of the browser used to view the live stream session. - * - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Firefox", value = "The name of the browser used to view the live stream session.") - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public LiveStreamSessionClient version(String version) { - this.version = version; - return this; - } - - /** - * The version of the browser used to view the live stream session. - * - * @return version - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "67.0", value = "The version of the browser used to view the live stream session.") - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public LiveStreamSessionClient type(String type) { - this.type = type; - return this; - } - - /** - * The type of client used to view the live stream session. - * - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "browser", value = "The type of client used to view the live stream session.") - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LiveStreamSessionClient liveStreamSessionClient = (LiveStreamSessionClient) o; - return Objects.equals(this.name, liveStreamSessionClient.name) - && Objects.equals(this.version, liveStreamSessionClient.version) - && Objects.equals(this.type, liveStreamSessionClient.type); - } - - @Override - public int hashCode() { - return Objects.hash(name, version, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LiveStreamSessionClient {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/LiveStreamSessionDevice.java b/src/main/java/video/api/client/api/models/LiveStreamSessionDevice.java deleted file mode 100644 index a88ce0d..0000000 --- a/src/main/java/video/api/client/api/models/LiveStreamSessionDevice.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.io.Serializable; - -/** - * What type of device the user is on when in the live stream session. - */ -@ApiModel(description = "What type of device the user is on when in the live stream session.") - -public class LiveStreamSessionDevice implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public static final String SERIALIZED_NAME_VENDOR = "vendor"; - @SerializedName(SERIALIZED_NAME_VENDOR) - private String vendor; - - public static final String SERIALIZED_NAME_MODEL = "model"; - @SerializedName(SERIALIZED_NAME_MODEL) - private String model; - - public LiveStreamSessionDevice type(String type) { - this.type = type; - return this; - } - - /** - * What the type is like desktop, laptop, mobile. - * - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "desktop", value = "What the type is like desktop, laptop, mobile.") - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public LiveStreamSessionDevice vendor(String vendor) { - this.vendor = vendor; - return this; - } - - /** - * If known, what the brand of the device is, like Apple, Dell, etc. - * - * @return vendor - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Dell", value = "If known, what the brand of the device is, like Apple, Dell, etc.") - - public String getVendor() { - return vendor; - } - - public void setVendor(String vendor) { - this.vendor = vendor; - } - - public LiveStreamSessionDevice model(String model) { - this.model = model; - return this; - } - - /** - * The specific model of the device, if known. - * - * @return model - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "unknown", value = "The specific model of the device, if known.") - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LiveStreamSessionDevice liveStreamSessionDevice = (LiveStreamSessionDevice) o; - return Objects.equals(this.type, liveStreamSessionDevice.type) - && Objects.equals(this.vendor, liveStreamSessionDevice.vendor) - && Objects.equals(this.model, liveStreamSessionDevice.model); - } - - @Override - public int hashCode() { - return Objects.hash(type, vendor, model); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LiveStreamSessionDevice {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" vendor: ").append(toIndentedString(vendor)).append("\n"); - sb.append(" model: ").append(toIndentedString(model)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/LiveStreamSessionLocation.java b/src/main/java/video/api/client/api/models/LiveStreamSessionLocation.java deleted file mode 100644 index 33812c4..0000000 --- a/src/main/java/video/api/client/api/models/LiveStreamSessionLocation.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.io.Serializable; - -/** - * The location of the viewer of the live stream. - */ -@ApiModel(description = "The location of the viewer of the live stream.") - -public class LiveStreamSessionLocation implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_COUNTRY = "country"; - @SerializedName(SERIALIZED_NAME_COUNTRY) - private String country; - - public static final String SERIALIZED_NAME_CITY = "city"; - @SerializedName(SERIALIZED_NAME_CITY) - private String city; - - public LiveStreamSessionLocation country(String country) { - this.country = country; - return this; - } - - /** - * The country of the viewer of the live stream. - * - * @return country - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "France", value = "The country of the viewer of the live stream.") - - public String getCountry() { - return country; - } - - public void setCountry(String country) { - this.country = country; - } - - public LiveStreamSessionLocation city(String city) { - this.city = city; - return this; - } - - /** - * The city of the viewer of the live stream. - * - * @return city - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Paris", value = "The city of the viewer of the live stream.") - - public String getCity() { - return city; - } - - public void setCity(String city) { - this.city = city; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LiveStreamSessionLocation liveStreamSessionLocation = (LiveStreamSessionLocation) o; - return Objects.equals(this.country, liveStreamSessionLocation.country) - && Objects.equals(this.city, liveStreamSessionLocation.city); - } - - @Override - public int hashCode() { - return Objects.hash(country, city); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LiveStreamSessionLocation {\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" city: ").append(toIndentedString(city)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/LiveStreamSessionReferrer.java b/src/main/java/video/api/client/api/models/LiveStreamSessionReferrer.java deleted file mode 100644 index 4d52280..0000000 --- a/src/main/java/video/api/client/api/models/LiveStreamSessionReferrer.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.io.Serializable; - -/** - * LiveStreamSessionReferrer - */ - -public class LiveStreamSessionReferrer implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_URL = "url"; - @SerializedName(SERIALIZED_NAME_URL) - private String url; - - public static final String SERIALIZED_NAME_MEDIUM = "medium"; - @SerializedName(SERIALIZED_NAME_MEDIUM) - private String medium; - - public static final String SERIALIZED_NAME_SOURCE = "source"; - @SerializedName(SERIALIZED_NAME_SOURCE) - private String source; - - public static final String SERIALIZED_NAME_SEARCH_TERM = "searchTerm"; - @SerializedName(SERIALIZED_NAME_SEARCH_TERM) - private String searchTerm; - - public LiveStreamSessionReferrer url(String url) { - this.url = url; - return this; - } - - /** - * The website the viewer of the live stream was referred to in order to view the live stream. - * - * @return url - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "https://api.video", value = "The website the viewer of the live stream was referred to in order to view the live stream.") - - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public LiveStreamSessionReferrer medium(String medium) { - this.medium = medium; - return this; - } - - /** - * The type of search that brought the viewer to the live stream. Organic would be they found it on their own, paid - * would be they found it via an advertisement. - * - * @return medium - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "organic", value = "The type of search that brought the viewer to the live stream. Organic would be they found it on their own, paid would be they found it via an advertisement.") - - public String getMedium() { - return medium; - } - - public void setMedium(String medium) { - this.medium = medium; - } - - public LiveStreamSessionReferrer source(String source) { - this.source = source; - return this; - } - - /** - * Where the viewer came from to see the live stream (usually where they searched from). - * - * @return source - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "https://google.com", value = "Where the viewer came from to see the live stream (usually where they searched from).") - - public String getSource() { - return source; - } - - public void setSource(String source) { - this.source = source; - } - - public LiveStreamSessionReferrer searchTerm(String searchTerm) { - this.searchTerm = searchTerm; - return this; - } - - /** - * What term they searched for that led them to the live stream. - * - * @return searchTerm - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "video stream", value = "What term they searched for that led them to the live stream.") - - public String getSearchTerm() { - return searchTerm; - } - - public void setSearchTerm(String searchTerm) { - this.searchTerm = searchTerm; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LiveStreamSessionReferrer liveStreamSessionReferrer = (LiveStreamSessionReferrer) o; - return Objects.equals(this.url, liveStreamSessionReferrer.url) - && Objects.equals(this.medium, liveStreamSessionReferrer.medium) - && Objects.equals(this.source, liveStreamSessionReferrer.source) - && Objects.equals(this.searchTerm, liveStreamSessionReferrer.searchTerm); - } - - @Override - public int hashCode() { - return Objects.hash(url, medium, source, searchTerm); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LiveStreamSessionReferrer {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" medium: ").append(toIndentedString(medium)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append(" searchTerm: ").append(toIndentedString(searchTerm)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/LiveStreamSessionSession.java b/src/main/java/video/api/client/api/models/LiveStreamSessionSession.java deleted file mode 100644 index acf282a..0000000 --- a/src/main/java/video/api/client/api/models/LiveStreamSessionSession.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.io.Serializable; - -/** - * LiveStreamSessionSession - */ - -public class LiveStreamSessionSession implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; - @SerializedName(SERIALIZED_NAME_SESSION_ID) - private String sessionId; - - public static final String SERIALIZED_NAME_LOADED_AT = "loadedAt"; - @SerializedName(SERIALIZED_NAME_LOADED_AT) - private OffsetDateTime loadedAt; - - public static final String SERIALIZED_NAME_ENDED_AT = "endedAt"; - @SerializedName(SERIALIZED_NAME_ENDED_AT) - private OffsetDateTime endedAt; - - public LiveStreamSessionSession sessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - /** - * A unique identifier for your session. You can use this to track what happens during a specific session. - * - * @return sessionId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A unique identifier for your session. You can use this to track what happens during a specific session.") - - public String getSessionId() { - return sessionId; - } - - public void setSessionId(String sessionId) { - this.sessionId = sessionId; - } - - public LiveStreamSessionSession loadedAt(OffsetDateTime loadedAt) { - this.loadedAt = loadedAt; - return this; - } - - /** - * When the session started, with the date and time presented in ISO-8601 format. - * - * @return loadedAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2019-06-24T11:45:01.109Z", value = "When the session started, with the date and time presented in ISO-8601 format.") - - public OffsetDateTime getLoadedAt() { - return loadedAt; - } - - public void setLoadedAt(OffsetDateTime loadedAt) { - this.loadedAt = loadedAt; - } - - public LiveStreamSessionSession endedAt(OffsetDateTime endedAt) { - this.endedAt = endedAt; - return this; - } - - /** - * When the session ended, with the date and time presented in ISO-8601 format. - * - * @return endedAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2019-06-24T12:45:01.109Z", value = "When the session ended, with the date and time presented in ISO-8601 format.") - - public OffsetDateTime getEndedAt() { - return endedAt; - } - - public void setEndedAt(OffsetDateTime endedAt) { - this.endedAt = endedAt; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LiveStreamSessionSession liveStreamSessionSession = (LiveStreamSessionSession) o; - return Objects.equals(this.sessionId, liveStreamSessionSession.sessionId) - && Objects.equals(this.loadedAt, liveStreamSessionSession.loadedAt) - && Objects.equals(this.endedAt, liveStreamSessionSession.endedAt); - } - - @Override - public int hashCode() { - return Objects.hash(sessionId, loadedAt, endedAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LiveStreamSessionSession {\n"); - sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); - sb.append(" loadedAt: ").append(toIndentedString(loadedAt)).append("\n"); - sb.append(" endedAt: ").append(toIndentedString(endedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/VideoSessionDevice.java b/src/main/java/video/api/client/api/models/UnrecognizedRequestUrl.java similarity index 53% rename from src/main/java/video/api/client/api/models/VideoSessionDevice.java rename to src/main/java/video/api/client/api/models/UnrecognizedRequestUrl.java index 7fad56a..996d93b 100644 --- a/src/main/java/video/api/client/api/models/VideoSessionDevice.java +++ b/src/main/java/video/api/client/api/models/UnrecognizedRequestUrl.java @@ -24,37 +24,36 @@ import java.io.Serializable; /** - * What type of device the user is on when in the video session. + * UnrecognizedRequestUrl */ -@ApiModel(description = "What type of device the user is on when in the video session.") -public class VideoSessionDevice implements Serializable { +public class UnrecognizedRequestUrl implements Serializable { private static final long serialVersionUID = 1L; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public static final String SERIALIZED_NAME_VENDOR = "vendor"; - @SerializedName(SERIALIZED_NAME_VENDOR) - private String vendor; + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; - public static final String SERIALIZED_NAME_MODEL = "model"; - @SerializedName(SERIALIZED_NAME_MODEL) - private String model; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private Integer status; - public VideoSessionDevice type(String type) { + public UnrecognizedRequestUrl type(String type) { this.type = type; return this; } /** - * What the type is like desktop, laptop, mobile. + * A link to the error documentation. * * @return type **/ @javax.annotation.Nullable - @ApiModelProperty(example = "desktop", value = "What the type is like desktop, laptop, mobile.") + @ApiModelProperty(value = "A link to the error documentation.") public String getType() { return type; @@ -64,46 +63,46 @@ public void setType(String type) { this.type = type; } - public VideoSessionDevice vendor(String vendor) { - this.vendor = vendor; + public UnrecognizedRequestUrl title(String title) { + this.title = title; return this; } /** - * If known, what the brand of the device is, like Apple, Dell, etc. + * A description of the error that occurred. * - * @return vendor + * @return title **/ @javax.annotation.Nullable - @ApiModelProperty(example = "Dell", value = "If known, what the brand of the device is, like Apple, Dell, etc.") + @ApiModelProperty(value = "A description of the error that occurred.") - public String getVendor() { - return vendor; + public String getTitle() { + return title; } - public void setVendor(String vendor) { - this.vendor = vendor; + public void setTitle(String title) { + this.title = title; } - public VideoSessionDevice model(String model) { - this.model = model; + public UnrecognizedRequestUrl status(Integer status) { + this.status = status; return this; } /** - * The specific model of the device, if known. + * The HTTP status code. * - * @return model + * @return status **/ @javax.annotation.Nullable - @ApiModelProperty(example = "unknown", value = "The specific model of the device, if known.") + @ApiModelProperty(value = "The HTTP status code.") - public String getModel() { - return model; + public Integer getStatus() { + return status; } - public void setModel(String model) { - this.model = model; + public void setStatus(Integer status) { + this.status = status; } @Override @@ -114,24 +113,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - VideoSessionDevice videoSessionDevice = (VideoSessionDevice) o; - return Objects.equals(this.type, videoSessionDevice.type) - && Objects.equals(this.vendor, videoSessionDevice.vendor) - && Objects.equals(this.model, videoSessionDevice.model); + UnrecognizedRequestUrl unrecognizedRequestUrl = (UnrecognizedRequestUrl) o; + return Objects.equals(this.type, unrecognizedRequestUrl.type) + && Objects.equals(this.title, unrecognizedRequestUrl.title) + && Objects.equals(this.status, unrecognizedRequestUrl.status); } @Override public int hashCode() { - return Objects.hash(type, vendor, model); + return Objects.hash(type, title, status); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class VideoSessionDevice {\n"); + sb.append("class UnrecognizedRequestUrl {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" vendor: ").append(toIndentedString(vendor)).append("\n"); - sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/video/api/client/api/models/VideoSession.java b/src/main/java/video/api/client/api/models/VideoSession.java deleted file mode 100644 index 4f81618..0000000 --- a/src/main/java/video/api/client/api/models/VideoSession.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import video.api.client.api.models.VideoSessionClient; -import video.api.client.api.models.VideoSessionDevice; -import video.api.client.api.models.VideoSessionLocation; -import video.api.client.api.models.VideoSessionOs; -import video.api.client.api.models.VideoSessionReferrer; -import video.api.client.api.models.VideoSessionSession; -import java.io.Serializable; - -/** - * VideoSession - */ - -public class VideoSession implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_SESSION = "session"; - @SerializedName(SERIALIZED_NAME_SESSION) - private VideoSessionSession session; - - public static final String SERIALIZED_NAME_LOCATION = "location"; - @SerializedName(SERIALIZED_NAME_LOCATION) - private VideoSessionLocation location; - - public static final String SERIALIZED_NAME_REFERRER = "referrer"; - @SerializedName(SERIALIZED_NAME_REFERRER) - private VideoSessionReferrer referrer; - - public static final String SERIALIZED_NAME_DEVICE = "device"; - @SerializedName(SERIALIZED_NAME_DEVICE) - private VideoSessionDevice device; - - public static final String SERIALIZED_NAME_OS = "os"; - @SerializedName(SERIALIZED_NAME_OS) - private VideoSessionOs os; - - public static final String SERIALIZED_NAME_CLIENT = "client"; - @SerializedName(SERIALIZED_NAME_CLIENT) - private VideoSessionClient client; - - public VideoSession session(VideoSessionSession session) { - this.session = session; - return this; - } - - /** - * Get session - * - * @return session - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public VideoSessionSession getSession() { - return session; - } - - public void setSession(VideoSessionSession session) { - this.session = session; - } - - public VideoSession location(VideoSessionLocation location) { - this.location = location; - return this; - } - - /** - * Get location - * - * @return location - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public VideoSessionLocation getLocation() { - return location; - } - - public void setLocation(VideoSessionLocation location) { - this.location = location; - } - - public VideoSession referrer(VideoSessionReferrer referrer) { - this.referrer = referrer; - return this; - } - - /** - * Get referrer - * - * @return referrer - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public VideoSessionReferrer getReferrer() { - return referrer; - } - - public void setReferrer(VideoSessionReferrer referrer) { - this.referrer = referrer; - } - - public VideoSession device(VideoSessionDevice device) { - this.device = device; - return this; - } - - /** - * Get device - * - * @return device - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public VideoSessionDevice getDevice() { - return device; - } - - public void setDevice(VideoSessionDevice device) { - this.device = device; - } - - public VideoSession os(VideoSessionOs os) { - this.os = os; - return this; - } - - /** - * Get os - * - * @return os - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public VideoSessionOs getOs() { - return os; - } - - public void setOs(VideoSessionOs os) { - this.os = os; - } - - public VideoSession client(VideoSessionClient client) { - this.client = client; - return this; - } - - /** - * Get client - * - * @return client - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public VideoSessionClient getClient() { - return client; - } - - public void setClient(VideoSessionClient client) { - this.client = client; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VideoSession videoSession = (VideoSession) o; - return Objects.equals(this.session, videoSession.session) - && Objects.equals(this.location, videoSession.location) - && Objects.equals(this.referrer, videoSession.referrer) - && Objects.equals(this.device, videoSession.device) && Objects.equals(this.os, videoSession.os) - && Objects.equals(this.client, videoSession.client); - } - - @Override - public int hashCode() { - return Objects.hash(session, location, referrer, device, os, client); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VideoSession {\n"); - sb.append(" session: ").append(toIndentedString(session)).append("\n"); - sb.append(" location: ").append(toIndentedString(location)).append("\n"); - sb.append(" referrer: ").append(toIndentedString(referrer)).append("\n"); - sb.append(" device: ").append(toIndentedString(device)).append("\n"); - sb.append(" os: ").append(toIndentedString(os)).append("\n"); - sb.append(" client: ").append(toIndentedString(client)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/VideoSessionClient.java b/src/main/java/video/api/client/api/models/VideoSessionClient.java deleted file mode 100644 index c260507..0000000 --- a/src/main/java/video/api/client/api/models/VideoSessionClient.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.io.Serializable; - -/** - * What kind of browser the viewer is using for the video session. - */ -@ApiModel(description = "What kind of browser the viewer is using for the video session.") - -public class VideoSessionClient implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_VERSION = "version"; - @SerializedName(SERIALIZED_NAME_VERSION) - private String version; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public VideoSessionClient name(String name) { - this.name = name; - return this; - } - - /** - * The name of the browser used to view the video session. - * - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Firefox", value = "The name of the browser used to view the video session.") - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public VideoSessionClient version(String version) { - this.version = version; - return this; - } - - /** - * The version of the browser used to view the video session. - * - * @return version - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "67.0", value = "The version of the browser used to view the video session.") - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public VideoSessionClient type(String type) { - this.type = type; - return this; - } - - /** - * The type of client used to view the video session. - * - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "browser", value = "The type of client used to view the video session.") - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VideoSessionClient videoSessionClient = (VideoSessionClient) o; - return Objects.equals(this.name, videoSessionClient.name) - && Objects.equals(this.version, videoSessionClient.version) - && Objects.equals(this.type, videoSessionClient.type); - } - - @Override - public int hashCode() { - return Objects.hash(name, version, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VideoSessionClient {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/VideoSessionLocation.java b/src/main/java/video/api/client/api/models/VideoSessionLocation.java deleted file mode 100644 index c54057f..0000000 --- a/src/main/java/video/api/client/api/models/VideoSessionLocation.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.io.Serializable; - -/** - * The location of the viewer. - */ -@ApiModel(description = "The location of the viewer.") - -public class VideoSessionLocation implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_COUNTRY = "country"; - @SerializedName(SERIALIZED_NAME_COUNTRY) - private String country; - - public static final String SERIALIZED_NAME_CITY = "city"; - @SerializedName(SERIALIZED_NAME_CITY) - private String city; - - public VideoSessionLocation country(String country) { - this.country = country; - return this; - } - - /** - * The country of the viewer. - * - * @return country - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "France", value = "The country of the viewer.") - - public String getCountry() { - return country; - } - - public void setCountry(String country) { - this.country = country; - } - - public VideoSessionLocation city(String city) { - this.city = city; - return this; - } - - /** - * The city of the viewer. - * - * @return city - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Paris", value = "The city of the viewer.") - - public String getCity() { - return city; - } - - public void setCity(String city) { - this.city = city; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VideoSessionLocation videoSessionLocation = (VideoSessionLocation) o; - return Objects.equals(this.country, videoSessionLocation.country) - && Objects.equals(this.city, videoSessionLocation.city); - } - - @Override - public int hashCode() { - return Objects.hash(country, city); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VideoSessionLocation {\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" city: ").append(toIndentedString(city)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/VideoSessionOs.java b/src/main/java/video/api/client/api/models/VideoSessionOs.java deleted file mode 100644 index 0d3f01a..0000000 --- a/src/main/java/video/api/client/api/models/VideoSessionOs.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.io.Serializable; - -/** - * The operating system the viewer is on. - */ -@ApiModel(description = "The operating system the viewer is on.") - -public class VideoSessionOs implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_SHORTNAME = "shortname"; - @SerializedName(SERIALIZED_NAME_SHORTNAME) - private String shortname; - - public static final String SERIALIZED_NAME_VERSION = "version"; - @SerializedName(SERIALIZED_NAME_VERSION) - private String version; - - public VideoSessionOs name(String name) { - this.name = name; - return this; - } - - /** - * The name of the operating system. - * - * @return name - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Microsoft Windows", value = "The name of the operating system.") - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public VideoSessionOs shortname(String shortname) { - this.shortname = shortname; - return this; - } - - /** - * The nickname for the operating system, often representing the version. - * - * @return shortname - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "W10", value = "The nickname for the operating system, often representing the version.") - - public String getShortname() { - return shortname; - } - - public void setShortname(String shortname) { - this.shortname = shortname; - } - - public VideoSessionOs version(String version) { - this.version = version; - return this; - } - - /** - * The version of the operating system. - * - * @return version - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Windows 10", value = "The version of the operating system.") - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VideoSessionOs videoSessionOs = (VideoSessionOs) o; - return Objects.equals(this.name, videoSessionOs.name) - && Objects.equals(this.shortname, videoSessionOs.shortname) - && Objects.equals(this.version, videoSessionOs.version); - } - - @Override - public int hashCode() { - return Objects.hash(name, shortname, version); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VideoSessionOs {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" shortname: ").append(toIndentedString(shortname)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/VideoSessionReferrer.java b/src/main/java/video/api/client/api/models/VideoSessionReferrer.java deleted file mode 100644 index e374874..0000000 --- a/src/main/java/video/api/client/api/models/VideoSessionReferrer.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.io.Serializable; - -/** - * VideoSessionReferrer - */ - -public class VideoSessionReferrer implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_URL = "url"; - @SerializedName(SERIALIZED_NAME_URL) - private String url; - - public static final String SERIALIZED_NAME_MEDIUM = "medium"; - @SerializedName(SERIALIZED_NAME_MEDIUM) - private String medium; - - public static final String SERIALIZED_NAME_SOURCE = "source"; - @SerializedName(SERIALIZED_NAME_SOURCE) - private String source; - - public static final String SERIALIZED_NAME_SEARCH_TERM = "searchTerm"; - @SerializedName(SERIALIZED_NAME_SEARCH_TERM) - private String searchTerm; - - public VideoSessionReferrer url(String url) { - this.url = url; - return this; - } - - /** - * The link the viewer used to reach the video session. - * - * @return url - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "https://api.video", value = "The link the viewer used to reach the video session.") - - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public VideoSessionReferrer medium(String medium) { - this.medium = medium; - return this; - } - - /** - * How they arrived at the site, for example organic or paid. Organic meaning they found it themselves and paid - * meaning they followed a link from an advertisement. - * - * @return medium - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "organic", value = "How they arrived at the site, for example organic or paid. Organic meaning they found it themselves and paid meaning they followed a link from an advertisement.") - - public String getMedium() { - return medium; - } - - public void setMedium(String medium) { - this.medium = medium; - } - - public VideoSessionReferrer source(String source) { - this.source = source; - return this; - } - - /** - * The source the referrer came from to the video session. For example if they searched through google to find the - * stream. - * - * @return source - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "https://google.com", value = "The source the referrer came from to the video session. For example if they searched through google to find the stream.") - - public String getSource() { - return source; - } - - public void setSource(String source) { - this.source = source; - } - - public VideoSessionReferrer searchTerm(String searchTerm) { - this.searchTerm = searchTerm; - return this; - } - - /** - * The search term they typed to arrive at the video session. - * - * @return searchTerm - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The search term they typed to arrive at the video session.") - - public String getSearchTerm() { - return searchTerm; - } - - public void setSearchTerm(String searchTerm) { - this.searchTerm = searchTerm; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VideoSessionReferrer videoSessionReferrer = (VideoSessionReferrer) o; - return Objects.equals(this.url, videoSessionReferrer.url) - && Objects.equals(this.medium, videoSessionReferrer.medium) - && Objects.equals(this.source, videoSessionReferrer.source) - && Objects.equals(this.searchTerm, videoSessionReferrer.searchTerm); - } - - @Override - public int hashCode() { - return Objects.hash(url, medium, source, searchTerm); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VideoSessionReferrer {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" medium: ").append(toIndentedString(medium)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append(" searchTerm: ").append(toIndentedString(searchTerm)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/main/java/video/api/client/api/models/VideoSessionSession.java b/src/main/java/video/api/client/api/models/VideoSessionSession.java deleted file mode 100644 index 0f08f44..0000000 --- a/src/main/java/video/api/client/api/models/VideoSessionSession.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * api.video Java API client - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * Contact: ecosystem@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.models; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import video.api.client.api.models.Metadata; -import java.io.Serializable; - -/** - * VideoSessionSession - */ - -public class VideoSessionSession implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; - @SerializedName(SERIALIZED_NAME_SESSION_ID) - private String sessionId; - - public static final String SERIALIZED_NAME_LOADED_AT = "loadedAt"; - @SerializedName(SERIALIZED_NAME_LOADED_AT) - private OffsetDateTime loadedAt; - - public static final String SERIALIZED_NAME_ENDED_AT = "endedAt"; - @SerializedName(SERIALIZED_NAME_ENDED_AT) - private OffsetDateTime endedAt; - - public static final String SERIALIZED_NAME_METADATA = "metadata"; - @SerializedName(SERIALIZED_NAME_METADATA) - private List metadata = null; - - public VideoSessionSession sessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - /** - * The unique identifier for the session that you can use to track what happens during it. - * - * @return sessionId - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "psEmFwGQUAXR2lFHj5nDOpy", value = "The unique identifier for the session that you can use to track what happens during it.") - - public String getSessionId() { - return sessionId; - } - - public void setSessionId(String sessionId) { - this.sessionId = sessionId; - } - - public VideoSessionSession loadedAt(OffsetDateTime loadedAt) { - this.loadedAt = loadedAt; - return this; - } - - /** - * When the video session started, presented in ISO-8601 format. - * - * @return loadedAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2019-06-24T11:45:01.109Z", value = "When the video session started, presented in ISO-8601 format.") - - public OffsetDateTime getLoadedAt() { - return loadedAt; - } - - public void setLoadedAt(OffsetDateTime loadedAt) { - this.loadedAt = loadedAt; - } - - public VideoSessionSession endedAt(OffsetDateTime endedAt) { - this.endedAt = endedAt; - return this; - } - - /** - * When the video session ended, presented in ISO-8601 format. - * - * @return endedAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2019-06-24T12:45:01.109Z", value = "When the video session ended, presented in ISO-8601 format.") - - public OffsetDateTime getEndedAt() { - return endedAt; - } - - public void setEndedAt(OffsetDateTime endedAt) { - this.endedAt = endedAt; - } - - public VideoSessionSession metadata(List metadata) { - this.metadata = metadata; - return this; - } - - public VideoSessionSession addMetadataItem(Metadata metadataItem) { - if (this.metadata == null) { - this.metadata = new ArrayList<>(); - } - this.metadata.add(metadataItem); - return this; - } - - /** - * A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, - * allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your - * videos. - * - * @return metadata - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "[{\"key\": \"Author\", \"value\": \"John Doe\"}]", value = "A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos.") - - public List getMetadata() { - return metadata; - } - - public void setMetadata(List metadata) { - this.metadata = metadata; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VideoSessionSession videoSessionSession = (VideoSessionSession) o; - return Objects.equals(this.sessionId, videoSessionSession.sessionId) - && Objects.equals(this.loadedAt, videoSessionSession.loadedAt) - && Objects.equals(this.endedAt, videoSessionSession.endedAt) - && Objects.equals(this.metadata, videoSessionSession.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(sessionId, loadedAt, endedAt, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VideoSessionSession {\n"); - sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); - sb.append(" loadedAt: ").append(toIndentedString(loadedAt)).append("\n"); - sb.append(" endedAt: ").append(toIndentedString(endedAt)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/src/test/java/video/api/client/api/clients/AnalyticsV20BetaApiTest.java b/src/test/java/video/api/client/api/clients/AnalyticsV20BetaApiTest.java new file mode 100644 index 0000000..73312ed --- /dev/null +++ b/src/test/java/video/api/client/api/clients/AnalyticsV20BetaApiTest.java @@ -0,0 +1,22 @@ +/* + * api.video Java API client + * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. + * + * The version of the OpenAPI document: 1 + * Contact: ecosystem@api.video + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +package video.api.client.api.clients; + +import org.junit.jupiter.api.DisplayName; + +/** + * API tests for AnalyticsV20BetaApi + */ +@DisplayName("AnalyticsV20BetaApi") +public class AnalyticsV20BetaApiTest extends AbstractApiTest { + +}