--- apiVersion: v1 kind: List items: - apiVersion: v1 kind: ConfigMap metadata: labels: funktion.fabric8.io/kind: Connector provider: fabric8 project: connector-box version: 1.1.41 group: io.fabric8.funktion.connector name: box data: deployment.yml: | --- apiVersion: extensions/v1beta1 kind: Deployment metadata: labels: funktion.fabric8.io/kind: Subscription connector: box spec: replicas: 1 template: metadata: labels: funktion.fabric8.io/kind: Subscription connector: box spec: containers: - image: funktion/connector-box:1.1.41 name: connector schema.yml: | --- component: kind: component scheme: box syntax: box:apiName/methodName title: Box description: For uploading downloading and managing files folders groups collaborations etc on box DOT com. label: api,file,cloud deprecated: false async: false lenientProperties: true javaType: org.apache.camel.component.box.BoxComponent groupId: org.apache.camel artifactId: camel-box version: 2.18.1 componentProperties: configuration: kind: property type: object javaType: org.apache.camel.component.box.BoxConfiguration deprecated: false secret: false description: To use the shared configuration order: 0 properties: apiName: kind: path group: common required: true type: string javaType: org.apache.camel.component.box.internal.BoxApiName enum: - COLLABORATIONS - COMMENTS - EVENTS - FILES - FOLDERS - GROUPS - POLL_EVENTS - SEARCH - SHARED_COMMENTS - SHARED_FILES - SHARED_FOLDERS - SHARED_ITEMS - USERS deprecated: false secret: false description: What kind of operation to perform order: 0 methodName: kind: path group: common required: true type: string javaType: java.lang.String deprecated: false secret: false description: What sub operation to use for the selected operation order: 1 clientId: kind: parameter group: common type: string javaType: java.lang.String deprecated: false secret: false description: Box application client ID order: 2 inBody: kind: parameter group: common 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 order: 3 loginTimeout: kind: parameter group: common type: integer javaType: int deprecated: false secret: false defaultValue: "30" description: Amount of time the component will wait for a response from Box.com default is 30 seconds order: 4 revokeOnShutdown: kind: parameter group: common type: boolean javaType: boolean deprecated: false secret: false defaultValue: false description: Flag to revoke OAuth refresh token on route shutdown default false. Will require a fresh refresh token on restart using either a custom IAuthSecureStorage or automatic component login by providing a user password order: 5 sharedLink: kind: parameter group: common type: string javaType: java.lang.String deprecated: false secret: false description: Box shared link for shared endpoints can be a link for a shared comment file or folder order: 6 sharedPassword: kind: parameter group: common type: string javaType: java.lang.String deprecated: false secret: false description: Password associated with the shared link MUST be provided with sharedLink order: 7 bridgeErrorHandler: kind: parameter group: consumer label: consumer type: boolean javaType: boolean optionalPrefix: consumer. 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 by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions that will be logged at WARN/ERROR level and ignored. order: 8 exceptionHandler: kind: parameter group: consumer (advanced) label: consumer,advanced type: object javaType: org.apache.camel.spi.ExceptionHandler optionalPrefix: consumer. deprecated: false secret: false description: To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions that will be logged at WARN/ERROR level and ignored. order: 9 exchangePattern: kind: parameter group: consumer (advanced) label: consumer,advanced type: string javaType: org.apache.camel.ExchangePattern enum: - InOnly - RobustInOnly - InOut - InOptionalOut - OutOnly - RobustOutOnly - OutIn - OutOptionalIn deprecated: false secret: false description: Sets the exchange pattern when the consumer creates an exchange. order: 10 boxConfig: kind: parameter group: advanced label: advanced type: object javaType: com.box.boxjavalibv2.IBoxConfig deprecated: false secret: false description: Custom Box SDK configuration not required normally order: 11 connectionManagerBuilder: kind: parameter group: advanced label: advanced type: object javaType: com.box.boxjavalibv2.BoxConnectionManagerBuilder deprecated: false secret: false description: Custom Box connection manager builder used to override default settings like max connections for underlying HttpClient. order: 12 httpParams: kind: parameter group: advanced label: advanced type: object javaType: java.util.Map deprecated: false secret: false description: Custom HTTP params for settings like proxy host order: 13 refreshListener: kind: parameter group: advanced label: advanced type: object javaType: com.box.boxjavalibv2.authorization.OAuthRefreshListener deprecated: false secret: false description: OAuth listener for token updates if the Camel application needs to use the access token outside the route order: 14 synchronous: kind: parameter group: advanced label: advanced type: boolean javaType: boolean deprecated: false secret: false defaultValue: false description: Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). order: 15 authSecureStorage: kind: parameter group: security label: advanced,security type: object javaType: com.box.boxjavalibv2.authorization.IAuthSecureStorage deprecated: false secret: false description: OAuth Secure Storage callback can be used to provide and or save OAuth tokens. The callback may return null on first call to allow the component to login and authorize application and obtain an OAuth token which can then be saved in the secure storage. For the component to be able to create a token automatically a user password must be provided. order: 16 clientSecret: kind: parameter group: security label: security type: string javaType: java.lang.String deprecated: false secret: true description: Box application client secret order: 17 sslContextParameters: kind: parameter group: security label: security type: object javaType: org.apache.camel.util.jsse.SSLContextParameters deprecated: false secret: false description: To configure security using SSLContextParameters. order: 18 userName: kind: parameter group: security label: security type: string javaType: java.lang.String deprecated: false secret: true description: Box user name MUST be provided order: 19 userPassword: kind: parameter group: security label: security type: string javaType: java.lang.String deprecated: false secret: true description: Box user password MUST be provided if authSecureStorage is not set or returns null on first call order: 20 documentation.adoc: "[[Box-BoxComponent]]\nBox Component\n~~~~~~~~~~~~~\n\n*Available\ \ as of Camel 2.14*\n\nThe Box component provides access to all of the Box.com\ \ APIs accessible\nusing https://github.com/box/box-java-sdk-v2/[box-java-sdk-v2].\ \ It\nallows producing messages to upload and download files, create, edit,\n\ and manage folders, etc. It also supports APIs that allow polling for\nupdates\ \ to user accounts and even changes to enterprise accounts, etc.\n\nBox.com\ \ requires the use of OAuth2.0 for all client application\nauthentication. In\ \ order to use camel-box with your account, you'll need\nto create a new application\ \ within Box.com at\nhttps://app.box.com/developers/services/edit/[https://app.box.com/developers/services/edit/].\n\ The Box application's client id and secret will allow access to Box APIs\nwhich\ \ require a current user. A user access token is generated and\nmanaged by the\ \ API for an end user. Alternatively the Camel application\ncan register an\ \ implementation\nof??com.box.boxjavalibv2.authorization.IAuthSecureStorage\ \ to provide\nan??com.box.boxjavalibv2.dao.IAuthData OAuth token.\n\nMaven users\ \ will need to add the following dependency to their pom.xml\nfor this component:\n\ \n[source,java]\n-------------------------------------------\n \n\ \ org.apache.camel\n camel-box\n\ \ ${camel-version}\n \n-------------------------------------------\n\ \n[[Box-Options]]\nBox Options\n^^^^^^^^^^^\n\n\n\n\n\n// component options:\ \ START\nThe Box component supports 1 options which are listed below.\n\n\n\n\ {% raw %}\n[width=\"100%\",cols=\"2,1m,7\",options=\"header\"]\n|=======================================================================\n\ | Name | Java Type | Description\n| configuration | BoxConfiguration | To use\ \ the shared configuration\n|=======================================================================\n\ {% endraw %}\n// component options: END\n\n\n\n\n\n\n\n// endpoint options:\ \ START\nThe Box component supports 21 endpoint options which are listed below:\n\ \n{% raw %}\n[width=\"100%\",cols=\"2,1,1m,1m,5\",options=\"header\"]\n|=======================================================================\n\ | Name | Group | Default | Java Type | Description\n| apiName | common | |\ \ BoxApiName | *Required* What kind of operation to perform\n| methodName |\ \ common | | String | *Required* What sub operation to use for the selected\ \ operation\n| clientId | common | | String | Box application client ID\n|\ \ inBody | common | | String | Sets the name of a parameter to be passed in\ \ the exchange In Body\n| loginTimeout | common | 30 | int | Amount of time\ \ the component will wait for a response from Box.com default is 30 seconds\n\ | revokeOnShutdown | common | false | boolean | Flag to revoke OAuth refresh\ \ token on route shutdown default false. Will require a fresh refresh token\ \ on restart using either a custom IAuthSecureStorage or automatic component\ \ login by providing a user password\n| sharedLink | common | | String | Box\ \ shared link for shared endpoints can be a link for a shared comment file or\ \ folder\n| sharedPassword | common | | String | Password associated with the\ \ shared link MUST be provided with sharedLink\n| bridgeErrorHandler | consumer\ \ | false | boolean | 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 by the routing Error Handler. By default the consumer will use\ \ the org.apache.camel.spi.ExceptionHandler to deal with exceptions that will\ \ be logged at WARN/ERROR level and ignored.\n| exceptionHandler | consumer\ \ (advanced) | | ExceptionHandler | To let the consumer use a custom ExceptionHandler.\ \ Notice if the option bridgeErrorHandler is enabled then this options is not\ \ in use. By default the consumer will deal with exceptions that will be logged\ \ at WARN/ERROR level and ignored.\n| exchangePattern | consumer (advanced)\ \ | | ExchangePattern | Sets the exchange pattern when the consumer creates\ \ an exchange.\n| boxConfig | advanced | | IBoxConfig | Custom Box SDK configuration\ \ not required normally\n| connectionManagerBuilder | advanced | | BoxConnectionManagerBuilder\ \ | Custom Box connection manager builder used to override default settings\ \ like max connections for underlying HttpClient.\n| httpParams | advanced |\ \ | Map | Custom HTTP params for settings like proxy host\n| refreshListener\ \ | advanced | | OAuthRefreshListener | OAuth listener for token updates if\ \ the Camel application needs to use the access token outside the route\n| synchronous\ \ | advanced | false | boolean | Sets whether synchronous processing should\ \ be strictly used or Camel is allowed to use asynchronous processing (if supported).\n\ | authSecureStorage | security | | IAuthSecureStorage | OAuth Secure Storage\ \ callback can be used to provide and or save OAuth tokens. The callback may\ \ return null on first call to allow the component to login and authorize application\ \ and obtain an OAuth token which can then be saved in the secure storage. For\ \ the component to be able to create a token automatically a user password must\ \ be provided.\n| clientSecret | security | | String | Box application client\ \ secret\n| sslContextParameters | security | | SSLContextParameters | To configure\ \ security using SSLContextParameters.\n| userName | security | | String |\ \ Box user name MUST be provided\n| userPassword | security | | String | Box\ \ user password MUST be provided if authSecureStorage is not set or returns\ \ null on first call\n|=======================================================================\n\ {% endraw %}\n// endpoint options: END\n\n\n\n[[Box-URIformat]]\nURI format\n\ ^^^^^^^^^^\n\n[source,java]\n--------------------------------------------\n\ \ box://endpoint-prefix/endpoint?[options]\n--------------------------------------------\n\ \nEndpoint prefix can be one of:\n\n* collaborations\n* comments\n* events\n\ * files\n* folders\n* groups\n* poll-events\n* search\n* shared-comments\n*\ \ shared-files\n* shared-folders\n* shared-items\n* users\n\n[[Box-BoxComponent.1]]\n\ BoxComponent\n^^^^^^^^^^^^\n\nThe Box Component can be configured with the options\ \ below. These\noptions can be provided using the component's bean\nproperty?\ ?*`configuration`*??of\ntype??*`org.apache.camel.component.box.BoxConfiguration`*.\ \ These options\ncan also be specified in the endpoint URI.??\n\n[width=\"100%\"\ ,cols=\"10%,10%,80%\",options=\"header\",]\n|=======================================================================\n\ |Option |Type |Description\n\n|authSecureStorage |com.box.boxjavalibv2.authorization.IAuthSecureStorage\ \ |OAuth Secure Storage callback, can be used to provide and or save OAuth\n\ tokens. The callback may return null on first call to allow the\ncomponent to\ \ login and authorize application and obtain an OAuth token,\nwhich can then\ \ be saved in the secure storage. For the component to be\nable to create a\ \ token automatically a user password must be provided.\n\n|boxConfig |com.box.boxjavalibv2.IBoxConfig\ \ |Custom Box SDK configuration, not required normally\n\n|clientId |String\ \ |Box application client ID\n\n|clientSecret |String |Box application client\ \ secret\n\n|connectionManagerBuilder |com.box.boxjavalibv2.BoxConnectionManagerBuilder\ \ |Custom Box connection manager builder, used to override default settings\n\ like max connections for underlying HttpClient.\n\n|httpParams |java.util.Map\ \ |Custom HTTP params for settings like proxy host\n\n|loginTimeout |int |amount\ \ of time the component will wait for a response from Box.com,\ndefault is 30\ \ seconds\n\n|refreshListener |com.box.boxjavalibv2.authorization.OAuthRefreshListener\ \ |OAuth listener for token updates, if the Camel application needs to use\n\ the access token outside the route\n\n|revokeOnShutdown |boolean |Flag to revoke\ \ OAuth refresh token on route shutdown, default false.\nWill require a fresh\ \ refresh token on restart using either a custom\nIAuthSecureStorage or automatic\ \ component login by providing a user\npassword\n\n|sharedLink |String |Box\ \ shared link for shared-* endpoints, can be a link for a shared\ncomment, file\ \ or folder\n\n|sharedPassword |String |Password associated with the shared\ \ link, MUST be provided with\nsharedLink\n\n|userName |String |Box user name,\ \ MUST be provided\n\n|userPassword |String |Box user password, MUST be provided\ \ if authSecureStorage is not set, or\nreturns null on first call\n|=======================================================================\n\ \n[[Box-ProducerEndpoints:]]\nProducer Endpoints:\n^^^^^^^^^^^^^^^^^^^\n\nProducer\ \ endpoints can use endpoint prefixes followed by endpoint names\nand associated\ \ options described next. A shorthand alias can be used for\nsome endpoints.\ \ The endpoint URI MUST contain a prefix.\n\nEndpoint options that are not mandatory\ \ are denoted by *[]*. When there\nare no mandatory options for an endpoint,\ \ one of the set of *[]* options\nMUST be provided. Producer endpoints can also\ \ use a special\noption??*`inBody`*??that in turn should contain the name of\ \ the endpoint\noption whose value will be contained in the Camel Exchange In\ \ message.\n\nAny of the endpoint options can be provided in either the endpoint\ \ URI,\nor dynamically in a message header. The message header name must be\ \ of\nthe format??*`CamelBox.