Skip to content

Commit

Permalink
chore: test what generating everything does right now
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderblue committed May 7, 2024
1 parent e0eb472 commit e589844
Show file tree
Hide file tree
Showing 34 changed files with 12,099 additions and 13,564 deletions.
16 changes: 13 additions & 3 deletions pkg/accountmanagement/accountmanagement_api.go

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

13 changes: 13 additions & 0 deletions pkg/accountmanagement/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ package accountmanagement
type AccountManagementCreateInput struct {
// The name of the account.
Name string `json:"name"`
// The id of the managed organization where the account will be created.
OrganizationId int `json:"organizationId,omitempty"`
// The data center region for the account
RegionCode string `json:"regionCode,omitempty"`
}
Expand All @@ -19,6 +21,8 @@ type AccountManagementCreateResponse struct {
type AccountManagementManagedAccount struct {
// The account ID.
ID int `json:"id"`
// True if account is canceled
IsCanceled bool `json:"isCanceled"`
// The name of the account.
Name string `json:"name"`
// The data center region for the account (US or EU).
Expand Down Expand Up @@ -57,6 +61,8 @@ type Organization struct {
AccountManagement AccountManagementOrganizationStitchedFields `json:"accountManagement,omitempty"`
// The customer id for the organization.
CustomerId string `json:"customerId,omitempty"`
// The ID of the organization.
ID int `json:"id,omitempty"`
// The name of the organization.
Name string `json:"name,omitempty"`
// The telemetry id for the organization
Expand All @@ -66,3 +72,10 @@ type Organization struct {
type managedAccountsResponse struct {
Actor Actor `json:"actor"`
}

// ID - The `ID` scalar type represents a unique identifier, often used to
// refetch an object or as key for a cache. The ID type appears in a JSON
// response as a String; however, it is not intended to be human-readable.
// When expected as an input type, any string (such as `"4"`) or integer
// (such as `4`) input value will be accepted as an ID.
type ID string
9 changes: 2 additions & 7 deletions pkg/accounts/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Code generated by tutone: DO NOT EDIT
package accounts

// RegionScope -
type RegionScope string

var RegionScopeTypes = struct {
Expand All @@ -18,18 +17,14 @@ var RegionScopeTypes = struct {

// AccountOutline - The `AccountOutline` object provides basic data about an account.
type AccountOutline struct {
//
ID int `json:"id,omitempty"`
//
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
// Returns event types that are currently reporting in the account.
ReportingEventTypes []string `json:"reportingEventTypes,omitempty"`
}

// AccountReference - The `AccountReference` object provides basic identifying information about the account.
type AccountReference struct {
//
ID int `json:"id,omitempty"`
//
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
5 changes: 5 additions & 0 deletions pkg/agentapplications/agentapplications_api.go

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

39 changes: 27 additions & 12 deletions pkg/agentapplications/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var AgentApplicationBrowserLoaderTypes = struct {
SPA: "SPA",
}

// AgentApplicationSettingsBrowserLoader - Determines which browser loader will be configured. Some allowed return values are specified for backwards-compatibility and do not represent currently allowed values for new applications.
// AgentApplicationSettingsBrowserLoader - Determines which browser loader will be configured. Some allowed return values are specified for backwards-compatability and do not represent currently allowed values for new applications.

Check failure on line 36 in pkg/agentapplications/types.go

View workflow job for this annotation

GitHub Actions / lint

"compatability" is a misspelling of "compatibility"
// See [documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#agent-types) for further information.
type AgentApplicationSettingsBrowserLoader string

Expand All @@ -50,7 +50,7 @@ var AgentApplicationSettingsBrowserLoaderTypes = struct {
RUM AgentApplicationSettingsBrowserLoader
// Pro+SPA: This is the default installed agent when you enable browser monitoring. Gives you access to all of the Browser Pro features and to Single Page App (SPA) monitoring. Provides detailed page timing data and the most up-to-date New Relic features, including distributed tracing, for all types of applications.
SPA AgentApplicationSettingsBrowserLoader
// This value is specified for backwards-compatibility.
// This value is specified for backwards-compatability.

Check failure on line 53 in pkg/agentapplications/types.go

View workflow job for this annotation

GitHub Actions / lint

"compatability" is a misspelling of "compatibility"
XHR AgentApplicationSettingsBrowserLoader
}{
// Use PRO instead
Expand Down Expand Up @@ -266,6 +266,8 @@ type AgentApplicationSettingsApmBase struct {
Alias string `json:"alias,omitempty"`
// Access general settings for the application.
ApmConfig AgentApplicationSettingsApmConfig `json:"apmConfig"`
// Enable or disable the capture of memcache keys.
CaptureMemcacheKeys bool `json:"captureMemcacheKeys,omitempty"`
// Access error collector settings for the application. The error collector captures information about uncaught exceptions and sends them to New Relic for viewing.
ErrorCollector AgentApplicationSettingsErrorCollector `json:"errorCollector,omitempty"`
// Access enabled state for the Java Flight Recorder. This is available only for the Java language agent version 8.0.0 or later.
Expand Down Expand Up @@ -298,7 +300,7 @@ type AgentApplicationSettingsApmConfigInput struct {
UseServerSideConfig bool `json:"useServerSideConfig,omitempty"`
}

// AgentApplicationSettingsBrowserAjax - Browser Ajax.
// AgentApplicationSettingsBrowserAjax - Enables ajax traces in the browser app.
type AgentApplicationSettingsBrowserAjax struct {
// List of domains excluded from Ajax traces by the browser agent.
DenyList []string `json:"denyList"`
Expand Down Expand Up @@ -349,39 +351,43 @@ type AgentApplicationSettingsBrowserDistributedTracing struct {
// AgentApplicationSettingsBrowserDistributedTracingInput - Configure distributed traces from within browser apps.
type AgentApplicationSettingsBrowserDistributedTracingInput struct {
// Supplies allowed origins for distributed tracing in browser.
AllowedOrigins *[]string `json:"allowedOrigins,omitempty"`
AllowedOrigins []string `json:"allowedOrigins"`
// Enables CORS for distributed tracing in browser.
CorsEnabled bool `json:"corsEnabled,omitempty"`
// Enables the use of the `newrelic` header for CORS requests with distributed tracing. [See Docs](https://docs.newrelic.com/docs/browser/new-relic-browser/browser-pro-features/browser-data-distributed-tracing/#cors) for more information.
CorsUseNewrelicHeader bool `json:"corsUseNewrelicHeader,omitempty"`
// Enables CORS to use tracecontext headers for distributed tracing in browser.
CorsUseTracecontextHeaders bool `json:"corsUseTracecontextHeaders,omitempty"`
// Enables distributed tracing in browser.
Enabled bool `json:"enabled"`
Enabled bool `json:"enabled,omitempty"`
// Enables the `newrelic` header to be excluded in distributed tracing in browser.
ExcludeNewrelicHeader bool `json:"excludeNewrelicHeader,omitempty"`
}

// AgentApplicationSettingsBrowserMonitoring - Browser monitoring.
// AgentApplicationSettingsBrowserMonitoring - Provides fields to set browser monitoring application settings.
type AgentApplicationSettingsBrowserMonitoring struct {
// Enables ajax traces in the browser app.
Ajax AgentApplicationSettingsBrowserAjax `json:"ajax,omitempty"`
// Configure distributed tracing in browser apps.
// Distributed tracing type. See [documentation](https://docs.newrelic.com/docs/browser/new-relic-browser/browser-pro-features/browser-data-distributed-tracing/) for further information.
DistributedTracing AgentApplicationSettingsBrowserDistributedTracing `json:"distributedTracing"`
// The type of browser agent that will be loaded.
Loader AgentApplicationSettingsBrowserLoader `json:"loader"`
// Browser monitoring's page load timing feature can track sessions by using cookies that contain a simple session identifier.
// Specify the semantic version of the browser agent that you would like your app to use. Leave this blank to use the most recent version. Use 'x' in place of a numeric digit to represent the latest release within the version range. For example, '1.x.x'
PinnedVersion string `json:"pinnedVersion,omitempty"`
// Browser privacy. See [documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/page-load-timing-resources/cookie-collection-session-tracking/) for further information.
Privacy AgentApplicationSettingsBrowserPrivacy `json:"privacy"`
}

// AgentApplicationSettingsBrowserMonitoringInput - Set browser monitoring application settings.
type AgentApplicationSettingsBrowserMonitoringInput struct {
// Browser monitoring's page load Ajax requests.
// Configuration settings related to how a browser agent handles Ajax requests.
Ajax *AgentApplicationSettingsBrowserAjaxInput `json:"ajax,omitempty"`
// If you use browser to monitor end-user browser activity, you can now see end-user-originating browser-side traces in distributed tracing.
// Configure distributed traces from within browser apps.
DistributedTracing *AgentApplicationSettingsBrowserDistributedTracingInput `json:"distributedTracing,omitempty"`
// Determines which browser loader will be configured.
Loader *AgentApplicationSettingsBrowserLoaderInput `json:"loader,omitempty"`
// Specify the semantic version of the browser agent that you would like your app to use. Leave this blank to use the most recent version. Use 'x' in place of a numeric digit to represent the latest release within the version range. For example, '1.x.x'
PinnedVersion string `json:"pinnedVersion,omitempty"`
// Browser monitoring's page load timing feature can track sessions by using cookies that contain a simple session identifier.
Privacy *AgentApplicationSettingsBrowserPrivacyInput `json:"privacy,omitempty"`
}
Expand All @@ -400,6 +406,10 @@ type AgentApplicationSettingsBrowserPrivacyInput struct {

// AgentApplicationSettingsBrowserProperties - General Properties related to browser applications.
type AgentApplicationSettingsBrowserProperties struct {
// The configuration required to run the npm version of the JS agent. This is the "pure" JSON configuration block without surrounding HTML <script> tags.
JsConfig AgentApplicationSettingsRawJsConfiguration `json:"jsConfig,omitempty"`
// The configuration block required to run the npm version of the JS agent. This includes the HTML <script> tags.
JsConfigScript string `json:"jsConfigScript,omitempty"`
// The snippet of JavaScript used to copy/paste into your JavaScript app if you aren’t using an auto-instrumentating agent on the backend.
JsLoaderScript string `json:"jsLoaderScript,omitempty"`
}
Expand Down Expand Up @@ -552,7 +562,7 @@ type AgentApplicationSettingsTracerTypeInput struct {

// AgentApplicationSettingsTransactionTracer - Transaction tracer settings related to APM applications. For more information about what these settings do and which ones are applicable for your application, please see https://docs.newrelic.com for more information about agent configuration for your language agent.
type AgentApplicationSettingsTransactionTracer struct {
// Enable or disable the capture of memcache keys from transaction traces.
// DEPRECATED: Please use capture_memcache_keys on parent type.
CaptureMemcacheKeys bool `json:"captureMemcacheKeys,omitempty"`
// If true, this enables the transaction tracer feature, enabling collection of transaction traces.
Enabled bool `json:"enabled,omitempty"`
Expand All @@ -576,7 +586,7 @@ type AgentApplicationSettingsTransactionTracer struct {

// AgentApplicationSettingsTransactionTracerInput - Fields related to transaction traces and data collection for traces.
type AgentApplicationSettingsTransactionTracerInput struct {
// Enable or disable the capture of memcache keys from transaction traces.
// DEPRECATED: Please use capture_memcache_keys on parent type
CaptureMemcacheKeys bool `json:"captureMemcacheKeys,omitempty"`
// If true, this enables the transaction tracer feature, enabling collection of transaction traces.
Enabled bool `json:"enabled,omitempty"`
Expand Down Expand Up @@ -636,6 +646,8 @@ type AgentApplicationSettingsUpdateInput struct {
BrowserConfig *AgentApplicationSettingsBrowserConfigInput `json:"browserConfig,omitempty"`
// Provides fields to set browser monitoring application settings.
BrowserMonitoring *AgentApplicationSettingsBrowserMonitoringInput `json:"browserMonitoring,omitempty"`
// Enable or disable the capture of memcache keys
CaptureMemcacheKeys bool `json:"captureMemcacheKeys,omitempty"`
// Captures information about uncaught exceptions and sends them to New Relic for viewing.
ErrorCollector *AgentApplicationSettingsErrorCollectorInput `json:"errorCollector,omitempty"`
// In the Java Agent (v8.0.0 or later), it can collect additional data with the Java Flight Recorder enabled.
Expand Down Expand Up @@ -677,6 +689,9 @@ type AgentApplicationSettingsUpdateResult struct {
// AgentApplicationSettingsErrorCollectorHttpStatus - A list of HTTP status codes, such as "404" or "500."
type AgentApplicationSettingsErrorCollectorHttpStatus string

// AgentApplicationSettingsRawJsConfiguration - The "raw" configuration values for configuring the javascript client.
type AgentApplicationSettingsRawJsConfiguration string

// Float - The `Float` scalar type represents signed double-precision fractional
// values as specified by
// [IEEE 754](https://en.wikipedia.org/wiki/IEEE_754).
Expand Down
17 changes: 11 additions & 6 deletions pkg/alerts/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,17 +201,18 @@ type AlertsMutingRuleConditionInput struct {
//
// * **accountId** - The account id
// * **conditionId** - The alert condition id
// * **policyId** - The alert policy id
// * **policyName** - The alert policy name
// * **conditionName** - The alert condition name
// * **conditionType** - The alert condition type, such as `metric`
// * **conditionRunbookUrl** - The alert condition's runbook url
// * **conditionType** - The alert condition type, such as `metric`
// * **entity.guid** - The entity GUID
// * **nrqlEventType** - The NRQL event type
// * **nrqlQuery** - The NRQL query string
// * **policyId** - The alert policy id
// * **policyName** - The alert policy name
// * **product** - The target product (e.g., `SYNTHETICS`)
// * **tags.<NAME>** - Arbitrary tags associated with some entity (e.g., FACET from a NRQL query, for example `tags.appName` or `tags.host`)
// * **targetId** - The ID of the alerts target
// * **targetName** - The name of the alerts target
// * **nrqlEventType** - The NRQL event type
// * **tag** - Arbitrary tags associated with some entity (e.g., FACET from a NRQL query)
// * **nrqlQuery** - The NRQL query string
Attribute string `json:"attribute"`
// The operator used to compare the attribute's value with the supplied value(s).
Operator AlertsMutingRuleConditionOperator `json:"operator"`
Expand Down Expand Up @@ -280,6 +281,10 @@ type AlertsMutingRuleScheduleInput struct {
type AlertsPoliciesSearchCriteriaInput struct {
// The list of policy ids to return.
IDs []string `json:"ids"`
// Exact name of the policy.
Name string `json:"name,omitempty"`
// String to partially match a policy name.
NameLike string `json:"nameLike,omitempty"`
}

// AlertsPoliciesSearchResultSet - Collection of policies with pagination information.
Expand Down
7 changes: 6 additions & 1 deletion pkg/apiaccess/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ var APIAccessUserKeyErrorTypeTypes = struct {
NOT_FOUND: "NOT_FOUND",
}

// APIAccessActorStitchedFields -
type APIAccessActorStitchedFields struct {
// Fetch a single key by ID and type.
Key APIAccessKeyInterface `json:"key,omitempty"`
Expand Down Expand Up @@ -307,6 +306,8 @@ type APIAccessIngestKey struct {
Name string `json:"name,omitempty"`
// Any notes can be attached to an key. Limited to 120 characters.
Notes string `json:"notes,omitempty"`
// The obfuscated key.
ObfuscatedKey string `json:"obfuscatedKey,omitempty"`
// The type of key, indicating what New Relic APIs it can be used to access.
Type APIAccessKeyType `json:"type,omitempty"`
}
Expand Down Expand Up @@ -343,6 +344,8 @@ type APIAccessKey struct {
Name string `json:"name,omitempty"`
// Any notes can be attached to a key. This is intended for more a more detailed description of the key use if desired.
Notes string `json:"notes,omitempty"`
// The obfuscated key.
ObfuscatedKey string `json:"obfuscatedKey,omitempty"`
// The type of key, indicating what New Relic APIs it can be used to access.
Type APIAccessKeyType `json:"type,omitempty"`
}
Expand Down Expand Up @@ -549,6 +552,8 @@ type APIAccessUserKey struct {
Name string `json:"name,omitempty"`
// Any notes can be attached to a key. Limited to 120 characters.
Notes string `json:"notes,omitempty"`
// The obfuscated key.
ObfuscatedKey string `json:"obfuscatedKey,omitempty"`
// The type of key, indicating what New Relic APIs it can be used to access.
Type APIAccessKeyType `json:"type,omitempty"`
// The user this key belongs to.
Expand Down
18 changes: 0 additions & 18 deletions pkg/changetracking/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ type ChangeTrackingDeployment struct {
Changelog string `json:"changelog,omitempty"`
// The commit identifier, for example, a Git commit SHA.
Commit string `json:"commit,omitempty"`
// Represents key-value pairs of custom attributes in JSON format.
CustomAttributes ChangeTrackingRawCustomAttributesMap `json:"customAttributes,omitempty"`
// A link to the system that generated the deployment.
DeepLink string `json:"deepLink,omitempty"`
// A unique deployment identifier.
Expand All @@ -92,19 +90,6 @@ type ChangeTrackingDeploymentInput struct {
Changelog string `json:"changelog,omitempty"`
// The commit identifier, for example, a Git commit SHA.
Commit string `json:"commit,omitempty"`
// Represents key-value pairs of custom attributes in JSON format. Attribute values can be of type string, boolean, or numeric.
//
// **Restricted attributes names:** accountId, appID, changelog, commit, customAttributes, deepLink, deploymentType, description, entity.guid, entity.name, entity.type, entityGuid, entityName, eventType, groupId, timestamp, user, version
//
// **Restricted attribute name prefixes:** 'nr.', 'newrelic.'
//
// For more information on limitations, see [our docs](https://docs.newrelic.com/docs/change-tracking/change-tracking-graphql/)
//
// **Examples:**
//
// • {cloudVendor : "vendorName", region : "us-east-1", environment : "staging"}
// • {isProd : true, region : "us-east-1", instances: 2, deployTime : 10.5}
CustomAttributes ChangeTrackingRawCustomAttributesMap `json:"customAttributes,omitempty"`
// A URL to the system that generated the deployment.
DeepLink string `json:"deepLink,omitempty"`
// The type of deployment, for example, ‘Blue green’ or ‘Rolling’.
Expand All @@ -122,6 +107,3 @@ type ChangeTrackingDeploymentInput struct {
// The version of the deployed software, for example, something like v1.1
Version string `json:"version"`
}

// ChangeTrackingRawCustomAttributesMap - A JSON scalar
type ChangeTrackingRawCustomAttributesMap map[string]interface{}
Loading

0 comments on commit e589844

Please sign in to comment.