Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(automation): generate code based on latest API changes #1225

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .tutone.tmp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
log_level: info
cache:
schema_file: schema.json
endpoint: https://api.newrelic.com/graphql
auth:
header: Api-Key
api_key_env_var: NEW_RELIC_API_KEY
generators:
- name: typegen
fileName: types.go
- name: nerdgraphclient
fileName: "{{.PackageName}}_api.go"
packages:
- name: accountmanagement
path: pkg/accountmanagement
import_path: github.com/newrelic/newrelic-client-go/v2/pkg/accountmanagement
generators:
- typegen
- nerdgraphclient
imports:
- github.com/newrelic/newrelic-client-go/v2/pkg/accounts
- github.com/newrelic/newrelic-client-go/v2/pkg/common
- github.com/newrelic/newrelic-client-go/v2/pkg/nrtime
- github.com/newrelic/newrelic-client-go/v2/pkg/users
queries:
- path:
- actor
- organization
- accountManagement
endpoints:
- name: managedAccounts
max_query_field_depth: 2
mutations:
- name: accountManagementUpdateAccount
max_query_field_depth: 3
- name: accountManagementCancelAccount
max_query_field_depth: 3
- name: accountManagementCreateAccount
max_query_field_depth: 2
18 changes: 11 additions & 7 deletions pkg/accountmanagement/accountmanagement_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading