99// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1010// copies of the Software, and to permit persons to whom the Software is
1111// furnished to do so, subject to the following conditions:
12- //
12+ //
1313// The above copyright notice and this permission notice shall be included in all
1414// copies or substantial portions of the Software.
15- //
15+ //
1616// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1717// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1818// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -60,7 +60,7 @@ public ExtractTextRequest()
6060 /// <param name="outStorageName">Output file Storage Name.</param>
6161 /// <param name="region">The spreadsheet region setting.</param>
6262 /// <param name="password">The password for opening spreadsheet file.</param>
63- public ExtractTextRequest ( string spreadsheet , string extractTextType , string beforeText , string afterText , int ? beforePosition , int ? afterPosition , string outPositionRange , string worksheet = null , string range = null , string outPath = null , string outStorageName = null , string region = null , string password = null )
63+ public ExtractTextRequest ( string spreadsheet , string extractTextType , string outPositionRange , string beforeText = null , string afterText = null , int ? beforePosition = null , int ? afterPosition = null , string worksheet = null , string range = null )
6464 {
6565 this . Spreadsheet = spreadsheet ;
6666 this . extractTextType = extractTextType ;
@@ -76,7 +76,7 @@ public ExtractTextRequest(string spreadsheet, string extractTextType, string
7676 this . region = region ;
7777 this . password = password ;
7878 }
79-
79+
8080 /// <summary>
8181 /// Upload spreadsheet file.
8282 /// </summary>
@@ -153,7 +153,7 @@ public ExtractTextRequest(string spreadsheet, string extractTextType, string
153153 /// The password for opening spreadsheet file.
154154 /// </summary>
155155 public string password { get ; set ; }
156-
156+
157157
158158 /// <summary>
159159 /// Gets or sets extendQueryParameterMap.
@@ -172,10 +172,10 @@ public HttpWebRequest CreateHttpRequest(string baseUri,IDictionary<string, strin
172172 string localVarPostBody = "" ;
173173 string localVarHttpContentType = "application/json" ;
174174 // verify the required parameter 'spreadsheet' is set
175- if ( string . IsNullOrEmpty ( this . Spreadsheet ) )
176- {
177- throw new ApiException ( 400 , "Missing required parameter 'spreadsheet' when calling ExtractText" ) ;
178- }
175+ // if ( string.IsNullOrEmpty(this.Spreadsheet) )
176+ // {
177+ // throw new ApiException(400, "Missing required parameter 'spreadsheet' when calling ExtractText");
178+ // }
179179
180180 // verify the required parameter 'extractTextType' is set
181181 if ( string . IsNullOrEmpty ( this . extractTextType ) )
@@ -184,28 +184,28 @@ public HttpWebRequest CreateHttpRequest(string baseUri,IDictionary<string, strin
184184 }
185185
186186 // verify the required parameter 'beforeText' is set
187- if ( string . IsNullOrEmpty ( this . beforeText ) )
188- {
189- throw new ApiException ( 400 , "Missing required parameter 'beforeText' when calling ExtractText" ) ;
190- }
187+ // if (string.IsNullOrEmpty (this.beforeText ))
188+ // {
189+ // throw new ApiException(400, "Missing required parameter 'beforeText' when calling ExtractText");
190+ // }
191191
192192 // verify the required parameter 'afterText' is set
193- if ( string . IsNullOrEmpty ( this . afterText ) )
194- {
195- throw new ApiException ( 400 , "Missing required parameter 'afterText' when calling ExtractText" ) ;
196- }
193+ // if (string.IsNullOrEmpty (this.afterText ))
194+ // {
195+ // throw new ApiException(400, "Missing required parameter 'afterText' when calling ExtractText");
196+ // }
197197
198198 // verify the required parameter 'beforePosition' is set
199- if ( this . beforePosition == null )
200- {
201- throw new ApiException ( 400 , "Missing required parameter 'beforePosition' when calling ExtractText" ) ;
202- }
199+ // if ( this.beforePosition == null)
200+ // {
201+ // throw new ApiException(400, "Missing required parameter 'beforePosition' when calling ExtractText");
202+ // }
203203
204204 // verify the required parameter 'afterPosition' is set
205- if ( this . afterPosition == null )
206- {
207- throw new ApiException ( 400 , "Missing required parameter 'afterPosition' when calling ExtractText" ) ;
208- }
205+ // if ( this.afterPosition == null)
206+ // {
207+ // throw new ApiException(400, "Missing required parameter 'afterPosition' when calling ExtractText");
208+ // }
209209
210210 // verify the required parameter 'outPositionRange' is set
211211 if ( string . IsNullOrEmpty ( this . outPositionRange ) )
@@ -242,7 +242,7 @@ public HttpWebRequest CreateHttpRequest(string baseUri,IDictionary<string, strin
242242 if ( ! string . IsNullOrEmpty ( Spreadsheet ) && System . IO . File . Exists ( Spreadsheet ) ) {
243243 System . IO . FileInfo fileInfo = new System . IO . FileInfo ( Spreadsheet ) ;
244244 localVarFileParams . Add ( fileInfo . Name , UrlHelper . ToFileInfo ( System . IO . File . OpenRead ( Spreadsheet ) , fileInfo . Name ) ) ;
245- }
245+ }
246246
247247
248248
0 commit comments