diff --git a/isp/.openapi-generator/FILES b/isp/.openapi-generator/FILES index 0032aca..862ee4b 100644 --- a/isp/.openapi-generator/FILES +++ b/isp/.openapi-generator/FILES @@ -163,6 +163,7 @@ model_list_clips_for_vod_response_channel_clips_inner_clips_inner.go model_list_clips_response.go model_list_content_segment_history_response.go model_list_content_segment_history_response_content_segments_inner.go +model_list_content_segment_history_response_content_segments_inner_header.go model_list_content_segment_history_response_content_segments_inner_upids_inner.go model_list_products_response.go model_list_programs_response.go @@ -179,9 +180,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_channel_operations_for_organization.go b/isp/api_channel_operations_for_organization.go index 7db03d9..66fb3f3 100644 --- a/isp/api_channel_operations_for_organization.go +++ b/isp/api_channel_operations_for_organization.go @@ -183,6 +183,19 @@ video and audio tracks are provided back and can be interchanged in the given ur // @return GetPreviewStreamsResponse OrgPreviewStreamsExecute(r ApiOrgPreviewStreamsRequest) (*GetPreviewStreamsResponse, *http.Response, error) + /* + OrgRotateKey Rotate the keys 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 ApiOrgRotateKeyRequest + */ + OrgRotateKey(ctx context.Context, org string, channelId string) ApiOrgRotateKeyRequest + + // OrgRotateKeyExecute executes the request + OrgRotateKeyExecute(r ApiOrgRotateKeyRequest) (*http.Response, error) + /* OrgSetTranscoderDynamicState Set the dynamic state for a transcoder. @@ -2553,6 +2566,192 @@ func (a *ChannelOperationsForOrganizationApiService) OrgPreviewStreamsExecute(r return localVarReturnValue, localVarHTTPResponse, nil } +type ApiOrgRotateKeyRequest struct { + ctx context.Context + ApiService ChannelOperationsForOrganizationApi + org string + channelId string +} + +func (r ApiOrgRotateKeyRequest) Execute() (*http.Response, error) { + return r.ApiService.OrgRotateKeyExecute(r) +} + +/* +OrgRotateKey Rotate the keys 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 ApiOrgRotateKeyRequest +*/ +func (a *ChannelOperationsForOrganizationApiService) OrgRotateKey(ctx context.Context, org string, channelId string) ApiOrgRotateKeyRequest { + return ApiOrgRotateKeyRequest{ + ApiService: a, + ctx: ctx, + org: org, + channelId: channelId, + } +} + +// Execute executes the request +func (a *ChannelOperationsForOrganizationApiService) OrgRotateKeyExecute(r ApiOrgRotateKeyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ChannelOperationsForOrganizationApiService.OrgRotateKey") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v2/{org}/channels/{channel-id}/rotate-key" + 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 nil, reportError("channelId must have less than 60 elements") + } + + // 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/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 nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return 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 localVarHTTPResponse, newErr + } + newErr.model = v + return 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 localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return 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 localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 424 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 499 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return 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 localVarHTTPResponse, newErr + } + newErr.model = v + return 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 localVarHTTPResponse, newErr + } + newErr.model = v + return 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 localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type ApiOrgSetTranscoderDynamicStateRequest struct { ctx context.Context ApiService ChannelOperationsForOrganizationApi 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/model_list_content_segment_history_response_content_segments_inner.go b/isp/model_list_content_segment_history_response_content_segments_inner.go index 999c328..10427c2 100644 --- a/isp/model_list_content_segment_history_response_content_segments_inner.go +++ b/isp/model_list_content_segment_history_response_content_segments_inner.go @@ -21,14 +21,13 @@ var _ MappedNullable = &ListContentSegmentHistoryResponseContentSegmentsInner{} type ListContentSegmentHistoryResponseContentSegmentsInner struct { // end is the timestamp when the content segment ended. End *time.Time `json:"end,omitempty" format:"date-time" doc:"end is the timestamp when the content segment ended."` + Header *ListContentSegmentHistoryResponseContentSegmentsInnerHeader `json:"header,omitempty"` // segment_id is a unique id assigned by the transcoder - SegmentId *int32 `json:"segment_id,omitempty" format:"int32" minimum:"0" doc:"segment_id is a unique id assigned by the transcoder"` - // signal_source denotes whether the content segment was initiated by an in-band signaling event or an out-of-band signaling event where in-band signals are received in the source consumed by the transcoder. - SignalSource *string `json:"signal_source,omitempty" enum:"SIGNAL_SOURCE_UNDEFINED,SIGNAL_SOURCE_IN_BAND,SIGNAL_SOURCE_OUT_OF_BAND" doc:"signal_source denotes whether the content segment was initiated by an in-band signaling event or an out-of-band signaling event where in-band signals are received in the source consumed by the transcoder."` + SegmentId *int64 `json:"segment_id,omitempty" format:"int64" doc:"segment_id is a unique id assigned by the transcoder"` // start is the timestamp when the content segment started. Start *time.Time `json:"start,omitempty" format:"date-time" doc:"start is the timestamp when the content segment started."` - // The type of content segment. Currently only supports PROGRAM, CHAPTER, or BREAK. - Type *string `json:"type,omitempty" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA,TIMED_METADATA_MARKER_OVER_SLATE" doc:"The type of content segment. Currently only supports PROGRAM, CHAPTER, or BREAK."` + // type is the type of content segment. Example: PROGRAM, CHAPTER, or BREAK. + Type *string `json:"type,omitempty" enum:"SPLICE_INSERT,CONTENT_ID,PROGRAM,PROGRAM_BLACKOUT_OVERRIDE,PROGRAM_BREAKAWAY,CHAPTER,BREAK,OPENING_CREDIT,CLOSING_CREDIT,PROVIDER_PLACEMENT_OP,DISTRIBUTOR_PLACEMENT_OP,PROVIDER_OVERLAY_OP,DISTRIBUTOR_OVERLAY_OP,PROVIDER_AD,DISTRIBUTOR_AD,UNSCHEDULED_EVENT,NETWORK,SLATE,NOT_INDICATED,TIMED_METADATA,TIMED_METADATA_MARKER_OVER_SLATE" doc:"type is the type of content segment. Example: PROGRAM, CHAPTER, or BREAK."` Upids []ListContentSegmentHistoryResponseContentSegmentsInnerUpidsInner `json:"upids,omitempty"` } @@ -81,68 +80,68 @@ func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetEnd(v time.Ti o.End = &v } -// GetSegmentId returns the SegmentId field value if set, zero value otherwise. -func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSegmentId() int32 { - if o == nil || IsNil(o.SegmentId) { - var ret int32 +// GetHeader returns the Header field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetHeader() ListContentSegmentHistoryResponseContentSegmentsInnerHeader { + if o == nil || IsNil(o.Header) { + var ret ListContentSegmentHistoryResponseContentSegmentsInnerHeader return ret } - return *o.SegmentId + return *o.Header } -// GetSegmentIdOk returns a tuple with the SegmentId field value if set, nil otherwise +// GetHeaderOk returns a tuple with the Header field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSegmentIdOk() (*int32, bool) { - if o == nil || IsNil(o.SegmentId) { +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetHeaderOk() (*ListContentSegmentHistoryResponseContentSegmentsInnerHeader, bool) { + if o == nil || IsNil(o.Header) { return nil, false } - return o.SegmentId, true + return o.Header, true } -// HasSegmentId returns a boolean if a field has been set. -func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasSegmentId() bool { - if o != nil && !IsNil(o.SegmentId) { +// HasHeader returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasHeader() bool { + if o != nil && !IsNil(o.Header) { return true } return false } -// SetSegmentId gets a reference to the given int32 and assigns it to the SegmentId field. -func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetSegmentId(v int32) { - o.SegmentId = &v +// SetHeader gets a reference to the given ListContentSegmentHistoryResponseContentSegmentsInnerHeader and assigns it to the Header field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetHeader(v ListContentSegmentHistoryResponseContentSegmentsInnerHeader) { + o.Header = &v } -// GetSignalSource returns the SignalSource field value if set, zero value otherwise. -func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSignalSource() string { - if o == nil || IsNil(o.SignalSource) { - var ret string +// GetSegmentId returns the SegmentId field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSegmentId() int64 { + if o == nil || IsNil(o.SegmentId) { + var ret int64 return ret } - return *o.SignalSource + return *o.SegmentId } -// GetSignalSourceOk returns a tuple with the SignalSource field value if set, nil otherwise +// GetSegmentIdOk returns a tuple with the SegmentId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSignalSourceOk() (*string, bool) { - if o == nil || IsNil(o.SignalSource) { +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) GetSegmentIdOk() (*int64, bool) { + if o == nil || IsNil(o.SegmentId) { return nil, false } - return o.SignalSource, true + return o.SegmentId, true } -// HasSignalSource returns a boolean if a field has been set. -func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasSignalSource() bool { - if o != nil && !IsNil(o.SignalSource) { +// HasSegmentId returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) HasSegmentId() bool { + if o != nil && !IsNil(o.SegmentId) { return true } return false } -// SetSignalSource gets a reference to the given string and assigns it to the SignalSource field. -func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetSignalSource(v string) { - o.SignalSource = &v +// SetSegmentId gets a reference to the given int64 and assigns it to the SegmentId field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInner) SetSegmentId(v int64) { + o.SegmentId = &v } // GetStart returns the Start field value if set, zero value otherwise. @@ -254,12 +253,12 @@ func (o ListContentSegmentHistoryResponseContentSegmentsInner) ToMap() (map[stri if !IsNil(o.End) { toSerialize["end"] = o.End } + if !IsNil(o.Header) { + toSerialize["header"] = o.Header + } if !IsNil(o.SegmentId) { toSerialize["segment_id"] = o.SegmentId } - if !IsNil(o.SignalSource) { - toSerialize["signal_source"] = o.SignalSource - } if !IsNil(o.Start) { toSerialize["start"] = o.Start } diff --git a/isp/model_list_content_segment_history_response_content_segments_inner_header.go b/isp/model_list_content_segment_history_response_content_segments_inner_header.go new file mode 100644 index 0000000..1022a5c --- /dev/null +++ b/isp/model_list_content_segment_history_response_content_segments_inner_header.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 ListContentSegmentHistoryResponseContentSegmentsInnerHeader type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListContentSegmentHistoryResponseContentSegmentsInnerHeader{} + +// ListContentSegmentHistoryResponseContentSegmentsInnerHeader header is required for all transcoder events. +type ListContentSegmentHistoryResponseContentSegmentsInnerHeader struct { + RunId *int64 `json:"run_id,omitempty" format:"int64" minimum:"0"` +} + +// NewListContentSegmentHistoryResponseContentSegmentsInnerHeader instantiates a new ListContentSegmentHistoryResponseContentSegmentsInnerHeader 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 NewListContentSegmentHistoryResponseContentSegmentsInnerHeader() *ListContentSegmentHistoryResponseContentSegmentsInnerHeader { + this := ListContentSegmentHistoryResponseContentSegmentsInnerHeader{} + return &this +} + +// NewListContentSegmentHistoryResponseContentSegmentsInnerHeaderWithDefaults instantiates a new ListContentSegmentHistoryResponseContentSegmentsInnerHeader 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 NewListContentSegmentHistoryResponseContentSegmentsInnerHeaderWithDefaults() *ListContentSegmentHistoryResponseContentSegmentsInnerHeader { + this := ListContentSegmentHistoryResponseContentSegmentsInnerHeader{} + return &this +} + +// GetRunId returns the RunId field value if set, zero value otherwise. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerHeader) GetRunId() int64 { + if o == nil || IsNil(o.RunId) { + var ret int64 + return ret + } + return *o.RunId +} + +// GetRunIdOk returns a tuple with the RunId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerHeader) GetRunIdOk() (*int64, bool) { + if o == nil || IsNil(o.RunId) { + return nil, false + } + return o.RunId, true +} + +// HasRunId returns a boolean if a field has been set. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerHeader) HasRunId() bool { + if o != nil && !IsNil(o.RunId) { + return true + } + + return false +} + +// SetRunId gets a reference to the given int64 and assigns it to the RunId field. +func (o *ListContentSegmentHistoryResponseContentSegmentsInnerHeader) SetRunId(v int64) { + o.RunId = &v +} + +func (o ListContentSegmentHistoryResponseContentSegmentsInnerHeader) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListContentSegmentHistoryResponseContentSegmentsInnerHeader) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RunId) { + toSerialize["run_id"] = o.RunId + } + return toSerialize, nil +} + +type NullableListContentSegmentHistoryResponseContentSegmentsInnerHeader struct { + value *ListContentSegmentHistoryResponseContentSegmentsInnerHeader + isSet bool +} + +func (v NullableListContentSegmentHistoryResponseContentSegmentsInnerHeader) Get() *ListContentSegmentHistoryResponseContentSegmentsInnerHeader { + return v.value +} + +func (v *NullableListContentSegmentHistoryResponseContentSegmentsInnerHeader) Set(val *ListContentSegmentHistoryResponseContentSegmentsInnerHeader) { + v.value = val + v.isSet = true +} + +func (v NullableListContentSegmentHistoryResponseContentSegmentsInnerHeader) IsSet() bool { + return v.isSet +} + +func (v *NullableListContentSegmentHistoryResponseContentSegmentsInnerHeader) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListContentSegmentHistoryResponseContentSegmentsInnerHeader(val *ListContentSegmentHistoryResponseContentSegmentsInnerHeader) *NullableListContentSegmentHistoryResponseContentSegmentsInnerHeader { + return &NullableListContentSegmentHistoryResponseContentSegmentsInnerHeader{value: val, isSet: true} +} + +func (v NullableListContentSegmentHistoryResponseContentSegmentsInnerHeader) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListContentSegmentHistoryResponseContentSegmentsInnerHeader) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + 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_channel_operations_for_organization_test.go b/isp/test/api_channel_operations_for_organization_test.go index b9f3164..64c759c 100644 --- a/isp/test/api_channel_operations_for_organization_test.go +++ b/isp/test/api_channel_operations_for_organization_test.go @@ -168,6 +168,20 @@ func Test_isp_ChannelOperationsForOrganizationApiService(t *testing.T) { }) + t.Run("Test ChannelOperationsForOrganizationApiService OrgRotateKey", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var org string + var channelId string + + httpRes, err := apiClient.ChannelOperationsForOrganizationApi.OrgRotateKey(context.Background(), org, channelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test ChannelOperationsForOrganizationApiService OrgSetTranscoderDynamicState", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/spec/isp.yaml b/spec/isp.yaml index 9696422..6577047 100644 --- a/spec/isp.yaml +++ b/spec/isp.yaml @@ -4567,25 +4567,26 @@ components: type: string description: end is the timestamp when the content segment ended. format: date-time + header: + type: object + description: header is required for all transcoder events. + properties: + run_id: + type: integer + format: int64 + minimum: 0 + additionalProperties: false segment_id: type: integer description: segment_id is a unique id assigned by the transcoder - format: int32 - minimum: 0 - signal_source: - type: string - description: signal_source denotes whether the content segment was initiated by an in-band signaling event or an out-of-band signaling event where in-band signals are received in the source consumed by the transcoder. - enum: - - SIGNAL_SOURCE_UNDEFINED - - SIGNAL_SOURCE_IN_BAND - - SIGNAL_SOURCE_OUT_OF_BAND + format: int64 start: type: string description: start is the timestamp when the content segment started. format: date-time type: type: string - description: The type of content segment. Currently only supports PROGRAM, CHAPTER, or BREAK. + description: 'type is the type of content segment. Example: PROGRAM, CHAPTER, or BREAK.' enum: - SPLICE_INSERT - CONTENT_ID @@ -7082,6 +7083,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: @@ -8819,33 +8847,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: @@ -13340,10 +13341,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 @@ -16657,6 +16658,167 @@ paths: summary: Get Preview Streams tags: - Channel Operations for Organization + /v2/{org}/channels/{channel-id}/rotate-key: + put: + operationId: org-rotate-key + 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]+)*)$ + responses: + "204": + description: No Content + "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 + "409": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Conflict + 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 + "424": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: Failed Dependency + headers: + Content-Type: + description: Content-Type + schema: + type: string + Link: + description: Link + schema: + type: string + "499": + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: "" + 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: Rotate the keys for a channel + tags: + - Channel Operations for Organization /v2/{org}/channels/{channel-id}/scte-history: get: description: |