Skip to content

Commit

Permalink
feat(automation): update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
nr-developer-toolkit authored Sep 27, 2024
1 parent 6d3d458 commit 4dd600a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 7 deletions.
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.

0 comments on commit 4dd600a

Please sign in to comment.