github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/examples/register-application/register-application-with-bundles.graphql (about)

     1  # Code generated by Compass integration tests, DO NOT EDIT.
     2  mutation {
     3    result: registerApplication(
     4      in: {
     5        name: "create-application-with-documents"
     6        providerName: "compass"
     7        labels: {
     8          applicationType: "SAP Cloud for Customer"
     9          scenarios: ["test-scenario"]
    10        }
    11        bundles: [
    12          {
    13            name: "foo"
    14            description: "Foo bar"
    15            apiDefinitions: [
    16              {
    17                name: "comments-v1-foo"
    18                description: "api for adding comments"
    19                targetURL: "http://mywordpress.com/comments"
    20                group: "comments"
    21                spec: {
    22                  data: "{\"openapi\":\"3.0.2\"}"
    23                  type: OPEN_API
    24                  format: YAML
    25                }
    26                version: {
    27                  value: "v1"
    28                  deprecated: true
    29                  deprecatedSince: "v5"
    30                  forRemoval: false
    31                }
    32              }
    33              {
    34                name: "reviews-v1-foo"
    35                targetURL: "http://mywordpress.com/reviews"
    36                spec: {
    37                  type: ODATA
    38                  format: JSON
    39                  fetchRequest: {
    40                    url: "http://mywordpress.com/apis/foo"
    41                    auth: {
    42                      credential: {
    43                        basic: { username: "admin", password: "secret" }
    44                      }
    45                      additionalHeadersSerialized: "{\"header-A\":[\"ha1\",\"ha2\"],\"header-B\":[\"hb1\",\"hb2\"]}"
    46                      additionalQueryParamsSerialized: "{\"qA\":[\"qa1\",\"qa2\"],\"qB\":[\"qb1\",\"qb2\"]}"
    47                    }
    48                    mode: BUNDLE
    49                    filter: "odata.json"
    50                  }
    51                }
    52              }
    53              {
    54                name: "xml-foo"
    55                targetURL: "http://mywordpress.com/xml"
    56                spec: { data: "odata", type: ODATA, format: XML }
    57              }
    58            ]
    59            eventDefinitions: [
    60              {
    61                name: "comments-v1-foo"
    62                description: "comments events"
    63                spec: {
    64                  data: "{\"asyncapi\":\"1.2.0\"}"
    65                  type: ASYNC_API
    66                  format: YAML
    67                }
    68                group: "comments"
    69                version: {
    70                  value: "v1"
    71                  deprecated: true
    72                  deprecatedSince: "v5"
    73                  forRemoval: false
    74                }
    75              }
    76              {
    77                name: "reviews-v1-foo"
    78                description: "review events"
    79                spec: {
    80                  type: ASYNC_API
    81                  fetchRequest: {
    82                    url: "http://mywordpress.com/events/foo"
    83                    auth: {
    84                      credential: {
    85                        oauth: {
    86                          clientId: "clientid"
    87                          clientSecret: "grazynasecret"
    88                          url: "url.net"
    89                        }
    90                      }
    91                      additionalHeadersSerialized: "{\"header-A\":[\"ha1\",\"ha2\"],\"header-B\":[\"hb1\",\"hb2\"]}"
    92                      additionalQueryParamsSerialized: "{\"qA\":[\"qa1\",\"qa2\"],\"qB\":[\"qb1\",\"qb2\"]}"
    93                    }
    94                    mode: BUNDLE
    95                    filter: "async.json"
    96                  }
    97                  format: YAML
    98                }
    99              }
   100            ]
   101            documents: [
   102              {
   103                title: "Readme-foo"
   104                displayName: "display-name"
   105                description: "Detailed description of project"
   106                format: MARKDOWN
   107                fetchRequest: {
   108                  url: "kyma-project.io"
   109                  auth: {
   110                    credential: {
   111                      basic: { username: "admin", password: "secret" }
   112                    }
   113                    additionalHeadersSerialized: "{\"header-A\":[\"ha1\",\"ha2\"],\"header-B\":[\"hb1\",\"hb2\"]}"
   114                    additionalQueryParamsSerialized: "{\"qA\":[\"qa1\",\"qa2\"],\"qB\":[\"qb1\",\"qb2\"]}"
   115                  }
   116                  mode: BUNDLE
   117                  filter: "/docs/README.md"
   118                }
   119              }
   120              {
   121                title: "Troubleshooting-foo"
   122                displayName: "display-name"
   123                description: "Troubleshooting description"
   124                format: MARKDOWN
   125                data: "No problems, everything works on my machine"
   126              }
   127            ]
   128          }
   129          {
   130            name: "bar"
   131            description: "Foo bar"
   132            apiDefinitions: [
   133              {
   134                name: "comments-v1-bar"
   135                description: "api for adding comments"
   136                targetURL: "http://mywordpress.com/comments"
   137                group: "comments"
   138                spec: {
   139                  data: "{\"openapi\":\"3.0.2\"}"
   140                  type: OPEN_API
   141                  format: YAML
   142                }
   143                version: {
   144                  value: "v1"
   145                  deprecated: true
   146                  deprecatedSince: "v5"
   147                  forRemoval: false
   148                }
   149              }
   150              {
   151                name: "reviews-v1-bar"
   152                targetURL: "http://mywordpress.com/reviews"
   153                spec: {
   154                  type: ODATA
   155                  format: JSON
   156                  fetchRequest: {
   157                    url: "http://mywordpress.com/apis/bar"
   158                    auth: {
   159                      credential: {
   160                        basic: { username: "admin", password: "secret" }
   161                      }
   162                      additionalHeadersSerialized: "{\"header-A\":[\"ha1\",\"ha2\"],\"header-B\":[\"hb1\",\"hb2\"]}"
   163                      additionalQueryParamsSerialized: "{\"qA\":[\"qa1\",\"qa2\"],\"qB\":[\"qb1\",\"qb2\"]}"
   164                    }
   165                    mode: BUNDLE
   166                    filter: "odata.json"
   167                  }
   168                }
   169              }
   170              {
   171                name: "xml-bar"
   172                targetURL: "http://mywordpress.com/xml"
   173                spec: { data: "odata", type: ODATA, format: XML }
   174              }
   175            ]
   176            eventDefinitions: [
   177              {
   178                name: "comments-v1-bar"
   179                description: "comments events"
   180                spec: {
   181                  data: "{\"asyncapi\":\"1.2.0\"}"
   182                  type: ASYNC_API
   183                  format: YAML
   184                }
   185                group: "comments"
   186                version: {
   187                  value: "v1"
   188                  deprecated: true
   189                  deprecatedSince: "v5"
   190                  forRemoval: false
   191                }
   192              }
   193              {
   194                name: "reviews-v1-bar"
   195                description: "review events"
   196                spec: {
   197                  type: ASYNC_API
   198                  fetchRequest: {
   199                    url: "http://mywordpress.com/events/bar"
   200                    auth: {
   201                      credential: {
   202                        oauth: {
   203                          clientId: "clientid"
   204                          clientSecret: "grazynasecret"
   205                          url: "url.net"
   206                        }
   207                      }
   208                      additionalHeadersSerialized: "{\"header-A\":[\"ha1\",\"ha2\"],\"header-B\":[\"hb1\",\"hb2\"]}"
   209                      additionalQueryParamsSerialized: "{\"qA\":[\"qa1\",\"qa2\"],\"qB\":[\"qb1\",\"qb2\"]}"
   210                    }
   211                    mode: BUNDLE
   212                    filter: "async.json"
   213                  }
   214                  format: YAML
   215                }
   216              }
   217            ]
   218            documents: [
   219              {
   220                title: "Readme-bar"
   221                displayName: "display-name"
   222                description: "Detailed description of project"
   223                format: MARKDOWN
   224                fetchRequest: {
   225                  url: "kyma-project.io"
   226                  auth: {
   227                    credential: {
   228                      basic: { username: "admin", password: "secret" }
   229                    }
   230                    additionalHeadersSerialized: "{\"header-A\":[\"ha1\",\"ha2\"],\"header-B\":[\"hb1\",\"hb2\"]}"
   231                    additionalQueryParamsSerialized: "{\"qA\":[\"qa1\",\"qa2\"],\"qB\":[\"qb1\",\"qb2\"]}"
   232                  }
   233                  mode: BUNDLE
   234                  filter: "/docs/README.md"
   235                }
   236              }
   237              {
   238                title: "Troubleshooting-bar"
   239                displayName: "display-name"
   240                description: "Troubleshooting description"
   241                format: MARKDOWN
   242                data: "No problems, everything works on my machine"
   243              }
   244            ]
   245          }
   246        ]
   247      }
   248    ) {
   249      id
   250      name
   251      providerName
   252      description
   253      baseUrl
   254      systemNumber
   255      systemStatus
   256      integrationSystemID
   257      applicationTemplateID
   258      labels
   259      deletedAt
   260      updatedAt
   261      error
   262      status {
   263        condition
   264        timestamp
   265      }
   266      webhooks {
   267        id
   268        applicationID
   269        applicationTemplateID
   270        runtimeID
   271        formationTemplateID
   272        type
   273        mode
   274        correlationIdKey
   275        retryInterval
   276        timeout
   277        url
   278        urlTemplate
   279        inputTemplate
   280        headerTemplate
   281        outputTemplate
   282        statusTemplate
   283        auth {
   284          credential {
   285            ... on BasicCredentialData {
   286              username
   287              password
   288            }
   289            ... on CertificateOAuthCredentialData {
   290              clientId
   291              certificate
   292              url
   293            }
   294            ... on OAuthCredentialData {
   295              clientId
   296              clientSecret
   297              url
   298            }
   299          }
   300          oneTimeToken {
   301            __typename
   302            token
   303            used
   304            expiresAt
   305          }
   306          certCommonName
   307          accessStrategy
   308          additionalHeaders
   309          additionalQueryParams
   310          requestAuth {
   311            csrf {
   312              tokenEndpointURL
   313              credential {
   314                ... on BasicCredentialData {
   315                  username
   316                  password
   317                }
   318                ... on OAuthCredentialData {
   319                  clientId
   320                  clientSecret
   321                  url
   322                }
   323                ... on CertificateOAuthCredentialData {
   324                  clientId
   325                  certificate
   326                  url
   327                }
   328              }
   329              additionalHeaders
   330              additionalQueryParams
   331            }
   332          }
   333        }
   334        createdAt
   335      }
   336      healthCheckURL
   337      bundles {
   338        data {
   339          id
   340          name
   341          description
   342          instanceAuthRequestInputSchema
   343          instanceAuths {
   344            id
   345            context
   346            inputParams
   347            auth {
   348              credential {
   349                ... on BasicCredentialData {
   350                  username
   351                  password
   352                }
   353                ... on CertificateOAuthCredentialData {
   354                  clientId
   355                  certificate
   356                  url
   357                }
   358                ... on OAuthCredentialData {
   359                  clientId
   360                  clientSecret
   361                  url
   362                }
   363              }
   364              oneTimeToken {
   365                __typename
   366                token
   367                used
   368                expiresAt
   369              }
   370              certCommonName
   371              accessStrategy
   372              additionalHeaders
   373              additionalQueryParams
   374              requestAuth {
   375                csrf {
   376                  tokenEndpointURL
   377                  credential {
   378                    ... on BasicCredentialData {
   379                      username
   380                      password
   381                    }
   382                    ... on OAuthCredentialData {
   383                      clientId
   384                      clientSecret
   385                      url
   386                    }
   387                    ... on CertificateOAuthCredentialData {
   388                      clientId
   389                      certificate
   390                      url
   391                    }
   392                  }
   393                  additionalHeaders
   394                  additionalQueryParams
   395                }
   396              }
   397            }
   398            status {
   399              condition
   400              timestamp
   401              message
   402              reason
   403            }
   404            runtimeID
   405            runtimeContextID
   406          }
   407          defaultInstanceAuth {
   408            credential {
   409              ... on BasicCredentialData {
   410                username
   411                password
   412              }
   413              ... on CertificateOAuthCredentialData {
   414                clientId
   415                certificate
   416                url
   417              }
   418              ... on OAuthCredentialData {
   419                clientId
   420                clientSecret
   421                url
   422              }
   423            }
   424            oneTimeToken {
   425              __typename
   426              token
   427              used
   428              expiresAt
   429            }
   430            certCommonName
   431            accessStrategy
   432            additionalHeaders
   433            additionalQueryParams
   434            requestAuth {
   435              csrf {
   436                tokenEndpointURL
   437                credential {
   438                  ... on BasicCredentialData {
   439                    username
   440                    password
   441                  }
   442                  ... on OAuthCredentialData {
   443                    clientId
   444                    clientSecret
   445                    url
   446                  }
   447                  ... on CertificateOAuthCredentialData {
   448                    clientId
   449                    certificate
   450                    url
   451                  }
   452                }
   453                additionalHeaders
   454                additionalQueryParams
   455              }
   456            }
   457          }
   458          apiDefinitions {
   459            data {
   460              id
   461              name
   462              description
   463              spec {
   464                id
   465                data
   466                format
   467                type
   468                fetchRequest {
   469                  url
   470                  auth {
   471                    credential {
   472                      ... on BasicCredentialData {
   473                        username
   474                        password
   475                      }
   476                      ... on CertificateOAuthCredentialData {
   477                        clientId
   478                        certificate
   479                        url
   480                      }
   481                      ... on OAuthCredentialData {
   482                        clientId
   483                        clientSecret
   484                        url
   485                      }
   486                    }
   487                    oneTimeToken {
   488                      __typename
   489                      token
   490                      used
   491                      expiresAt
   492                    }
   493                    certCommonName
   494                    accessStrategy
   495                    additionalHeaders
   496                    additionalQueryParams
   497                    requestAuth {
   498                      csrf {
   499                        tokenEndpointURL
   500                        credential {
   501                          ... on BasicCredentialData {
   502                            username
   503                            password
   504                          }
   505                          ... on OAuthCredentialData {
   506                            clientId
   507                            clientSecret
   508                            url
   509                          }
   510                          ... on CertificateOAuthCredentialData {
   511                            clientId
   512                            certificate
   513                            url
   514                          }
   515                        }
   516                        additionalHeaders
   517                        additionalQueryParams
   518                      }
   519                    }
   520                  }
   521                  mode
   522                  filter
   523                  status {
   524                    condition
   525                    message
   526                    timestamp
   527                  }
   528                }
   529              }
   530              targetURL
   531              group
   532              version {
   533                value
   534                deprecated
   535                deprecatedSince
   536                forRemoval
   537              }
   538            }
   539            pageInfo {
   540              startCursor
   541              endCursor
   542              hasNextPage
   543            }
   544            totalCount
   545          }
   546          eventDefinitions {
   547            data {
   548              id
   549              name
   550              description
   551              group
   552              spec {
   553                id
   554                data
   555                type
   556                format
   557                fetchRequest {
   558                  url
   559                  auth {
   560                    credential {
   561                      ... on BasicCredentialData {
   562                        username
   563                        password
   564                      }
   565                      ... on CertificateOAuthCredentialData {
   566                        clientId
   567                        certificate
   568                        url
   569                      }
   570                      ... on OAuthCredentialData {
   571                        clientId
   572                        clientSecret
   573                        url
   574                      }
   575                    }
   576                    oneTimeToken {
   577                      __typename
   578                      token
   579                      used
   580                      expiresAt
   581                    }
   582                    certCommonName
   583                    accessStrategy
   584                    additionalHeaders
   585                    additionalQueryParams
   586                    requestAuth {
   587                      csrf {
   588                        tokenEndpointURL
   589                        credential {
   590                          ... on BasicCredentialData {
   591                            username
   592                            password
   593                          }
   594                          ... on OAuthCredentialData {
   595                            clientId
   596                            clientSecret
   597                            url
   598                          }
   599                          ... on CertificateOAuthCredentialData {
   600                            clientId
   601                            certificate
   602                            url
   603                          }
   604                        }
   605                        additionalHeaders
   606                        additionalQueryParams
   607                      }
   608                    }
   609                  }
   610                  mode
   611                  filter
   612                  status {
   613                    condition
   614                    message
   615                    timestamp
   616                  }
   617                }
   618              }
   619              version {
   620                value
   621                deprecated
   622                deprecatedSince
   623                forRemoval
   624              }
   625            }
   626            pageInfo {
   627              startCursor
   628              endCursor
   629              hasNextPage
   630            }
   631            totalCount
   632          }
   633          documents {
   634            data {
   635              id
   636              title
   637              displayName
   638              description
   639              format
   640              kind
   641              data
   642              fetchRequest {
   643                url
   644                auth {
   645                  credential {
   646                    ... on BasicCredentialData {
   647                      username
   648                      password
   649                    }
   650                    ... on CertificateOAuthCredentialData {
   651                      clientId
   652                      certificate
   653                      url
   654                    }
   655                    ... on OAuthCredentialData {
   656                      clientId
   657                      clientSecret
   658                      url
   659                    }
   660                  }
   661                  oneTimeToken {
   662                    __typename
   663                    token
   664                    used
   665                    expiresAt
   666                  }
   667                  certCommonName
   668                  accessStrategy
   669                  additionalHeaders
   670                  additionalQueryParams
   671                  requestAuth {
   672                    csrf {
   673                      tokenEndpointURL
   674                      credential {
   675                        ... on BasicCredentialData {
   676                          username
   677                          password
   678                        }
   679                        ... on OAuthCredentialData {
   680                          clientId
   681                          clientSecret
   682                          url
   683                        }
   684                        ... on CertificateOAuthCredentialData {
   685                          clientId
   686                          certificate
   687                          url
   688                        }
   689                      }
   690                      additionalHeaders
   691                      additionalQueryParams
   692                    }
   693                  }
   694                }
   695                mode
   696                filter
   697                status {
   698                  condition
   699                  message
   700                  timestamp
   701                }
   702              }
   703            }
   704            pageInfo {
   705              startCursor
   706              endCursor
   707              hasNextPage
   708            }
   709            totalCount
   710          }
   711        }
   712        pageInfo {
   713          startCursor
   714          endCursor
   715          hasNextPage
   716        }
   717        totalCount
   718      }
   719      auths {
   720        id
   721        auth {
   722          credential {
   723            ... on BasicCredentialData {
   724              username
   725              password
   726            }
   727            ... on CertificateOAuthCredentialData {
   728              clientId
   729              certificate
   730              url
   731            }
   732            ... on OAuthCredentialData {
   733              clientId
   734              clientSecret
   735              url
   736            }
   737          }
   738          oneTimeToken {
   739            __typename
   740            token
   741            used
   742            expiresAt
   743          }
   744          certCommonName
   745          accessStrategy
   746          additionalHeaders
   747          additionalQueryParams
   748          requestAuth {
   749            csrf {
   750              tokenEndpointURL
   751              credential {
   752                ... on BasicCredentialData {
   753                  username
   754                  password
   755                }
   756                ... on OAuthCredentialData {
   757                  clientId
   758                  clientSecret
   759                  url
   760                }
   761                ... on CertificateOAuthCredentialData {
   762                  clientId
   763                  certificate
   764                  url
   765                }
   766              }
   767              additionalHeaders
   768              additionalQueryParams
   769            }
   770          }
   771        }
   772      }
   773      eventingConfiguration {
   774        defaultURL
   775      }
   776    }
   777  }