@@ -634,6 +634,148 @@ public ExchangeAuthCode set(String parameterName, Object value) {
634634 return (ExchangeAuthCode ) super .set (parameterName , value );
635635 }
636636 }
637+ /**
638+ * Executes a generic HTTP request. This supports all payload formats including REST/JSON, GraphQL,
639+ * XML, SOAP, and Multipart by passing the rendered payload as raw bytes.
640+ *
641+ * Create a request for the method "connections.executeHttpRequest".
642+ *
643+ * This request holds the parameters needed by the connectors server. After setting any optional
644+ * parameters, call the {@link ExecuteHttpRequest#execute()} method to invoke the remote operation.
645+ *
646+ * @param name Required. Resource name of the Connection. Format:
647+ * projects/{project}/locations/{location}/connections/{connection}
648+ * @param content the {@link com.google.api.services.connectors.v2.model.ExecuteHttpRequestRequest}
649+ * @return the request
650+ */
651+ public ExecuteHttpRequest executeHttpRequest (java .lang .String name , com .google .api .services .connectors .v2 .model .ExecuteHttpRequestRequest content ) throws java .io .IOException {
652+ ExecuteHttpRequest result = new ExecuteHttpRequest (name , content );
653+ initialize (result );
654+ return result ;
655+ }
656+
657+ public class ExecuteHttpRequest extends ConnectorsRequest <com .google .api .services .connectors .v2 .model .ExecuteHttpRequestResponse > {
658+
659+ private static final String REST_PATH = "v2/{+name}:executeHttpRequest" ;
660+
661+ private final java .util .regex .Pattern NAME_PATTERN =
662+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/connections/[^/]+$" );
663+
664+ /**
665+ * Executes a generic HTTP request. This supports all payload formats including REST/JSON,
666+ * GraphQL, XML, SOAP, and Multipart by passing the rendered payload as raw bytes.
667+ *
668+ * Create a request for the method "connections.executeHttpRequest".
669+ *
670+ * This request holds the parameters needed by the the connectors server. After setting any
671+ * optional parameters, call the {@link ExecuteHttpRequest#execute()} method to invoke the remote
672+ * operation. <p> {@link ExecuteHttpRequest#initialize(com.google.api.client.googleapis.services.A
673+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
674+ * invoking the constructor. </p>
675+ *
676+ * @param name Required. Resource name of the Connection. Format:
677+ * projects/{project}/locations/{location}/connections/{connection}
678+ * @param content the {@link com.google.api.services.connectors.v2.model.ExecuteHttpRequestRequest}
679+ * @since 1.13
680+ */
681+ protected ExecuteHttpRequest (java .lang .String name , com .google .api .services .connectors .v2 .model .ExecuteHttpRequestRequest content ) {
682+ super (Connectors .this , "POST" , REST_PATH , content , com .google .api .services .connectors .v2 .model .ExecuteHttpRequestResponse .class );
683+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
684+ if (!getSuppressPatternChecks ()) {
685+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
686+ "Parameter name must conform to the pattern " +
687+ "^projects/[^/]+/locations/[^/]+/connections/[^/]+$" );
688+ }
689+ }
690+
691+ @ Override
692+ public ExecuteHttpRequest set$Xgafv (java .lang .String $Xgafv ) {
693+ return (ExecuteHttpRequest ) super .set$Xgafv ($Xgafv );
694+ }
695+
696+ @ Override
697+ public ExecuteHttpRequest setAccessToken (java .lang .String accessToken ) {
698+ return (ExecuteHttpRequest ) super .setAccessToken (accessToken );
699+ }
700+
701+ @ Override
702+ public ExecuteHttpRequest setAlt (java .lang .String alt ) {
703+ return (ExecuteHttpRequest ) super .setAlt (alt );
704+ }
705+
706+ @ Override
707+ public ExecuteHttpRequest setCallback (java .lang .String callback ) {
708+ return (ExecuteHttpRequest ) super .setCallback (callback );
709+ }
710+
711+ @ Override
712+ public ExecuteHttpRequest setFields (java .lang .String fields ) {
713+ return (ExecuteHttpRequest ) super .setFields (fields );
714+ }
715+
716+ @ Override
717+ public ExecuteHttpRequest setKey (java .lang .String key ) {
718+ return (ExecuteHttpRequest ) super .setKey (key );
719+ }
720+
721+ @ Override
722+ public ExecuteHttpRequest setOauthToken (java .lang .String oauthToken ) {
723+ return (ExecuteHttpRequest ) super .setOauthToken (oauthToken );
724+ }
725+
726+ @ Override
727+ public ExecuteHttpRequest setPrettyPrint (java .lang .Boolean prettyPrint ) {
728+ return (ExecuteHttpRequest ) super .setPrettyPrint (prettyPrint );
729+ }
730+
731+ @ Override
732+ public ExecuteHttpRequest setQuotaUser (java .lang .String quotaUser ) {
733+ return (ExecuteHttpRequest ) super .setQuotaUser (quotaUser );
734+ }
735+
736+ @ Override
737+ public ExecuteHttpRequest setUploadType (java .lang .String uploadType ) {
738+ return (ExecuteHttpRequest ) super .setUploadType (uploadType );
739+ }
740+
741+ @ Override
742+ public ExecuteHttpRequest setUploadProtocol (java .lang .String uploadProtocol ) {
743+ return (ExecuteHttpRequest ) super .setUploadProtocol (uploadProtocol );
744+ }
745+
746+ /**
747+ * Required. Resource name of the Connection. Format:
748+ * projects/{project}/locations/{location}/connections/{connection}
749+ */
750+ @ com .google .api .client .util .Key
751+ private java .lang .String name ;
752+
753+ /** Required. Resource name of the Connection. Format:
754+ projects/{project}/locations/{location}/connections/{connection}
755+ */
756+ public java .lang .String getName () {
757+ return name ;
758+ }
759+
760+ /**
761+ * Required. Resource name of the Connection. Format:
762+ * projects/{project}/locations/{location}/connections/{connection}
763+ */
764+ public ExecuteHttpRequest setName (java .lang .String name ) {
765+ if (!getSuppressPatternChecks ()) {
766+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
767+ "Parameter name must conform to the pattern " +
768+ "^projects/[^/]+/locations/[^/]+/connections/[^/]+$" );
769+ }
770+ this .name = name ;
771+ return this ;
772+ }
773+
774+ @ Override
775+ public ExecuteHttpRequest set (String parameterName , Object value ) {
776+ return (ExecuteHttpRequest ) super .set (parameterName , value );
777+ }
778+ }
637779 /**
638780 * Executes a SQL statement specified in the body of the request. An example of this SQL statement
639781 * in the case of Salesforce connector would be 'select * from Account a, Order o where a.Id =
0 commit comments