-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtutone.yml
70 lines (63 loc) · 1.66 KB
/
tutone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
# Log level for running tutone
# Default: info
log_level: debug
# File to store a copy of the schema
# Default: schema.json
cache:
schema_file: schema.json
# GraphQL endpoint to query for schema
# Required
endpoint: https://api.newrelic.com/graphql
# How to authenticate to the API
auth:
# Header set with the API key for authentication
# Default: Api-Key
header: Api-Key
# Environment variable to get the API key from
# Default: TUTONE_API_KEY
api_key_env_var: NEW_RELIC_API_KEY
packages:
- name: nerdgraph
path: pkg/nerdgraph
import_path: github.com/newrelic/newrelic-client-go/pkg/nerdgraph
generators:
- typegen
mutations:
- name: apiAccessCreateKeys
types:
- name: AlertsPolicy
- name: ID
field_type_override: string
skip_type_create: true
- name: cloud
path: pkg/cloud
imports:
- github.com/newrelic/newrelic-client-go/internal/serialization
- encoding/json
- fmt
generators:
- typegen
- nerdgraphclient
queries:
- path: ["actor", "cloud"]
endpoints:
- name: linkedAccounts
max_query_field_depth: 2
include_arguments:
- "provider"
mutations:
- name: cloudConfigureIntegration
- name: cloudDisableIntegration
- name: cloudLinkAccount
argument_type_overrides:
accountId: "Int!"
accounts: "CloudLinkCloudAccountsInput!"
- name: cloudRenameAccount
argument_type_overrides:
accountId: "Int!"
accounts: "[CloudRenameAccountsInput!]!"
- name: cloudUnlinkAccount
generators:
- name: typegen
fileName: "types.go"