forked from newrelic/newrelic-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tutone.yml
47 lines (42 loc) · 1.32 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
---
# 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: Api-Key
api_key_env_var: NEW_RELIC_API_KEY
packages:
- name: apiaccess
path: internal/apiaccess
fileName: command.go
generators:
- command
imports: [] # optional - use for aliasing imports
commands:
- name: apiAccess
shortDescription: Manage New Relic API access keys # optional override (uses NG as default)
subcommands:
- name: apiAccessGetKey
path: ["actor", "apiAccess", "key"]
clientPackageName: apiaccess
clientMethod: nrClient.APIAccess.GetAPIAccessKey
- name: apiAccessCreateKeys
clientPackageName: apiaccess
clientMethod: nrClient.APIAccess.CreateAPIAccessKeys
- name: apiAccessUpdateKeys
clientPackageName: apiaccess
clientMethod: nrClient.APIAccess.UpdateAPIAccessKeys
- name: apiAccessDeleteKeys
clientPackageName: apiaccess
clientMethod: nrClient.APIAccess.DeleteAPIAccessKey
generators:
- name: typegen
fileName: "types.go"