@@ -634,6 +634,110 @@ func (a ABitOfEverythingServiceApi) GetQuery(uuid string, singleNestedName strin
634
634
return successPayload , localVarAPIResponse , err
635
635
}
636
636
637
+ /**
638
+ *
639
+ *
640
+ * @param pathRepeatedFloatValue repeated values. they are comma-separated in path
641
+ * @param pathRepeatedDoubleValue
642
+ * @param pathRepeatedInt64Value
643
+ * @param pathRepeatedUint64Value
644
+ * @param pathRepeatedInt32Value
645
+ * @param pathRepeatedFixed64Value
646
+ * @param pathRepeatedFixed32Value
647
+ * @param pathRepeatedBoolValue
648
+ * @param pathRepeatedStringValue
649
+ * @param pathRepeatedBytesValue
650
+ * @param pathRepeatedUint32Value
651
+ * @param pathRepeatedEnumValue
652
+ * @param pathRepeatedSfixed32Value
653
+ * @param pathRepeatedSfixed64Value
654
+ * @param pathRepeatedSint32Value
655
+ * @param pathRepeatedSint64Value
656
+ * @return *ExamplepbABitOfEverythingRepeated
657
+ */
658
+ func (a ABitOfEverythingServiceApi ) GetRepeatedQuery (pathRepeatedFloatValue []float32 , pathRepeatedDoubleValue []float64 , pathRepeatedInt64Value []string , pathRepeatedUint64Value []string , pathRepeatedInt32Value []int32 , pathRepeatedFixed64Value []string , pathRepeatedFixed32Value []int64 , pathRepeatedBoolValue []bool , pathRepeatedStringValue []string , pathRepeatedBytesValue []string , pathRepeatedUint32Value []int64 , pathRepeatedEnumValue []string , pathRepeatedSfixed32Value []int32 , pathRepeatedSfixed64Value []string , pathRepeatedSint32Value []int32 , pathRepeatedSint64Value []string ) (* ExamplepbABitOfEverythingRepeated , * APIResponse , error ) {
659
+
660
+ var localVarHttpMethod = strings .ToUpper ("Get" )
661
+ // create path and map variables
662
+ localVarPath := a .Configuration .BasePath + "/v1/example/a_bit_of_everything_repeated/{path_repeated_float_value}/{path_repeated_double_value}/{path_repeated_int64_value}/{path_repeated_uint64_value}/{path_repeated_int32_value}/{path_repeated_fixed64_value}/{path_repeated_fixed32_value}/{path_repeated_bool_value}/{path_repeated_string_value}/{path_repeated_bytes_value}/{path_repeated_uint32_value}/{path_repeated_enum_value}/{path_repeated_sfixed32_value}/{path_repeated_sfixed64_value}/{path_repeated_sint32_value}/{path_repeated_sint64_value}"
663
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_float_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedFloatValue ), - 1 )
664
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_double_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedDoubleValue ), - 1 )
665
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_int64_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedInt64Value ), - 1 )
666
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_uint64_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedUint64Value ), - 1 )
667
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_int32_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedInt32Value ), - 1 )
668
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_fixed64_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedFixed64Value ), - 1 )
669
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_fixed32_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedFixed32Value ), - 1 )
670
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_bool_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedBoolValue ), - 1 )
671
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_string_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedStringValue ), - 1 )
672
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_bytes_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedBytesValue ), - 1 )
673
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_uint32_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedUint32Value ), - 1 )
674
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_enum_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedEnumValue ), - 1 )
675
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_sfixed32_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedSfixed32Value ), - 1 )
676
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_sfixed64_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedSfixed64Value ), - 1 )
677
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_sint32_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedSint32Value ), - 1 )
678
+ localVarPath = strings .Replace (localVarPath , "{" + "path_repeated_sint64_value" + "}" , fmt .Sprintf ("%v" , pathRepeatedSint64Value ), - 1 )
679
+
680
+ localVarHeaderParams := make (map [string ]string )
681
+ localVarQueryParams := url.Values {}
682
+ localVarFormParams := make (map [string ]string )
683
+ var localVarPostBody interface {}
684
+ var localVarFileName string
685
+ var localVarFileBytes []byte
686
+ // authentication '(OAuth2)' required
687
+ // oauth required
688
+ if a .Configuration .AccessToken != "" {
689
+ localVarHeaderParams ["Authorization" ] = "Bearer " + a .Configuration .AccessToken
690
+ }
691
+ // authentication '(BasicAuth)' required
692
+ // http basic authentication required
693
+ if a .Configuration .Username != "" || a .Configuration .Password != "" {
694
+ localVarHeaderParams ["Authorization" ] = "Basic " + a .Configuration .GetBasicAuthEncodedString ()
695
+ }
696
+ // authentication '(ApiKeyAuth)' required
697
+ // set key with prefix in header
698
+ localVarHeaderParams ["X-API-Key" ] = a .Configuration .GetAPIKeyWithPrefix ("X-API-Key" )
699
+ // add default headers if any
700
+ for key := range a .Configuration .DefaultHeader {
701
+ localVarHeaderParams [key ] = a .Configuration .DefaultHeader [key ]
702
+ }
703
+
704
+ // to determine the Content-Type header
705
+ localVarHttpContentTypes := []string { "application/json" , "application/x-foo-mime" , }
706
+
707
+ // set Content-Type header
708
+ localVarHttpContentType := a .Configuration .APIClient .SelectHeaderContentType (localVarHttpContentTypes )
709
+ if localVarHttpContentType != "" {
710
+ localVarHeaderParams ["Content-Type" ] = localVarHttpContentType
711
+ }
712
+ // to determine the Accept header
713
+ localVarHttpHeaderAccepts := []string {
714
+ "application/json" ,
715
+ "application/x-foo-mime" ,
716
+ }
717
+
718
+ // set Accept header
719
+ localVarHttpHeaderAccept := a .Configuration .APIClient .SelectHeaderAccept (localVarHttpHeaderAccepts )
720
+ if localVarHttpHeaderAccept != "" {
721
+ localVarHeaderParams ["Accept" ] = localVarHttpHeaderAccept
722
+ }
723
+ var successPayload = new (ExamplepbABitOfEverythingRepeated )
724
+ localVarHttpResponse , err := a .Configuration .APIClient .CallAPI (localVarPath , localVarHttpMethod , localVarPostBody , localVarHeaderParams , localVarQueryParams , localVarFormParams , localVarFileName , localVarFileBytes )
725
+
726
+ var localVarURL , _ = url .Parse (localVarPath )
727
+ localVarURL .RawQuery = localVarQueryParams .Encode ()
728
+ var localVarAPIResponse = & APIResponse {Operation : "GetRepeatedQuery" , Method : localVarHttpMethod , RequestURL : localVarURL .String ()}
729
+ if localVarHttpResponse != nil {
730
+ localVarAPIResponse .Response = localVarHttpResponse .RawResponse
731
+ localVarAPIResponse .Payload = localVarHttpResponse .Body ()
732
+ }
733
+
734
+ if err != nil {
735
+ return successPayload , localVarAPIResponse , err
736
+ }
737
+ err = json .Unmarshal (localVarHttpResponse .Body (), & successPayload )
738
+ return successPayload , localVarAPIResponse , err
739
+ }
740
+
637
741
/**
638
742
*
639
743
*
0 commit comments