diff --git a/isp/.openapi-generator/FILES b/isp/.openapi-generator/FILES index ecd63ab..97b5377 100644 --- a/isp/.openapi-generator/FILES +++ b/isp/.openapi-generator/FILES @@ -20,6 +20,8 @@ model_archive_fer_response.go model_cancel_task_response.go model_cancel_task_response_error.go model_channel.go +model_channel_cost_report.go +model_channel_cost_report2.go model_channel_ingest.go model_channel_ingest_slate.go model_channel_ingest_source.go @@ -75,6 +77,7 @@ model_channel_tags.go model_channel_timeline_entry.go model_channel_transcode.go model_channel_transcode_audio_encoders_inner.go +model_channel_transcode_audio_encoders_inner_ac4.go model_channel_transcode_audio_encoders_inner_eac3.go model_channel_transcode_audio_encoders_inner_loudness.go model_channel_transcode_debug_overlays.go @@ -180,9 +183,9 @@ model_make_clip_response.go model_make_mp4_response.go model_mp4_url_response.go model_org_summary.go -model_patch_org_channel_request.go -model_patch_org_channel_request2_inner.go -model_patch_org_channel_request_ingest.go +model_patch_org_channel_request2.go +model_patch_org_channel_request2_ingest.go +model_patch_org_channel_request_inner.go model_pin_source_request.go model_play_url_response.go model_post_clip_archive_request.go diff --git a/isp/api_channels_for_organization.go b/isp/api_channels_for_organization.go index 84fb6da..7563ebc 100644 --- a/isp/api_channels_for_organization.go +++ b/isp/api_channels_for_organization.go @@ -1005,7 +1005,7 @@ type ApiPatchOrgChannelRequest struct { ifNoneMatch *[]string ifModifiedSince *time.Time ifUnmodifiedSince *time.Time - patchOrgChannelRequest2Inner *[]PatchOrgChannelRequest2Inner + patchOrgChannelRequestInner *[]PatchOrgChannelRequestInner } // Validate request but do not otherwise process it @@ -1038,8 +1038,8 @@ func (r ApiPatchOrgChannelRequest) IfUnmodifiedSince(ifUnmodifiedSince time.Time return r } -func (r ApiPatchOrgChannelRequest) PatchOrgChannelRequest2Inner(patchOrgChannelRequest2Inner []PatchOrgChannelRequest2Inner) ApiPatchOrgChannelRequest { - r.patchOrgChannelRequest2Inner = &patchOrgChannelRequest2Inner +func (r ApiPatchOrgChannelRequest) PatchOrgChannelRequestInner(patchOrgChannelRequestInner []PatchOrgChannelRequestInner) ApiPatchOrgChannelRequest { + r.patchOrgChannelRequestInner = &patchOrgChannelRequestInner return r } @@ -1123,7 +1123,7 @@ func (a *ChannelsForOrganizationApiService) PatchOrgChannelExecute(r ApiPatchOrg localVarHeaderParams["If-Unmodified-Since"] = parameterToString(*r.ifUnmodifiedSince, "") } // body params - localVarPostBody = r.patchOrgChannelRequest2Inner + localVarPostBody = r.patchOrgChannelRequestInner req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err diff --git a/isp/api_transcoder_telemetry.go b/isp/api_transcoder_telemetry.go index 4d18500..3d79a9f 100644 --- a/isp/api_transcoder_telemetry.go +++ b/isp/api_transcoder_telemetry.go @@ -22,6 +22,23 @@ import ( type TranscoderTelemetryApi interface { + /* + GetChannelCostReport Get Channel Cost Report + + Returns a Cost Report for a channel. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org Organization name + @param channelId Unique channel identifier + @return ApiGetChannelCostReportRequest + */ + GetChannelCostReport(ctx context.Context, org string, channelId string) ApiGetChannelCostReportRequest + + // GetChannelCostReportExecute executes the request + // @return ChannelCostReport + GetChannelCostReportExecute(r ApiGetChannelCostReportRequest) (*ChannelCostReport, *http.Response, error) + /* ListContentSegmentHistory List Channel Content Segments History @@ -39,10 +56,26 @@ type TranscoderTelemetryApi interface { // @return ListContentSegmentHistoryResponse ListContentSegmentHistoryExecute(r ApiListContentSegmentHistoryRequest) (*ListContentSegmentHistoryResponse, *http.Response, error) + /* + ListOrganizationCostReports List Organization Cost Reports + + Returns Cost Reports for channels in an organization. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org Organization name + @return ApiListOrganizationCostReportsRequest + */ + ListOrganizationCostReports(ctx context.Context, org string) ApiListOrganizationCostReportsRequest + + // ListOrganizationCostReportsExecute executes the request + // @return []ChannelCostReport2 + ListOrganizationCostReportsExecute(r ApiListOrganizationCostReportsRequest) ([]ChannelCostReport2, *http.Response, error) + /* ListRawScteHistory Get SCTE-35 History - Returns SCTE-35 history for all channels. + Returns the history of out-of-band SCTE-35 messages received by the transcoder for all channels. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -57,7 +90,7 @@ type TranscoderTelemetryApi interface { /* ListRawScteHistoryByChannel Get Channel SCTE-35 History - Returns SCTE history for a channel. + Returns the history of out-of-band SCTE-35 messages received by the transcoder for a channel. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -75,6 +108,218 @@ type TranscoderTelemetryApi interface { // TranscoderTelemetryApiService TranscoderTelemetryApi service type TranscoderTelemetryApiService service +type ApiGetChannelCostReportRequest struct { + ctx context.Context + ApiService TranscoderTelemetryApi + org string + channelId string + from *time.Time + to *time.Time +} + +// ISO 8601 UTC timestamp for start range of date filtering +func (r ApiGetChannelCostReportRequest) From(from time.Time) ApiGetChannelCostReportRequest { + r.from = &from + return r +} + +// ISO 8601 UTC timestamp for end range of date filtering +func (r ApiGetChannelCostReportRequest) To(to time.Time) ApiGetChannelCostReportRequest { + r.to = &to + return r +} + +func (r ApiGetChannelCostReportRequest) Execute() (*ChannelCostReport, *http.Response, error) { + return r.ApiService.GetChannelCostReportExecute(r) +} + +/* +GetChannelCostReport Get Channel Cost Report + +Returns a Cost Report for a channel. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org Organization name + @param channelId Unique channel identifier + @return ApiGetChannelCostReportRequest +*/ +func (a *TranscoderTelemetryApiService) GetChannelCostReport(ctx context.Context, org string, channelId string) ApiGetChannelCostReportRequest { + return ApiGetChannelCostReportRequest{ + ApiService: a, + ctx: ctx, + org: org, + channelId: channelId, + } +} + +// Execute executes the request +// @return ChannelCostReport +func (a *TranscoderTelemetryApiService) GetChannelCostReportExecute(r ApiGetChannelCostReportRequest) (*ChannelCostReport, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ChannelCostReport + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TranscoderTelemetryApiService.GetChannelCostReport") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v2/{org}/channels/{channel-id}/cost-report" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", url.PathEscape(parameterToString(r.org, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"channel-id"+"}", url.PathEscape(parameterToString(r.channelId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if strlen(r.channelId) > 60 { + return localVarReturnValue, nil, reportError("channelId must have less than 60 elements") + } + + if r.from != nil { + localVarQueryParams.Add("from", parameterToString(*r.from, "")) + } + if r.to != nil { + localVarQueryParams.Add("to", parameterToString(*r.to, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if disablePaging := r.ctx.Value(ContextDisablePaging); disablePaging == nil { + if uri := GetLink(localVarHTTPResponse, RelNext); uri != nil { + // This response is paginated. Read all the pages and append the items. + items, resp, err := getAllPages(a.client, localVarReturnValue, localVarHTTPResponse) + if err.Error() != "" { + return localVarReturnValue, localVarHTTPResponse, err + } + localVarReturnValue = items.(*ChannelCostReport) + localVarHTTPResponse = resp + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiListContentSegmentHistoryRequest struct { ctx context.Context ApiService TranscoderTelemetryApi @@ -317,6 +562,231 @@ func (a *TranscoderTelemetryApiService) ListContentSegmentHistoryExecute(r ApiLi return localVarReturnValue, localVarHTTPResponse, nil } +type ApiListOrganizationCostReportsRequest struct { + ctx context.Context + ApiService TranscoderTelemetryApi + org string + from *time.Time + to *time.Time + cursor *string + pageSize *int32 +} + +// ISO 8601 UTC timestamp for start range of date filtering +func (r ApiListOrganizationCostReportsRequest) From(from time.Time) ApiListOrganizationCostReportsRequest { + r.from = &from + return r +} + +// ISO 8601 UTC timestamp for end range of date filtering +func (r ApiListOrganizationCostReportsRequest) To(to time.Time) ApiListOrganizationCostReportsRequest { + r.to = &to + return r +} + +// Current page cursor +func (r ApiListOrganizationCostReportsRequest) Cursor(cursor string) ApiListOrganizationCostReportsRequest { + r.cursor = &cursor + return r +} + +// Number of items to return +func (r ApiListOrganizationCostReportsRequest) PageSize(pageSize int32) ApiListOrganizationCostReportsRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiListOrganizationCostReportsRequest) Execute() ([]ChannelCostReport2, *http.Response, error) { + return r.ApiService.ListOrganizationCostReportsExecute(r) +} + +/* +ListOrganizationCostReports List Organization Cost Reports + +Returns Cost Reports for channels in an organization. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param org Organization name + @return ApiListOrganizationCostReportsRequest +*/ +func (a *TranscoderTelemetryApiService) ListOrganizationCostReports(ctx context.Context, org string) ApiListOrganizationCostReportsRequest { + return ApiListOrganizationCostReportsRequest{ + ApiService: a, + ctx: ctx, + org: org, + } +} + +// Execute executes the request +// @return []ChannelCostReport2 +func (a *TranscoderTelemetryApiService) ListOrganizationCostReportsExecute(r ApiListOrganizationCostReportsRequest) ([]ChannelCostReport2, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ChannelCostReport2 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TranscoderTelemetryApiService.ListOrganizationCostReports") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v2/{org}/cost-report" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", url.PathEscape(parameterToString(r.org, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.from != nil { + localVarQueryParams.Add("from", parameterToString(*r.from, "")) + } + if r.to != nil { + localVarQueryParams.Add("to", parameterToString(*r.to, "")) + } + if r.cursor != nil { + localVarQueryParams.Add("cursor", parameterToString(*r.cursor, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page_size", parameterToString(*r.pageSize, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 413 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if disablePaging := r.ctx.Value(ContextDisablePaging); disablePaging == nil { + if uri := GetLink(localVarHTTPResponse, RelNext); uri != nil { + // This response is paginated. Read all the pages and append the items. + items, resp, err := getAllPages(a.client, localVarReturnValue, localVarHTTPResponse) + if err.Error() != "" { + return localVarReturnValue, localVarHTTPResponse, err + } + localVarReturnValue = items.([]ChannelCostReport2) + localVarHTTPResponse = resp + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiListRawScteHistoryRequest struct { ctx context.Context ApiService TranscoderTelemetryApi @@ -336,7 +806,7 @@ func (r ApiListRawScteHistoryRequest) Execute() (*ListRawSCTEHistoryResponse, *h /* ListRawScteHistory Get SCTE-35 History -Returns SCTE-35 history for all channels. +Returns the history of out-of-band SCTE-35 messages received by the transcoder for all channels. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -529,7 +999,7 @@ func (r ApiListRawScteHistoryByChannelRequest) Execute() (*ListRawSCTEHistoryByC /* ListRawScteHistoryByChannel Get Channel SCTE-35 History -Returns SCTE history for a channel. +Returns the history of out-of-band SCTE-35 messages received by the transcoder for a channel. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). diff --git a/isp/model_channel_cost_report.go b/isp/model_channel_cost_report.go new file mode 100644 index 0000000..56d93fc --- /dev/null +++ b/isp/model_channel_cost_report.go @@ -0,0 +1,486 @@ +/* + * WBD Aventus Channels API + * + * API version: 0.0.0 + * Contact: live-control-plane-devs@wbd.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package isp + +import ( + "encoding/json" +) + +// checks if the ChannelCostReport type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChannelCostReport{} + +// ChannelCostReport struct for ChannelCostReport +type ChannelCostReport struct { + // An optional URL to a JSON Schema document describing this resource + Schema *string `json:"$schema,omitempty" format:"uri" doc:"An optional URL to a JSON Schema document describing this resource"` + ChannelName *string `json:"channel_name,omitempty"` + ChannelUrn *string `json:"channel_urn,omitempty"` + DurationSecs *int64 `json:"duration_secs,omitempty" format:"int64"` + ExternalId *string `json:"external_id,omitempty"` + HasHdr *bool `json:"has_hdr,omitempty"` + HasRealtimeOutput *bool `json:"has_realtime_output,omitempty"` + HasUhd *bool `json:"has_uhd,omitempty"` + Labels []string `json:"labels,omitempty"` + Organization *string `json:"organization,omitempty"` + VerbitEncoderCount *int32 `json:"verbit_encoder_count,omitempty" format:"int32" minimum:"0"` +} + +// NewChannelCostReport instantiates a new ChannelCostReport object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewChannelCostReport() *ChannelCostReport { + this := ChannelCostReport{} + return &this +} + +// NewChannelCostReportWithDefaults instantiates a new ChannelCostReport object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewChannelCostReportWithDefaults() *ChannelCostReport { + this := ChannelCostReport{} + return &this +} + +// GetSchema returns the Schema field value if set, zero value otherwise. +func (o *ChannelCostReport) GetSchema() string { + if o == nil || IsNil(o.Schema) { + var ret string + return ret + } + return *o.Schema +} + +// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetSchemaOk() (*string, bool) { + if o == nil || IsNil(o.Schema) { + return nil, false + } + return o.Schema, true +} + +// HasSchema returns a boolean if a field has been set. +func (o *ChannelCostReport) HasSchema() bool { + if o != nil && !IsNil(o.Schema) { + return true + } + + return false +} + +// SetSchema gets a reference to the given string and assigns it to the Schema field. +func (o *ChannelCostReport) SetSchema(v string) { + o.Schema = &v +} + +// GetChannelName returns the ChannelName field value if set, zero value otherwise. +func (o *ChannelCostReport) GetChannelName() string { + if o == nil || IsNil(o.ChannelName) { + var ret string + return ret + } + return *o.ChannelName +} + +// GetChannelNameOk returns a tuple with the ChannelName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetChannelNameOk() (*string, bool) { + if o == nil || IsNil(o.ChannelName) { + return nil, false + } + return o.ChannelName, true +} + +// HasChannelName returns a boolean if a field has been set. +func (o *ChannelCostReport) HasChannelName() bool { + if o != nil && !IsNil(o.ChannelName) { + return true + } + + return false +} + +// SetChannelName gets a reference to the given string and assigns it to the ChannelName field. +func (o *ChannelCostReport) SetChannelName(v string) { + o.ChannelName = &v +} + +// GetChannelUrn returns the ChannelUrn field value if set, zero value otherwise. +func (o *ChannelCostReport) GetChannelUrn() string { + if o == nil || IsNil(o.ChannelUrn) { + var ret string + return ret + } + return *o.ChannelUrn +} + +// GetChannelUrnOk returns a tuple with the ChannelUrn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetChannelUrnOk() (*string, bool) { + if o == nil || IsNil(o.ChannelUrn) { + return nil, false + } + return o.ChannelUrn, true +} + +// HasChannelUrn returns a boolean if a field has been set. +func (o *ChannelCostReport) HasChannelUrn() bool { + if o != nil && !IsNil(o.ChannelUrn) { + return true + } + + return false +} + +// SetChannelUrn gets a reference to the given string and assigns it to the ChannelUrn field. +func (o *ChannelCostReport) SetChannelUrn(v string) { + o.ChannelUrn = &v +} + +// GetDurationSecs returns the DurationSecs field value if set, zero value otherwise. +func (o *ChannelCostReport) GetDurationSecs() int64 { + if o == nil || IsNil(o.DurationSecs) { + var ret int64 + return ret + } + return *o.DurationSecs +} + +// GetDurationSecsOk returns a tuple with the DurationSecs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetDurationSecsOk() (*int64, bool) { + if o == nil || IsNil(o.DurationSecs) { + return nil, false + } + return o.DurationSecs, true +} + +// HasDurationSecs returns a boolean if a field has been set. +func (o *ChannelCostReport) HasDurationSecs() bool { + if o != nil && !IsNil(o.DurationSecs) { + return true + } + + return false +} + +// SetDurationSecs gets a reference to the given int64 and assigns it to the DurationSecs field. +func (o *ChannelCostReport) SetDurationSecs(v int64) { + o.DurationSecs = &v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *ChannelCostReport) GetExternalId() string { + if o == nil || IsNil(o.ExternalId) { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetExternalIdOk() (*string, bool) { + if o == nil || IsNil(o.ExternalId) { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *ChannelCostReport) HasExternalId() bool { + if o != nil && !IsNil(o.ExternalId) { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *ChannelCostReport) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetHasHdr returns the HasHdr field value if set, zero value otherwise. +func (o *ChannelCostReport) GetHasHdr() bool { + if o == nil || IsNil(o.HasHdr) { + var ret bool + return ret + } + return *o.HasHdr +} + +// GetHasHdrOk returns a tuple with the HasHdr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetHasHdrOk() (*bool, bool) { + if o == nil || IsNil(o.HasHdr) { + return nil, false + } + return o.HasHdr, true +} + +// HasHasHdr returns a boolean if a field has been set. +func (o *ChannelCostReport) HasHasHdr() bool { + if o != nil && !IsNil(o.HasHdr) { + return true + } + + return false +} + +// SetHasHdr gets a reference to the given bool and assigns it to the HasHdr field. +func (o *ChannelCostReport) SetHasHdr(v bool) { + o.HasHdr = &v +} + +// GetHasRealtimeOutput returns the HasRealtimeOutput field value if set, zero value otherwise. +func (o *ChannelCostReport) GetHasRealtimeOutput() bool { + if o == nil || IsNil(o.HasRealtimeOutput) { + var ret bool + return ret + } + return *o.HasRealtimeOutput +} + +// GetHasRealtimeOutputOk returns a tuple with the HasRealtimeOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetHasRealtimeOutputOk() (*bool, bool) { + if o == nil || IsNil(o.HasRealtimeOutput) { + return nil, false + } + return o.HasRealtimeOutput, true +} + +// HasHasRealtimeOutput returns a boolean if a field has been set. +func (o *ChannelCostReport) HasHasRealtimeOutput() bool { + if o != nil && !IsNil(o.HasRealtimeOutput) { + return true + } + + return false +} + +// SetHasRealtimeOutput gets a reference to the given bool and assigns it to the HasRealtimeOutput field. +func (o *ChannelCostReport) SetHasRealtimeOutput(v bool) { + o.HasRealtimeOutput = &v +} + +// GetHasUhd returns the HasUhd field value if set, zero value otherwise. +func (o *ChannelCostReport) GetHasUhd() bool { + if o == nil || IsNil(o.HasUhd) { + var ret bool + return ret + } + return *o.HasUhd +} + +// GetHasUhdOk returns a tuple with the HasUhd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetHasUhdOk() (*bool, bool) { + if o == nil || IsNil(o.HasUhd) { + return nil, false + } + return o.HasUhd, true +} + +// HasHasUhd returns a boolean if a field has been set. +func (o *ChannelCostReport) HasHasUhd() bool { + if o != nil && !IsNil(o.HasUhd) { + return true + } + + return false +} + +// SetHasUhd gets a reference to the given bool and assigns it to the HasUhd field. +func (o *ChannelCostReport) SetHasUhd(v bool) { + o.HasUhd = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ChannelCostReport) GetLabels() []string { + if o == nil || IsNil(o.Labels) { + var ret []string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetLabelsOk() ([]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ChannelCostReport) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *ChannelCostReport) SetLabels(v []string) { + o.Labels = v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *ChannelCostReport) GetOrganization() string { + if o == nil || IsNil(o.Organization) { + var ret string + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetOrganizationOk() (*string, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *ChannelCostReport) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given string and assigns it to the Organization field. +func (o *ChannelCostReport) SetOrganization(v string) { + o.Organization = &v +} + +// GetVerbitEncoderCount returns the VerbitEncoderCount field value if set, zero value otherwise. +func (o *ChannelCostReport) GetVerbitEncoderCount() int32 { + if o == nil || IsNil(o.VerbitEncoderCount) { + var ret int32 + return ret + } + return *o.VerbitEncoderCount +} + +// GetVerbitEncoderCountOk returns a tuple with the VerbitEncoderCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport) GetVerbitEncoderCountOk() (*int32, bool) { + if o == nil || IsNil(o.VerbitEncoderCount) { + return nil, false + } + return o.VerbitEncoderCount, true +} + +// HasVerbitEncoderCount returns a boolean if a field has been set. +func (o *ChannelCostReport) HasVerbitEncoderCount() bool { + if o != nil && !IsNil(o.VerbitEncoderCount) { + return true + } + + return false +} + +// SetVerbitEncoderCount gets a reference to the given int32 and assigns it to the VerbitEncoderCount field. +func (o *ChannelCostReport) SetVerbitEncoderCount(v int32) { + o.VerbitEncoderCount = &v +} + +func (o ChannelCostReport) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChannelCostReport) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Schema) { + toSerialize["$schema"] = o.Schema + } + if !IsNil(o.ChannelName) { + toSerialize["channel_name"] = o.ChannelName + } + if !IsNil(o.ChannelUrn) { + toSerialize["channel_urn"] = o.ChannelUrn + } + if !IsNil(o.DurationSecs) { + toSerialize["duration_secs"] = o.DurationSecs + } + if !IsNil(o.ExternalId) { + toSerialize["external_id"] = o.ExternalId + } + if !IsNil(o.HasHdr) { + toSerialize["has_hdr"] = o.HasHdr + } + if !IsNil(o.HasRealtimeOutput) { + toSerialize["has_realtime_output"] = o.HasRealtimeOutput + } + if !IsNil(o.HasUhd) { + toSerialize["has_uhd"] = o.HasUhd + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.VerbitEncoderCount) { + toSerialize["verbit_encoder_count"] = o.VerbitEncoderCount + } + return toSerialize, nil +} + +type NullableChannelCostReport struct { + value *ChannelCostReport + isSet bool +} + +func (v NullableChannelCostReport) Get() *ChannelCostReport { + return v.value +} + +func (v *NullableChannelCostReport) Set(val *ChannelCostReport) { + v.value = val + v.isSet = true +} + +func (v NullableChannelCostReport) IsSet() bool { + return v.isSet +} + +func (v *NullableChannelCostReport) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChannelCostReport(val *ChannelCostReport) *NullableChannelCostReport { + return &NullableChannelCostReport{value: val, isSet: true} +} + +func (v NullableChannelCostReport) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChannelCostReport) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/isp/model_channel_cost_report2.go b/isp/model_channel_cost_report2.go new file mode 100644 index 0000000..f91f285 --- /dev/null +++ b/isp/model_channel_cost_report2.go @@ -0,0 +1,449 @@ +/* + * WBD Aventus Channels API + * + * API version: 0.0.0 + * Contact: live-control-plane-devs@wbd.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package isp + +import ( + "encoding/json" +) + +// checks if the ChannelCostReport2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChannelCostReport2{} + +// ChannelCostReport2 struct for ChannelCostReport2 +type ChannelCostReport2 struct { + ChannelName *string `json:"channel_name,omitempty"` + ChannelUrn *string `json:"channel_urn,omitempty"` + DurationSecs *int64 `json:"duration_secs,omitempty" format:"int64"` + ExternalId *string `json:"external_id,omitempty"` + HasHdr *bool `json:"has_hdr,omitempty"` + HasRealtimeOutput *bool `json:"has_realtime_output,omitempty"` + HasUhd *bool `json:"has_uhd,omitempty"` + Labels []string `json:"labels,omitempty"` + Organization *string `json:"organization,omitempty"` + VerbitEncoderCount *int32 `json:"verbit_encoder_count,omitempty" format:"int32" minimum:"0"` +} + +// NewChannelCostReport2 instantiates a new ChannelCostReport2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewChannelCostReport2() *ChannelCostReport2 { + this := ChannelCostReport2{} + return &this +} + +// NewChannelCostReport2WithDefaults instantiates a new ChannelCostReport2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewChannelCostReport2WithDefaults() *ChannelCostReport2 { + this := ChannelCostReport2{} + return &this +} + +// GetChannelName returns the ChannelName field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetChannelName() string { + if o == nil || IsNil(o.ChannelName) { + var ret string + return ret + } + return *o.ChannelName +} + +// GetChannelNameOk returns a tuple with the ChannelName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetChannelNameOk() (*string, bool) { + if o == nil || IsNil(o.ChannelName) { + return nil, false + } + return o.ChannelName, true +} + +// HasChannelName returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasChannelName() bool { + if o != nil && !IsNil(o.ChannelName) { + return true + } + + return false +} + +// SetChannelName gets a reference to the given string and assigns it to the ChannelName field. +func (o *ChannelCostReport2) SetChannelName(v string) { + o.ChannelName = &v +} + +// GetChannelUrn returns the ChannelUrn field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetChannelUrn() string { + if o == nil || IsNil(o.ChannelUrn) { + var ret string + return ret + } + return *o.ChannelUrn +} + +// GetChannelUrnOk returns a tuple with the ChannelUrn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetChannelUrnOk() (*string, bool) { + if o == nil || IsNil(o.ChannelUrn) { + return nil, false + } + return o.ChannelUrn, true +} + +// HasChannelUrn returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasChannelUrn() bool { + if o != nil && !IsNil(o.ChannelUrn) { + return true + } + + return false +} + +// SetChannelUrn gets a reference to the given string and assigns it to the ChannelUrn field. +func (o *ChannelCostReport2) SetChannelUrn(v string) { + o.ChannelUrn = &v +} + +// GetDurationSecs returns the DurationSecs field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetDurationSecs() int64 { + if o == nil || IsNil(o.DurationSecs) { + var ret int64 + return ret + } + return *o.DurationSecs +} + +// GetDurationSecsOk returns a tuple with the DurationSecs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetDurationSecsOk() (*int64, bool) { + if o == nil || IsNil(o.DurationSecs) { + return nil, false + } + return o.DurationSecs, true +} + +// HasDurationSecs returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasDurationSecs() bool { + if o != nil && !IsNil(o.DurationSecs) { + return true + } + + return false +} + +// SetDurationSecs gets a reference to the given int64 and assigns it to the DurationSecs field. +func (o *ChannelCostReport2) SetDurationSecs(v int64) { + o.DurationSecs = &v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetExternalId() string { + if o == nil || IsNil(o.ExternalId) { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetExternalIdOk() (*string, bool) { + if o == nil || IsNil(o.ExternalId) { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasExternalId() bool { + if o != nil && !IsNil(o.ExternalId) { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *ChannelCostReport2) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetHasHdr returns the HasHdr field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetHasHdr() bool { + if o == nil || IsNil(o.HasHdr) { + var ret bool + return ret + } + return *o.HasHdr +} + +// GetHasHdrOk returns a tuple with the HasHdr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetHasHdrOk() (*bool, bool) { + if o == nil || IsNil(o.HasHdr) { + return nil, false + } + return o.HasHdr, true +} + +// HasHasHdr returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasHasHdr() bool { + if o != nil && !IsNil(o.HasHdr) { + return true + } + + return false +} + +// SetHasHdr gets a reference to the given bool and assigns it to the HasHdr field. +func (o *ChannelCostReport2) SetHasHdr(v bool) { + o.HasHdr = &v +} + +// GetHasRealtimeOutput returns the HasRealtimeOutput field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetHasRealtimeOutput() bool { + if o == nil || IsNil(o.HasRealtimeOutput) { + var ret bool + return ret + } + return *o.HasRealtimeOutput +} + +// GetHasRealtimeOutputOk returns a tuple with the HasRealtimeOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetHasRealtimeOutputOk() (*bool, bool) { + if o == nil || IsNil(o.HasRealtimeOutput) { + return nil, false + } + return o.HasRealtimeOutput, true +} + +// HasHasRealtimeOutput returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasHasRealtimeOutput() bool { + if o != nil && !IsNil(o.HasRealtimeOutput) { + return true + } + + return false +} + +// SetHasRealtimeOutput gets a reference to the given bool and assigns it to the HasRealtimeOutput field. +func (o *ChannelCostReport2) SetHasRealtimeOutput(v bool) { + o.HasRealtimeOutput = &v +} + +// GetHasUhd returns the HasUhd field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetHasUhd() bool { + if o == nil || IsNil(o.HasUhd) { + var ret bool + return ret + } + return *o.HasUhd +} + +// GetHasUhdOk returns a tuple with the HasUhd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetHasUhdOk() (*bool, bool) { + if o == nil || IsNil(o.HasUhd) { + return nil, false + } + return o.HasUhd, true +} + +// HasHasUhd returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasHasUhd() bool { + if o != nil && !IsNil(o.HasUhd) { + return true + } + + return false +} + +// SetHasUhd gets a reference to the given bool and assigns it to the HasUhd field. +func (o *ChannelCostReport2) SetHasUhd(v bool) { + o.HasUhd = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetLabels() []string { + if o == nil || IsNil(o.Labels) { + var ret []string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetLabelsOk() ([]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *ChannelCostReport2) SetLabels(v []string) { + o.Labels = v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetOrganization() string { + if o == nil || IsNil(o.Organization) { + var ret string + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetOrganizationOk() (*string, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given string and assigns it to the Organization field. +func (o *ChannelCostReport2) SetOrganization(v string) { + o.Organization = &v +} + +// GetVerbitEncoderCount returns the VerbitEncoderCount field value if set, zero value otherwise. +func (o *ChannelCostReport2) GetVerbitEncoderCount() int32 { + if o == nil || IsNil(o.VerbitEncoderCount) { + var ret int32 + return ret + } + return *o.VerbitEncoderCount +} + +// GetVerbitEncoderCountOk returns a tuple with the VerbitEncoderCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelCostReport2) GetVerbitEncoderCountOk() (*int32, bool) { + if o == nil || IsNil(o.VerbitEncoderCount) { + return nil, false + } + return o.VerbitEncoderCount, true +} + +// HasVerbitEncoderCount returns a boolean if a field has been set. +func (o *ChannelCostReport2) HasVerbitEncoderCount() bool { + if o != nil && !IsNil(o.VerbitEncoderCount) { + return true + } + + return false +} + +// SetVerbitEncoderCount gets a reference to the given int32 and assigns it to the VerbitEncoderCount field. +func (o *ChannelCostReport2) SetVerbitEncoderCount(v int32) { + o.VerbitEncoderCount = &v +} + +func (o ChannelCostReport2) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChannelCostReport2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ChannelName) { + toSerialize["channel_name"] = o.ChannelName + } + if !IsNil(o.ChannelUrn) { + toSerialize["channel_urn"] = o.ChannelUrn + } + if !IsNil(o.DurationSecs) { + toSerialize["duration_secs"] = o.DurationSecs + } + if !IsNil(o.ExternalId) { + toSerialize["external_id"] = o.ExternalId + } + if !IsNil(o.HasHdr) { + toSerialize["has_hdr"] = o.HasHdr + } + if !IsNil(o.HasRealtimeOutput) { + toSerialize["has_realtime_output"] = o.HasRealtimeOutput + } + if !IsNil(o.HasUhd) { + toSerialize["has_uhd"] = o.HasUhd + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.VerbitEncoderCount) { + toSerialize["verbit_encoder_count"] = o.VerbitEncoderCount + } + return toSerialize, nil +} + +type NullableChannelCostReport2 struct { + value *ChannelCostReport2 + isSet bool +} + +func (v NullableChannelCostReport2) Get() *ChannelCostReport2 { + return v.value +} + +func (v *NullableChannelCostReport2) Set(val *ChannelCostReport2) { + v.value = val + v.isSet = true +} + +func (v NullableChannelCostReport2) IsSet() bool { + return v.isSet +} + +func (v *NullableChannelCostReport2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChannelCostReport2(val *ChannelCostReport2) *NullableChannelCostReport2 { + return &NullableChannelCostReport2{value: val, isSet: true} +} + +func (v NullableChannelCostReport2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChannelCostReport2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/isp/model_channel_transcode_audio_encoders_inner.go b/isp/model_channel_transcode_audio_encoders_inner.go index 9a58c1d..0c05e4c 100644 --- a/isp/model_channel_transcode_audio_encoders_inner.go +++ b/isp/model_channel_transcode_audio_encoders_inner.go @@ -18,6 +18,7 @@ var _ MappedNullable = &ChannelTranscodeAudioEncodersInner{} // ChannelTranscodeAudioEncodersInner struct for ChannelTranscodeAudioEncodersInner type ChannelTranscodeAudioEncodersInner struct { + Ac4 *ChannelTranscodeAudioEncodersInnerAc4 `json:"ac4,omitempty"` // Audio source ID specifies which stream within the audio source to use. AudioSourceId *string `json:"audio_source_id,omitempty" minLength:"1" doc:"Audio source ID specifies which stream within the audio source to use."` // Bit rate specifies the constant number of bits used per second. Higher values result in better audio quality but bigger file sizes. @@ -25,7 +26,7 @@ type ChannelTranscodeAudioEncodersInner struct { // Channels specifies the number of real audio channels to encode. The available options depend on the audio codec. The encoder supports different channel configurations based on the codec; AAC 1-2 channels, AC3 supports 2 or 6, and EAC3 supports 2 or 6. For example, for AC3 5.1 one would set 6 channels. Channel configurations are as follows: 1 - Mono (C) 2 - Stereo / Dolby 2.0 (L, R) 6 - Dolby 5.1 (L, C, R, l, r, LFE) Dolby Atmos layouts such as 5.1.4 are achieved by setting this field to 6 and configuring ddp_joc_logical_channels in EAC3Settings as desired. Channels *int32 `json:"channels,omitempty" format:"int32" exclusiveMinimum:"0" maximum:"6" doc:"Channels specifies the number of real audio channels to encode. The available options depend on the audio codec. The encoder supports different channel configurations based on the codec; AAC 1-2 channels, AC3 supports 2 or 6, and EAC3 supports 2 or 6. For example, for AC3 5.1 one would set 6 channels. Channel configurations are as follows: 1 - Mono (C) 2 - Stereo / Dolby 2.0 (L, R) 6 - Dolby 5.1 (L, C, R, l, r, LFE) Dolby Atmos layouts such as 5.1.4 are achieved by setting this field to 6 and configuring ddp_joc_logical_channels in EAC3Settings as desired."` // Codec specifies the audio data encoding format. - Codec *string `json:"codec,omitempty" enum:"AAC_LC,AC3,EAC3,HE_AAC" doc:"Codec specifies the audio data encoding format."` + Codec *string `json:"codec,omitempty" enum:"AAC_LC,AC3,EAC3,HE_AAC,AC4" doc:"Codec specifies the audio data encoding format."` Eac3 *ChannelTranscodeAudioEncodersInnerEac3 `json:"eac3,omitempty"` // Encoder ID. IDs must be unique for all encoders. This ID is referenced when setting up playlist publishing. Id *string `json:"id,omitempty" minLength:"1" doc:"Encoder ID. IDs must be unique for all encoders. This ID is referenced when setting up playlist publishing."` @@ -53,6 +54,38 @@ func NewChannelTranscodeAudioEncodersInnerWithDefaults() *ChannelTranscodeAudioE return &this } +// GetAc4 returns the Ac4 field value if set, zero value otherwise. +func (o *ChannelTranscodeAudioEncodersInner) GetAc4() ChannelTranscodeAudioEncodersInnerAc4 { + if o == nil || IsNil(o.Ac4) { + var ret ChannelTranscodeAudioEncodersInnerAc4 + return ret + } + return *o.Ac4 +} + +// GetAc4Ok returns a tuple with the Ac4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelTranscodeAudioEncodersInner) GetAc4Ok() (*ChannelTranscodeAudioEncodersInnerAc4, bool) { + if o == nil || IsNil(o.Ac4) { + return nil, false + } + return o.Ac4, true +} + +// HasAc4 returns a boolean if a field has been set. +func (o *ChannelTranscodeAudioEncodersInner) HasAc4() bool { + if o != nil && !IsNil(o.Ac4) { + return true + } + + return false +} + +// SetAc4 gets a reference to the given ChannelTranscodeAudioEncodersInnerAc4 and assigns it to the Ac4 field. +func (o *ChannelTranscodeAudioEncodersInner) SetAc4(v ChannelTranscodeAudioEncodersInnerAc4) { + o.Ac4 = &v +} + // GetAudioSourceId returns the AudioSourceId field value if set, zero value otherwise. func (o *ChannelTranscodeAudioEncodersInner) GetAudioSourceId() string { if o == nil || IsNil(o.AudioSourceId) { @@ -351,6 +384,9 @@ func (o ChannelTranscodeAudioEncodersInner) MarshalJSON() ([]byte, error) { func (o ChannelTranscodeAudioEncodersInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Ac4) { + toSerialize["ac4"] = o.Ac4 + } if !IsNil(o.AudioSourceId) { toSerialize["audio_source_id"] = o.AudioSourceId } diff --git a/isp/model_channel_transcode_audio_encoders_inner_ac4.go b/isp/model_channel_transcode_audio_encoders_inner_ac4.go new file mode 100644 index 0000000..c0c1a36 --- /dev/null +++ b/isp/model_channel_transcode_audio_encoders_inner_ac4.go @@ -0,0 +1,125 @@ +/* + * WBD Aventus Channels API + * + * API version: 0.0.0 + * Contact: live-control-plane-devs@wbd.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package isp + +import ( + "encoding/json" +) + +// checks if the ChannelTranscodeAudioEncodersInnerAc4 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChannelTranscodeAudioEncodersInnerAc4{} + +// ChannelTranscodeAudioEncodersInnerAc4 Only one of ['eac3', 'ac4'] may be set. +type ChannelTranscodeAudioEncodersInnerAc4 struct { + EncodingMode *string `json:"encoding_mode,omitempty" enum:"ENCODING_MODE_UNSPECIFIED,ENCODING_MODE_EMISSION"` +} + +// NewChannelTranscodeAudioEncodersInnerAc4 instantiates a new ChannelTranscodeAudioEncodersInnerAc4 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewChannelTranscodeAudioEncodersInnerAc4() *ChannelTranscodeAudioEncodersInnerAc4 { + this := ChannelTranscodeAudioEncodersInnerAc4{} + return &this +} + +// NewChannelTranscodeAudioEncodersInnerAc4WithDefaults instantiates a new ChannelTranscodeAudioEncodersInnerAc4 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewChannelTranscodeAudioEncodersInnerAc4WithDefaults() *ChannelTranscodeAudioEncodersInnerAc4 { + this := ChannelTranscodeAudioEncodersInnerAc4{} + return &this +} + +// GetEncodingMode returns the EncodingMode field value if set, zero value otherwise. +func (o *ChannelTranscodeAudioEncodersInnerAc4) GetEncodingMode() string { + if o == nil || IsNil(o.EncodingMode) { + var ret string + return ret + } + return *o.EncodingMode +} + +// GetEncodingModeOk returns a tuple with the EncodingMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChannelTranscodeAudioEncodersInnerAc4) GetEncodingModeOk() (*string, bool) { + if o == nil || IsNil(o.EncodingMode) { + return nil, false + } + return o.EncodingMode, true +} + +// HasEncodingMode returns a boolean if a field has been set. +func (o *ChannelTranscodeAudioEncodersInnerAc4) HasEncodingMode() bool { + if o != nil && !IsNil(o.EncodingMode) { + return true + } + + return false +} + +// SetEncodingMode gets a reference to the given string and assigns it to the EncodingMode field. +func (o *ChannelTranscodeAudioEncodersInnerAc4) SetEncodingMode(v string) { + o.EncodingMode = &v +} + +func (o ChannelTranscodeAudioEncodersInnerAc4) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChannelTranscodeAudioEncodersInnerAc4) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EncodingMode) { + toSerialize["encoding_mode"] = o.EncodingMode + } + return toSerialize, nil +} + +type NullableChannelTranscodeAudioEncodersInnerAc4 struct { + value *ChannelTranscodeAudioEncodersInnerAc4 + isSet bool +} + +func (v NullableChannelTranscodeAudioEncodersInnerAc4) Get() *ChannelTranscodeAudioEncodersInnerAc4 { + return v.value +} + +func (v *NullableChannelTranscodeAudioEncodersInnerAc4) Set(val *ChannelTranscodeAudioEncodersInnerAc4) { + v.value = val + v.isSet = true +} + +func (v NullableChannelTranscodeAudioEncodersInnerAc4) IsSet() bool { + return v.isSet +} + +func (v *NullableChannelTranscodeAudioEncodersInnerAc4) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChannelTranscodeAudioEncodersInnerAc4(val *ChannelTranscodeAudioEncodersInnerAc4) *NullableChannelTranscodeAudioEncodersInnerAc4 { + return &NullableChannelTranscodeAudioEncodersInnerAc4{value: val, isSet: true} +} + +func (v NullableChannelTranscodeAudioEncodersInnerAc4) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChannelTranscodeAudioEncodersInnerAc4) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/isp/model_channel_transcode_audio_encoders_inner_eac3.go b/isp/model_channel_transcode_audio_encoders_inner_eac3.go index 86898c6..5df2148 100644 --- a/isp/model_channel_transcode_audio_encoders_inner_eac3.go +++ b/isp/model_channel_transcode_audio_encoders_inner_eac3.go @@ -16,7 +16,7 @@ import ( // checks if the ChannelTranscodeAudioEncodersInnerEac3 type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ChannelTranscodeAudioEncodersInnerEac3{} -// ChannelTranscodeAudioEncodersInnerEac3 Only one of ['eac3'] may be set. +// ChannelTranscodeAudioEncodersInnerEac3 Only one of ['eac3', 'ac4'] may be set. type ChannelTranscodeAudioEncodersInnerEac3 struct { // Configures the maximum DD+JOC complexity index the content is expected to have. This does not configure the actual encoder, but simply indicates the value that should appear in manifests given to the player. This may only be used when 'ddp_joc_passthrough' is enabled. A legacy default of 10 applies to channels using pure passthrough which do not configure this; hybrid passthrough requires this to be configured explicitly, and additionally requires a value of at least 12 since that's what encoded output will have. When encoding DD+JOC without passthrough, the manifests reflect the actual transcoder output and manual configuration is not permitted. DdpJocComplexityIndex *int32 `json:"ddp_joc_complexity_index,omitempty" format:"int32" doc:"Configures the maximum DD+JOC complexity index the content is expected to have. This does not configure the actual encoder, but simply indicates the value that should appear in manifests given to the player. This may only be used when 'ddp_joc_passthrough' is enabled. A legacy default of 10 applies to channels using pure passthrough which do not configure this; hybrid passthrough requires this to be configured explicitly, and additionally requires a value of at least 12 since that's what encoded output will have. When encoding DD+JOC without passthrough, the manifests reflect the actual transcoder output and manual configuration is not permitted."` diff --git a/isp/model_patch_org_channel_request.go b/isp/model_patch_org_channel_request2.go similarity index 73% rename from isp/model_patch_org_channel_request.go rename to isp/model_patch_org_channel_request2.go index 7fc826d..73cce53 100644 --- a/isp/model_patch_org_channel_request.go +++ b/isp/model_patch_org_channel_request2.go @@ -14,11 +14,11 @@ import ( "time" ) -// checks if the PatchOrgChannelRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PatchOrgChannelRequest{} +// checks if the PatchOrgChannelRequest2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchOrgChannelRequest2{} -// PatchOrgChannelRequest struct for PatchOrgChannelRequest -type PatchOrgChannelRequest struct { +// PatchOrgChannelRequest2 struct for PatchOrgChannelRequest2 +type PatchOrgChannelRequest2 struct { // An optional URL to a JSON Schema document describing this resource Schema *string `json:"$schema,omitempty" format:"uri" doc:"An optional URL to a JSON Schema document describing this resource"` // Date and time the channel was created. @@ -31,7 +31,7 @@ type PatchOrgChannelRequest struct { EnableByoip *bool `json:"enable_byoip,omitempty" doc:"Indicates whether the channel's transcoder needs to run in a designated IP range."` // External Channel ID provided at channel creation time Id *string `json:"id,omitempty" minLength:"1" pattern:"/^([a-z0-9]+(-*[a-z0-9]+)*)$/" doc:"External Channel ID provided at channel creation time"` - Ingest *PatchOrgChannelRequestIngest `json:"ingest,omitempty"` + Ingest *PatchOrgChannelRequest2Ingest `json:"ingest,omitempty"` // Optional labels for a channel. Any included labels must be at least 1 character long, but no greater than 256 characters. The maximum number of labels is 50. Labels []string `json:"labels,omitempty" maxItems:"50" doc:"Optional labels for a channel. Any included labels must be at least 1 character long, but no greater than 256 characters. The maximum number of labels is 50."` // Date and time the channel was last modified. @@ -52,25 +52,25 @@ type PatchOrgChannelRequest struct { Transcode *ChannelTranscode `json:"transcode,omitempty"` } -// NewPatchOrgChannelRequest instantiates a new PatchOrgChannelRequest object +// NewPatchOrgChannelRequest2 instantiates a new PatchOrgChannelRequest2 object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPatchOrgChannelRequest() *PatchOrgChannelRequest { - this := PatchOrgChannelRequest{} +func NewPatchOrgChannelRequest2() *PatchOrgChannelRequest2 { + this := PatchOrgChannelRequest2{} return &this } -// NewPatchOrgChannelRequestWithDefaults instantiates a new PatchOrgChannelRequest object +// NewPatchOrgChannelRequest2WithDefaults instantiates a new PatchOrgChannelRequest2 object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPatchOrgChannelRequestWithDefaults() *PatchOrgChannelRequest { - this := PatchOrgChannelRequest{} +func NewPatchOrgChannelRequest2WithDefaults() *PatchOrgChannelRequest2 { + this := PatchOrgChannelRequest2{} return &this } // GetSchema returns the Schema field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetSchema() string { +func (o *PatchOrgChannelRequest2) GetSchema() string { if o == nil || IsNil(o.Schema) { var ret string return ret @@ -80,7 +80,7 @@ func (o *PatchOrgChannelRequest) GetSchema() string { // GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetSchemaOk() (*string, bool) { +func (o *PatchOrgChannelRequest2) GetSchemaOk() (*string, bool) { if o == nil || IsNil(o.Schema) { return nil, false } @@ -88,7 +88,7 @@ func (o *PatchOrgChannelRequest) GetSchemaOk() (*string, bool) { } // HasSchema returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasSchema() bool { +func (o *PatchOrgChannelRequest2) HasSchema() bool { if o != nil && !IsNil(o.Schema) { return true } @@ -97,12 +97,12 @@ func (o *PatchOrgChannelRequest) HasSchema() bool { } // SetSchema gets a reference to the given string and assigns it to the Schema field. -func (o *PatchOrgChannelRequest) SetSchema(v string) { +func (o *PatchOrgChannelRequest2) SetSchema(v string) { o.Schema = &v } // GetCreated returns the Created field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetCreated() time.Time { +func (o *PatchOrgChannelRequest2) GetCreated() time.Time { if o == nil || IsNil(o.Created) { var ret time.Time return ret @@ -112,7 +112,7 @@ func (o *PatchOrgChannelRequest) GetCreated() time.Time { // GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetCreatedOk() (*time.Time, bool) { +func (o *PatchOrgChannelRequest2) GetCreatedOk() (*time.Time, bool) { if o == nil || IsNil(o.Created) { return nil, false } @@ -120,7 +120,7 @@ func (o *PatchOrgChannelRequest) GetCreatedOk() (*time.Time, bool) { } // HasCreated returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasCreated() bool { +func (o *PatchOrgChannelRequest2) HasCreated() bool { if o != nil && !IsNil(o.Created) { return true } @@ -129,12 +129,12 @@ func (o *PatchOrgChannelRequest) HasCreated() bool { } // SetCreated gets a reference to the given time.Time and assigns it to the Created field. -func (o *PatchOrgChannelRequest) SetCreated(v time.Time) { +func (o *PatchOrgChannelRequest2) SetCreated(v time.Time) { o.Created = &v } // GetDescription returns the Description field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetDescription() string { +func (o *PatchOrgChannelRequest2) GetDescription() string { if o == nil || IsNil(o.Description) { var ret string return ret @@ -144,7 +144,7 @@ func (o *PatchOrgChannelRequest) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetDescriptionOk() (*string, bool) { +func (o *PatchOrgChannelRequest2) GetDescriptionOk() (*string, bool) { if o == nil || IsNil(o.Description) { return nil, false } @@ -152,7 +152,7 @@ func (o *PatchOrgChannelRequest) GetDescriptionOk() (*string, bool) { } // HasDescription returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasDescription() bool { +func (o *PatchOrgChannelRequest2) HasDescription() bool { if o != nil && !IsNil(o.Description) { return true } @@ -161,12 +161,12 @@ func (o *PatchOrgChannelRequest) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *PatchOrgChannelRequest) SetDescription(v string) { +func (o *PatchOrgChannelRequest2) SetDescription(v string) { o.Description = &v } // GetDesiredState returns the DesiredState field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetDesiredState() string { +func (o *PatchOrgChannelRequest2) GetDesiredState() string { if o == nil || IsNil(o.DesiredState) { var ret string return ret @@ -176,7 +176,7 @@ func (o *PatchOrgChannelRequest) GetDesiredState() string { // GetDesiredStateOk returns a tuple with the DesiredState field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetDesiredStateOk() (*string, bool) { +func (o *PatchOrgChannelRequest2) GetDesiredStateOk() (*string, bool) { if o == nil || IsNil(o.DesiredState) { return nil, false } @@ -184,7 +184,7 @@ func (o *PatchOrgChannelRequest) GetDesiredStateOk() (*string, bool) { } // HasDesiredState returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasDesiredState() bool { +func (o *PatchOrgChannelRequest2) HasDesiredState() bool { if o != nil && !IsNil(o.DesiredState) { return true } @@ -193,12 +193,12 @@ func (o *PatchOrgChannelRequest) HasDesiredState() bool { } // SetDesiredState gets a reference to the given string and assigns it to the DesiredState field. -func (o *PatchOrgChannelRequest) SetDesiredState(v string) { +func (o *PatchOrgChannelRequest2) SetDesiredState(v string) { o.DesiredState = &v } // GetEnableByoip returns the EnableByoip field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetEnableByoip() bool { +func (o *PatchOrgChannelRequest2) GetEnableByoip() bool { if o == nil || IsNil(o.EnableByoip) { var ret bool return ret @@ -208,7 +208,7 @@ func (o *PatchOrgChannelRequest) GetEnableByoip() bool { // GetEnableByoipOk returns a tuple with the EnableByoip field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetEnableByoipOk() (*bool, bool) { +func (o *PatchOrgChannelRequest2) GetEnableByoipOk() (*bool, bool) { if o == nil || IsNil(o.EnableByoip) { return nil, false } @@ -216,7 +216,7 @@ func (o *PatchOrgChannelRequest) GetEnableByoipOk() (*bool, bool) { } // HasEnableByoip returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasEnableByoip() bool { +func (o *PatchOrgChannelRequest2) HasEnableByoip() bool { if o != nil && !IsNil(o.EnableByoip) { return true } @@ -225,12 +225,12 @@ func (o *PatchOrgChannelRequest) HasEnableByoip() bool { } // SetEnableByoip gets a reference to the given bool and assigns it to the EnableByoip field. -func (o *PatchOrgChannelRequest) SetEnableByoip(v bool) { +func (o *PatchOrgChannelRequest2) SetEnableByoip(v bool) { o.EnableByoip = &v } // GetId returns the Id field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetId() string { +func (o *PatchOrgChannelRequest2) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret @@ -240,7 +240,7 @@ func (o *PatchOrgChannelRequest) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetIdOk() (*string, bool) { +func (o *PatchOrgChannelRequest2) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -248,7 +248,7 @@ func (o *PatchOrgChannelRequest) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasId() bool { +func (o *PatchOrgChannelRequest2) HasId() bool { if o != nil && !IsNil(o.Id) { return true } @@ -257,14 +257,14 @@ func (o *PatchOrgChannelRequest) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *PatchOrgChannelRequest) SetId(v string) { +func (o *PatchOrgChannelRequest2) SetId(v string) { o.Id = &v } // GetIngest returns the Ingest field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetIngest() PatchOrgChannelRequestIngest { +func (o *PatchOrgChannelRequest2) GetIngest() PatchOrgChannelRequest2Ingest { if o == nil || IsNil(o.Ingest) { - var ret PatchOrgChannelRequestIngest + var ret PatchOrgChannelRequest2Ingest return ret } return *o.Ingest @@ -272,7 +272,7 @@ func (o *PatchOrgChannelRequest) GetIngest() PatchOrgChannelRequestIngest { // GetIngestOk returns a tuple with the Ingest field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetIngestOk() (*PatchOrgChannelRequestIngest, bool) { +func (o *PatchOrgChannelRequest2) GetIngestOk() (*PatchOrgChannelRequest2Ingest, bool) { if o == nil || IsNil(o.Ingest) { return nil, false } @@ -280,7 +280,7 @@ func (o *PatchOrgChannelRequest) GetIngestOk() (*PatchOrgChannelRequestIngest, b } // HasIngest returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasIngest() bool { +func (o *PatchOrgChannelRequest2) HasIngest() bool { if o != nil && !IsNil(o.Ingest) { return true } @@ -288,13 +288,13 @@ func (o *PatchOrgChannelRequest) HasIngest() bool { return false } -// SetIngest gets a reference to the given PatchOrgChannelRequestIngest and assigns it to the Ingest field. -func (o *PatchOrgChannelRequest) SetIngest(v PatchOrgChannelRequestIngest) { +// SetIngest gets a reference to the given PatchOrgChannelRequest2Ingest and assigns it to the Ingest field. +func (o *PatchOrgChannelRequest2) SetIngest(v PatchOrgChannelRequest2Ingest) { o.Ingest = &v } // GetLabels returns the Labels field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetLabels() []string { +func (o *PatchOrgChannelRequest2) GetLabels() []string { if o == nil || IsNil(o.Labels) { var ret []string return ret @@ -304,7 +304,7 @@ func (o *PatchOrgChannelRequest) GetLabels() []string { // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetLabelsOk() ([]string, bool) { +func (o *PatchOrgChannelRequest2) GetLabelsOk() ([]string, bool) { if o == nil || IsNil(o.Labels) { return nil, false } @@ -312,7 +312,7 @@ func (o *PatchOrgChannelRequest) GetLabelsOk() ([]string, bool) { } // HasLabels returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasLabels() bool { +func (o *PatchOrgChannelRequest2) HasLabels() bool { if o != nil && !IsNil(o.Labels) { return true } @@ -321,12 +321,12 @@ func (o *PatchOrgChannelRequest) HasLabels() bool { } // SetLabels gets a reference to the given []string and assigns it to the Labels field. -func (o *PatchOrgChannelRequest) SetLabels(v []string) { +func (o *PatchOrgChannelRequest2) SetLabels(v []string) { o.Labels = v } // GetModified returns the Modified field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetModified() time.Time { +func (o *PatchOrgChannelRequest2) GetModified() time.Time { if o == nil || IsNil(o.Modified) { var ret time.Time return ret @@ -336,7 +336,7 @@ func (o *PatchOrgChannelRequest) GetModified() time.Time { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetModifiedOk() (*time.Time, bool) { +func (o *PatchOrgChannelRequest2) GetModifiedOk() (*time.Time, bool) { if o == nil || IsNil(o.Modified) { return nil, false } @@ -344,7 +344,7 @@ func (o *PatchOrgChannelRequest) GetModifiedOk() (*time.Time, bool) { } // HasModified returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasModified() bool { +func (o *PatchOrgChannelRequest2) HasModified() bool { if o != nil && !IsNil(o.Modified) { return true } @@ -353,12 +353,12 @@ func (o *PatchOrgChannelRequest) HasModified() bool { } // SetModified gets a reference to the given time.Time and assigns it to the Modified field. -func (o *PatchOrgChannelRequest) SetModified(v time.Time) { +func (o *PatchOrgChannelRequest2) SetModified(v time.Time) { o.Modified = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetName() string { +func (o *PatchOrgChannelRequest2) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -368,7 +368,7 @@ func (o *PatchOrgChannelRequest) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetNameOk() (*string, bool) { +func (o *PatchOrgChannelRequest2) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -376,7 +376,7 @@ func (o *PatchOrgChannelRequest) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasName() bool { +func (o *PatchOrgChannelRequest2) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -385,12 +385,12 @@ func (o *PatchOrgChannelRequest) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *PatchOrgChannelRequest) SetName(v string) { +func (o *PatchOrgChannelRequest2) SetName(v string) { o.Name = &v } // GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetOrganization() string { +func (o *PatchOrgChannelRequest2) GetOrganization() string { if o == nil || IsNil(o.Organization) { var ret string return ret @@ -400,7 +400,7 @@ func (o *PatchOrgChannelRequest) GetOrganization() string { // GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetOrganizationOk() (*string, bool) { +func (o *PatchOrgChannelRequest2) GetOrganizationOk() (*string, bool) { if o == nil || IsNil(o.Organization) { return nil, false } @@ -408,7 +408,7 @@ func (o *PatchOrgChannelRequest) GetOrganizationOk() (*string, bool) { } // HasOrganization returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasOrganization() bool { +func (o *PatchOrgChannelRequest2) HasOrganization() bool { if o != nil && !IsNil(o.Organization) { return true } @@ -417,12 +417,12 @@ func (o *PatchOrgChannelRequest) HasOrganization() bool { } // SetOrganization gets a reference to the given string and assigns it to the Organization field. -func (o *PatchOrgChannelRequest) SetOrganization(v string) { +func (o *PatchOrgChannelRequest2) SetOrganization(v string) { o.Organization = &v } // GetPackaging returns the Packaging field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetPackaging() ChannelPackaging { +func (o *PatchOrgChannelRequest2) GetPackaging() ChannelPackaging { if o == nil || IsNil(o.Packaging) { var ret ChannelPackaging return ret @@ -432,7 +432,7 @@ func (o *PatchOrgChannelRequest) GetPackaging() ChannelPackaging { // GetPackagingOk returns a tuple with the Packaging field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetPackagingOk() (*ChannelPackaging, bool) { +func (o *PatchOrgChannelRequest2) GetPackagingOk() (*ChannelPackaging, bool) { if o == nil || IsNil(o.Packaging) { return nil, false } @@ -440,7 +440,7 @@ func (o *PatchOrgChannelRequest) GetPackagingOk() (*ChannelPackaging, bool) { } // HasPackaging returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasPackaging() bool { +func (o *PatchOrgChannelRequest2) HasPackaging() bool { if o != nil && !IsNil(o.Packaging) { return true } @@ -449,12 +449,12 @@ func (o *PatchOrgChannelRequest) HasPackaging() bool { } // SetPackaging gets a reference to the given ChannelPackaging and assigns it to the Packaging field. -func (o *PatchOrgChannelRequest) SetPackaging(v ChannelPackaging) { +func (o *PatchOrgChannelRequest2) SetPackaging(v ChannelPackaging) { o.Packaging = &v } // GetPublishing returns the Publishing field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetPublishing() ChannelPublishing { +func (o *PatchOrgChannelRequest2) GetPublishing() ChannelPublishing { if o == nil || IsNil(o.Publishing) { var ret ChannelPublishing return ret @@ -464,7 +464,7 @@ func (o *PatchOrgChannelRequest) GetPublishing() ChannelPublishing { // GetPublishingOk returns a tuple with the Publishing field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetPublishingOk() (*ChannelPublishing, bool) { +func (o *PatchOrgChannelRequest2) GetPublishingOk() (*ChannelPublishing, bool) { if o == nil || IsNil(o.Publishing) { return nil, false } @@ -472,7 +472,7 @@ func (o *PatchOrgChannelRequest) GetPublishingOk() (*ChannelPublishing, bool) { } // HasPublishing returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasPublishing() bool { +func (o *PatchOrgChannelRequest2) HasPublishing() bool { if o != nil && !IsNil(o.Publishing) { return true } @@ -481,12 +481,12 @@ func (o *PatchOrgChannelRequest) HasPublishing() bool { } // SetPublishing gets a reference to the given ChannelPublishing and assigns it to the Publishing field. -func (o *PatchOrgChannelRequest) SetPublishing(v ChannelPublishing) { +func (o *PatchOrgChannelRequest2) SetPublishing(v ChannelPublishing) { o.Publishing = &v } // GetRegion returns the Region field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetRegion() string { +func (o *PatchOrgChannelRequest2) GetRegion() string { if o == nil || IsNil(o.Region) { var ret string return ret @@ -496,7 +496,7 @@ func (o *PatchOrgChannelRequest) GetRegion() string { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetRegionOk() (*string, bool) { +func (o *PatchOrgChannelRequest2) GetRegionOk() (*string, bool) { if o == nil || IsNil(o.Region) { return nil, false } @@ -504,7 +504,7 @@ func (o *PatchOrgChannelRequest) GetRegionOk() (*string, bool) { } // HasRegion returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasRegion() bool { +func (o *PatchOrgChannelRequest2) HasRegion() bool { if o != nil && !IsNil(o.Region) { return true } @@ -513,12 +513,12 @@ func (o *PatchOrgChannelRequest) HasRegion() bool { } // SetRegion gets a reference to the given string and assigns it to the Region field. -func (o *PatchOrgChannelRequest) SetRegion(v string) { +func (o *PatchOrgChannelRequest2) SetRegion(v string) { o.Region = &v } // GetResourceClass returns the ResourceClass field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetResourceClass() string { +func (o *PatchOrgChannelRequest2) GetResourceClass() string { if o == nil || IsNil(o.ResourceClass) { var ret string return ret @@ -528,7 +528,7 @@ func (o *PatchOrgChannelRequest) GetResourceClass() string { // GetResourceClassOk returns a tuple with the ResourceClass field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetResourceClassOk() (*string, bool) { +func (o *PatchOrgChannelRequest2) GetResourceClassOk() (*string, bool) { if o == nil || IsNil(o.ResourceClass) { return nil, false } @@ -536,7 +536,7 @@ func (o *PatchOrgChannelRequest) GetResourceClassOk() (*string, bool) { } // HasResourceClass returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasResourceClass() bool { +func (o *PatchOrgChannelRequest2) HasResourceClass() bool { if o != nil && !IsNil(o.ResourceClass) { return true } @@ -545,12 +545,12 @@ func (o *PatchOrgChannelRequest) HasResourceClass() bool { } // SetResourceClass gets a reference to the given string and assigns it to the ResourceClass field. -func (o *PatchOrgChannelRequest) SetResourceClass(v string) { +func (o *PatchOrgChannelRequest2) SetResourceClass(v string) { o.ResourceClass = &v } // GetSelf returns the Self field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetSelf() string { +func (o *PatchOrgChannelRequest2) GetSelf() string { if o == nil || IsNil(o.Self) { var ret string return ret @@ -560,7 +560,7 @@ func (o *PatchOrgChannelRequest) GetSelf() string { // GetSelfOk returns a tuple with the Self field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetSelfOk() (*string, bool) { +func (o *PatchOrgChannelRequest2) GetSelfOk() (*string, bool) { if o == nil || IsNil(o.Self) { return nil, false } @@ -568,7 +568,7 @@ func (o *PatchOrgChannelRequest) GetSelfOk() (*string, bool) { } // HasSelf returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasSelf() bool { +func (o *PatchOrgChannelRequest2) HasSelf() bool { if o != nil && !IsNil(o.Self) { return true } @@ -577,12 +577,12 @@ func (o *PatchOrgChannelRequest) HasSelf() bool { } // SetSelf gets a reference to the given string and assigns it to the Self field. -func (o *PatchOrgChannelRequest) SetSelf(v string) { +func (o *PatchOrgChannelRequest2) SetSelf(v string) { o.Self = &v } // GetSignaling returns the Signaling field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetSignaling() ChannelSignaling { +func (o *PatchOrgChannelRequest2) GetSignaling() ChannelSignaling { if o == nil || IsNil(o.Signaling) { var ret ChannelSignaling return ret @@ -592,7 +592,7 @@ func (o *PatchOrgChannelRequest) GetSignaling() ChannelSignaling { // GetSignalingOk returns a tuple with the Signaling field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetSignalingOk() (*ChannelSignaling, bool) { +func (o *PatchOrgChannelRequest2) GetSignalingOk() (*ChannelSignaling, bool) { if o == nil || IsNil(o.Signaling) { return nil, false } @@ -600,7 +600,7 @@ func (o *PatchOrgChannelRequest) GetSignalingOk() (*ChannelSignaling, bool) { } // HasSignaling returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasSignaling() bool { +func (o *PatchOrgChannelRequest2) HasSignaling() bool { if o != nil && !IsNil(o.Signaling) { return true } @@ -609,12 +609,12 @@ func (o *PatchOrgChannelRequest) HasSignaling() bool { } // SetSignaling gets a reference to the given ChannelSignaling and assigns it to the Signaling field. -func (o *PatchOrgChannelRequest) SetSignaling(v ChannelSignaling) { +func (o *PatchOrgChannelRequest2) SetSignaling(v ChannelSignaling) { o.Signaling = &v } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetTags() ChannelTags { +func (o *PatchOrgChannelRequest2) GetTags() ChannelTags { if o == nil || IsNil(o.Tags) { var ret ChannelTags return ret @@ -624,7 +624,7 @@ func (o *PatchOrgChannelRequest) GetTags() ChannelTags { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetTagsOk() (*ChannelTags, bool) { +func (o *PatchOrgChannelRequest2) GetTagsOk() (*ChannelTags, bool) { if o == nil || IsNil(o.Tags) { return nil, false } @@ -632,7 +632,7 @@ func (o *PatchOrgChannelRequest) GetTagsOk() (*ChannelTags, bool) { } // HasTags returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasTags() bool { +func (o *PatchOrgChannelRequest2) HasTags() bool { if o != nil && !IsNil(o.Tags) { return true } @@ -641,12 +641,12 @@ func (o *PatchOrgChannelRequest) HasTags() bool { } // SetTags gets a reference to the given ChannelTags and assigns it to the Tags field. -func (o *PatchOrgChannelRequest) SetTags(v ChannelTags) { +func (o *PatchOrgChannelRequest2) SetTags(v ChannelTags) { o.Tags = &v } // GetTranscode returns the Transcode field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest) GetTranscode() ChannelTranscode { +func (o *PatchOrgChannelRequest2) GetTranscode() ChannelTranscode { if o == nil || IsNil(o.Transcode) { var ret ChannelTranscode return ret @@ -656,7 +656,7 @@ func (o *PatchOrgChannelRequest) GetTranscode() ChannelTranscode { // GetTranscodeOk returns a tuple with the Transcode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest) GetTranscodeOk() (*ChannelTranscode, bool) { +func (o *PatchOrgChannelRequest2) GetTranscodeOk() (*ChannelTranscode, bool) { if o == nil || IsNil(o.Transcode) { return nil, false } @@ -664,7 +664,7 @@ func (o *PatchOrgChannelRequest) GetTranscodeOk() (*ChannelTranscode, bool) { } // HasTranscode returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest) HasTranscode() bool { +func (o *PatchOrgChannelRequest2) HasTranscode() bool { if o != nil && !IsNil(o.Transcode) { return true } @@ -673,11 +673,11 @@ func (o *PatchOrgChannelRequest) HasTranscode() bool { } // SetTranscode gets a reference to the given ChannelTranscode and assigns it to the Transcode field. -func (o *PatchOrgChannelRequest) SetTranscode(v ChannelTranscode) { +func (o *PatchOrgChannelRequest2) SetTranscode(v ChannelTranscode) { o.Transcode = &v } -func (o PatchOrgChannelRequest) MarshalJSON() ([]byte, error) { +func (o PatchOrgChannelRequest2) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -685,7 +685,7 @@ func (o PatchOrgChannelRequest) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o PatchOrgChannelRequest) ToMap() (map[string]interface{}, error) { +func (o PatchOrgChannelRequest2) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Schema) { toSerialize["$schema"] = o.Schema @@ -747,38 +747,38 @@ func (o PatchOrgChannelRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullablePatchOrgChannelRequest struct { - value *PatchOrgChannelRequest +type NullablePatchOrgChannelRequest2 struct { + value *PatchOrgChannelRequest2 isSet bool } -func (v NullablePatchOrgChannelRequest) Get() *PatchOrgChannelRequest { +func (v NullablePatchOrgChannelRequest2) Get() *PatchOrgChannelRequest2 { return v.value } -func (v *NullablePatchOrgChannelRequest) Set(val *PatchOrgChannelRequest) { +func (v *NullablePatchOrgChannelRequest2) Set(val *PatchOrgChannelRequest2) { v.value = val v.isSet = true } -func (v NullablePatchOrgChannelRequest) IsSet() bool { +func (v NullablePatchOrgChannelRequest2) IsSet() bool { return v.isSet } -func (v *NullablePatchOrgChannelRequest) Unset() { +func (v *NullablePatchOrgChannelRequest2) Unset() { v.value = nil v.isSet = false } -func NewNullablePatchOrgChannelRequest(val *PatchOrgChannelRequest) *NullablePatchOrgChannelRequest { - return &NullablePatchOrgChannelRequest{value: val, isSet: true} +func NewNullablePatchOrgChannelRequest2(val *PatchOrgChannelRequest2) *NullablePatchOrgChannelRequest2 { + return &NullablePatchOrgChannelRequest2{value: val, isSet: true} } -func (v NullablePatchOrgChannelRequest) MarshalJSON() ([]byte, error) { +func (v NullablePatchOrgChannelRequest2) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePatchOrgChannelRequest) UnmarshalJSON(src []byte) error { +func (v *NullablePatchOrgChannelRequest2) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/isp/model_patch_org_channel_request_ingest.go b/isp/model_patch_org_channel_request2_ingest.go similarity index 53% rename from isp/model_patch_org_channel_request_ingest.go rename to isp/model_patch_org_channel_request2_ingest.go index 70b8ae1..808c7b1 100644 --- a/isp/model_patch_org_channel_request_ingest.go +++ b/isp/model_patch_org_channel_request2_ingest.go @@ -13,34 +13,34 @@ import ( "encoding/json" ) -// checks if the PatchOrgChannelRequestIngest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PatchOrgChannelRequestIngest{} +// checks if the PatchOrgChannelRequest2Ingest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchOrgChannelRequest2Ingest{} -// PatchOrgChannelRequestIngest Ingest configures inputs for the transcoder. -type PatchOrgChannelRequestIngest struct { +// PatchOrgChannelRequest2Ingest Ingest configures inputs for the transcoder. +type PatchOrgChannelRequest2Ingest struct { Slate *ChannelIngestSlate `json:"slate,omitempty"` Source *ChannelIngestSource `json:"source,omitempty"` } -// NewPatchOrgChannelRequestIngest instantiates a new PatchOrgChannelRequestIngest object +// NewPatchOrgChannelRequest2Ingest instantiates a new PatchOrgChannelRequest2Ingest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPatchOrgChannelRequestIngest() *PatchOrgChannelRequestIngest { - this := PatchOrgChannelRequestIngest{} +func NewPatchOrgChannelRequest2Ingest() *PatchOrgChannelRequest2Ingest { + this := PatchOrgChannelRequest2Ingest{} return &this } -// NewPatchOrgChannelRequestIngestWithDefaults instantiates a new PatchOrgChannelRequestIngest object +// NewPatchOrgChannelRequest2IngestWithDefaults instantiates a new PatchOrgChannelRequest2Ingest object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPatchOrgChannelRequestIngestWithDefaults() *PatchOrgChannelRequestIngest { - this := PatchOrgChannelRequestIngest{} +func NewPatchOrgChannelRequest2IngestWithDefaults() *PatchOrgChannelRequest2Ingest { + this := PatchOrgChannelRequest2Ingest{} return &this } // GetSlate returns the Slate field value if set, zero value otherwise. -func (o *PatchOrgChannelRequestIngest) GetSlate() ChannelIngestSlate { +func (o *PatchOrgChannelRequest2Ingest) GetSlate() ChannelIngestSlate { if o == nil || IsNil(o.Slate) { var ret ChannelIngestSlate return ret @@ -50,7 +50,7 @@ func (o *PatchOrgChannelRequestIngest) GetSlate() ChannelIngestSlate { // GetSlateOk returns a tuple with the Slate field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequestIngest) GetSlateOk() (*ChannelIngestSlate, bool) { +func (o *PatchOrgChannelRequest2Ingest) GetSlateOk() (*ChannelIngestSlate, bool) { if o == nil || IsNil(o.Slate) { return nil, false } @@ -58,7 +58,7 @@ func (o *PatchOrgChannelRequestIngest) GetSlateOk() (*ChannelIngestSlate, bool) } // HasSlate returns a boolean if a field has been set. -func (o *PatchOrgChannelRequestIngest) HasSlate() bool { +func (o *PatchOrgChannelRequest2Ingest) HasSlate() bool { if o != nil && !IsNil(o.Slate) { return true } @@ -67,12 +67,12 @@ func (o *PatchOrgChannelRequestIngest) HasSlate() bool { } // SetSlate gets a reference to the given ChannelIngestSlate and assigns it to the Slate field. -func (o *PatchOrgChannelRequestIngest) SetSlate(v ChannelIngestSlate) { +func (o *PatchOrgChannelRequest2Ingest) SetSlate(v ChannelIngestSlate) { o.Slate = &v } // GetSource returns the Source field value if set, zero value otherwise. -func (o *PatchOrgChannelRequestIngest) GetSource() ChannelIngestSource { +func (o *PatchOrgChannelRequest2Ingest) GetSource() ChannelIngestSource { if o == nil || IsNil(o.Source) { var ret ChannelIngestSource return ret @@ -82,7 +82,7 @@ func (o *PatchOrgChannelRequestIngest) GetSource() ChannelIngestSource { // GetSourceOk returns a tuple with the Source field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequestIngest) GetSourceOk() (*ChannelIngestSource, bool) { +func (o *PatchOrgChannelRequest2Ingest) GetSourceOk() (*ChannelIngestSource, bool) { if o == nil || IsNil(o.Source) { return nil, false } @@ -90,7 +90,7 @@ func (o *PatchOrgChannelRequestIngest) GetSourceOk() (*ChannelIngestSource, bool } // HasSource returns a boolean if a field has been set. -func (o *PatchOrgChannelRequestIngest) HasSource() bool { +func (o *PatchOrgChannelRequest2Ingest) HasSource() bool { if o != nil && !IsNil(o.Source) { return true } @@ -99,11 +99,11 @@ func (o *PatchOrgChannelRequestIngest) HasSource() bool { } // SetSource gets a reference to the given ChannelIngestSource and assigns it to the Source field. -func (o *PatchOrgChannelRequestIngest) SetSource(v ChannelIngestSource) { +func (o *PatchOrgChannelRequest2Ingest) SetSource(v ChannelIngestSource) { o.Source = &v } -func (o PatchOrgChannelRequestIngest) MarshalJSON() ([]byte, error) { +func (o PatchOrgChannelRequest2Ingest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -111,7 +111,7 @@ func (o PatchOrgChannelRequestIngest) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o PatchOrgChannelRequestIngest) ToMap() (map[string]interface{}, error) { +func (o PatchOrgChannelRequest2Ingest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Slate) { toSerialize["slate"] = o.Slate @@ -122,38 +122,38 @@ func (o PatchOrgChannelRequestIngest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullablePatchOrgChannelRequestIngest struct { - value *PatchOrgChannelRequestIngest +type NullablePatchOrgChannelRequest2Ingest struct { + value *PatchOrgChannelRequest2Ingest isSet bool } -func (v NullablePatchOrgChannelRequestIngest) Get() *PatchOrgChannelRequestIngest { +func (v NullablePatchOrgChannelRequest2Ingest) Get() *PatchOrgChannelRequest2Ingest { return v.value } -func (v *NullablePatchOrgChannelRequestIngest) Set(val *PatchOrgChannelRequestIngest) { +func (v *NullablePatchOrgChannelRequest2Ingest) Set(val *PatchOrgChannelRequest2Ingest) { v.value = val v.isSet = true } -func (v NullablePatchOrgChannelRequestIngest) IsSet() bool { +func (v NullablePatchOrgChannelRequest2Ingest) IsSet() bool { return v.isSet } -func (v *NullablePatchOrgChannelRequestIngest) Unset() { +func (v *NullablePatchOrgChannelRequest2Ingest) Unset() { v.value = nil v.isSet = false } -func NewNullablePatchOrgChannelRequestIngest(val *PatchOrgChannelRequestIngest) *NullablePatchOrgChannelRequestIngest { - return &NullablePatchOrgChannelRequestIngest{value: val, isSet: true} +func NewNullablePatchOrgChannelRequest2Ingest(val *PatchOrgChannelRequest2Ingest) *NullablePatchOrgChannelRequest2Ingest { + return &NullablePatchOrgChannelRequest2Ingest{value: val, isSet: true} } -func (v NullablePatchOrgChannelRequestIngest) MarshalJSON() ([]byte, error) { +func (v NullablePatchOrgChannelRequest2Ingest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePatchOrgChannelRequestIngest) UnmarshalJSON(src []byte) error { +func (v *NullablePatchOrgChannelRequest2Ingest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/isp/model_patch_org_channel_request2_inner.go b/isp/model_patch_org_channel_request_inner.go similarity index 59% rename from isp/model_patch_org_channel_request2_inner.go rename to isp/model_patch_org_channel_request_inner.go index 1c2caae..6d7c0c7 100644 --- a/isp/model_patch_org_channel_request2_inner.go +++ b/isp/model_patch_org_channel_request_inner.go @@ -13,11 +13,11 @@ import ( "encoding/json" ) -// checks if the PatchOrgChannelRequest2Inner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PatchOrgChannelRequest2Inner{} +// checks if the PatchOrgChannelRequestInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchOrgChannelRequestInner{} -// PatchOrgChannelRequest2Inner struct for PatchOrgChannelRequest2Inner -type PatchOrgChannelRequest2Inner struct { +// PatchOrgChannelRequestInner struct for PatchOrgChannelRequestInner +type PatchOrgChannelRequestInner struct { // JSON Pointer for the source of a move or copy From *string `json:"from,omitempty" doc:"JSON Pointer for the source of a move or copy"` // Operation name @@ -28,27 +28,27 @@ type PatchOrgChannelRequest2Inner struct { Value interface{} `json:"value,omitempty" doc:"The value to set"` } -// NewPatchOrgChannelRequest2Inner instantiates a new PatchOrgChannelRequest2Inner object +// NewPatchOrgChannelRequestInner instantiates a new PatchOrgChannelRequestInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPatchOrgChannelRequest2Inner(op string, path string) *PatchOrgChannelRequest2Inner { - this := PatchOrgChannelRequest2Inner{} +func NewPatchOrgChannelRequestInner(op string, path string) *PatchOrgChannelRequestInner { + this := PatchOrgChannelRequestInner{} this.Op = op this.Path = path return &this } -// NewPatchOrgChannelRequest2InnerWithDefaults instantiates a new PatchOrgChannelRequest2Inner object +// NewPatchOrgChannelRequestInnerWithDefaults instantiates a new PatchOrgChannelRequestInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPatchOrgChannelRequest2InnerWithDefaults() *PatchOrgChannelRequest2Inner { - this := PatchOrgChannelRequest2Inner{} +func NewPatchOrgChannelRequestInnerWithDefaults() *PatchOrgChannelRequestInner { + this := PatchOrgChannelRequestInner{} return &this } // GetFrom returns the From field value if set, zero value otherwise. -func (o *PatchOrgChannelRequest2Inner) GetFrom() string { +func (o *PatchOrgChannelRequestInner) GetFrom() string { if o == nil || IsNil(o.From) { var ret string return ret @@ -58,7 +58,7 @@ func (o *PatchOrgChannelRequest2Inner) GetFrom() string { // GetFromOk returns a tuple with the From field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest2Inner) GetFromOk() (*string, bool) { +func (o *PatchOrgChannelRequestInner) GetFromOk() (*string, bool) { if o == nil || IsNil(o.From) { return nil, false } @@ -66,7 +66,7 @@ func (o *PatchOrgChannelRequest2Inner) GetFromOk() (*string, bool) { } // HasFrom returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest2Inner) HasFrom() bool { +func (o *PatchOrgChannelRequestInner) HasFrom() bool { if o != nil && !IsNil(o.From) { return true } @@ -75,12 +75,12 @@ func (o *PatchOrgChannelRequest2Inner) HasFrom() bool { } // SetFrom gets a reference to the given string and assigns it to the From field. -func (o *PatchOrgChannelRequest2Inner) SetFrom(v string) { +func (o *PatchOrgChannelRequestInner) SetFrom(v string) { o.From = &v } // GetOp returns the Op field value -func (o *PatchOrgChannelRequest2Inner) GetOp() string { +func (o *PatchOrgChannelRequestInner) GetOp() string { if o == nil { var ret string return ret @@ -91,7 +91,7 @@ func (o *PatchOrgChannelRequest2Inner) GetOp() string { // GetOpOk returns a tuple with the Op field value // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest2Inner) GetOpOk() (*string, bool) { +func (o *PatchOrgChannelRequestInner) GetOpOk() (*string, bool) { if o == nil { return nil, false } @@ -99,12 +99,12 @@ func (o *PatchOrgChannelRequest2Inner) GetOpOk() (*string, bool) { } // SetOp sets field value -func (o *PatchOrgChannelRequest2Inner) SetOp(v string) { +func (o *PatchOrgChannelRequestInner) SetOp(v string) { o.Op = v } // GetPath returns the Path field value -func (o *PatchOrgChannelRequest2Inner) GetPath() string { +func (o *PatchOrgChannelRequestInner) GetPath() string { if o == nil { var ret string return ret @@ -115,7 +115,7 @@ func (o *PatchOrgChannelRequest2Inner) GetPath() string { // GetPathOk returns a tuple with the Path field value // and a boolean to check if the value has been set. -func (o *PatchOrgChannelRequest2Inner) GetPathOk() (*string, bool) { +func (o *PatchOrgChannelRequestInner) GetPathOk() (*string, bool) { if o == nil { return nil, false } @@ -123,12 +123,12 @@ func (o *PatchOrgChannelRequest2Inner) GetPathOk() (*string, bool) { } // SetPath sets field value -func (o *PatchOrgChannelRequest2Inner) SetPath(v string) { +func (o *PatchOrgChannelRequestInner) SetPath(v string) { o.Path = v } // GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchOrgChannelRequest2Inner) GetValue() interface{} { +func (o *PatchOrgChannelRequestInner) GetValue() interface{} { if o == nil { var ret interface{} return ret @@ -139,7 +139,7 @@ func (o *PatchOrgChannelRequest2Inner) GetValue() interface{} { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchOrgChannelRequest2Inner) GetValueOk() (*interface{}, bool) { +func (o *PatchOrgChannelRequestInner) GetValueOk() (*interface{}, bool) { if o == nil || IsNil(o.Value) { return nil, false } @@ -147,7 +147,7 @@ func (o *PatchOrgChannelRequest2Inner) GetValueOk() (*interface{}, bool) { } // HasValue returns a boolean if a field has been set. -func (o *PatchOrgChannelRequest2Inner) HasValue() bool { +func (o *PatchOrgChannelRequestInner) HasValue() bool { if o != nil && IsNil(o.Value) { return true } @@ -156,11 +156,11 @@ func (o *PatchOrgChannelRequest2Inner) HasValue() bool { } // SetValue gets a reference to the given interface{} and assigns it to the Value field. -func (o *PatchOrgChannelRequest2Inner) SetValue(v interface{}) { +func (o *PatchOrgChannelRequestInner) SetValue(v interface{}) { o.Value = v } -func (o PatchOrgChannelRequest2Inner) MarshalJSON() ([]byte, error) { +func (o PatchOrgChannelRequestInner) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -168,7 +168,7 @@ func (o PatchOrgChannelRequest2Inner) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o PatchOrgChannelRequest2Inner) ToMap() (map[string]interface{}, error) { +func (o PatchOrgChannelRequestInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.From) { toSerialize["from"] = o.From @@ -181,38 +181,38 @@ func (o PatchOrgChannelRequest2Inner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullablePatchOrgChannelRequest2Inner struct { - value *PatchOrgChannelRequest2Inner +type NullablePatchOrgChannelRequestInner struct { + value *PatchOrgChannelRequestInner isSet bool } -func (v NullablePatchOrgChannelRequest2Inner) Get() *PatchOrgChannelRequest2Inner { +func (v NullablePatchOrgChannelRequestInner) Get() *PatchOrgChannelRequestInner { return v.value } -func (v *NullablePatchOrgChannelRequest2Inner) Set(val *PatchOrgChannelRequest2Inner) { +func (v *NullablePatchOrgChannelRequestInner) Set(val *PatchOrgChannelRequestInner) { v.value = val v.isSet = true } -func (v NullablePatchOrgChannelRequest2Inner) IsSet() bool { +func (v NullablePatchOrgChannelRequestInner) IsSet() bool { return v.isSet } -func (v *NullablePatchOrgChannelRequest2Inner) Unset() { +func (v *NullablePatchOrgChannelRequestInner) Unset() { v.value = nil v.isSet = false } -func NewNullablePatchOrgChannelRequest2Inner(val *PatchOrgChannelRequest2Inner) *NullablePatchOrgChannelRequest2Inner { - return &NullablePatchOrgChannelRequest2Inner{value: val, isSet: true} +func NewNullablePatchOrgChannelRequestInner(val *PatchOrgChannelRequestInner) *NullablePatchOrgChannelRequestInner { + return &NullablePatchOrgChannelRequestInner{value: val, isSet: true} } -func (v NullablePatchOrgChannelRequest2Inner) MarshalJSON() ([]byte, error) { +func (v NullablePatchOrgChannelRequestInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePatchOrgChannelRequest2Inner) UnmarshalJSON(src []byte) error { +func (v *NullablePatchOrgChannelRequestInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/isp/test/api_transcoder_telemetry_test.go b/isp/test/api_transcoder_telemetry_test.go index fab8e9b..739c521 100644 --- a/isp/test/api_transcoder_telemetry_test.go +++ b/isp/test/api_transcoder_telemetry_test.go @@ -22,6 +22,21 @@ func Test_isp_TranscoderTelemetryApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test TranscoderTelemetryApiService GetChannelCostReport", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var org string + var channelId string + + resp, httpRes, err := apiClient.TranscoderTelemetryApi.GetChannelCostReport(context.Background(), org, channelId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test TranscoderTelemetryApiService ListContentSegmentHistory", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -37,6 +52,20 @@ func Test_isp_TranscoderTelemetryApiService(t *testing.T) { }) + t.Run("Test TranscoderTelemetryApiService ListOrganizationCostReports", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var org string + + resp, httpRes, err := apiClient.TranscoderTelemetryApi.ListOrganizationCostReports(context.Background(), org).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test TranscoderTelemetryApiService ListRawScteHistory", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/spec/isp.yaml b/spec/isp.yaml index 38ae6c6..ee802cc 100644 --- a/spec/isp.yaml +++ b/spec/isp.yaml @@ -1312,6 +1312,17 @@ components: items: type: object properties: + ac4: + type: object + description: Only one of ['eac3', 'ac4'] may be set. + properties: + encoding_mode: + type: string + enum: + - ENCODING_MODE_UNSPECIFIED + - ENCODING_MODE_EMISSION + example: ENCODING_MODE_EMISSION + additionalProperties: false audio_source_id: type: string description: Audio source ID specifies which stream within the audio source to use. @@ -1339,9 +1350,10 @@ components: - AC3 - EAC3 - HE_AAC + - AC4 eac3: type: object - description: Only one of ['eac3'] may be set. + description: Only one of ['eac3', 'ac4'] may be set. properties: ddp_joc_complexity_index: type: integer @@ -1879,6 +1891,72 @@ components: required: - ingest - transcode + ChannelCostReport: + type: object + properties: + $schema: + type: string + description: An optional URL to a JSON Schema document describing this resource + format: uri + channel_name: + type: string + channel_urn: + type: string + duration_secs: + type: integer + format: int64 + external_id: + type: string + has_hdr: + type: boolean + has_realtime_output: + type: boolean + has_uhd: + type: boolean + labels: + type: array + items: + type: string + organization: + type: string + verbit_encoder_count: + type: integer + format: int32 + minimum: 0 + additionalProperties: false + ChannelCostReport2: + type: object + properties: + channel_name: + type: string + channel_urn: + type: string + duration_secs: + type: integer + format: int64 + external_id: + type: string + has_hdr: + type: boolean + has_realtime_output: + type: boolean + has_uhd: + type: boolean + labels: + type: array + items: + type: string + organization: + type: string + verbit_encoder_count: + type: integer + format: int32 + minimum: 0 + additionalProperties: false + ChannelCostReportList: + type: array + items: + $ref: '#/components/schemas/ChannelCostReport2' ChannelPlayback: type: object properties: @@ -7083,6 +7161,33 @@ components: - organization - channelid patch-org-channel-request: + type: array + items: + type: object + properties: + from: + type: string + description: JSON Pointer for the source of a move or copy + op: + type: string + description: Operation name + enum: + - add + - remove + - replace + - move + - copy + - test + path: + type: string + description: JSON Pointer to the field being operated on, or the destination of a move/copy operation + value: + description: The value to set + additionalProperties: false + required: + - op + - path + patch-org-channel-request2: type: object properties: $schema: @@ -8256,6 +8361,17 @@ components: items: type: object properties: + ac4: + type: object + description: Only one of ['eac3', 'ac4'] may be set. + properties: + encoding_mode: + type: string + enum: + - ENCODING_MODE_UNSPECIFIED + - ENCODING_MODE_EMISSION + example: ENCODING_MODE_EMISSION + additionalProperties: false audio_source_id: type: string description: Audio source ID specifies which stream within the audio source to use. @@ -8283,9 +8399,10 @@ components: - AC3 - EAC3 - HE_AAC + - AC4 eac3: type: object - description: Only one of ['eac3'] may be set. + description: Only one of ['eac3', 'ac4'] may be set. properties: ddp_joc_complexity_index: type: integer @@ -8820,33 +8937,6 @@ components: minItems: 1 additionalProperties: false additionalProperties: false - patch-org-channel-request2: - type: array - items: - type: object - properties: - from: - type: string - description: JSON Pointer for the source of a move or copy - op: - type: string - description: Operation name - enum: - - add - - remove - - replace - - move - - copy - - test - path: - type: string - description: JSON Pointer to the field being operated on, or the destination of a move/copy operation - value: - description: The value to set - additionalProperties: false - required: - - op - - path put-org-channel-request: type: object properties: @@ -10025,6 +10115,17 @@ components: items: type: object properties: + ac4: + type: object + description: Only one of ['eac3', 'ac4'] may be set. + properties: + encoding_mode: + type: string + enum: + - ENCODING_MODE_UNSPECIFIED + - ENCODING_MODE_EMISSION + example: ENCODING_MODE_EMISSION + additionalProperties: false audio_source_id: type: string description: Audio source ID specifies which stream within the audio source to use. @@ -10052,9 +10153,10 @@ components: - AC3 - EAC3 - HE_AAC + - AC4 eac3: type: object - description: Only one of ['eac3'] may be set. + description: Only one of ['eac3', 'ac4'] may be set. properties: ddp_joc_complexity_index: type: integer @@ -12474,7 +12576,7 @@ paths: /v2/scte-history: get: description: | - Returns SCTE-35 history for all channels. + Returns the history of out-of-band SCTE-35 messages received by the transcoder for all channels. operationId: list-raw-scte-history parameters: - name: from @@ -13341,10 +13443,10 @@ paths: content: application/json-patch+json: schema: - $ref: '#/components/schemas/patch-org-channel-request2' + $ref: '#/components/schemas/patch-org-channel-request' application/merge-patch+json: schema: - $ref: '#/components/schemas/patch-org-channel-request' + $ref: '#/components/schemas/patch-org-channel-request2' responses: "201": description: Created @@ -14830,6 +14932,168 @@ paths: summary: List Channel Content Segments History tags: - Transcoder Telemetry + /v2/{org}/channels/{channel-id}/cost-report: + get: + description: | + Returns a Cost Report for a channel. + operationId: get-channel-cost-report + parameters: + - name: org + description: Organization name + in: path + required: true + schema: + type: string + description: Organization name + - name: channel-id + description: Unique channel identifier + in: path + required: true + schema: + type: string + description: Unique channel identifier + maxLength: 60 + pattern: ^([a-z0-9]+(-*[a-z0-9]+)*)$ + - name: from + description: ISO 8601 UTC timestamp for start range of date filtering + in: query + schema: + type: string + description: ISO 8601 UTC timestamp for start range of date filtering + format: date-time + explode: false + - name: to + description: ISO 8601 UTC timestamp for end range of date filtering + in: query + schema: + type: string + description: ISO 8601 UTC timestamp for end range of date filtering + format: date-time + explode: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ChannelCostReport' + description: OK + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Bad Request + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Not Found + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Request Entity Too Large + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "422": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Unprocessable Entity + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Internal Server Error + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "501": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Not Implemented + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Service Unavailable + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + summary: Get Channel Cost Report + tags: + - Transcoder Telemetry /v2/{org}/channels/{channel-id}/desired-state: put: operationId: put-org-channel-desired-state @@ -16822,7 +17086,7 @@ paths: /v2/{org}/channels/{channel-id}/scte-history: get: description: | - Returns SCTE history for a channel. + Returns the history of out-of-band SCTE-35 messages received by the transcoder for a channel. operationId: list-raw-scte-history-by-channel parameters: - name: org @@ -20766,6 +21030,177 @@ paths: summary: Collapse Vod tags: - Live2VOD for Organization + /v2/{org}/cost-report: + get: + description: | + Returns Cost Reports for channels in an organization. + operationId: list-organization-cost-reports + parameters: + - name: org + description: Organization name + in: path + required: true + schema: + type: string + description: Organization name + - name: from + description: ISO 8601 UTC timestamp for start range of date filtering + in: query + schema: + type: string + description: ISO 8601 UTC timestamp for start range of date filtering + format: date-time + explode: false + - name: to + description: ISO 8601 UTC timestamp for end range of date filtering + in: query + schema: + type: string + description: ISO 8601 UTC timestamp for end range of date filtering + format: date-time + explode: false + - name: cursor + description: Current page cursor + in: query + schema: + type: string + description: Current page cursor + explode: false + - name: page_size + description: Number of items to return + in: query + schema: + type: integer + description: Number of items to return + format: int32 + default: 100 + minimum: 1 + maximum: 100 + explode: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ChannelCostReportList' + description: OK + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "400": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Bad Request + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "404": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Not Found + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "413": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Request Entity Too Large + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "422": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Unprocessable Entity + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "500": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Internal Server Error + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "501": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Not Implemented + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "503": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Service Unavailable + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + summary: 'List Organization Cost Reports ' + tags: + - Transcoder Telemetry /v2/{org}/products: get: description: Get all the products for a specific organization across all regions