Skip to content

Commit

Permalink
Merge pull request #9 from apivideo/remove-unused-player-theme-options
Browse files Browse the repository at this point in the history
Remove unused player theme options
  • Loading branch information
bot-api-video authored Aug 19, 2021
2 parents 50f7289 + 7329d9c commit 4110308
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 354 deletions.
52 changes: 0 additions & 52 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2378,11 +2378,6 @@ paths:
- playerId: pl4fgtjy4tjyKDK545DRdfg
createdAt: 2020-01-13T10:09:17+00:00
updatedAt: 2020-01-13T10:09:17+00:00
shapeMargin: 10
shapeRadius: 3
shapeAspect: flat
shapeBackgroundTop: rgba(50, 50, 50, .7)
shapeBackgroundBottom: rgba(50, 50, 50, .8)
text: rgba(255, 255, 255, .95)
link: rgba(255, 0, 0, .95)
linkHover: rgba(255, 255, 255, .75)
Expand All @@ -2401,11 +2396,6 @@ paths:
- playerId: pl54fgtjy4tjyKDK45DRdfg
createdAt: 2020-01-13T10:09:17+00:00
updatedAt: 2020-01-13T10:09:17+00:00
shapeMargin: 10
shapeRadius: 3
shapeAspect: flat
shapeBackgroundTop: rgba(50, 50, 50, .7)
shapeBackgroundBottom: rgba(50, 50, 50, .8)
text: rgba(255, 255, 255, .95)
link: rgba(255, 0, 0, .95)
linkHover: rgba(255, 255, 255, .75)
Expand Down Expand Up @@ -2489,10 +2479,6 @@ paths:
playerId: pl45d5vFFGrfdsdsd156dGhh
createdAt: 2020-01-13T10:09:17+00:00
updatedAt: 2020-01-13T10:09:17+00:00
shapeRadius: 3
shapeAspect: flat
shapeBackgroundTop: rgba(50, 50, 50, .7)
shapeBackgroundBottom: rgba(50, 50, 50, .8)
text: rgba(255, 255, 255, .95)
link: rgba(255, 0, 0, .95)
linkHover: rgba(255, 255, 255, .75)
Expand Down Expand Up @@ -2578,10 +2564,6 @@ paths:
playerId: pl45d5vFFGrfdsdsd156dGhh
createdAt: 2020-01-13T10:09:17+00:00
updatedAt: 2020-01-13T11:12:14+00:00
shapeRadius: 3
shapeAspect: flat
shapeBackgroundTop: rgba(50, 50, 50, .7)
shapeBackgroundBottom: rgba(50, 50, 50, .8)
text: rgba(255, 255, 255, .95)
link: rgba(255, 0, 0, .95)
linkHover: rgba(255, 255, 255, .75)
Expand Down Expand Up @@ -2650,10 +2632,6 @@ paths:
playerId: pl45d5vFFGrfdsdsd156dGhh
createdAt: 2020-01-13T10:09:17+00:00
updatedAt: 2020-01-13T11:12:14+00:00
shapeRadius: 3
shapeAspect: flat
shapeBackgroundTop: rgba(50, 50, 50, .7)
shapeBackgroundBottom: rgba(50, 50, 50, .8)
text: rgba(255, 255, 255, .95)
link: rgba(255, 0, 0, .95)
linkHover: rgba(255, 255, 255, .75)
Expand Down Expand Up @@ -3651,31 +3629,26 @@ components:
player-theme:
example:
trackUnplayed: trackUnplayed
shapeMargin: 0
backgroundTop: backgroundTop
link: link
trackPlayed: trackPlayed
shapeBackgroundTop: shapeBackgroundTop
linkHover: linkHover
backgroundBottom: backgroundBottom
enableControls: true
backgroundText: backgroundText
enableApi: true
forceAutoplay: true
shapeBackgroundBottom: shapeBackgroundBottom
trackBackground: trackBackground
createdAt: 2020-01-31T10:17:47Z
assets:
link: path/to/my/logo/mylogo.jpg
logo: mylogo.jpg
hideTitle: true
shapeAspect: shapeAspect
text: text
linkActive: linkActive
forceLoop: true
playerId: pl45KFKdlddgk654dspkze
updatedAt: 2020-01-31T10:18:47Z
shapeRadius: 6
properties:
text:
description: 'RGBA color for timer text. Default: rgba(255, 255, 255, 1)'
Expand Down Expand Up @@ -3739,21 +3712,6 @@ components:
example: 2020-01-31T10:18:47Z
format: date-time
type: string
shapeMargin:
description: Deprecated
type: integer
shapeRadius:
description: Deprecated
type: integer
shapeAspect:
description: Deprecated
type: string
shapeBackgroundTop:
description: Deprecated
type: string
shapeBackgroundBottom:
description: Deprecated
type: string
linkActive:
description: Deprecated
type: string
Expand Down Expand Up @@ -4853,57 +4811,47 @@ components:
uri: /videos/search?currentPage=6&pageSize=20
data:
- trackUnplayed: trackUnplayed
shapeMargin: 0
backgroundTop: backgroundTop
link: link
trackPlayed: trackPlayed
shapeBackgroundTop: shapeBackgroundTop
linkHover: linkHover
backgroundBottom: backgroundBottom
enableControls: true
backgroundText: backgroundText
enableApi: true
forceAutoplay: true
shapeBackgroundBottom: shapeBackgroundBottom
trackBackground: trackBackground
createdAt: 2020-01-31T10:17:47Z
assets:
link: path/to/my/logo/mylogo.jpg
logo: mylogo.jpg
hideTitle: true
shapeAspect: shapeAspect
text: text
linkActive: linkActive
forceLoop: true
playerId: pl45KFKdlddgk654dspkze
updatedAt: 2020-01-31T10:18:47Z
shapeRadius: 6
- trackUnplayed: trackUnplayed
shapeMargin: 0
backgroundTop: backgroundTop
link: link
trackPlayed: trackPlayed
shapeBackgroundTop: shapeBackgroundTop
linkHover: linkHover
backgroundBottom: backgroundBottom
enableControls: true
backgroundText: backgroundText
enableApi: true
forceAutoplay: true
shapeBackgroundBottom: shapeBackgroundBottom
trackBackground: trackBackground
createdAt: 2020-01-31T10:17:47Z
assets:
link: path/to/my/logo/mylogo.jpg
logo: mylogo.jpg
hideTitle: true
shapeAspect: shapeAspect
text: text
linkActive: linkActive
forceLoop: true
playerId: pl45KFKdlddgk654dspkze
updatedAt: 2020-01-31T10:18:47Z
shapeRadius: 6
properties:
data:
items:
Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (c *Client) prepareRequest(

req.Header.Set("Accept", "application/json")
req.Header.Set("Content-Type", "application/json")
req.Header.Set("User-Agent", "api.video client (GO; v:0.0.4; )")
req.Header.Set("User-Agent", "api.video client (GO; v:0.0.5; )")

for headerName := range headerParams {
req.Header.Set(headerName, headerParams[headerName])
Expand Down Expand Up @@ -382,7 +382,7 @@ func (c *Client) auth(req *http.Request) (*http.Request, error) {

req.Header.Set("Accept", "application/json")
req.Header.Set("Content-Type", "application/json")
req.Header.Set("User-Agent", "api.video client (GO; v:0.0.4; )")
req.Header.Set("User-Agent", "api.video client (GO; v:0.0.5; )")

resp, err := c.httpClient.Do(req)

Expand Down
130 changes: 0 additions & 130 deletions docs/PlayerTheme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ Name | Type | Description | Notes
**PlayerId** | **string** | |
**CreatedAt** | Pointer to **string** | When the player was created, presented in ISO-8601 format. | [optional]
**UpdatedAt** | Pointer to **string** | When the player was last updated, presented in ISO-8601 format. | [optional]
**ShapeMargin** | Pointer to **int32** | Deprecated | [optional]
**ShapeRadius** | Pointer to **int32** | Deprecated | [optional]
**ShapeAspect** | Pointer to **string** | Deprecated | [optional]
**ShapeBackgroundTop** | Pointer to **string** | Deprecated | [optional]
**ShapeBackgroundBottom** | Pointer to **string** | Deprecated | [optional]
**LinkActive** | Pointer to **string** | Deprecated | [optional]
**Assets** | Pointer to [**PlayerThemeAssets**](player_theme_assets.md) | | [optional]

Expand Down Expand Up @@ -468,131 +463,6 @@ SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt returns a boolean if a field has been set.

### GetShapeMargin

`func (o *PlayerTheme) GetShapeMargin() int32`

GetShapeMargin returns the ShapeMargin field if non-nil, zero value otherwise.

### GetShapeMarginOk

`func (o *PlayerTheme) GetShapeMarginOk() (*int32, bool)`

GetShapeMarginOk returns a tuple with the ShapeMargin field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetShapeMargin

`func (o *PlayerTheme) SetShapeMargin(v int32)`

SetShapeMargin sets ShapeMargin field to given value.

### HasShapeMargin

`func (o *PlayerTheme) HasShapeMargin() bool`

HasShapeMargin returns a boolean if a field has been set.

### GetShapeRadius

`func (o *PlayerTheme) GetShapeRadius() int32`

GetShapeRadius returns the ShapeRadius field if non-nil, zero value otherwise.

### GetShapeRadiusOk

`func (o *PlayerTheme) GetShapeRadiusOk() (*int32, bool)`

GetShapeRadiusOk returns a tuple with the ShapeRadius field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetShapeRadius

`func (o *PlayerTheme) SetShapeRadius(v int32)`

SetShapeRadius sets ShapeRadius field to given value.

### HasShapeRadius

`func (o *PlayerTheme) HasShapeRadius() bool`

HasShapeRadius returns a boolean if a field has been set.

### GetShapeAspect

`func (o *PlayerTheme) GetShapeAspect() string`

GetShapeAspect returns the ShapeAspect field if non-nil, zero value otherwise.

### GetShapeAspectOk

`func (o *PlayerTheme) GetShapeAspectOk() (*string, bool)`

GetShapeAspectOk returns a tuple with the ShapeAspect field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetShapeAspect

`func (o *PlayerTheme) SetShapeAspect(v string)`

SetShapeAspect sets ShapeAspect field to given value.

### HasShapeAspect

`func (o *PlayerTheme) HasShapeAspect() bool`

HasShapeAspect returns a boolean if a field has been set.

### GetShapeBackgroundTop

`func (o *PlayerTheme) GetShapeBackgroundTop() string`

GetShapeBackgroundTop returns the ShapeBackgroundTop field if non-nil, zero value otherwise.

### GetShapeBackgroundTopOk

`func (o *PlayerTheme) GetShapeBackgroundTopOk() (*string, bool)`

GetShapeBackgroundTopOk returns a tuple with the ShapeBackgroundTop field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetShapeBackgroundTop

`func (o *PlayerTheme) SetShapeBackgroundTop(v string)`

SetShapeBackgroundTop sets ShapeBackgroundTop field to given value.

### HasShapeBackgroundTop

`func (o *PlayerTheme) HasShapeBackgroundTop() bool`

HasShapeBackgroundTop returns a boolean if a field has been set.

### GetShapeBackgroundBottom

`func (o *PlayerTheme) GetShapeBackgroundBottom() string`

GetShapeBackgroundBottom returns the ShapeBackgroundBottom field if non-nil, zero value otherwise.

### GetShapeBackgroundBottomOk

`func (o *PlayerTheme) GetShapeBackgroundBottomOk() (*string, bool)`

GetShapeBackgroundBottomOk returns a tuple with the ShapeBackgroundBottom field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetShapeBackgroundBottom

`func (o *PlayerTheme) SetShapeBackgroundBottom(v string)`

SetShapeBackgroundBottom sets ShapeBackgroundBottom field to given value.

### HasShapeBackgroundBottom

`func (o *PlayerTheme) HasShapeBackgroundBottom() bool`

HasShapeBackgroundBottom returns a boolean if a field has been set.

### GetLinkActive

`func (o *PlayerTheme) GetLinkActive() string`
Expand Down
Loading

0 comments on commit 4110308

Please sign in to comment.