You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/05 08:31:36 UTC

[camel] 02/03: CAMEL-16308 - Camel-Google-bigquery-sql: Rename query parameter in bigquery sql component

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 0c252c7e540f310467b4551cd90b280bad50f10a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 5 09:23:25 2021 +0100

    CAMEL-16308 - Camel-Google-bigquery-sql: Rename query parameter in bigquery sql component
---
 .../catalog/docs/google-bigquery-sql-component.adoc  |  4 ++--
 .../sql/GoogleBigQuerySQLEndpointUriFactory.java     |  6 +++---
 .../google/bigquery/sql/google-bigquery-sql.json     |  4 ++--
 .../src/main/docs/google-bigquery-sql-component.adoc |  4 ++--
 .../src/generated/resources/metadata.json            |  2 +-
 .../builder/endpoint/StaticEndpointBuilders.java     | 20 ++++++++++----------
 .../dsl/GoogleBigQuerySQLEndpointBuilderFactory.java | 20 ++++++++++----------
 .../ROOT/pages/google-bigquery-sql-component.adoc    |  4 ++--
 8 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-sql-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-sql-component.adoc
index bdf3ef8..2cae5d3 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-sql-component.adoc
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-sql-component.adoc
@@ -96,7 +96,7 @@ The Google BigQuery Standard SQL component supports 4 options, which are listed
 The Google BigQuery Standard SQL endpoint is configured using URI syntax:
 
 ----
-google-bigquery-sql:projectId:query
+google-bigquery-sql:projectId:queryString
 ----
 
 with the following path and query parameters:
@@ -107,8 +107,8 @@ with the following path and query parameters:
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *query* | *Required* BigQuery standard SQL query |  | String
 | *projectId* | *Required* Google Cloud Project Id |  | String
+| *queryString* | *Required* BigQuery standard SQL query |  | String
 |===
 
 
diff --git a/components/camel-google-bigquery/src/generated/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpointUriFactory.java b/components/camel-google-bigquery/src/generated/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpointUriFactory.java
index a63c8fd..b715a92 100644
--- a/components/camel-google-bigquery/src/generated/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpointUriFactory.java
+++ b/components/camel-google-bigquery/src/generated/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpointUriFactory.java
@@ -15,7 +15,7 @@ import org.apache.camel.spi.EndpointUriFactory;
  */
 public class GoogleBigQuerySQLEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
 
-    private static final String BASE = ":projectId:query";
+    private static final String BASE = ":projectId:queryString";
 
     private static final Set<String> PROPERTY_NAMES;
     private static final Set<String> SECRET_PROPERTY_NAMES;
@@ -23,7 +23,7 @@ public class GoogleBigQuerySQLEndpointUriFactory extends org.apache.camel.suppor
         Set<String> props = new HashSet<>(4);
         props.add("lazyStartProducer");
         props.add("connectionFactory");
-        props.add("query");
+        props.add("queryString");
         props.add("projectId");
         PROPERTY_NAMES = Collections.unmodifiableSet(props);
         SECRET_PROPERTY_NAMES = Collections.emptySet();
@@ -41,8 +41,8 @@ public class GoogleBigQuerySQLEndpointUriFactory extends org.apache.camel.suppor
 
         Map<String, Object> copy = new HashMap<>(properties);
 
-        uri = buildPathParameter(syntax, uri, "query", null, true, copy);
         uri = buildPathParameter(syntax, uri, "projectId", null, true, copy);
+        uri = buildPathParameter(syntax, uri, "queryString", null, true, copy);
         uri = buildQueryParameters(uri, copy, encode);
         return uri;
     }
diff --git a/components/camel-google-bigquery/src/generated/resources/org/apache/camel/component/google/bigquery/sql/google-bigquery-sql.json b/components/camel-google-bigquery/src/generated/resources/org/apache/camel/component/google/bigquery/sql/google-bigquery-sql.json
index 44938b3..39476c8 100644
--- a/components/camel-google-bigquery/src/generated/resources/org/apache/camel/component/google/bigquery/sql/google-bigquery-sql.json
+++ b/components/camel-google-bigquery/src/generated/resources/org/apache/camel/component/google/bigquery/sql/google-bigquery-sql.json
@@ -14,7 +14,7 @@
     "version": "3.9.0-SNAPSHOT",
     "scheme": "google-bigquery-sql",
     "extendsScheme": "",
-    "syntax": "google-bigquery-sql:projectId:query",
+    "syntax": "google-bigquery-sql:projectId:queryString",
     "async": false,
     "api": false,
     "consumerOnly": false,
@@ -28,8 +28,8 @@
     "autowiredEnabled": { "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which t [...]
   },
   "properties": {
-    "query": { "kind": "path", "displayName": "Query", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "BigQuery standard SQL query" },
     "projectId": { "kind": "path", "displayName": "Project Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Google Cloud Project Id" },
+    "queryString": { "kind": "path", "displayName": "Query String", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "BigQuery standard SQL query" },
     "connectionFactory": { "kind": "parameter", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Connecti [...]
     "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during sta [...]
   }
diff --git a/components/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc b/components/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc
index bdf3ef8..2cae5d3 100644
--- a/components/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc
+++ b/components/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc
@@ -96,7 +96,7 @@ The Google BigQuery Standard SQL component supports 4 options, which are listed
 The Google BigQuery Standard SQL endpoint is configured using URI syntax:
 
 ----
-google-bigquery-sql:projectId:query
+google-bigquery-sql:projectId:queryString
 ----
 
 with the following path and query parameters:
@@ -107,8 +107,8 @@ with the following path and query parameters:
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *query* | *Required* BigQuery standard SQL query |  | String
 | *projectId* | *Required* Google Cloud Project Id |  | String
+| *queryString* | *Required* BigQuery standard SQL query |  | String
 |===
 
 
diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json b/core/camel-componentdsl/src/generated/resources/metadata.json
index 164b40e..cf97b8a 100644
--- a/core/camel-componentdsl/src/generated/resources/metadata.json
+++ b/core/camel-componentdsl/src/generated/resources/metadata.json
@@ -2588,7 +2588,7 @@
     "version": "3.9.0-SNAPSHOT",
     "scheme": "google-bigquery-sql",
     "extendsScheme": "",
-    "syntax": "google-bigquery-sql:projectId:query",
+    "syntax": "google-bigquery-sql:projectId:queryString",
     "async": false,
     "api": false,
     "consumerOnly": false,
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 951b970..58a2cbf 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -5338,15 +5338,15 @@ public class StaticEndpointBuilders {
      * Since: 2.23
      * Maven coordinates: org.apache.camel:camel-google-bigquery
      * 
-     * Syntax: <code>google-bigquery-sql:projectId:query</code>
-     * 
-     * Path parameter: query (required)
-     * BigQuery standard SQL query
+     * Syntax: <code>google-bigquery-sql:projectId:queryString</code>
      * 
      * Path parameter: projectId (required)
      * Google Cloud Project Id
      * 
-     * @param path projectId:query
+     * Path parameter: queryString (required)
+     * BigQuery standard SQL query
+     * 
+     * @param path projectId:queryString
      * @return the dsl builder
      */
     public static org.apache.camel.builder.endpoint.dsl.GoogleBigQuerySQLEndpointBuilderFactory.GoogleBigQuerySQLEndpointBuilder googleBigquerySql(
@@ -5361,17 +5361,17 @@ public class StaticEndpointBuilders {
      * Since: 2.23
      * Maven coordinates: org.apache.camel:camel-google-bigquery
      * 
-     * Syntax: <code>google-bigquery-sql:projectId:query</code>
-     * 
-     * Path parameter: query (required)
-     * BigQuery standard SQL query
+     * Syntax: <code>google-bigquery-sql:projectId:queryString</code>
      * 
      * Path parameter: projectId (required)
      * Google Cloud Project Id
      * 
+     * Path parameter: queryString (required)
+     * BigQuery standard SQL query
+     * 
      * @param componentName to use a custom component name for the endpoint
      * instead of the default name
-     * @param path projectId:query
+     * @param path projectId:queryString
      * @return the dsl builder
      */
     public static org.apache.camel.builder.endpoint.dsl.GoogleBigQuerySQLEndpointBuilderFactory.GoogleBigQuerySQLEndpointBuilder googleBigquerySql(
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java
index 65d833e..cd932ef 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java
@@ -130,15 +130,15 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory {
          * Since: 2.23
          * Maven coordinates: org.apache.camel:camel-google-bigquery
          * 
-         * Syntax: <code>google-bigquery-sql:projectId:query</code>
-         * 
-         * Path parameter: query (required)
-         * BigQuery standard SQL query
+         * Syntax: <code>google-bigquery-sql:projectId:queryString</code>
          * 
          * Path parameter: projectId (required)
          * Google Cloud Project Id
          * 
-         * @param path projectId:query
+         * Path parameter: queryString (required)
+         * BigQuery standard SQL query
+         * 
+         * @param path projectId:queryString
          * @return the dsl builder
          */
         default GoogleBigQuerySQLEndpointBuilder googleBigquerySql(String path) {
@@ -152,17 +152,17 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory {
          * Since: 2.23
          * Maven coordinates: org.apache.camel:camel-google-bigquery
          * 
-         * Syntax: <code>google-bigquery-sql:projectId:query</code>
-         * 
-         * Path parameter: query (required)
-         * BigQuery standard SQL query
+         * Syntax: <code>google-bigquery-sql:projectId:queryString</code>
          * 
          * Path parameter: projectId (required)
          * Google Cloud Project Id
          * 
+         * Path parameter: queryString (required)
+         * BigQuery standard SQL query
+         * 
          * @param componentName to use a custom component name for the endpoint
          * instead of the default name
-         * @param path projectId:query
+         * @param path projectId:queryString
          * @return the dsl builder
          */
         default GoogleBigQuerySQLEndpointBuilder googleBigquerySql(
diff --git a/docs/components/modules/ROOT/pages/google-bigquery-sql-component.adoc b/docs/components/modules/ROOT/pages/google-bigquery-sql-component.adoc
index 6f04fb0..1aae6e9 100644
--- a/docs/components/modules/ROOT/pages/google-bigquery-sql-component.adoc
+++ b/docs/components/modules/ROOT/pages/google-bigquery-sql-component.adoc
@@ -98,7 +98,7 @@ The Google BigQuery Standard SQL component supports 4 options, which are listed
 The Google BigQuery Standard SQL endpoint is configured using URI syntax:
 
 ----
-google-bigquery-sql:projectId:query
+google-bigquery-sql:projectId:queryString
 ----
 
 with the following path and query parameters:
@@ -109,8 +109,8 @@ with the following path and query parameters:
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *query* | *Required* BigQuery standard SQL query |  | String
 | *projectId* | *Required* Google Cloud Project Id |  | String
+| *queryString* | *Required* BigQuery standard SQL query |  | String
 |===