1010
1111namespace OpenAI . Videos
1212{
13- internal partial class InternaVideoItemCollectionOptions : IJsonModel < InternaVideoItemCollectionOptions >
13+ internal partial class InternaVideoCollectionOptions : IJsonModel < InternaVideoCollectionOptions >
1414 {
15- void IJsonModel < InternaVideoItemCollectionOptions > . Write ( Utf8JsonWriter writer , ModelReaderWriterOptions options )
15+ void IJsonModel < InternaVideoCollectionOptions > . Write ( Utf8JsonWriter writer , ModelReaderWriterOptions options )
1616 {
1717 writer . WriteStartObject ( ) ;
1818 JsonModelWriteCore ( writer , options ) ;
@@ -21,10 +21,10 @@ void IJsonModel<InternaVideoItemCollectionOptions>.Write(Utf8JsonWriter writer,
2121
2222 protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options )
2323 {
24- string format = options . Format == "W" ? ( ( IPersistableModel < InternaVideoItemCollectionOptions > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
24+ string format = options . Format == "W" ? ( ( IPersistableModel < InternaVideoCollectionOptions > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
2525 if ( format != "J" )
2626 {
27- throw new FormatException ( $ "The model { nameof ( InternaVideoItemCollectionOptions ) } does not support writing '{ format } ' format.") ;
27+ throw new FormatException ( $ "The model { nameof ( InternaVideoCollectionOptions ) } does not support writing '{ format } ' format.") ;
2828 }
2929 // Plugin customization: remove options.Format != "W" check
3030 if ( _additionalBinaryDataProperties != null )
@@ -48,68 +48,68 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
4848 }
4949 }
5050
51- InternaVideoItemCollectionOptions IJsonModel < InternaVideoItemCollectionOptions > . Create ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) => JsonModelCreateCore ( ref reader , options ) ;
51+ InternaVideoCollectionOptions IJsonModel < InternaVideoCollectionOptions > . Create ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) => JsonModelCreateCore ( ref reader , options ) ;
5252
53- protected virtual InternaVideoItemCollectionOptions JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options )
53+ protected virtual InternaVideoCollectionOptions JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options )
5454 {
55- string format = options . Format == "W" ? ( ( IPersistableModel < InternaVideoItemCollectionOptions > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
55+ string format = options . Format == "W" ? ( ( IPersistableModel < InternaVideoCollectionOptions > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
5656 if ( format != "J" )
5757 {
58- throw new FormatException ( $ "The model { nameof ( InternaVideoItemCollectionOptions ) } does not support reading '{ format } ' format.") ;
58+ throw new FormatException ( $ "The model { nameof ( InternaVideoCollectionOptions ) } does not support reading '{ format } ' format.") ;
5959 }
6060 using JsonDocument document = JsonDocument . ParseValue ( ref reader ) ;
61- return DeserializeInternaVideoItemCollectionOptions ( document . RootElement , options ) ;
61+ return DeserializeInternaVideoCollectionOptions ( document . RootElement , options ) ;
6262 }
6363
64- internal static InternaVideoItemCollectionOptions DeserializeInternaVideoItemCollectionOptions ( JsonElement element , ModelReaderWriterOptions options )
64+ internal static InternaVideoCollectionOptions DeserializeInternaVideoCollectionOptions ( JsonElement element , ModelReaderWriterOptions options )
6565 {
6666 if ( element . ValueKind == JsonValueKind . Null )
6767 {
6868 return null ;
6969 }
7070 string afterId = default ;
7171 int ? pageSizeLimit = default ;
72- InternalVideoItemCollectionOrder ? order = default ;
72+ InternalVideoCollectionOrder ? order = default ;
7373 IDictionary < string , BinaryData > additionalBinaryDataProperties = new ChangeTrackingDictionary < string , BinaryData > ( ) ;
7474 foreach ( var prop in element . EnumerateObject ( ) )
7575 {
7676 // Plugin customization: remove options.Format != "W" check
7777 additionalBinaryDataProperties . Add ( prop . Name , BinaryData . FromString ( prop . Value . GetRawText ( ) ) ) ;
7878 }
79- return new InternaVideoItemCollectionOptions ( afterId , pageSizeLimit , order , additionalBinaryDataProperties ) ;
79+ return new InternaVideoCollectionOptions ( afterId , pageSizeLimit , order , additionalBinaryDataProperties ) ;
8080 }
8181
82- BinaryData IPersistableModel < InternaVideoItemCollectionOptions > . Write ( ModelReaderWriterOptions options ) => PersistableModelWriteCore ( options ) ;
82+ BinaryData IPersistableModel < InternaVideoCollectionOptions > . Write ( ModelReaderWriterOptions options ) => PersistableModelWriteCore ( options ) ;
8383
8484 protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options )
8585 {
86- string format = options . Format == "W" ? ( ( IPersistableModel < InternaVideoItemCollectionOptions > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
86+ string format = options . Format == "W" ? ( ( IPersistableModel < InternaVideoCollectionOptions > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
8787 switch ( format )
8888 {
8989 case "J" :
9090 return ModelReaderWriter . Write ( this , options , OpenAIContext . Default ) ;
9191 default :
92- throw new FormatException ( $ "The model { nameof ( InternaVideoItemCollectionOptions ) } does not support writing '{ options . Format } ' format.") ;
92+ throw new FormatException ( $ "The model { nameof ( InternaVideoCollectionOptions ) } does not support writing '{ options . Format } ' format.") ;
9393 }
9494 }
9595
96- InternaVideoItemCollectionOptions IPersistableModel < InternaVideoItemCollectionOptions > . Create ( BinaryData data , ModelReaderWriterOptions options ) => PersistableModelCreateCore ( data , options ) ;
96+ InternaVideoCollectionOptions IPersistableModel < InternaVideoCollectionOptions > . Create ( BinaryData data , ModelReaderWriterOptions options ) => PersistableModelCreateCore ( data , options ) ;
9797
98- protected virtual InternaVideoItemCollectionOptions PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options )
98+ protected virtual InternaVideoCollectionOptions PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options )
9999 {
100- string format = options . Format == "W" ? ( ( IPersistableModel < InternaVideoItemCollectionOptions > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
100+ string format = options . Format == "W" ? ( ( IPersistableModel < InternaVideoCollectionOptions > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
101101 switch ( format )
102102 {
103103 case "J" :
104104 using ( JsonDocument document = JsonDocument . Parse ( data ) )
105105 {
106- return DeserializeInternaVideoItemCollectionOptions ( document . RootElement , options ) ;
106+ return DeserializeInternaVideoCollectionOptions ( document . RootElement , options ) ;
107107 }
108108 default :
109- throw new FormatException ( $ "The model { nameof ( InternaVideoItemCollectionOptions ) } does not support reading '{ options . Format } ' format.") ;
109+ throw new FormatException ( $ "The model { nameof ( InternaVideoCollectionOptions ) } does not support reading '{ options . Format } ' format.") ;
110110 }
111111 }
112112
113- string IPersistableModel < InternaVideoItemCollectionOptions > . GetFormatFromOptions ( ModelReaderWriterOptions options ) => "J" ;
113+ string IPersistableModel < InternaVideoCollectionOptions > . GetFormatFromOptions ( ModelReaderWriterOptions options ) => "J" ;
114114 }
115115}
0 commit comments