Skip to content

Commit

Permalink
Updated Go client to v1.62.0-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitmovin OpenApi Bot committed Mar 9, 2021
1 parent 18543de commit 94da34f
Show file tree
Hide file tree
Showing 8 changed files with 190 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/encoding_encodings_muxings_packed_audio_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type EncodingEncodingsMuxingsPackedAudioAPI struct {
Customdata *EncodingEncodingsMuxingsPackedAudioCustomdataAPI
// Information communicates with '/encoding/encodings/{encoding_id}/muxings/packed-audio/{muxing_id}/information' endpoints
Information *EncodingEncodingsMuxingsPackedAudioInformationAPI
// Drm intermediary API object with no endpoints
Drm *EncodingEncodingsMuxingsPackedAudioDrmAPI
}

// NewEncodingEncodingsMuxingsPackedAudioAPI constructor for EncodingEncodingsMuxingsPackedAudioAPI that takes options as argument
Expand All @@ -31,6 +33,7 @@ func NewEncodingEncodingsMuxingsPackedAudioAPIWithClient(apiClient *apiclient.AP
a := &EncodingEncodingsMuxingsPackedAudioAPI{apiClient: apiClient}
a.Customdata = NewEncodingEncodingsMuxingsPackedAudioCustomdataAPIWithClient(apiClient)
a.Information = NewEncodingEncodingsMuxingsPackedAudioInformationAPIWithClient(apiClient)
a.Drm = NewEncodingEncodingsMuxingsPackedAudioDrmAPIWithClient(apiClient)

return a
}
Expand Down
100 changes: 100 additions & 0 deletions api/encoding_encodings_muxings_packed_audio_drm_aes_api.go
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)
}
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
}
31 changes: 31 additions & 0 deletions api/encoding_encodings_muxings_packed_audio_drm_api.go
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
}
2 changes: 1 addition & 1 deletion apiclient/api_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type PathParams map[string]interface{}
const QueryParamTagName = "query"
const DefaultAPIBaseURL = "https://api.bitmovin.com/v1"
const ContentTypeJson = "application/json"
const APIClientVersion = "1.61.0-alpha.0"
const APIClientVersion = "1.62.0-alpha.0"
const APIClientName = "bitmovin-api-sdk-go"
const NoAPIKeyErrorMsg = "there was no api key provided"

Expand Down
4 changes: 3 additions & 1 deletion model/analytics_export_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ type AnalyticsExportTask struct {
// UTC timestamp when the export task started
StartedAt *DateTime `json:"startedAt,omitempty"`
// UTC timestamp when the export task finished
FinishedAt *DateTime `json:"finishedAt,omitempty"`
FinishedAt *DateTime `json:"finishedAt,omitempty"`
Type AnalyticsExportType `json:"type,omitempty"`
Columns []string `json:"columns,omitempty"`
}
10 changes: 10 additions & 0 deletions model/analytics_export_type.go
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"
)
2 changes: 2 additions & 0 deletions model/stream_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ type StreamInput struct {
Position *int32 `json:"position,omitempty"`
// Set this property instead of all others to reference an ingest, trimming or concatenation input stream
InputStreamId *string `json:"inputStreamId,omitempty"`
// Input analysis details This property is populated after the encoding has finished
AnalysisDetails *EncodingStreamInputDetails `json:"analysisDetails,omitempty"`
}

0 comments on commit 94da34f

Please sign in to comment.