From bc85c48db2ba3a8cb5b01f1b6053ac2a2ecf24ea Mon Sep 17 00:00:00 2001 From: lucaspopp-wbd <88101319+lucaspopp-wbd@users.noreply.github.com> Date: Thu, 31 Jul 2025 19:22:58 +0000 Subject: [PATCH] re-generate sdk --- isp/.openapi-generator/FILES | 6 +- isp/api_channels_for_organization.go | 8 +- isp/model_generic_signal.go | 2 +- ...go => model_patch_org_channel_request2.go} | 202 +++++++++--------- ...odel_patch_org_channel_request2_ingest.go} | 60 +++--- ... model_patch_org_channel_request_inner.go} | 72 +++---- spec/isp.yaml | 59 +++-- 7 files changed, 204 insertions(+), 205 deletions(-) rename isp/{model_patch_org_channel_request.go => model_patch_org_channel_request2.go} (73%) rename isp/{model_patch_org_channel_request_ingest.go => model_patch_org_channel_request2_ingest.go} (53%) rename isp/{model_patch_org_channel_request2_inner.go => model_patch_org_channel_request_inner.go} (59%) diff --git a/isp/.openapi-generator/FILES b/isp/.openapi-generator/FILES index a35dc7f..2acdfe3 100644 --- a/isp/.openapi-generator/FILES +++ b/isp/.openapi-generator/FILES @@ -175,9 +175,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/model_generic_signal.go b/isp/model_generic_signal.go index 21fd8fb..8b66a14 100644 --- a/isp/model_generic_signal.go +++ b/isp/model_generic_signal.go @@ -19,7 +19,7 @@ var _ MappedNullable = &GenericSignal{} // GenericSignal struct for GenericSignal type GenericSignal struct { // Splice duration (ms). If no duration or a duration of 0 then the default duration for the segment type is used. - Duration *int32 `json:"duration,omitempty" format:"int32" default:"0" minimum:"1000" doc:"Splice duration (ms). If no duration or a duration of 0 then the default duration for the segment type is used."` + Duration *int32 `json:"duration,omitempty" format:"int32" default:"0" doc:"Splice duration (ms). If no duration or a duration of 0 then the default duration for the segment type is used."` // Identifies the active signaling segment. Use the same event_id for both START and END to reference the same segment. When signaling two STARTs with the same event_id, the second one will result in an error (ALREADY_EXISTS). Signaling a second start with a different event_id will end a previous active segment of the same type. After a segment has ended, its event_id can be reused. IDs are namespaced by segment type. E.g. it is allowed to have an active Chapter and an active Program with the same event_id. This field corresponds to SCTE-35 segmentation_event_id and splice_event_id. EventId int32 `json:"event_id" format:"int32" minimum:"0" doc:"Identifies the active signaling segment. Use the same event_id for both START and END to reference the same segment. When signaling two STARTs with the same event_id, the second one will result in an error (ALREADY_EXISTS). Signaling a second start with a different event_id will end a previous active segment of the same type. After a segment has ended, its event_id can be reused. IDs are namespaced by segment type. E.g. it is allowed to have an active Chapter and an active Program with the same event_id. This field corresponds to SCTE-35 segmentation_event_id and splice_event_id."` // The signaling segment type which is going to start/end/etc. This is used to mark programs, chapters, ad insertion points, video slating, etc. 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/spec/isp.yaml b/spec/isp.yaml index 06488ee..6bbcb43 100644 --- a/spec/isp.yaml +++ b/spec/isp.yaml @@ -3500,7 +3500,6 @@ components: format: int32 default: 0 example: 30000 - minimum: 1000 event_id: type: integer description: Identifies the active signaling segment. Use the same event_id for both START and END to reference the same segment. When signaling two STARTs with the same event_id, the second one will result in an error (ALREADY_EXISTS). Signaling a second start with a different event_id will end a previous active segment of the same type. After a segment has ended, its event_id can be reused. IDs are namespaced by segment type. E.g. it is allowed to have an active Chapter and an active Program with the same event_id. This field corresponds to SCTE-35 segmentation_event_id and splice_event_id. @@ -6999,6 +6998,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: @@ -8723,33 +8749,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: @@ -13231,10 +13230,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