forked from newrelic/newrelic-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tutone.yml
59 lines (54 loc) · 1.61 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
---
# 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
- name: types
path: internal/install/types
generators:
- typegen
types:
- name: OpenInstallationRecipe
- name: ID
field_type_override: string
skip_type_create: true
generators:
- name: command
templateName: 'command.go.tmpl'
templateDir: templates
- name: typegen
fileName: 'types.go'