@@ -117,15 +117,16 @@ public function getConfig(): Configuration
117117 *
118118 * Get thing info
119119 *
120- * @param string $id id (required)
120+ * @param string $id id (optional)
121+ * @param string $sr_name sr_name (optional)
121122 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInfo'] to see the possible values for this operation
122123 *
123124 * @throws \InvalidArgumentException
124125 * @throws \Sigwin\RedditClient\ApiException on non-2xx response
125126 */
126- public function getInfo ($ id , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): \Sigwin \RedditClient \Model \ListingEnvelope
127+ public function getInfo ($ id = null , $ sr_name = null , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): \Sigwin \RedditClient \Model \ListingEnvelope
127128 {
128- [$ response ] = $ this ->getInfoWithHttpInfo ($ id , $ contentType );
129+ [$ response ] = $ this ->getInfoWithHttpInfo ($ id , $ sr_name , $ contentType );
129130
130131 return $ response ;
131132 }
@@ -135,17 +136,18 @@ public function getInfo($id, string $contentType = self::contentTypes['getInfo']
135136 *
136137 * Get thing info
137138 *
138- * @param string $id (required)
139+ * @param string $id (optional)
140+ * @param string $sr_name (optional)
139141 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInfo'] to see the possible values for this operation
140142 *
141143 * @return array of \Sigwin\RedditClient\Model\ListingEnvelope, HTTP status code, HTTP response headers (array of strings)
142144 *
143145 * @throws \InvalidArgumentException
144146 * @throws \Sigwin\RedditClient\ApiException on non-2xx response
145147 */
146- public function getInfoWithHttpInfo ($ id , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): array
148+ public function getInfoWithHttpInfo ($ id = null , $ sr_name = null , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): array
147149 {
148- $ request = $ this ->getInfoRequest ($ id , $ contentType );
150+ $ request = $ this ->getInfoRequest ($ id , $ sr_name , $ contentType );
149151
150152 try {
151153 $ options = $ this ->createHttpClientOption ();
@@ -216,14 +218,15 @@ public function getInfoWithHttpInfo($id, string $contentType = self::contentType
216218 *
217219 * Get thing info
218220 *
219- * @param string $id (required)
221+ * @param string $id (optional)
222+ * @param string $sr_name (optional)
220223 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInfo'] to see the possible values for this operation
221224 *
222225 * @throws \InvalidArgumentException
223226 */
224- public function getInfoAsync ($ id , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): \GuzzleHttp \Promise \PromiseInterface
227+ public function getInfoAsync ($ id = null , $ sr_name = null , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): \GuzzleHttp \Promise \PromiseInterface
225228 {
226- return $ this ->getInfoAsyncWithHttpInfo ($ id , $ contentType )
229+ return $ this ->getInfoAsyncWithHttpInfo ($ id , $ sr_name , $ contentType )
227230 ->then (
228231 static function ($ response ) {
229232 return $ response [0 ];
@@ -237,15 +240,16 @@ static function ($response) {
237240 *
238241 * Get thing info
239242 *
240- * @param string $id (required)
243+ * @param string $id (optional)
244+ * @param string $sr_name (optional)
241245 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInfo'] to see the possible values for this operation
242246 *
243247 * @throws \InvalidArgumentException
244248 */
245- public function getInfoAsyncWithHttpInfo ($ id , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): \GuzzleHttp \Promise \PromiseInterface
249+ public function getInfoAsyncWithHttpInfo ($ id = null , $ sr_name = null , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): \GuzzleHttp \Promise \PromiseInterface
246250 {
247251 $ returnType = '\Sigwin\RedditClient\Model\ListingEnvelope ' ;
248- $ request = $ this ->getInfoRequest ($ id , $ contentType );
252+ $ request = $ this ->getInfoRequest ($ id , $ sr_name , $ contentType );
249253
250254 return $ this ->client
251255 ->sendAsync ($ request , $ this ->createHttpClientOption ())
@@ -278,18 +282,14 @@ static function ($exception): void {
278282 /**
279283 * Create request for operation 'getInfo'.
280284 *
281- * @param string $id (required)
285+ * @param string $id (optional)
286+ * @param string $sr_name (optional)
282287 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInfo'] to see the possible values for this operation
283288 *
284289 * @throws \InvalidArgumentException
285290 */
286- public function getInfoRequest ($ id , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): Request
291+ public function getInfoRequest ($ id = null , $ sr_name = null , string $ contentType = self ::contentTypes['getInfo ' ][0 ]): Request
287292 {
288- // verify the required parameter 'id' is set
289- if ($ id === null || (\is_array ($ id ) && \count ($ id ) === 0 )) {
290- throw new \InvalidArgumentException ('Missing the required parameter $id when calling getInfo ' );
291- }
292-
293293 $ resourcePath = '/api/info ' ;
294294 $ formParams = [];
295295 $ queryParams = [];
@@ -304,7 +304,16 @@ public function getInfoRequest($id, string $contentType = self::contentTypes['ge
304304 'string ' , // openApiType
305305 '' , // style
306306 false , // explode
307- true // required
307+ false // required
308+ ) ?? []);
309+ // query params
310+ $ queryParams = array_merge ($ queryParams , ObjectSerializer::toQueryValue (
311+ $ sr_name ,
312+ 'sr_name ' , // param base name
313+ 'string ' , // openApiType
314+ '' , // style
315+ false , // explode
316+ false // required
308317 ) ?? []);
309318
310319 $ headers = $ this ->headerSelector ->selectHeaders (
0 commit comments