-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Go client to v1.62.0-alpha.0
- Loading branch information
Bitmovin OpenApi Bot
committed
Mar 9, 2021
1 parent
18543de
commit 94da34f
Showing
8 changed files
with
190 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
api/encoding_encodings_muxings_packed_audio_drm_aes_api.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
package api | ||
|
||
import ( | ||
"github.com/bitmovin/bitmovin-api-sdk-go/apiclient" | ||
"github.com/bitmovin/bitmovin-api-sdk-go/model" | ||
"github.com/bitmovin/bitmovin-api-sdk-go/pagination" | ||
) | ||
|
||
// EncodingEncodingsMuxingsPackedAudioDrmAesAPI communicates with '/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/drm/aes' endpoints | ||
type EncodingEncodingsMuxingsPackedAudioDrmAesAPI struct { | ||
apiClient *apiclient.APIClient | ||
|
||
// Customdata communicates with '/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/drm/aes/{drm_id}/customData' endpoints | ||
Customdata *EncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI | ||
} | ||
|
||
// NewEncodingEncodingsMuxingsPackedAudioDrmAesAPI constructor for EncodingEncodingsMuxingsPackedAudioDrmAesAPI that takes options as argument | ||
func NewEncodingEncodingsMuxingsPackedAudioDrmAesAPI(options ...apiclient.APIClientOption) (*EncodingEncodingsMuxingsPackedAudioDrmAesAPI, error) { | ||
apiClient, err := apiclient.NewAPIClient(options...) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return NewEncodingEncodingsMuxingsPackedAudioDrmAesAPIWithClient(apiClient), nil | ||
} | ||
|
||
// NewEncodingEncodingsMuxingsPackedAudioDrmAesAPIWithClient constructor for EncodingEncodingsMuxingsPackedAudioDrmAesAPI that takes an APIClient as argument | ||
func NewEncodingEncodingsMuxingsPackedAudioDrmAesAPIWithClient(apiClient *apiclient.APIClient) *EncodingEncodingsMuxingsPackedAudioDrmAesAPI { | ||
a := &EncodingEncodingsMuxingsPackedAudioDrmAesAPI{apiClient: apiClient} | ||
a.Customdata = NewEncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPIWithClient(apiClient) | ||
|
||
return a | ||
} | ||
|
||
// Create Add AES encryption configuration to the Packed Audio muxing | ||
func (api *EncodingEncodingsMuxingsPackedAudioDrmAesAPI) Create(encodingId string, muxingId string, aesEncryptionDrm model.AesEncryptionDrm) (*model.AesEncryptionDrm, error) { | ||
reqParams := func(params *apiclient.RequestParams) { | ||
params.PathParams["encoding_id"] = encodingId | ||
params.PathParams["muxing_id"] = muxingId | ||
} | ||
|
||
var responseModel model.AesEncryptionDrm | ||
err := api.apiClient.Post("/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/drm/aes", &aesEncryptionDrm, &responseModel, reqParams) | ||
return &responseModel, err | ||
} | ||
|
||
// Delete AES encryption configuration from a Packed Audio muxing | ||
func (api *EncodingEncodingsMuxingsPackedAudioDrmAesAPI) Delete(encodingId string, muxingId string, drmId string) (*model.BitmovinResponse, error) { | ||
reqParams := func(params *apiclient.RequestParams) { | ||
params.PathParams["encoding_id"] = encodingId | ||
params.PathParams["muxing_id"] = muxingId | ||
params.PathParams["drm_id"] = drmId | ||
} | ||
|
||
var responseModel model.BitmovinResponse | ||
err := api.apiClient.Delete("/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/drm/aes/{drm_id}", nil, &responseModel, reqParams) | ||
return &responseModel, err | ||
} | ||
|
||
// Get AES encryption Details of a Packed Audio muxing | ||
func (api *EncodingEncodingsMuxingsPackedAudioDrmAesAPI) Get(encodingId string, muxingId string, drmId string) (*model.AesEncryptionDrm, error) { | ||
reqParams := func(params *apiclient.RequestParams) { | ||
params.PathParams["encoding_id"] = encodingId | ||
params.PathParams["muxing_id"] = muxingId | ||
params.PathParams["drm_id"] = drmId | ||
} | ||
|
||
var responseModel model.AesEncryptionDrm | ||
err := api.apiClient.Get("/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/drm/aes/{drm_id}", nil, &responseModel, reqParams) | ||
return &responseModel, err | ||
} | ||
|
||
// List AES encryption configurations of a Packed Audio muxing | ||
func (api *EncodingEncodingsMuxingsPackedAudioDrmAesAPI) List(encodingId string, muxingId string, queryParams ...func(*EncodingEncodingsMuxingsPackedAudioDrmAesAPIListQueryParams)) (*pagination.AesEncryptionDrmsListPagination, error) { | ||
queryParameters := &EncodingEncodingsMuxingsPackedAudioDrmAesAPIListQueryParams{} | ||
for _, queryParam := range queryParams { | ||
queryParam(queryParameters) | ||
} | ||
|
||
reqParams := func(params *apiclient.RequestParams) { | ||
params.PathParams["encoding_id"] = encodingId | ||
params.PathParams["muxing_id"] = muxingId | ||
params.QueryParams = queryParameters | ||
} | ||
|
||
var responseModel pagination.AesEncryptionDrmsListPagination | ||
err := api.apiClient.Get("/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/drm/aes", nil, &responseModel, reqParams) | ||
return &responseModel, err | ||
} | ||
|
||
// EncodingEncodingsMuxingsPackedAudioDrmAesAPIListQueryParams contains all query parameters for the List endpoint | ||
type EncodingEncodingsMuxingsPackedAudioDrmAesAPIListQueryParams struct { | ||
Offset int32 `query:"offset"` | ||
Limit int32 `query:"limit"` | ||
} | ||
|
||
// Params will return a map of query parameters | ||
func (q *EncodingEncodingsMuxingsPackedAudioDrmAesAPIListQueryParams) Params() map[string]string { | ||
return apiclient.GetParamsMap(q) | ||
} |
40 changes: 40 additions & 0 deletions
40
api/encoding_encodings_muxings_packed_audio_drm_aes_customdata_api.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package api | ||
|
||
import ( | ||
"github.com/bitmovin/bitmovin-api-sdk-go/apiclient" | ||
"github.com/bitmovin/bitmovin-api-sdk-go/model" | ||
) | ||
|
||
// EncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI communicates with '/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/drm/aes/{drm_id}/customData' endpoints | ||
type EncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI struct { | ||
apiClient *apiclient.APIClient | ||
} | ||
|
||
// NewEncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI constructor for EncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI that takes options as argument | ||
func NewEncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI(options ...apiclient.APIClientOption) (*EncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI, error) { | ||
apiClient, err := apiclient.NewAPIClient(options...) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return NewEncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPIWithClient(apiClient), nil | ||
} | ||
|
||
// NewEncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPIWithClient constructor for EncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI that takes an APIClient as argument | ||
func NewEncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPIWithClient(apiClient *apiclient.APIClient) *EncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI { | ||
a := &EncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI{apiClient: apiClient} | ||
return a | ||
} | ||
|
||
// Get AES encryption Custom Data of a Packed Audio muxing | ||
func (api *EncodingEncodingsMuxingsPackedAudioDrmAesCustomdataAPI) Get(encodingId string, muxingId string, drmId string) (*model.CustomData, error) { | ||
reqParams := func(params *apiclient.RequestParams) { | ||
params.PathParams["encoding_id"] = encodingId | ||
params.PathParams["muxing_id"] = muxingId | ||
params.PathParams["drm_id"] = drmId | ||
} | ||
|
||
var responseModel model.CustomData | ||
err := api.apiClient.Get("/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/drm/aes/{drm_id}/customData", nil, &responseModel, reqParams) | ||
return &responseModel, err | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package api | ||
|
||
import ( | ||
"github.com/bitmovin/bitmovin-api-sdk-go/apiclient" | ||
) | ||
|
||
// EncodingEncodingsMuxingsPackedAudioDrmAPI intermediary API object with no endpoints | ||
type EncodingEncodingsMuxingsPackedAudioDrmAPI struct { | ||
apiClient *apiclient.APIClient | ||
|
||
// Aes communicates with '/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/drm/aes' endpoints | ||
Aes *EncodingEncodingsMuxingsPackedAudioDrmAesAPI | ||
} | ||
|
||
// NewEncodingEncodingsMuxingsPackedAudioDrmAPI constructor for EncodingEncodingsMuxingsPackedAudioDrmAPI that takes options as argument | ||
func NewEncodingEncodingsMuxingsPackedAudioDrmAPI(options ...apiclient.APIClientOption) (*EncodingEncodingsMuxingsPackedAudioDrmAPI, error) { | ||
apiClient, err := apiclient.NewAPIClient(options...) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return NewEncodingEncodingsMuxingsPackedAudioDrmAPIWithClient(apiClient), nil | ||
} | ||
|
||
// NewEncodingEncodingsMuxingsPackedAudioDrmAPIWithClient constructor for EncodingEncodingsMuxingsPackedAudioDrmAPI that takes an APIClient as argument | ||
func NewEncodingEncodingsMuxingsPackedAudioDrmAPIWithClient(apiClient *apiclient.APIClient) *EncodingEncodingsMuxingsPackedAudioDrmAPI { | ||
a := &EncodingEncodingsMuxingsPackedAudioDrmAPI{apiClient: apiClient} | ||
a.Aes = NewEncodingEncodingsMuxingsPackedAudioDrmAesAPIWithClient(apiClient) | ||
|
||
return a | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package model | ||
|
||
// AnalyticsExportType : AnalyticsExportType model | ||
type AnalyticsExportType string | ||
|
||
// List of possible AnalyticsExportType values | ||
const ( | ||
AnalyticsExportType_ADS AnalyticsExportType = "ADS" | ||
AnalyticsExportType_SESSIONS AnalyticsExportType = "SESSIONS" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters