This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 54e5d55e6791799ae76773e80a3d610d7c46b988 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Sep 1 15:32:58 2020 +0200 CAMEL-15478: api components with generated enum classes should include toString so we can use the nice human readable value in the docs and tooling --- .../camel/component/as2/internal/AS2ApiName.java | 5 + .../org/apache/camel/component/as2/as2.json | 2 +- .../src/main/docs/as2-component.adoc | 2 +- .../camel/component/box/internal/BoxApiName.java | 5 + .../org/apache/camel/component/box/box.json | 2 +- .../src/main/docs/box-component.adoc | 2 +- .../braintree/internal/BraintreeApiName.java | 5 + .../camel/component/braintree/braintree.json | 2 +- .../src/main/docs/braintree-component.adoc | 2 +- .../camel/component/fhir/internal/FhirApiName.java | 5 + .../org/apache/camel/component/fhir/fhir.json | 2 +- .../src/main/docs/fhir-component.adoc | 2 +- .../calendar/internal/GoogleCalendarApiName.java | 5 + .../component/google/calendar/google-calendar.json | 2 +- .../src/main/docs/google-calendar-component.adoc | 2 +- .../google/drive/internal/GoogleDriveApiName.java | 5 + .../google/drive/GoogleDriveConfiguration.java | 3 +- .../google/mail/internal/GoogleMailApiName.java | 5 + .../camel/component/google/mail/google-mail.json | 2 +- .../src/main/docs/google-mail-component.adoc | 2 +- .../sheets/internal/GoogleSheetsApiName.java | 5 + .../component/google/sheets/google-sheets.json | 2 +- .../src/main/docs/google-sheets-component.adoc | 2 +- .../component/olingo2/internal/Olingo2ApiName.java | 5 + .../apache/camel/component/olingo2/olingo2.json | 2 +- .../src/main/docs/olingo2-component.adoc | 2 +- .../component/olingo4/internal/Olingo4ApiName.java | 5 + .../apache/camel/component/olingo4/olingo4.json | 2 +- .../src/main/docs/olingo4-component.adoc | 2 +- .../component/twilio/internal/TwilioApiName.java | 5 + .../org/apache/camel/component/twilio/twilio.json | 2 +- .../src/main/docs/twilio-component.adoc | 2 +- .../component/zendesk/internal/ZendeskApiName.java | 5 + .../builder/endpoint/StaticEndpointBuilders.java | 148 ++++++++++----------- .../endpoint/dsl/AS2EndpointBuilderFactory.java | 4 +- .../endpoint/dsl/BoxEndpointBuilderFactory.java | 8 +- .../dsl/BraintreeEndpointBuilderFactory.java | 20 +-- .../endpoint/dsl/FhirEndpointBuilderFactory.java | 12 +- .../dsl/GoogleCalendarEndpointBuilderFactory.java | 8 +- .../dsl/GoogleMailEndpointBuilderFactory.java | 8 +- .../dsl/GoogleSheetsEndpointBuilderFactory.java | 4 +- .../dsl/Olingo2EndpointBuilderFactory.java | 4 +- .../dsl/Olingo4EndpointBuilderFactory.java | 4 +- .../endpoint/dsl/TwilioEndpointBuilderFactory.java | 84 ++++++------ .../src/main/resources/api-name-enum.vm | 5 + 45 files changed, 238 insertions(+), 174 deletions(-) diff --git a/components/camel-as2/camel-as2-component/src/generated/java/org/apache/camel/component/as2/internal/AS2ApiName.java b/components/camel-as2/camel-as2-component/src/generated/java/org/apache/camel/component/as2/internal/AS2ApiName.java index 05f55d4..390c70f 100644 --- a/components/camel-as2/camel-as2-component/src/generated/java/org/apache/camel/component/as2/internal/AS2ApiName.java +++ b/components/camel-as2/camel-as2-component/src/generated/java/org/apache/camel/component/as2/internal/AS2ApiName.java @@ -29,6 +29,11 @@ public enum AS2ApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static AS2ApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json b/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json index cdcfd21..68ca6fa 100644 --- a/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json +++ b/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json @@ -29,7 +29,7 @@ "configuration": { "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.as2.AS2Configuration", "deprecated": false, "secret": false, "description": "Component configuration" } }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.as2.internal.AS2ApiName", "enum": [ "CLIENT", "SERVER" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "What kind of operation to perform" }, + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.as2.internal.AS2ApiName", "enum": [ "client", "server" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "What kind of operation to perform" }, "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "What sub operation to use for the selected operation" }, "as2From": { "kind": "parameter", "displayName": "As2 From", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The value of the AS2From header of AS2 message." }, "as2MessageStructure": { "kind": "parameter", "displayName": "As2 Message Structure", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.as2.api.AS2MessageStructure", "enum": [ "PLAIN", "SIGNED", "ENCRYPTED", "SIGNED_ENCRYPTED", "PLAIN_COMPRESSED", "SIGNED_COMPRESSED", "ENCRYPTED_COMPRESSED", "ENCRYPTED_COMPRESSED_SIGNED" ], "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configur [...] diff --git a/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc b/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc index d1c3d40..2b1f758 100644 --- a/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc +++ b/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc @@ -79,7 +79,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: CLIENT, SERVER | | AS2ApiName +| *apiName* | *Required* What kind of operation to perform. The value can be one of: client, server | | AS2ApiName | *methodName* | *Required* What sub operation to use for the selected operation | | String |=== diff --git a/components/camel-box/camel-box-component/src/generated/java/org/apache/camel/component/box/internal/BoxApiName.java b/components/camel-box/camel-box-component/src/generated/java/org/apache/camel/component/box/internal/BoxApiName.java index ee5e710..f2f19fb 100644 --- a/components/camel-box/camel-box-component/src/generated/java/org/apache/camel/component/box/internal/BoxApiName.java +++ b/components/camel-box/camel-box-component/src/generated/java/org/apache/camel/component/box/internal/BoxApiName.java @@ -45,6 +45,11 @@ public enum BoxApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static BoxApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-box/camel-box-component/src/generated/resources/org/apache/camel/component/box/box.json b/components/camel-box/camel-box-component/src/generated/resources/org/apache/camel/component/box/box.json index 09595de..55f7eaf 100644 --- a/components/camel-box/camel-box-component/src/generated/resources/org/apache/camel/component/box/box.json +++ b/components/camel-box/camel-box-component/src/generated/resources/org/apache/camel/component/box/box.json @@ -44,7 +44,7 @@ "userPassword": { "kind": "property", "displayName": "User Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.box.BoxConfiguration", "configurationField": "configuration", "description": "Box user password, MUST be provided if authSecureStorage is not set, or returns null on first call" } }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.box.internal.BoxApiName", "enum": [ "COLLABORATIONS", "COMMENTS", "EVENT_LOGS", "FILES", "FOLDERS", "GROUPS", "EVENTS", "SEARCH", "TASKS", "USERS" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.box.BoxConfiguration", "configurationField": "configuration", " [...] + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.box.internal.BoxApiName", "enum": [ "collaborations", "comments", "event-logs", "files", "folders", "groups", "events", "search", "tasks", "users" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.box.BoxConfiguration", "configurationField": "configuration", " [...] "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.box.BoxConfiguration", "configurationField": "configuration", "description": "What sub operation to use for the selected operation" }, "clientId": { "kind": "parameter", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.box.BoxConfiguration", "configurationField": "configuration", "description": "Box application client ID" }, "enterpriseId": { "kind": "parameter", "displayName": "Enterprise Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.box.BoxConfiguration", "configurationField": "configuration", "description": "The enterprise ID to use for an App Enterprise." }, diff --git a/components/camel-box/camel-box-component/src/main/docs/box-component.adoc b/components/camel-box/camel-box-component/src/main/docs/box-component.adoc index 1214b65..8aececa 100644 --- a/components/camel-box/camel-box-component/src/main/docs/box-component.adoc +++ b/components/camel-box/camel-box-component/src/main/docs/box-component.adoc @@ -100,7 +100,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: COLLABORATIONS, COMMENTS, EVENT_LOGS, FILES, FOLDERS, GROUPS, EVENTS, SEARCH, TASKS, USERS | | BoxApiName +| *apiName* | *Required* What kind of operation to perform. The value can be one of: collaborations, comments, event-logs, files, folders, groups, events, search, tasks, users | | BoxApiName | *methodName* | *Required* What sub operation to use for the selected operation | | String |=== diff --git a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiName.java b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiName.java index 923b939..e753023 100644 --- a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiName.java +++ b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiName.java @@ -59,6 +59,11 @@ public enum BraintreeApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static BraintreeApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-braintree/src/generated/resources/org/apache/camel/component/braintree/braintree.json b/components/camel-braintree/src/generated/resources/org/apache/camel/component/braintree/braintree.json index b2a65a9..c093e96 100644 --- a/components/camel-braintree/src/generated/resources/org/apache/camel/component/braintree/braintree.json +++ b/components/camel-braintree/src/generated/resources/org/apache/camel/component/braintree/braintree.json @@ -29,7 +29,7 @@ "configuration": { "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.braintree.BraintreeConfiguration", "deprecated": false, "secret": false, "description": "Component configuration" } }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.braintree.internal.BraintreeApiName", "enum": [ "ADDON", "ADDRESS", "CLIENTTOKEN", "CREDITCARDVERIFICATION", "CUSTOMER", "DISCOUNT", "DISPUTE", "DOCUMENTUPLOAD", "MERCHANTACCOUNT", "PAYMENTMETHOD", "PAYMENTMETHODNONCE", "PLAN", "REPORT", "SETTLEMENTBATCHSUMMARY", "SUBSCRIPTION", "TRANSACTION", "WEBHOOKNOTIFICATION" ], "dep [...] + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.braintree.internal.BraintreeApiName", "enum": [ "addOn", "address", "clientToken", "creditCardVerification", "customer", "discount", "dispute", "documentUpload", "merchantAccount", "paymentMethod", "paymentMethodNonce", "plan", "report", "settlementBatchSummary", "subscription", "transaction", "webhookNotification" ], "dep [...] "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "What sub operation to use for the selected operation" }, "environment": { "kind": "parameter", "displayName": "Environment", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "The environment Either SANDBOX or PRODUCTION" }, "inBody": { "kind": "parameter", "displayName": "In Body", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Sets the name of a parameter to be passed in the exchange In Body" }, diff --git a/components/camel-braintree/src/main/docs/braintree-component.adoc b/components/camel-braintree/src/main/docs/braintree-component.adoc index 0f1312b..e35f0b9 100644 --- a/components/camel-braintree/src/main/docs/braintree-component.adoc +++ b/components/camel-braintree/src/main/docs/braintree-component.adoc @@ -77,7 +77,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: ADDON, ADDRESS, CLIENTTOKEN, CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE, DOCUMENTUPLOAD, MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE, PLAN, REPORT, SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION, WEBHOOKNOTIFICATION | | BraintreeApiName +| *apiName* | *Required* What kind of operation to perform. The value can be one of: addOn, address, clientToken, creditCardVerification, customer, discount, dispute, documentUpload, merchantAccount, paymentMethod, paymentMethodNonce, plan, report, settlementBatchSummary, subscription, transaction, webhookNotification | | BraintreeApiName | *methodName* | What sub operation to use for the selected operation | | String |=== diff --git a/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/internal/FhirApiName.java b/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/internal/FhirApiName.java index 649ca05..5bef7f5 100644 --- a/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/internal/FhirApiName.java +++ b/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/internal/FhirApiName.java @@ -51,6 +51,11 @@ public enum FhirApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static FhirApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-fhir/camel-fhir-component/src/generated/resources/org/apache/camel/component/fhir/fhir.json b/components/camel-fhir/camel-fhir-component/src/generated/resources/org/apache/camel/component/fhir/fhir.json index f71ca44..d7613ec 100644 --- a/components/camel-fhir/camel-fhir-component/src/generated/resources/org/apache/camel/component/fhir/fhir.json +++ b/components/camel-fhir/camel-fhir-component/src/generated/resources/org/apache/camel/component/fhir/fhir.json @@ -52,7 +52,7 @@ "username": { "kind": "property", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.fhir.FhirConfiguration", "configurationField": "configuration", "description": "Username to use for basic authentication" } }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.fhir.internal.FhirApiName", "enum": [ "CAPABILITIES", "CREATE", "DELETE", "HISTORY", "LOAD_PAGE", "META", "OPERATION", "PATCH", "READ", "SEARCH", "TRANSACTION", "UPDATE", "VALIDATE" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.fhir.FhirConfiguration", "co [...] + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.fhir.internal.FhirApiName", "enum": [ "capabilities", "create", "delete", "history", "load-page", "meta", "operation", "patch", "read", "search", "transaction", "update", "validate" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.fhir.FhirConfiguration", "co [...] "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.fhir.FhirConfiguration", "configurationField": "configuration", "description": "What sub operation to use for the selected operation" }, "encoding": { "kind": "parameter", "displayName": "Encoding", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "JSON", "XML" ], "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.fhir.FhirConfiguration", "configurationField": "configuration", "description": "Encoding to use for all request" }, "fhirVersion": { "kind": "parameter", "displayName": "Fhir Version", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "DSTU2", "DSTU2_HL7ORG", "DSTU2_1", "DSTU3", "R4", "R5" ], "deprecated": false, "secret": false, "defaultValue": "R4", "configurationClass": "org.apache.camel.component.fhir.FhirConfiguration", "configurationField": "configuration", "description": "The FHIR Version to use" }, diff --git a/components/camel-fhir/camel-fhir-component/src/main/docs/fhir-component.adoc b/components/camel-fhir/camel-fhir-component/src/main/docs/fhir-component.adoc index b530b95..6cb32d5 100644 --- a/components/camel-fhir/camel-fhir-component/src/main/docs/fhir-component.adoc +++ b/components/camel-fhir/camel-fhir-component/src/main/docs/fhir-component.adoc @@ -108,7 +108,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: CAPABILITIES, CREATE, DELETE, HISTORY, LOAD_PAGE, META, OPERATION, PATCH, READ, SEARCH, TRANSACTION, UPDATE, VALIDATE | | FhirApiName +| *apiName* | *Required* What kind of operation to perform. The value can be one of: capabilities, create, delete, history, load-page, meta, operation, patch, read, search, transaction, update, validate | | FhirApiName | *methodName* | *Required* What sub operation to use for the selected operation | | String |=== diff --git a/components/camel-google-calendar/src/generated/java/org/apache/camel/component/google/calendar/internal/GoogleCalendarApiName.java b/components/camel-google-calendar/src/generated/java/org/apache/camel/component/google/calendar/internal/GoogleCalendarApiName.java index 684786c..5f2492c 100644 --- a/components/camel-google-calendar/src/generated/java/org/apache/camel/component/google/calendar/internal/GoogleCalendarApiName.java +++ b/components/camel-google-calendar/src/generated/java/org/apache/camel/component/google/calendar/internal/GoogleCalendarApiName.java @@ -41,6 +41,11 @@ public enum GoogleCalendarApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static GoogleCalendarApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-google-calendar/src/generated/resources/org/apache/camel/component/google/calendar/google-calendar.json b/components/camel-google-calendar/src/generated/resources/org/apache/camel/component/google/calendar/google-calendar.json index aae2d30..87753eb 100644 --- a/components/camel-google-calendar/src/generated/resources/org/apache/camel/component/google/calendar/google-calendar.json +++ b/components/camel-google-calendar/src/generated/resources/org/apache/camel/component/google/calendar/google-calendar.json @@ -39,7 +39,7 @@ "refreshToken": { "kind": "property", "displayName": "Refresh Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.google.calendar.GoogleCalendarConfiguration", "configurationField": "configuration", "description": "OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever the current one [...] }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.google.calendar.internal.GoogleCalendarApiName", "enum": [ "ACL", "LIST", "CALENDARS", "CHANNELS", "COLORS", "FREEBUSY", "EVENTS", "SETTINGS" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.google.calendar.GoogleCalendarConfiguration", "configurationField": [...] + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.google.calendar.internal.GoogleCalendarApiName", "enum": [ "acl", "list", "calendars", "channels", "colors", "freebusy", "events", "settings" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.google.calendar.GoogleCalendarConfiguration", "configurationField": [...] "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "calendarImport", "clear", "delete", "get", "insert", "instances", "list", "move", "patch", "query", "quickAdd", "stop", "update", "watch" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.google.calendar.GoogleCalendarConfiguration", "configurationFie [...] "applicationName": { "kind": "parameter", "displayName": "Application Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.google.calendar.GoogleCalendarConfiguration", "configurationField": "configuration", "description": "Google calendar application name. Example would be camel-google-calendar\/1.0" }, "clientId": { "kind": "parameter", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.google.calendar.GoogleCalendarConfiguration", "configurationField": "configuration", "description": "Client ID of the calendar application" }, diff --git a/components/camel-google-calendar/src/main/docs/google-calendar-component.adoc b/components/camel-google-calendar/src/main/docs/google-calendar-component.adoc index 88d40ad..b842b02 100644 --- a/components/camel-google-calendar/src/main/docs/google-calendar-component.adoc +++ b/components/camel-google-calendar/src/main/docs/google-calendar-component.adoc @@ -93,7 +93,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: ACL, LIST, CALENDARS, CHANNELS, COLORS, FREEBUSY, EVENTS, SETTINGS | | GoogleCalendarApiName +| *apiName* | *Required* What kind of operation to perform. The value can be one of: acl, list, calendars, channels, colors, freebusy, events, settings | | GoogleCalendarApiName | *methodName* | *Required* What sub operation to use for the selected operation. The value can be one of: calendarImport, clear, delete, get, insert, instances, list, move, patch, query, quickAdd, stop, update, watch | | String |=== diff --git a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiName.java b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiName.java index a388b47..98fc502 100644 --- a/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiName.java +++ b/components/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiName.java @@ -51,6 +51,11 @@ public enum GoogleDriveApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static GoogleDriveApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java b/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java index 2aa67db..353f17a 100644 --- a/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java +++ b/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java @@ -37,8 +37,7 @@ public class GoogleDriveConfiguration { = Arrays.asList(DriveScopes.DRIVE_FILE, DriveScopes.DRIVE_APPS_READONLY, DriveScopes.DRIVE_METADATA_READONLY, DriveScopes.DRIVE); - @UriPath(enums = "drive-about,drive-apps,drive-changes,drive-channels,drive-children,drive-comments,drive-files,drive-parents" - + ",drive-permissions,drive-properties,drive-realtime,drive-replies,drive-revisions") + @UriPath @Metadata(required = true) private GoogleDriveApiName apiName; diff --git a/components/camel-google-mail/src/generated/java/org/apache/camel/component/google/mail/internal/GoogleMailApiName.java b/components/camel-google-mail/src/generated/java/org/apache/camel/component/google/mail/internal/GoogleMailApiName.java index 12556c5..b4baf3d 100644 --- a/components/camel-google-mail/src/generated/java/org/apache/camel/component/google/mail/internal/GoogleMailApiName.java +++ b/components/camel-google-mail/src/generated/java/org/apache/camel/component/google/mail/internal/GoogleMailApiName.java @@ -39,6 +39,11 @@ public enum GoogleMailApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static GoogleMailApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-google-mail/src/generated/resources/org/apache/camel/component/google/mail/google-mail.json b/components/camel-google-mail/src/generated/resources/org/apache/camel/component/google/mail/google-mail.json index 323e047..6375d04 100644 --- a/components/camel-google-mail/src/generated/resources/org/apache/camel/component/google/mail/google-mail.json +++ b/components/camel-google-mail/src/generated/resources/org/apache/camel/component/google/mail/google-mail.json @@ -35,7 +35,7 @@ "refreshToken": { "kind": "property", "displayName": "Refresh Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.google.mail.GoogleMailConfiguration", "configurationField": "configuration", "description": "OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever the current one expires [...] }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.google.mail.internal.GoogleMailApiName", "enum": [ "THREADS", "MESSAGES", "ATTACHMENTS", "LABELS", "HISTORY", "DRAFTS", "USERS" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.google.mail.GoogleMailConfiguration", "configurationField": "configuration", "desc [...] + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.google.mail.internal.GoogleMailApiName", "enum": [ "threads", "messages", "attachments", "labels", "history", "drafts", "users" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.google.mail.GoogleMailConfiguration", "configurationField": "configuration", "desc [...] "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "attachments", "create", "delete", "get", "getProfile", "gmailImport", "insert", "list", "modify", "patch", "send", "stop", "trash", "untrash", "update", "watch" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.google.mail.GoogleMailConfiguration", "c [...] "applicationName": { "kind": "parameter", "displayName": "Application Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.google.mail.GoogleMailConfiguration", "configurationField": "configuration", "description": "Google mail application name. Example would be camel-google-mail\/1.0" }, "clientId": { "kind": "parameter", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.google.mail.GoogleMailConfiguration", "configurationField": "configuration", "description": "Client ID of the mail application" }, diff --git a/components/camel-google-mail/src/main/docs/google-mail-component.adoc b/components/camel-google-mail/src/main/docs/google-mail-component.adoc index 2db3039..19a51c2 100644 --- a/components/camel-google-mail/src/main/docs/google-mail-component.adoc +++ b/components/camel-google-mail/src/main/docs/google-mail-component.adoc @@ -107,7 +107,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: THREADS, MESSAGES, ATTACHMENTS, LABELS, HISTORY, DRAFTS, USERS | | GoogleMailApiName +| *apiName* | *Required* What kind of operation to perform. The value can be one of: threads, messages, attachments, labels, history, drafts, users | | GoogleMailApiName | *methodName* | *Required* What sub operation to use for the selected operation. The value can be one of: attachments, create, delete, get, getProfile, gmailImport, insert, list, modify, patch, send, stop, trash, untrash, update, watch | | String |=== diff --git a/components/camel-google-sheets/src/generated/java/org/apache/camel/component/google/sheets/internal/GoogleSheetsApiName.java b/components/camel-google-sheets/src/generated/java/org/apache/camel/component/google/sheets/internal/GoogleSheetsApiName.java index a9895f5..d8deced 100644 --- a/components/camel-google-sheets/src/generated/java/org/apache/camel/component/google/sheets/internal/GoogleSheetsApiName.java +++ b/components/camel-google-sheets/src/generated/java/org/apache/camel/component/google/sheets/internal/GoogleSheetsApiName.java @@ -29,6 +29,11 @@ public enum GoogleSheetsApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static GoogleSheetsApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-google-sheets/src/generated/resources/org/apache/camel/component/google/sheets/google-sheets.json b/components/camel-google-sheets/src/generated/resources/org/apache/camel/component/google/sheets/google-sheets.json index 3cba23d..9db4318 100644 --- a/components/camel-google-sheets/src/generated/resources/org/apache/camel/component/google/sheets/google-sheets.json +++ b/components/camel-google-sheets/src/generated/resources/org/apache/camel/component/google/sheets/google-sheets.json @@ -36,7 +36,7 @@ "refreshToken": { "kind": "property", "displayName": "Refresh Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.google.sheets.GoogleSheetsConfiguration", "configurationField": "configuration", "description": "OAuth 2 refresh token. Using this, the Google Sheets component can obtain a new accessToken whenever the current one expire [...] }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.google.sheets.internal.GoogleSheetsApiName", "enum": [ "SPREADSHEETS", "DATA" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.google.sheets.GoogleSheetsConfiguration", "configurationField": "configuration", "description": "What kind of operation to perform" }, + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.google.sheets.internal.GoogleSheetsApiName", "enum": [ "spreadsheets", "data" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.google.sheets.GoogleSheetsConfiguration", "configurationField": "configuration", "description": "What kind of operation to perform" }, "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "create", "get", "update", "append", "batchUpdate", "clear" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.google.sheets.GoogleSheetsConfiguration", "configurationField": "configuration", "description": "What sub operation to use for the selected op [...] "applicationName": { "kind": "parameter", "displayName": "Application Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.google.sheets.GoogleSheetsConfiguration", "configurationField": "configuration", "description": "Google Sheets application name. Example would be camel-google-sheets\/1.0" }, "clientId": { "kind": "parameter", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.google.sheets.GoogleSheetsConfiguration", "configurationField": "configuration", "description": "Client ID of the sheets application" }, diff --git a/components/camel-google-sheets/src/main/docs/google-sheets-component.adoc b/components/camel-google-sheets/src/main/docs/google-sheets-component.adoc index 293e510..40faa73 100644 --- a/components/camel-google-sheets/src/main/docs/google-sheets-component.adoc +++ b/components/camel-google-sheets/src/main/docs/google-sheets-component.adoc @@ -103,7 +103,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: SPREADSHEETS, DATA | | GoogleSheetsApiName +| *apiName* | *Required* What kind of operation to perform. The value can be one of: spreadsheets, data | | GoogleSheetsApiName | *methodName* | *Required* What sub operation to use for the selected operation. The value can be one of: create, get, update, append, batchUpdate, clear | | String |=== diff --git a/components/camel-olingo2/camel-olingo2-component/src/generated/java/org/apache/camel/component/olingo2/internal/Olingo2ApiName.java b/components/camel-olingo2/camel-olingo2-component/src/generated/java/org/apache/camel/component/olingo2/internal/Olingo2ApiName.java index 05e45de..98c1c84 100644 --- a/components/camel-olingo2/camel-olingo2-component/src/generated/java/org/apache/camel/component/olingo2/internal/Olingo2ApiName.java +++ b/components/camel-olingo2/camel-olingo2-component/src/generated/java/org/apache/camel/component/olingo2/internal/Olingo2ApiName.java @@ -27,6 +27,11 @@ public enum Olingo2ApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static Olingo2ApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-olingo2/camel-olingo2-component/src/generated/resources/org/apache/camel/component/olingo2/olingo2.json b/components/camel-olingo2/camel-olingo2-component/src/generated/resources/org/apache/camel/component/olingo2/olingo2.json index b06a9da..a9fbef9 100644 --- a/components/camel-olingo2/camel-olingo2-component/src/generated/resources/org/apache/camel/component/olingo2/olingo2.json +++ b/components/camel-olingo2/camel-olingo2-component/src/generated/resources/org/apache/camel/component/olingo2/olingo2.json @@ -43,7 +43,7 @@ "useGlobalSslContextParameters": { "kind": "property", "displayName": "Use Global Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Enable usage of global SSL context parameters." } }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.olingo2.internal.Olingo2ApiName", "enum": [ "DEFAULT" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.olingo2.Olingo2Configuration", "configurationField": "configuration", "description": "What kind of operation to perform" }, + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.olingo2.internal.Olingo2ApiName", "enum": [ "" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.olingo2.Olingo2Configuration", "configurationField": "configuration", "description": "What kind of operation to perform" }, "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.olingo2.Olingo2Configuration", "configurationField": "configuration", "description": "What sub operation to use for the selected operation" }, "connectTimeout": { "kind": "parameter", "displayName": "Connect Timeout", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "secret": false, "defaultValue": "30000", "configurationClass": "org.apache.camel.component.olingo2.Olingo2Configuration", "configurationField": "configuration", "description": "HTTP connection creation timeout in milliseconds, defaults to 30,000 (30 seconds)" }, "contentType": { "kind": "parameter", "displayName": "Content Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "application\/json;charset=utf-8", "configurationClass": "org.apache.camel.component.olingo2.Olingo2Configuration", "configurationField": "configuration", "description": "Content-Type header value can be used to specify JSON or XML message format, defaults to appl [...] diff --git a/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc b/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc index ceafa19..2a4e38f 100644 --- a/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc +++ b/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc @@ -100,7 +100,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: DEFAULT | | Olingo2ApiName +| *apiName* | *Required* What kind of operation to perform. The value can be one of: | | Olingo2ApiName | *methodName* | *Required* What sub operation to use for the selected operation | | String |=== diff --git a/components/camel-olingo4/camel-olingo4-component/src/generated/java/org/apache/camel/component/olingo4/internal/Olingo4ApiName.java b/components/camel-olingo4/camel-olingo4-component/src/generated/java/org/apache/camel/component/olingo4/internal/Olingo4ApiName.java index 4e3aa2c..6768690 100644 --- a/components/camel-olingo4/camel-olingo4-component/src/generated/java/org/apache/camel/component/olingo4/internal/Olingo4ApiName.java +++ b/components/camel-olingo4/camel-olingo4-component/src/generated/java/org/apache/camel/component/olingo4/internal/Olingo4ApiName.java @@ -27,6 +27,11 @@ public enum Olingo4ApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static Olingo4ApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-olingo4/camel-olingo4-component/src/generated/resources/org/apache/camel/component/olingo4/olingo4.json b/components/camel-olingo4/camel-olingo4-component/src/generated/resources/org/apache/camel/component/olingo4/olingo4.json index dc6c1a8..87ecefe 100644 --- a/components/camel-olingo4/camel-olingo4-component/src/generated/resources/org/apache/camel/component/olingo4/olingo4.json +++ b/components/camel-olingo4/camel-olingo4-component/src/generated/resources/org/apache/camel/component/olingo4/olingo4.json @@ -41,7 +41,7 @@ "useGlobalSslContextParameters": { "kind": "property", "displayName": "Use Global Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Enable usage of global SSL context parameters." } }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.olingo4.internal.Olingo4ApiName", "enum": [ "DEFAULT" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.olingo4.Olingo4Configuration", "configurationField": "configuration", "description": "What kind of operation to perform" }, + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.olingo4.internal.Olingo4ApiName", "enum": [ "" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.olingo4.Olingo4Configuration", "configurationField": "configuration", "description": "What kind of operation to perform" }, "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.olingo4.Olingo4Configuration", "configurationField": "configuration", "description": "What sub operation to use for the selected operation" }, "connectTimeout": { "kind": "parameter", "displayName": "Connect Timeout", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "secret": false, "defaultValue": "30000", "configurationClass": "org.apache.camel.component.olingo4.Olingo4Configuration", "configurationField": "configuration", "description": "HTTP connection creation timeout in milliseconds, defaults to 30,000 (30 seconds)" }, "contentType": { "kind": "parameter", "displayName": "Content Type", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "application\/json;charset=utf-8", "configurationClass": "org.apache.camel.component.olingo4.Olingo4Configuration", "configurationField": "configuration", "description": "Content-Type header value can be used to specify JSON or XML message format, defaults to appl [...] diff --git a/components/camel-olingo4/camel-olingo4-component/src/main/docs/olingo4-component.adoc b/components/camel-olingo4/camel-olingo4-component/src/main/docs/olingo4-component.adoc index b582cca..5a0b2ce 100644 --- a/components/camel-olingo4/camel-olingo4-component/src/main/docs/olingo4-component.adoc +++ b/components/camel-olingo4/camel-olingo4-component/src/main/docs/olingo4-component.adoc @@ -99,7 +99,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: DEFAULT | | Olingo4ApiName +| *apiName* | *Required* What kind of operation to perform. The value can be one of: | | Olingo4ApiName | *methodName* | *Required* What sub operation to use for the selected operation | | String |=== diff --git a/components/camel-twilio/src/generated/java/org/apache/camel/component/twilio/internal/TwilioApiName.java b/components/camel-twilio/src/generated/java/org/apache/camel/component/twilio/internal/TwilioApiName.java index 7f3ceaf..69478ab 100644 --- a/components/camel-twilio/src/generated/java/org/apache/camel/component/twilio/internal/TwilioApiName.java +++ b/components/camel-twilio/src/generated/java/org/apache/camel/component/twilio/internal/TwilioApiName.java @@ -137,6 +137,11 @@ public enum TwilioApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static TwilioApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { diff --git a/components/camel-twilio/src/generated/resources/org/apache/camel/component/twilio/twilio.json b/components/camel-twilio/src/generated/resources/org/apache/camel/component/twilio/twilio.json index fff6e2c..0d0ba9d 100644 --- a/components/camel-twilio/src/generated/resources/org/apache/camel/component/twilio/twilio.json +++ b/components/camel-twilio/src/generated/resources/org/apache/camel/component/twilio/twilio.json @@ -33,7 +33,7 @@ "username": { "kind": "property", "displayName": "Username", "group": "security", "label": "common,security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "description": "The account to use." } }, "properties": { - "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.twilio.internal.TwilioApiName", "enum": [ "ACCOUNT", "ADDRESS", "APPLICATION", "AVAILABLE_PHONE_NUMBER_COUNTRY", "CALL", "CONFERENCE", "CONNECT_APP", "INCOMING_PHONE_NUMBER", "KEY", "MESSAGE", "NEW_KEY", "NEW_SIGNING_KEY", "NOTIFICATION", "OUTGOING_CALLER_ID", "QUEUE", "RECORDING", "SHORT_CODE", "SIGNING_KEY", "TOKEN", "TR [...] + "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.twilio.internal.TwilioApiName", "enum": [ "account", "address", "application", "available-phone-number-country", "call", "conference", "connect-app", "incoming-phone-number", "key", "message", "new-key", "new-signing-key", "notification", "outgoing-caller-id", "queue", "recording", "short-code", "signing-key", "token", "tr [...] "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "create", "delete", "fetch", "read", "update" ], "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.twilio.TwilioConfiguration", "configurationField": "configuration", "description": "What sub operation to use for the selected operation" }, "inBody": { "kind": "parameter", "displayName": "In Body", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Sets the name of a parameter to be passed in the exchange In Body" }, "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled b [...] diff --git a/components/camel-twilio/src/main/docs/twilio-component.adoc b/components/camel-twilio/src/main/docs/twilio-component.adoc index e51e0ef..158af05 100644 --- a/components/camel-twilio/src/main/docs/twilio-component.adoc +++ b/components/camel-twilio/src/main/docs/twilio-component.adoc @@ -63,7 +63,7 @@ with the following path and query parameters: [width="100%",cols="2,5,^1,2",options="header"] |=== | Name | Description | Default | Type -| *apiName* | *Required* What kind of operation to perform. The value can be one of: ACCOUNT, ADDRESS, APPLICATION, AVAILABLE_PHONE_NUMBER_COUNTRY, CALL, CONFERENCE, CONNECT_APP, INCOMING_PHONE_NUMBER, KEY, MESSAGE, NEW_KEY, NEW_SIGNING_KEY, NOTIFICATION, OUTGOING_CALLER_ID, QUEUE, RECORDING, SHORT_CODE, SIGNING_KEY, TOKEN, TRANSCRIPTION, VALIDATION_REQUEST, ADDRESS_DEPENDENT_PHONE_NUMBER, AVAILABLE_PHONE_NUMBER_COUNTRY_LOCAL, AVAILABLE_PHONE_NUMBER_COUNTRY_MOBILE, AVAILABLE_PHONE_NUMBER [...] +| *apiName* | *Required* What kind of operation to perform. The value can be one of: account, address, application, available-phone-number-country, call, conference, connect-app, incoming-phone-number, key, message, new-key, new-signing-key, notification, outgoing-caller-id, queue, recording, short-code, signing-key, token, transcription, validation-request, address-dependent-phone-number, available-phone-number-country-local, available-phone-number-country-mobile, available-phone-number [...] | *methodName* | *Required* What sub operation to use for the selected operation. The value can be one of: create, delete, fetch, read, update | | String |=== diff --git a/components/camel-zendesk/src/generated/java/org/apache/camel/component/zendesk/internal/ZendeskApiName.java b/components/camel-zendesk/src/generated/java/org/apache/camel/component/zendesk/internal/ZendeskApiName.java index 293fdac..e559c2a 100644 --- a/components/camel-zendesk/src/generated/java/org/apache/camel/component/zendesk/internal/ZendeskApiName.java +++ b/components/camel-zendesk/src/generated/java/org/apache/camel/component/zendesk/internal/ZendeskApiName.java @@ -27,6 +27,11 @@ public enum ZendeskApiName implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static ZendeskApiName fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) { 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 f6fadc6..16f2b0e 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 @@ -307,7 +307,7 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: CLIENT, SERVER + * The value can be one of: client, server * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -330,7 +330,7 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: CLIENT, SERVER + * The value can be one of: client, server * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -2893,8 +2893,8 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: COLLABORATIONS, COMMENTS, EVENT_LOGS, FILES, - * FOLDERS, GROUPS, EVENTS, SEARCH, TASKS, USERS + * The value can be one of: collaborations, comments, event-logs, files, + * folders, groups, events, search, tasks, users * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -2918,8 +2918,8 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: COLLABORATIONS, COMMENTS, EVENT_LOGS, FILES, - * FOLDERS, GROUPS, EVENTS, SEARCH, TASKS, USERS + * The value can be one of: collaborations, comments, event-logs, files, + * folders, groups, events, search, tasks, users * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -2945,10 +2945,10 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ADDON, ADDRESS, CLIENTTOKEN, - * CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE, DOCUMENTUPLOAD, - * MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE, PLAN, REPORT, - * SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION, WEBHOOKNOTIFICATION + * The value can be one of: addOn, address, clientToken, + * creditCardVerification, customer, discount, dispute, documentUpload, + * merchantAccount, paymentMethod, paymentMethodNonce, plan, report, + * settlementBatchSummary, subscription, transaction, webhookNotification * * Path parameter: methodName * What sub operation to use for the selected operation @@ -2971,10 +2971,10 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ADDON, ADDRESS, CLIENTTOKEN, - * CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE, DOCUMENTUPLOAD, - * MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE, PLAN, REPORT, - * SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION, WEBHOOKNOTIFICATION + * The value can be one of: addOn, address, clientToken, + * creditCardVerification, customer, discount, dispute, documentUpload, + * merchantAccount, paymentMethod, paymentMethodNonce, plan, report, + * settlementBatchSummary, subscription, transaction, webhookNotification * * Path parameter: methodName * What sub operation to use for the selected operation @@ -5178,9 +5178,9 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: CAPABILITIES, CREATE, DELETE, HISTORY, - * LOAD_PAGE, META, OPERATION, PATCH, READ, SEARCH, TRANSACTION, UPDATE, - * VALIDATE + * The value can be one of: capabilities, create, delete, history, + * load-page, meta, operation, patch, read, search, transaction, update, + * validate * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -5204,9 +5204,9 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: CAPABILITIES, CREATE, DELETE, HISTORY, - * LOAD_PAGE, META, OPERATION, PATCH, READ, SEARCH, TRANSACTION, UPDATE, - * VALIDATE + * The value can be one of: capabilities, create, delete, history, + * load-page, meta, operation, patch, read, search, transaction, update, + * validate * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -5908,8 +5908,8 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ACL, LIST, CALENDARS, CHANNELS, COLORS, - * FREEBUSY, EVENTS, SETTINGS + * The value can be one of: acl, list, calendars, channels, colors, + * freebusy, events, settings * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -5934,8 +5934,8 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ACL, LIST, CALENDARS, CHANNELS, COLORS, - * FREEBUSY, EVENTS, SETTINGS + * The value can be one of: acl, list, calendars, channels, colors, + * freebusy, events, settings * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -6063,8 +6063,8 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: THREADS, MESSAGES, ATTACHMENTS, LABELS, HISTORY, - * DRAFTS, USERS + * The value can be one of: threads, messages, attachments, labels, history, + * drafts, users * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -6090,8 +6090,8 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: THREADS, MESSAGES, ATTACHMENTS, LABELS, HISTORY, - * DRAFTS, USERS + * The value can be one of: threads, messages, attachments, labels, history, + * drafts, users * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -6208,7 +6208,7 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: SPREADSHEETS, DATA + * The value can be one of: spreadsheets, data * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -6232,7 +6232,7 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: SPREADSHEETS, DATA + * The value can be one of: spreadsheets, data * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -10934,7 +10934,7 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: DEFAULT + * The value can be one of: * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -10957,7 +10957,7 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: DEFAULT + * The value can be one of: * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -10983,7 +10983,7 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: DEFAULT + * The value can be one of: * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -11006,7 +11006,7 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: DEFAULT + * The value can be one of: * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -14315,26 +14315,26 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ACCOUNT, ADDRESS, APPLICATION, - * AVAILABLE_PHONE_NUMBER_COUNTRY, CALL, CONFERENCE, CONNECT_APP, - * INCOMING_PHONE_NUMBER, KEY, MESSAGE, NEW_KEY, NEW_SIGNING_KEY, - * NOTIFICATION, OUTGOING_CALLER_ID, QUEUE, RECORDING, SHORT_CODE, - * SIGNING_KEY, TOKEN, TRANSCRIPTION, VALIDATION_REQUEST, - * ADDRESS_DEPENDENT_PHONE_NUMBER, AVAILABLE_PHONE_NUMBER_COUNTRY_LOCAL, - * AVAILABLE_PHONE_NUMBER_COUNTRY_MOBILE, - * AVAILABLE_PHONE_NUMBER_COUNTRY_TOLL_FREE, CALL_FEEDBACK, - * CALL_FEEDBACK_SUMMARY, CALL_NOTIFICATION, CALL_RECORDING, - * CONFERENCE_PARTICIPANT, INCOMING_PHONE_NUMBER_LOCAL, - * INCOMING_PHONE_NUMBER_MOBILE, INCOMING_PHONE_NUMBER_TOLL_FREE, - * MESSAGE_FEEDBACK, MESSAGE_MEDIA, QUEUE_MEMBER, RECORDING_ADD_ON_RESULT, - * RECORDING_TRANSCRIPTION, RECORDING_ADD_ON_RESULT_PAYLOAD, - * SIP_CREDENTIAL_LIST, SIP_DOMAIN, SIP_IP_ACCESS_CONTROL_LIST, - * SIP_CREDENTIAL_LIST_CREDENTIAL, SIP_DOMAIN_CREDENTIAL_LIST_MAPPING, - * SIP_DOMAIN_IP_ACCESS_CONTROL_LIST_MAPPING, - * SIP_IP_ACCESS_CONTROL_LIST_IP_ADDRESS, USAGE_RECORD, USAGE_TRIGGER, - * USAGE_RECORD_ALL_TIME, USAGE_RECORD_DAILY, USAGE_RECORD_LAST_MONTH, - * USAGE_RECORD_MONTHLY, USAGE_RECORD_THIS_MONTH, USAGE_RECORD_TODAY, - * USAGE_RECORD_YEARLY, USAGE_RECORD_YESTERDAY + * The value can be one of: account, address, application, + * available-phone-number-country, call, conference, connect-app, + * incoming-phone-number, key, message, new-key, new-signing-key, + * notification, outgoing-caller-id, queue, recording, short-code, + * signing-key, token, transcription, validation-request, + * address-dependent-phone-number, available-phone-number-country-local, + * available-phone-number-country-mobile, + * available-phone-number-country-toll-free, call-feedback, + * call-feedback-summary, call-notification, call-recording, + * conference-participant, incoming-phone-number-local, + * incoming-phone-number-mobile, incoming-phone-number-toll-free, + * message-feedback, message-media, queue-member, recording-add-on-result, + * recording-transcription, recording-add-on-result-payload, + * sip-credential-list, sip-domain, sip-ip-access-control-list, + * sip-credential-list-credential, sip-domain-credential-list-mapping, + * sip-domain-ip-access-control-list-mapping, + * sip-ip-access-control-list-ip-address, usage-record, usage-trigger, + * usage-record-all-time, usage-record-daily, usage-record-last-month, + * usage-record-monthly, usage-record-this-month, usage-record-today, + * usage-record-yearly, usage-record-yesterday * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -14358,26 +14358,26 @@ public class StaticEndpointBuilders { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ACCOUNT, ADDRESS, APPLICATION, - * AVAILABLE_PHONE_NUMBER_COUNTRY, CALL, CONFERENCE, CONNECT_APP, - * INCOMING_PHONE_NUMBER, KEY, MESSAGE, NEW_KEY, NEW_SIGNING_KEY, - * NOTIFICATION, OUTGOING_CALLER_ID, QUEUE, RECORDING, SHORT_CODE, - * SIGNING_KEY, TOKEN, TRANSCRIPTION, VALIDATION_REQUEST, - * ADDRESS_DEPENDENT_PHONE_NUMBER, AVAILABLE_PHONE_NUMBER_COUNTRY_LOCAL, - * AVAILABLE_PHONE_NUMBER_COUNTRY_MOBILE, - * AVAILABLE_PHONE_NUMBER_COUNTRY_TOLL_FREE, CALL_FEEDBACK, - * CALL_FEEDBACK_SUMMARY, CALL_NOTIFICATION, CALL_RECORDING, - * CONFERENCE_PARTICIPANT, INCOMING_PHONE_NUMBER_LOCAL, - * INCOMING_PHONE_NUMBER_MOBILE, INCOMING_PHONE_NUMBER_TOLL_FREE, - * MESSAGE_FEEDBACK, MESSAGE_MEDIA, QUEUE_MEMBER, RECORDING_ADD_ON_RESULT, - * RECORDING_TRANSCRIPTION, RECORDING_ADD_ON_RESULT_PAYLOAD, - * SIP_CREDENTIAL_LIST, SIP_DOMAIN, SIP_IP_ACCESS_CONTROL_LIST, - * SIP_CREDENTIAL_LIST_CREDENTIAL, SIP_DOMAIN_CREDENTIAL_LIST_MAPPING, - * SIP_DOMAIN_IP_ACCESS_CONTROL_LIST_MAPPING, - * SIP_IP_ACCESS_CONTROL_LIST_IP_ADDRESS, USAGE_RECORD, USAGE_TRIGGER, - * USAGE_RECORD_ALL_TIME, USAGE_RECORD_DAILY, USAGE_RECORD_LAST_MONTH, - * USAGE_RECORD_MONTHLY, USAGE_RECORD_THIS_MONTH, USAGE_RECORD_TODAY, - * USAGE_RECORD_YEARLY, USAGE_RECORD_YESTERDAY + * The value can be one of: account, address, application, + * available-phone-number-country, call, conference, connect-app, + * incoming-phone-number, key, message, new-key, new-signing-key, + * notification, outgoing-caller-id, queue, recording, short-code, + * signing-key, token, transcription, validation-request, + * address-dependent-phone-number, available-phone-number-country-local, + * available-phone-number-country-mobile, + * available-phone-number-country-toll-free, call-feedback, + * call-feedback-summary, call-notification, call-recording, + * conference-participant, incoming-phone-number-local, + * incoming-phone-number-mobile, incoming-phone-number-toll-free, + * message-feedback, message-media, queue-member, recording-add-on-result, + * recording-transcription, recording-add-on-result-payload, + * sip-credential-list, sip-domain, sip-ip-access-control-list, + * sip-credential-list-credential, sip-domain-credential-list-mapping, + * sip-domain-ip-access-control-list-mapping, + * sip-ip-access-control-list-ip-address, usage-record, usage-trigger, + * usage-record-all-time, usage-record-daily, usage-record-last-month, + * usage-record-monthly, usage-record-this-month, usage-record-today, + * usage-record-yearly, usage-record-yesterday * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java index b8c03bb..fd2d97a 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java @@ -2456,7 +2456,7 @@ public interface AS2EndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: CLIENT, SERVER + * The value can be one of: client, server * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -2478,7 +2478,7 @@ public interface AS2EndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: CLIENT, SERVER + * The value can be one of: client, server * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BoxEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BoxEndpointBuilderFactory.java index 36f0d05..e739dd2 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BoxEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BoxEndpointBuilderFactory.java @@ -1648,8 +1648,8 @@ public interface BoxEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: COLLABORATIONS, COMMENTS, EVENT_LOGS, FILES, - * FOLDERS, GROUPS, EVENTS, SEARCH, TASKS, USERS + * The value can be one of: collaborations, comments, event-logs, files, + * folders, groups, events, search, tasks, users * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -1672,8 +1672,8 @@ public interface BoxEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: COLLABORATIONS, COMMENTS, EVENT_LOGS, FILES, - * FOLDERS, GROUPS, EVENTS, SEARCH, TASKS, USERS + * The value can be one of: collaborations, comments, event-logs, files, + * folders, groups, events, search, tasks, users * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BraintreeEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BraintreeEndpointBuilderFactory.java index 2b3ec39..e886f89 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BraintreeEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BraintreeEndpointBuilderFactory.java @@ -1416,11 +1416,11 @@ public interface BraintreeEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ADDON, ADDRESS, CLIENTTOKEN, - * CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE, DOCUMENTUPLOAD, - * MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE, PLAN, REPORT, - * SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION, - * WEBHOOKNOTIFICATION + * The value can be one of: addOn, address, clientToken, + * creditCardVerification, customer, discount, dispute, documentUpload, + * merchantAccount, paymentMethod, paymentMethodNonce, plan, report, + * settlementBatchSummary, subscription, transaction, + * webhookNotification * * Path parameter: methodName * What sub operation to use for the selected operation @@ -1442,11 +1442,11 @@ public interface BraintreeEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ADDON, ADDRESS, CLIENTTOKEN, - * CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE, DOCUMENTUPLOAD, - * MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE, PLAN, REPORT, - * SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION, - * WEBHOOKNOTIFICATION + * The value can be one of: addOn, address, clientToken, + * creditCardVerification, customer, discount, dispute, documentUpload, + * merchantAccount, paymentMethod, paymentMethodNonce, plan, report, + * settlementBatchSummary, subscription, transaction, + * webhookNotification * * Path parameter: methodName * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FhirEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FhirEndpointBuilderFactory.java index 23440fd..50c9be9 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FhirEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FhirEndpointBuilderFactory.java @@ -2353,9 +2353,9 @@ public interface FhirEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: CAPABILITIES, CREATE, DELETE, HISTORY, - * LOAD_PAGE, META, OPERATION, PATCH, READ, SEARCH, TRANSACTION, UPDATE, - * VALIDATE + * The value can be one of: capabilities, create, delete, history, + * load-page, meta, operation, patch, read, search, transaction, update, + * validate * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -2378,9 +2378,9 @@ public interface FhirEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: CAPABILITIES, CREATE, DELETE, HISTORY, - * LOAD_PAGE, META, OPERATION, PATCH, READ, SEARCH, TRANSACTION, UPDATE, - * VALIDATE + * The value can be one of: capabilities, create, delete, history, + * load-page, meta, operation, patch, read, search, transaction, update, + * validate * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleCalendarEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleCalendarEndpointBuilderFactory.java index 788aac2..290e0d2 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleCalendarEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleCalendarEndpointBuilderFactory.java @@ -1249,8 +1249,8 @@ public interface GoogleCalendarEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ACL, LIST, CALENDARS, CHANNELS, COLORS, - * FREEBUSY, EVENTS, SETTINGS + * The value can be one of: acl, list, calendars, channels, colors, + * freebusy, events, settings * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -1274,8 +1274,8 @@ public interface GoogleCalendarEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ACL, LIST, CALENDARS, CHANNELS, COLORS, - * FREEBUSY, EVENTS, SETTINGS + * The value can be one of: acl, list, calendars, channels, colors, + * freebusy, events, settings * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleMailEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleMailEndpointBuilderFactory.java index 46803e4..fb0e759 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleMailEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleMailEndpointBuilderFactory.java @@ -1082,8 +1082,8 @@ public interface GoogleMailEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: THREADS, MESSAGES, ATTACHMENTS, LABELS, - * HISTORY, DRAFTS, USERS + * The value can be one of: threads, messages, attachments, labels, + * history, drafts, users * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -1108,8 +1108,8 @@ public interface GoogleMailEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: THREADS, MESSAGES, ATTACHMENTS, LABELS, - * HISTORY, DRAFTS, USERS + * The value can be one of: threads, messages, attachments, labels, + * history, drafts, users * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleSheetsEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleSheetsEndpointBuilderFactory.java index 4adcebf..85ea99b 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleSheetsEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleSheetsEndpointBuilderFactory.java @@ -1092,7 +1092,7 @@ public interface GoogleSheetsEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: SPREADSHEETS, DATA + * The value can be one of: spreadsheets, data * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -1116,7 +1116,7 @@ public interface GoogleSheetsEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: SPREADSHEETS, DATA + * The value can be one of: spreadsheets, data * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Olingo2EndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Olingo2EndpointBuilderFactory.java index 3dc8af7..c0068f4 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Olingo2EndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Olingo2EndpointBuilderFactory.java @@ -1874,7 +1874,7 @@ public interface Olingo2EndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: DEFAULT + * The value can be one of: * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -1896,7 +1896,7 @@ public interface Olingo2EndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: DEFAULT + * The value can be one of: * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Olingo4EndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Olingo4EndpointBuilderFactory.java index f81d65a..2b6b57f 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Olingo4EndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Olingo4EndpointBuilderFactory.java @@ -1676,7 +1676,7 @@ public interface Olingo4EndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: DEFAULT + * The value can be one of: * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -1698,7 +1698,7 @@ public interface Olingo4EndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: DEFAULT + * The value can be one of: * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TwilioEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TwilioEndpointBuilderFactory.java index 774273b..56683b8 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TwilioEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TwilioEndpointBuilderFactory.java @@ -899,27 +899,27 @@ public interface TwilioEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ACCOUNT, ADDRESS, APPLICATION, - * AVAILABLE_PHONE_NUMBER_COUNTRY, CALL, CONFERENCE, CONNECT_APP, - * INCOMING_PHONE_NUMBER, KEY, MESSAGE, NEW_KEY, NEW_SIGNING_KEY, - * NOTIFICATION, OUTGOING_CALLER_ID, QUEUE, RECORDING, SHORT_CODE, - * SIGNING_KEY, TOKEN, TRANSCRIPTION, VALIDATION_REQUEST, - * ADDRESS_DEPENDENT_PHONE_NUMBER, AVAILABLE_PHONE_NUMBER_COUNTRY_LOCAL, - * AVAILABLE_PHONE_NUMBER_COUNTRY_MOBILE, - * AVAILABLE_PHONE_NUMBER_COUNTRY_TOLL_FREE, CALL_FEEDBACK, - * CALL_FEEDBACK_SUMMARY, CALL_NOTIFICATION, CALL_RECORDING, - * CONFERENCE_PARTICIPANT, INCOMING_PHONE_NUMBER_LOCAL, - * INCOMING_PHONE_NUMBER_MOBILE, INCOMING_PHONE_NUMBER_TOLL_FREE, - * MESSAGE_FEEDBACK, MESSAGE_MEDIA, QUEUE_MEMBER, - * RECORDING_ADD_ON_RESULT, RECORDING_TRANSCRIPTION, - * RECORDING_ADD_ON_RESULT_PAYLOAD, SIP_CREDENTIAL_LIST, SIP_DOMAIN, - * SIP_IP_ACCESS_CONTROL_LIST, SIP_CREDENTIAL_LIST_CREDENTIAL, - * SIP_DOMAIN_CREDENTIAL_LIST_MAPPING, - * SIP_DOMAIN_IP_ACCESS_CONTROL_LIST_MAPPING, - * SIP_IP_ACCESS_CONTROL_LIST_IP_ADDRESS, USAGE_RECORD, USAGE_TRIGGER, - * USAGE_RECORD_ALL_TIME, USAGE_RECORD_DAILY, USAGE_RECORD_LAST_MONTH, - * USAGE_RECORD_MONTHLY, USAGE_RECORD_THIS_MONTH, USAGE_RECORD_TODAY, - * USAGE_RECORD_YEARLY, USAGE_RECORD_YESTERDAY + * The value can be one of: account, address, application, + * available-phone-number-country, call, conference, connect-app, + * incoming-phone-number, key, message, new-key, new-signing-key, + * notification, outgoing-caller-id, queue, recording, short-code, + * signing-key, token, transcription, validation-request, + * address-dependent-phone-number, available-phone-number-country-local, + * available-phone-number-country-mobile, + * available-phone-number-country-toll-free, call-feedback, + * call-feedback-summary, call-notification, call-recording, + * conference-participant, incoming-phone-number-local, + * incoming-phone-number-mobile, incoming-phone-number-toll-free, + * message-feedback, message-media, queue-member, + * recording-add-on-result, recording-transcription, + * recording-add-on-result-payload, sip-credential-list, sip-domain, + * sip-ip-access-control-list, sip-credential-list-credential, + * sip-domain-credential-list-mapping, + * sip-domain-ip-access-control-list-mapping, + * sip-ip-access-control-list-ip-address, usage-record, usage-trigger, + * usage-record-all-time, usage-record-daily, usage-record-last-month, + * usage-record-monthly, usage-record-this-month, usage-record-today, + * usage-record-yearly, usage-record-yesterday * * Path parameter: methodName (required) * What sub operation to use for the selected operation @@ -942,27 +942,27 @@ public interface TwilioEndpointBuilderFactory { * * Path parameter: apiName (required) * What kind of operation to perform - * The value can be one of: ACCOUNT, ADDRESS, APPLICATION, - * AVAILABLE_PHONE_NUMBER_COUNTRY, CALL, CONFERENCE, CONNECT_APP, - * INCOMING_PHONE_NUMBER, KEY, MESSAGE, NEW_KEY, NEW_SIGNING_KEY, - * NOTIFICATION, OUTGOING_CALLER_ID, QUEUE, RECORDING, SHORT_CODE, - * SIGNING_KEY, TOKEN, TRANSCRIPTION, VALIDATION_REQUEST, - * ADDRESS_DEPENDENT_PHONE_NUMBER, AVAILABLE_PHONE_NUMBER_COUNTRY_LOCAL, - * AVAILABLE_PHONE_NUMBER_COUNTRY_MOBILE, - * AVAILABLE_PHONE_NUMBER_COUNTRY_TOLL_FREE, CALL_FEEDBACK, - * CALL_FEEDBACK_SUMMARY, CALL_NOTIFICATION, CALL_RECORDING, - * CONFERENCE_PARTICIPANT, INCOMING_PHONE_NUMBER_LOCAL, - * INCOMING_PHONE_NUMBER_MOBILE, INCOMING_PHONE_NUMBER_TOLL_FREE, - * MESSAGE_FEEDBACK, MESSAGE_MEDIA, QUEUE_MEMBER, - * RECORDING_ADD_ON_RESULT, RECORDING_TRANSCRIPTION, - * RECORDING_ADD_ON_RESULT_PAYLOAD, SIP_CREDENTIAL_LIST, SIP_DOMAIN, - * SIP_IP_ACCESS_CONTROL_LIST, SIP_CREDENTIAL_LIST_CREDENTIAL, - * SIP_DOMAIN_CREDENTIAL_LIST_MAPPING, - * SIP_DOMAIN_IP_ACCESS_CONTROL_LIST_MAPPING, - * SIP_IP_ACCESS_CONTROL_LIST_IP_ADDRESS, USAGE_RECORD, USAGE_TRIGGER, - * USAGE_RECORD_ALL_TIME, USAGE_RECORD_DAILY, USAGE_RECORD_LAST_MONTH, - * USAGE_RECORD_MONTHLY, USAGE_RECORD_THIS_MONTH, USAGE_RECORD_TODAY, - * USAGE_RECORD_YEARLY, USAGE_RECORD_YESTERDAY + * The value can be one of: account, address, application, + * available-phone-number-country, call, conference, connect-app, + * incoming-phone-number, key, message, new-key, new-signing-key, + * notification, outgoing-caller-id, queue, recording, short-code, + * signing-key, token, transcription, validation-request, + * address-dependent-phone-number, available-phone-number-country-local, + * available-phone-number-country-mobile, + * available-phone-number-country-toll-free, call-feedback, + * call-feedback-summary, call-notification, call-recording, + * conference-participant, incoming-phone-number-local, + * incoming-phone-number-mobile, incoming-phone-number-toll-free, + * message-feedback, message-media, queue-member, + * recording-add-on-result, recording-transcription, + * recording-add-on-result-payload, sip-credential-list, sip-domain, + * sip-ip-access-control-list, sip-credential-list-credential, + * sip-domain-credential-list-mapping, + * sip-domain-ip-access-control-list-mapping, + * sip-ip-access-control-list-ip-address, usage-record, usage-trigger, + * usage-record-all-time, usage-record-daily, usage-record-last-month, + * usage-record-monthly, usage-record-this-month, usage-record-today, + * usage-record-yearly, usage-record-yesterday * * Path parameter: methodName (required) * What sub operation to use for the selected operation diff --git a/tooling/maven/camel-api-component-maven-plugin/src/main/resources/api-name-enum.vm b/tooling/maven/camel-api-component-maven-plugin/src/main/resources/api-name-enum.vm index 4ca31fc..7c53852 100644 --- a/tooling/maven/camel-api-component-maven-plugin/src/main/resources/api-name-enum.vm +++ b/tooling/maven/camel-api-component-maven-plugin/src/main/resources/api-name-enum.vm @@ -62,6 +62,11 @@ public enum $apiNameEnum implements ApiName { return name; } + @Override + public String toString() { + return name; + } + public static $apiNameEnum fromValue(String value) throws IllegalArgumentException { for (int i = 0; i < VALUES.length; i++) { if (VALUES[i].name.equals(value)) {