From 49273f43022160cc1fb1c665ce8ebf81e9269259 Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Wed, 20 Nov 2024 08:49:19 +0100 Subject: [PATCH] Cleanup unused graphql from generated client (#180) --- .../api/humiographql/graphql/actions.graphql | 228 - .../graphql/aggregate-alerts.graphql | 38 - .../api/humiographql/graphql/alerts.graphql | 34 - .../graphql/filter-alerts.graphql | 32 - .../api/humiographql/graphql/roles.graphql | 46 - .../graphql/scheduled-search.graphql | 53 - internal/api/humiographql/humiographql.go | 12034 ++++++---------- 7 files changed, 4357 insertions(+), 8108 deletions(-) diff --git a/internal/api/humiographql/graphql/actions.graphql b/internal/api/humiographql/graphql/actions.graphql index d9b7fe3..cf5a824 100644 --- a/internal/api/humiographql/graphql/actions.graphql +++ b/internal/api/humiographql/graphql/actions.graphql @@ -105,234 +105,6 @@ mutation DeleteActionByID( }) } -mutation UpdateEmailAction( - $SearchDomainName: String! - $ActionID: String! - $ActionName: String! - $Recipients: [String!]! - $SubjectTemplate: String - $BodyTemplate: String - $UseProxy: Boolean! -) { - updateEmailAction(input: { - viewName: $SearchDomainName - id: $ActionID - name: $ActionName - recipients: $Recipients - subjectTemplate: $SubjectTemplate - bodyTemplate: $BodyTemplate - useProxy: $UseProxy - }) { - id - name - recipients - subjectTemplate - bodyTemplate - useProxy - } -} - -mutation UpdateHumioRepoAction( - $SearchDomainName: String! - $ActionID: String! - $ActionName: String! - $IngestToken: String! -) { - updateHumioRepoAction(input: { - viewName: $SearchDomainName - id: $ActionID - name: $ActionName - ingestToken: $IngestToken - }) { - id - name - ingestToken - } -} - -mutation UpdateOpsGenieAction( - $SearchDomainName: String! - $ActionID: String! - $ActionName: String! - $ApiUrl: String! - $GenieKey: String! - $UseProxy: Boolean! -) { - updateOpsGenieAction(input: { - viewName: $SearchDomainName - id: $ActionID - name: $ActionName - apiUrl: $ApiUrl - genieKey: $GenieKey - useProxy: $UseProxy - }) { - id - name - apiUrl - genieKey - useProxy - } -} - -mutation UpdatePagerDutyAction( - $SearchDomainName: String! - $ActionID: String! - $ActionName: String! - $Severity: String! - $RoutingKey: String! - $UseProxy: Boolean! -) { - updatePagerDutyAction(input: { - viewName: $SearchDomainName - id: $ActionID - name: $ActionName - severity: $Severity - routingKey: $RoutingKey - useProxy: $UseProxy - }) { - id - name - severity - routingKey - useProxy - } -} - -mutation UpdateSlackAction( - $SearchDomainName: String! - $ActionID: String! - $ActionName: String! - $Fields: [SlackFieldEntryInput!]! - $Url: String! - $UseProxy: Boolean! -) { - updateSlackAction(input: { - viewName: $SearchDomainName - id: $ActionID - name: $ActionName - fields: $Fields - url: $Url - useProxy: $UseProxy - }) { - id - name - fields { - value - fieldName - } - url - useProxy - } -} - -mutation UpdateSlackPostMessageAction( - $SearchDomainName: String! - $ActionID: String! - $ActionName: String! - $ApiToken: String! - $Channels: [String!]! - $Fields: [SlackFieldEntryInput!]! - $UseProxy: Boolean! -) { - updateSlackPostMessageAction(input: { - viewName: $SearchDomainName - id: $ActionID - name: $ActionName - apiToken: $ApiToken - channels: $Channels - fields: $Fields - useProxy: $UseProxy - }) { - id - name - apiToken - channels - fields { - value - fieldName - } - useProxy - } -} - -mutation UpdateVictorOpsAction( - $SearchDomainName: String! - $ActionID: String! - $ActionName: String! - $MessageType: String! - $NotifyUrl: String! - $UseProxy: Boolean! -) { - updateVictorOpsAction(input: { - viewName: $SearchDomainName - id: $ActionID - name: $ActionName - messageType: $MessageType - notifyUrl: $NotifyUrl - useProxy: $UseProxy - }) { - id - name - messageType - notifyUrl - useProxy - } -} - -mutation UpdateUploadFileAction( - $SearchDomainName: String! - $ActionID: String! - $ActionName: String! - $FileName: String! -) { - updateUploadFileAction(input: { - viewName: $SearchDomainName - id: $ActionID - name: $ActionName - fileName: $FileName - }) { - id - name - fileName - } -} - -mutation UpdateWebhookAction( - $SearchDomainName: String! - $ActionID: String! - $ActionName: String! - $Url: String! - $Method: String! - $Headers: [HttpHeaderEntryInput!]! - $BodyTemplate: String! - $IgnoreSSL: Boolean! - $UseProxy: Boolean! -) { - updateWebhookAction(input: { - viewName: $SearchDomainName - id: $ActionID - name: $ActionName - url: $Url - method: $Method - headers: $Headers - bodyTemplate: $BodyTemplate - ignoreSSL: $IgnoreSSL - useProxy: $UseProxy - }) { - id - name - url - method - headers { - value - header - } - bodyTemplate - ignoreSSL - useProxy - } -} - mutation CreateEmailAction( $SearchDomainName: String! $ActionName: String! diff --git a/internal/api/humiographql/graphql/aggregate-alerts.graphql b/internal/api/humiographql/graphql/aggregate-alerts.graphql index a28421e..d0ccfc6 100644 --- a/internal/api/humiographql/graphql/aggregate-alerts.graphql +++ b/internal/api/humiographql/graphql/aggregate-alerts.graphql @@ -32,44 +32,6 @@ query ListAggregateAlerts( } } -mutation UpdateAggregateAlert( - $SearchDomainName: RepoOrViewName! - $ID: String! - $Name: String! - $Description: String - $QueryString: String! - $SearchIntervalSeconds: Long! - $ActionIdsOrNames: [String!]! - $Labels: [String!]! - $Enabled: Boolean! - $RunAsUserID: String - $ThrottleField: String - $ThrottleTimeSeconds: Long! - $TriggerMode: TriggerMode! - $QueryTimestampMode: QueryTimestampType! - $QueryOwnershipType: QueryOwnershipType! -) { - updateAggregateAlert(input: { - viewName: $SearchDomainName - id: $ID - name: $Name - description: $Description - queryString: $QueryString - searchIntervalSeconds: $SearchIntervalSeconds - actionIdsOrNames: $ActionIdsOrNames - labels: $Labels - enabled: $Enabled - runAsUserId: $RunAsUserID - throttleField: $ThrottleField - throttleTimeSeconds: $ThrottleTimeSeconds - triggerMode: $TriggerMode - queryTimestampType: $QueryTimestampMode - queryOwnershipType: $QueryOwnershipType - }) { - ...AggregateAlertDetails - } -} - mutation CreateAggregateAlert( $SearchDomainName: RepoOrViewName! $Name: String! diff --git a/internal/api/humiographql/graphql/alerts.graphql b/internal/api/humiographql/graphql/alerts.graphql index 0612bc4..acf2eab 100644 --- a/internal/api/humiographql/graphql/alerts.graphql +++ b/internal/api/humiographql/graphql/alerts.graphql @@ -31,40 +31,6 @@ query ListAlerts( } } -mutation UpdateAlert( - $SearchDomainName: String! - $AlertID: String! - $Name: String! - $Description: String - $QueryString: String! - $QueryStart: String! - $ThrottleTimeMillis: Long! - $Enabled: Boolean! - $Actions: [String!]! - $Labels: [String!]! - $RunAsUserID: String - $QueryOwnershipType: QueryOwnershipType - $ThrottleField: String -) { - updateAlert(input: { - id: $AlertID - viewName: $SearchDomainName - name: $Name - description: $Description - queryString: $QueryString - queryStart: $QueryStart - throttleTimeMillis: $ThrottleTimeMillis - enabled: $Enabled - actions: $Actions - labels: $Labels - runAsUserId: $RunAsUserID - queryOwnershipType: $QueryOwnershipType - throttleField: $ThrottleField - }) { - ...AlertDetails - } -} - mutation CreateAlert( $SearchDomainName: String! $Name: String! diff --git a/internal/api/humiographql/graphql/filter-alerts.graphql b/internal/api/humiographql/graphql/filter-alerts.graphql index 9da0401..6ced42a 100644 --- a/internal/api/humiographql/graphql/filter-alerts.graphql +++ b/internal/api/humiographql/graphql/filter-alerts.graphql @@ -29,38 +29,6 @@ query ListFilterAlerts( } } -mutation UpdateFilterAlert( - $SearchDomainName: RepoOrViewName! - $ID: String! - $Name: String! - $Description: String - $QueryString: String! - $ActionIdsOrNames: [String!]! - $Labels: [String!]! - $Enabled: Boolean! - $RunAsUserID: String - $ThrottleField: String - $ThrottleTimeSeconds: Long! - $QueryOwnershipType: QueryOwnershipType! -) { - updateFilterAlert(input: { - viewName: $SearchDomainName - id: $ID - name: $Name - description: $Description - queryString: $QueryString - actionIdsOrNames: $ActionIdsOrNames - labels: $Labels - enabled: $Enabled - runAsUserId: $RunAsUserID - throttleField: $ThrottleField - throttleTimeSeconds: $ThrottleTimeSeconds - queryOwnershipType: $QueryOwnershipType - }) { - ...FilterAlertDetails - } -} - mutation CreateFilterAlert( $SearchDomainName: RepoOrViewName! $Name: String! diff --git a/internal/api/humiographql/graphql/roles.graphql b/internal/api/humiographql/graphql/roles.graphql index 8289f78..bf5d381 100644 --- a/internal/api/humiographql/graphql/roles.graphql +++ b/internal/api/humiographql/graphql/roles.graphql @@ -12,52 +12,6 @@ query ListRoles { } } -mutation CreateRole( - $RoleName: String! - $ViewPermissions: [Permission!]! - $OrganizationPermissions: [OrganizationPermission!] - $SystemPermissions: [SystemPermission!] -) { - createRole(input: { - displayName: $RoleName - viewPermissions: $ViewPermissions - organizationPermissions: $OrganizationPermissions - systemPermissions: $SystemPermissions - }) { - role { - ...RoleDetails - } - } -} - -mutation UpdateRole( - $RoleID: String! - $RoleName: String! - $ViewPermissions: [Permission!]! - $OrganizationPermissions: [OrganizationPermission!] - $SystemPermissions: [SystemPermission!] -) { - updateRole(input: { - roleId: $RoleID - displayName: $RoleName - viewPermissions: $ViewPermissions - organizationPermissions: $OrganizationPermissions - systemPermissions: $SystemPermissions - }) { - role { - ...RoleDetails - } - } -} - -mutation RemoveRoleByID( - $RoleID: String! -) { - removeRole(roleId: $RoleID) { - __typename - } -} - query GetRoleByID( $RoleID: String! ) { diff --git a/internal/api/humiographql/graphql/scheduled-search.graphql b/internal/api/humiographql/graphql/scheduled-search.graphql index 2be8b88..01cdabd 100644 --- a/internal/api/humiographql/graphql/scheduled-search.graphql +++ b/internal/api/humiographql/graphql/scheduled-search.graphql @@ -32,44 +32,6 @@ query ListScheduledSearches( } } -mutation UpdateScheduledSearch( - $SearchDomainName: String! - $ID: String! - $Name: String! - $Description: String - $QueryString: String! - $QueryStart: String! - $QueryEnd: String! - $Schedule: String! - $TimeZone: String! - $BackfillLimit: Int! - $Enabled: Boolean! - $ActionIdsOrNames: [String!]! - $RunAsUserID: String! - $Labels: [String!]! - $QueryOwnershipType: QueryOwnershipType -) { - updateScheduledSearch(input: { - viewName: $SearchDomainName - id: $ID - name: $Name - description: $Description - queryString: $QueryString - queryStart: $QueryStart - queryEnd: $QueryEnd - schedule: $Schedule - timeZone: $TimeZone - backfillLimit: $BackfillLimit - enabled: $Enabled - actions: $ActionIdsOrNames - runAsUserId: $RunAsUserID - labels: $Labels - queryOwnershipType: $QueryOwnershipType - }) { - ...ScheduledSearchDetails - } -} - mutation CreateScheduledSearch( $SearchDomainName: String! $Name: String! @@ -114,19 +76,4 @@ mutation DeleteScheduledSearchByID( viewName: $SearchDomainName id: $ScheduledSearchID }) -} - -query GetScheduledSearchByID( - $SearchDomainName: String! - $ScheduledSearchID: String! -) { - searchDomain( - name: $SearchDomainName - ) { - scheduledSearch( - id: $ScheduledSearchID - ) { - ...ScheduledSearchDetails - } - } } \ No newline at end of file diff --git a/internal/api/humiographql/humiographql.go b/internal/api/humiographql/humiographql.go index a512770..040de60 100644 --- a/internal/api/humiographql/humiographql.go +++ b/internal/api/humiographql/humiographql.go @@ -2691,109 +2691,6 @@ func (v *CreateRepositoryResponse) GetCreateRepository() CreateRepositoryCreateR return v.CreateRepository } -// CreateRoleCreateRoleAddRoleMutation includes the requested fields of the GraphQL type AddRoleMutation. -type CreateRoleCreateRoleAddRoleMutation struct { - Role CreateRoleCreateRoleAddRoleMutationRole `json:"role"` -} - -// GetRole returns CreateRoleCreateRoleAddRoleMutation.Role, and is useful for accessing the field via an interface. -func (v *CreateRoleCreateRoleAddRoleMutation) GetRole() CreateRoleCreateRoleAddRoleMutationRole { - return v.Role -} - -// CreateRoleCreateRoleAddRoleMutationRole includes the requested fields of the GraphQL type Role. -type CreateRoleCreateRoleAddRoleMutationRole struct { - RoleDetails `json:"-"` -} - -// GetId returns CreateRoleCreateRoleAddRoleMutationRole.Id, and is useful for accessing the field via an interface. -func (v *CreateRoleCreateRoleAddRoleMutationRole) GetId() string { return v.RoleDetails.Id } - -// GetDisplayName returns CreateRoleCreateRoleAddRoleMutationRole.DisplayName, and is useful for accessing the field via an interface. -func (v *CreateRoleCreateRoleAddRoleMutationRole) GetDisplayName() string { - return v.RoleDetails.DisplayName -} - -// GetViewPermissions returns CreateRoleCreateRoleAddRoleMutationRole.ViewPermissions, and is useful for accessing the field via an interface. -func (v *CreateRoleCreateRoleAddRoleMutationRole) GetViewPermissions() []Permission { - return v.RoleDetails.ViewPermissions -} - -// GetOrganizationPermissions returns CreateRoleCreateRoleAddRoleMutationRole.OrganizationPermissions, and is useful for accessing the field via an interface. -func (v *CreateRoleCreateRoleAddRoleMutationRole) GetOrganizationPermissions() []OrganizationPermission { - return v.RoleDetails.OrganizationPermissions -} - -// GetSystemPermissions returns CreateRoleCreateRoleAddRoleMutationRole.SystemPermissions, and is useful for accessing the field via an interface. -func (v *CreateRoleCreateRoleAddRoleMutationRole) GetSystemPermissions() []SystemPermission { - return v.RoleDetails.SystemPermissions -} - -func (v *CreateRoleCreateRoleAddRoleMutationRole) UnmarshalJSON(b []byte) error { - - if string(b) == "null" { - return nil - } - - var firstPass struct { - *CreateRoleCreateRoleAddRoleMutationRole - graphql.NoUnmarshalJSON - } - firstPass.CreateRoleCreateRoleAddRoleMutationRole = v - - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } - - err = json.Unmarshal( - b, &v.RoleDetails) - if err != nil { - return err - } - return nil -} - -type __premarshalCreateRoleCreateRoleAddRoleMutationRole struct { - Id string `json:"id"` - - DisplayName string `json:"displayName"` - - ViewPermissions []Permission `json:"viewPermissions"` - - OrganizationPermissions []OrganizationPermission `json:"organizationPermissions"` - - SystemPermissions []SystemPermission `json:"systemPermissions"` -} - -func (v *CreateRoleCreateRoleAddRoleMutationRole) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) -} - -func (v *CreateRoleCreateRoleAddRoleMutationRole) __premarshalJSON() (*__premarshalCreateRoleCreateRoleAddRoleMutationRole, error) { - var retval __premarshalCreateRoleCreateRoleAddRoleMutationRole - - retval.Id = v.RoleDetails.Id - retval.DisplayName = v.RoleDetails.DisplayName - retval.ViewPermissions = v.RoleDetails.ViewPermissions - retval.OrganizationPermissions = v.RoleDetails.OrganizationPermissions - retval.SystemPermissions = v.RoleDetails.SystemPermissions - return &retval, nil -} - -// CreateRoleResponse is returned by CreateRole on success. -type CreateRoleResponse struct { - // Adds a role. Only usable if roles are not managed externally, e.g. in LDAP. - CreateRole CreateRoleCreateRoleAddRoleMutation `json:"createRole"` -} - -// GetCreateRole returns CreateRoleResponse.CreateRole, and is useful for accessing the field via an interface. -func (v *CreateRoleResponse) GetCreateRole() CreateRoleCreateRoleAddRoleMutation { return v.CreateRole } - // CreateScheduledSearchCreateScheduledSearch includes the requested fields of the GraphQL type ScheduledSearch. // The GraphQL type's documentation follows. // @@ -6994,28 +6891,28 @@ func (v *GetRoleByIDRole) __premarshalJSON() (*__premarshalGetRoleByIDRole, erro return &retval, nil } -// GetScheduledSearchByIDResponse is returned by GetScheduledSearchByID on success. -type GetScheduledSearchByIDResponse struct { - SearchDomain GetScheduledSearchByIDSearchDomain `json:"-"` +// GetSearchDomainResponse is returned by GetSearchDomain on success. +type GetSearchDomainResponse struct { + SearchDomain GetSearchDomainSearchDomain `json:"-"` } -// GetSearchDomain returns GetScheduledSearchByIDResponse.SearchDomain, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDResponse) GetSearchDomain() GetScheduledSearchByIDSearchDomain { +// GetSearchDomain returns GetSearchDomainResponse.SearchDomain, and is useful for accessing the field via an interface. +func (v *GetSearchDomainResponse) GetSearchDomain() GetSearchDomainSearchDomain { return v.SearchDomain } -func (v *GetScheduledSearchByIDResponse) UnmarshalJSON(b []byte) error { +func (v *GetSearchDomainResponse) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *GetScheduledSearchByIDResponse + *GetSearchDomainResponse SearchDomain json.RawMessage `json:"searchDomain"` graphql.NoUnmarshalJSON } - firstPass.GetScheduledSearchByIDResponse = v + firstPass.GetSearchDomainResponse = v err := json.Unmarshal(b, &firstPass) if err != nil { @@ -7026,22 +6923,22 @@ func (v *GetScheduledSearchByIDResponse) UnmarshalJSON(b []byte) error { dst := &v.SearchDomain src := firstPass.SearchDomain if len(src) != 0 && string(src) != "null" { - err = __unmarshalGetScheduledSearchByIDSearchDomain( + err = __unmarshalGetSearchDomainSearchDomain( src, dst) if err != nil { return fmt.Errorf( - "unable to unmarshal GetScheduledSearchByIDResponse.SearchDomain: %w", err) + "unable to unmarshal GetSearchDomainResponse.SearchDomain: %w", err) } } } return nil } -type __premarshalGetScheduledSearchByIDResponse struct { +type __premarshalGetSearchDomainResponse struct { SearchDomain json.RawMessage `json:"searchDomain"` } -func (v *GetScheduledSearchByIDResponse) MarshalJSON() ([]byte, error) { +func (v *GetSearchDomainResponse) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -7049,49 +6946,63 @@ func (v *GetScheduledSearchByIDResponse) MarshalJSON() ([]byte, error) { return json.Marshal(premarshaled) } -func (v *GetScheduledSearchByIDResponse) __premarshalJSON() (*__premarshalGetScheduledSearchByIDResponse, error) { - var retval __premarshalGetScheduledSearchByIDResponse +func (v *GetSearchDomainResponse) __premarshalJSON() (*__premarshalGetSearchDomainResponse, error) { + var retval __premarshalGetSearchDomainResponse { dst := &retval.SearchDomain src := v.SearchDomain var err error - *dst, err = __marshalGetScheduledSearchByIDSearchDomain( + *dst, err = __marshalGetSearchDomainSearchDomain( &src) if err != nil { return nil, fmt.Errorf( - "unable to marshal GetScheduledSearchByIDResponse.SearchDomain: %w", err) + "unable to marshal GetSearchDomainResponse.SearchDomain: %w", err) } } return &retval, nil } -// GetScheduledSearchByIDSearchDomain includes the requested fields of the GraphQL interface SearchDomain. +// GetSearchDomainSearchDomain includes the requested fields of the GraphQL interface SearchDomain. // -// GetScheduledSearchByIDSearchDomain is implemented by the following types: -// GetScheduledSearchByIDSearchDomainRepository -// GetScheduledSearchByIDSearchDomainView +// GetSearchDomainSearchDomain is implemented by the following types: +// GetSearchDomainSearchDomainRepository +// GetSearchDomainSearchDomainView // The GraphQL type's documentation follows. // // Common interface for Repositories and Views. -type GetScheduledSearchByIDSearchDomain interface { - implementsGraphQLInterfaceGetScheduledSearchByIDSearchDomain() - // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). - GetTypename() *string - // GetScheduledSearch returns the interface-field "scheduledSearch" from its implementation. +type GetSearchDomainSearchDomain interface { + implementsGraphQLInterfaceGetSearchDomainSearchDomain() + // GetId returns the interface-field "id" from its implementation. + // The GraphQL interface field's documentation follows. + // + // Common interface for Repositories and Views. + GetId() string + // GetName returns the interface-field "name" from its implementation. + // The GraphQL interface field's documentation follows. + // + // Common interface for Repositories and Views. + GetName() string + // GetDescription returns the interface-field "description" from its implementation. + // The GraphQL interface field's documentation follows. + // + // Common interface for Repositories and Views. + GetDescription() *string + // GetAutomaticSearch returns the interface-field "automaticSearch" from its implementation. // The GraphQL interface field's documentation follows. // // Common interface for Repositories and Views. - GetScheduledSearch() GetScheduledSearchByIDSearchDomainScheduledSearch + GetAutomaticSearch() bool + // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). + GetTypename() *string } -func (v *GetScheduledSearchByIDSearchDomainRepository) implementsGraphQLInterfaceGetScheduledSearchByIDSearchDomain() { -} -func (v *GetScheduledSearchByIDSearchDomainView) implementsGraphQLInterfaceGetScheduledSearchByIDSearchDomain() { +func (v *GetSearchDomainSearchDomainRepository) implementsGraphQLInterfaceGetSearchDomainSearchDomain() { } +func (v *GetSearchDomainSearchDomainView) implementsGraphQLInterfaceGetSearchDomainSearchDomain() {} -func __unmarshalGetScheduledSearchByIDSearchDomain(b []byte, v *GetScheduledSearchByIDSearchDomain) error { +func __unmarshalGetSearchDomainSearchDomain(b []byte, v *GetSearchDomainSearchDomain) error { if string(b) == "null" { return nil } @@ -7106,150 +7017,259 @@ func __unmarshalGetScheduledSearchByIDSearchDomain(b []byte, v *GetScheduledSear switch tn.TypeName { case "Repository": - *v = new(GetScheduledSearchByIDSearchDomainRepository) + *v = new(GetSearchDomainSearchDomainRepository) return json.Unmarshal(b, *v) case "View": - *v = new(GetScheduledSearchByIDSearchDomainView) + *v = new(GetSearchDomainSearchDomainView) return json.Unmarshal(b, *v) case "": return fmt.Errorf( "response was missing SearchDomain.__typename") default: return fmt.Errorf( - `unexpected concrete type for GetScheduledSearchByIDSearchDomain: "%v"`, tn.TypeName) + `unexpected concrete type for GetSearchDomainSearchDomain: "%v"`, tn.TypeName) } } -func __marshalGetScheduledSearchByIDSearchDomain(v *GetScheduledSearchByIDSearchDomain) ([]byte, error) { +func __marshalGetSearchDomainSearchDomain(v *GetSearchDomainSearchDomain) ([]byte, error) { var typename string switch v := (*v).(type) { - case *GetScheduledSearchByIDSearchDomainRepository: + case *GetSearchDomainSearchDomainRepository: typename = "Repository" result := struct { TypeName string `json:"__typename"` - *GetScheduledSearchByIDSearchDomainRepository + *GetSearchDomainSearchDomainRepository }{typename, v} return json.Marshal(result) - case *GetScheduledSearchByIDSearchDomainView: + case *GetSearchDomainSearchDomainView: typename = "View" result := struct { TypeName string `json:"__typename"` - *GetScheduledSearchByIDSearchDomainView + *GetSearchDomainSearchDomainView }{typename, v} return json.Marshal(result) case nil: return []byte("null"), nil default: return nil, fmt.Errorf( - `unexpected concrete type for GetScheduledSearchByIDSearchDomain: "%T"`, v) + `unexpected concrete type for GetSearchDomainSearchDomain: "%T"`, v) } } -// GetScheduledSearchByIDSearchDomainRepository includes the requested fields of the GraphQL type Repository. +// GetSearchDomainSearchDomainRepository includes the requested fields of the GraphQL type Repository. // The GraphQL type's documentation follows. // // A repository stores ingested data, configures parsers and data retention policies. -type GetScheduledSearchByIDSearchDomainRepository struct { - Typename *string `json:"__typename"` +type GetSearchDomainSearchDomainRepository struct { + // Common interface for Repositories and Views. + Id string `json:"id"` + // Common interface for Repositories and Views. + Name string `json:"name"` + // Common interface for Repositories and Views. + Description *string `json:"description"` // Common interface for Repositories and Views. - ScheduledSearch GetScheduledSearchByIDSearchDomainScheduledSearch `json:"scheduledSearch"` + AutomaticSearch bool `json:"automaticSearch"` + Typename *string `json:"__typename"` } -// GetTypename returns GetScheduledSearchByIDSearchDomainRepository.Typename, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainRepository) GetTypename() *string { return v.Typename } +// GetId returns GetSearchDomainSearchDomainRepository.Id, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainRepository) GetId() string { return v.Id } -// GetScheduledSearch returns GetScheduledSearchByIDSearchDomainRepository.ScheduledSearch, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainRepository) GetScheduledSearch() GetScheduledSearchByIDSearchDomainScheduledSearch { - return v.ScheduledSearch -} +// GetName returns GetSearchDomainSearchDomainRepository.Name, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainRepository) GetName() string { return v.Name } + +// GetDescription returns GetSearchDomainSearchDomainRepository.Description, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainRepository) GetDescription() *string { return v.Description } + +// GetAutomaticSearch returns GetSearchDomainSearchDomainRepository.AutomaticSearch, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainRepository) GetAutomaticSearch() bool { return v.AutomaticSearch } -// GetScheduledSearchByIDSearchDomainScheduledSearch includes the requested fields of the GraphQL type ScheduledSearch. +// GetTypename returns GetSearchDomainSearchDomainRepository.Typename, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainRepository) GetTypename() *string { return v.Typename } + +// GetSearchDomainSearchDomainView includes the requested fields of the GraphQL type View. // The GraphQL type's documentation follows. // -// Information about a scheduled search -type GetScheduledSearchByIDSearchDomainScheduledSearch struct { - ScheduledSearchDetails `json:"-"` +// Represents information about a view, pulling data from one or several repositories. +type GetSearchDomainSearchDomainView struct { + // Common interface for Repositories and Views. + Id string `json:"id"` + // Common interface for Repositories and Views. + Name string `json:"name"` + // Common interface for Repositories and Views. + Description *string `json:"description"` + // Common interface for Repositories and Views. + AutomaticSearch bool `json:"automaticSearch"` + Connections []GetSearchDomainSearchDomainViewConnectionsViewConnection `json:"connections"` + Typename *string `json:"__typename"` } -// GetId returns GetScheduledSearchByIDSearchDomainScheduledSearch.Id, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetId() string { - return v.ScheduledSearchDetails.Id -} +// GetId returns GetSearchDomainSearchDomainView.Id, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainView) GetId() string { return v.Id } -// GetName returns GetScheduledSearchByIDSearchDomainScheduledSearch.Name, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetName() string { - return v.ScheduledSearchDetails.Name -} +// GetName returns GetSearchDomainSearchDomainView.Name, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainView) GetName() string { return v.Name } -// GetDescription returns GetScheduledSearchByIDSearchDomainScheduledSearch.Description, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetDescription() *string { - return v.ScheduledSearchDetails.Description +// GetDescription returns GetSearchDomainSearchDomainView.Description, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainView) GetDescription() *string { return v.Description } + +// GetAutomaticSearch returns GetSearchDomainSearchDomainView.AutomaticSearch, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainView) GetAutomaticSearch() bool { return v.AutomaticSearch } + +// GetConnections returns GetSearchDomainSearchDomainView.Connections, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainView) GetConnections() []GetSearchDomainSearchDomainViewConnectionsViewConnection { + return v.Connections } -// GetQueryString returns GetScheduledSearchByIDSearchDomainScheduledSearch.QueryString, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetQueryString() string { - return v.ScheduledSearchDetails.QueryString +// GetTypename returns GetSearchDomainSearchDomainView.Typename, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainView) GetTypename() *string { return v.Typename } + +// GetSearchDomainSearchDomainViewConnectionsViewConnection includes the requested fields of the GraphQL type ViewConnection. +// The GraphQL type's documentation follows. +// +// Represents the connection between a view and an underlying repository. +type GetSearchDomainSearchDomainViewConnectionsViewConnection struct { + // The underlying repository + Repository GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository `json:"repository"` + // The filter applied to all results from the repository. + Filter string `json:"filter"` } -// GetStart returns GetScheduledSearchByIDSearchDomainScheduledSearch.Start, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetStart() string { - return v.ScheduledSearchDetails.Start +// GetRepository returns GetSearchDomainSearchDomainViewConnectionsViewConnection.Repository, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainViewConnectionsViewConnection) GetRepository() GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository { + return v.Repository } -// GetEnd returns GetScheduledSearchByIDSearchDomainScheduledSearch.End, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetEnd() string { - return v.ScheduledSearchDetails.End +// GetFilter returns GetSearchDomainSearchDomainViewConnectionsViewConnection.Filter, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainViewConnectionsViewConnection) GetFilter() string { + return v.Filter } -// GetTimeZone returns GetScheduledSearchByIDSearchDomainScheduledSearch.TimeZone, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetTimeZone() string { - return v.ScheduledSearchDetails.TimeZone +// GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository includes the requested fields of the GraphQL type Repository. +// The GraphQL type's documentation follows. +// +// A repository stores ingested data, configures parsers and data retention policies. +type GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository struct { + Name string `json:"name"` } -// GetSchedule returns GetScheduledSearchByIDSearchDomainScheduledSearch.Schedule, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetSchedule() string { - return v.ScheduledSearchDetails.Schedule +// GetName returns GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository.Name, and is useful for accessing the field via an interface. +func (v *GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository) GetName() string { + return v.Name } -// GetBackfillLimit returns GetScheduledSearchByIDSearchDomainScheduledSearch.BackfillLimit, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetBackfillLimit() int { - return v.ScheduledSearchDetails.BackfillLimit +// GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2 includes the requested fields of the GraphQL type FeatureFlagV2. +// The GraphQL type's documentation follows. +// +// Feature flags with details +type GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2 struct { + Flag FeatureFlag `json:"flag"` + Experimental bool `json:"experimental"` + Description string `json:"description"` } -// GetEnabled returns GetScheduledSearchByIDSearchDomainScheduledSearch.Enabled, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetEnabled() bool { - return v.ScheduledSearchDetails.Enabled +// GetFlag returns GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2.Flag, and is useful for accessing the field via an interface. +func (v *GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2) GetFlag() FeatureFlag { return v.Flag } + +// GetExperimental returns GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2.Experimental, and is useful for accessing the field via an interface. +func (v *GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2) GetExperimental() bool { + return v.Experimental } -// GetActionsV2 returns GetScheduledSearchByIDSearchDomainScheduledSearch.ActionsV2, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetActionsV2() []ScheduledSearchDetailsActionsV2Action { - return v.ScheduledSearchDetails.ActionsV2 +// GetDescription returns GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2.Description, and is useful for accessing the field via an interface. +func (v *GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2) GetDescription() string { + return v.Description } -// GetLabels returns GetScheduledSearchByIDSearchDomainScheduledSearch.Labels, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetLabels() []string { - return v.ScheduledSearchDetails.Labels +// GetSupportedFeatureFlagsResponse is returned by GetSupportedFeatureFlags on success. +type GetSupportedFeatureFlagsResponse struct { + // [PREVIEW: All flags should be considered as beta features. Enabling features that are marked as experimental is strongly discouraged and can lead to LogScale ending up in a bad state beyond repair.] List feature flags depending on filters and context + FeatureFlags []GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2 `json:"featureFlags"` } -// GetQueryOwnership returns GetScheduledSearchByIDSearchDomainScheduledSearch.QueryOwnership, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) GetQueryOwnership() SharedQueryOwnershipType { - return v.ScheduledSearchDetails.QueryOwnership +// GetFeatureFlags returns GetSupportedFeatureFlagsResponse.FeatureFlags, and is useful for accessing the field via an interface. +func (v *GetSupportedFeatureFlagsResponse) GetFeatureFlags() []GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2 { + return v.FeatureFlags } -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) UnmarshalJSON(b []byte) error { +// GetUsernameResponse is returned by GetUsername on success. +type GetUsernameResponse struct { + // The currently authenticated user's account. + Viewer GetUsernameViewerAccount `json:"viewer"` +} - if string(b) == "null" { - return nil - } +// GetViewer returns GetUsernameResponse.Viewer, and is useful for accessing the field via an interface. +func (v *GetUsernameResponse) GetViewer() GetUsernameViewerAccount { return v.Viewer } - var firstPass struct { - *GetScheduledSearchByIDSearchDomainScheduledSearch +// GetUsernameViewerAccount includes the requested fields of the GraphQL type Account. +// The GraphQL type's documentation follows. +// +// A user account. +type GetUsernameViewerAccount struct { + Username string `json:"username"` +} + +// GetUsername returns GetUsernameViewerAccount.Username, and is useful for accessing the field via an interface. +func (v *GetUsernameViewerAccount) GetUsername() string { return v.Username } + +// GetUsersByUsernameResponse is returned by GetUsersByUsername on success. +type GetUsersByUsernameResponse struct { + // Requires manage cluster permission; Returns all users in the system. + Users []GetUsersByUsernameUsersUser `json:"users"` +} + +// GetUsers returns GetUsersByUsernameResponse.Users, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameResponse) GetUsers() []GetUsersByUsernameUsersUser { return v.Users } + +// GetUsersByUsernameUsersUser includes the requested fields of the GraphQL type User. +// The GraphQL type's documentation follows. +// +// A user profile. +type GetUsersByUsernameUsersUser struct { + UserDetails `json:"-"` +} + +// GetId returns GetUsersByUsernameUsersUser.Id, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameUsersUser) GetId() string { return v.UserDetails.Id } + +// GetUsername returns GetUsersByUsernameUsersUser.Username, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameUsersUser) GetUsername() string { return v.UserDetails.Username } + +// GetFullName returns GetUsersByUsernameUsersUser.FullName, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameUsersUser) GetFullName() *string { return v.UserDetails.FullName } + +// GetEmail returns GetUsersByUsernameUsersUser.Email, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameUsersUser) GetEmail() *string { return v.UserDetails.Email } + +// GetCompany returns GetUsersByUsernameUsersUser.Company, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameUsersUser) GetCompany() *string { return v.UserDetails.Company } + +// GetCountryCode returns GetUsersByUsernameUsersUser.CountryCode, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameUsersUser) GetCountryCode() *string { return v.UserDetails.CountryCode } + +// GetPicture returns GetUsersByUsernameUsersUser.Picture, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameUsersUser) GetPicture() *string { return v.UserDetails.Picture } + +// GetIsRoot returns GetUsersByUsernameUsersUser.IsRoot, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameUsersUser) GetIsRoot() bool { return v.UserDetails.IsRoot } + +// GetCreatedAt returns GetUsersByUsernameUsersUser.CreatedAt, and is useful for accessing the field via an interface. +func (v *GetUsersByUsernameUsersUser) GetCreatedAt() time.Time { return v.UserDetails.CreatedAt } + +func (v *GetUsersByUsernameUsersUser) UnmarshalJSON(b []byte) error { + + if string(b) == "null" { + return nil + } + + var firstPass struct { + *GetUsersByUsernameUsersUser graphql.NoUnmarshalJSON } - firstPass.GetScheduledSearchByIDSearchDomainScheduledSearch = v + firstPass.GetUsersByUsernameUsersUser = v err := json.Unmarshal(b, &firstPass) if err != nil { @@ -7257,42 +7277,34 @@ func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) UnmarshalJSON(b []by } err = json.Unmarshal( - b, &v.ScheduledSearchDetails) + b, &v.UserDetails) if err != nil { return err } return nil } -type __premarshalGetScheduledSearchByIDSearchDomainScheduledSearch struct { +type __premarshalGetUsersByUsernameUsersUser struct { Id string `json:"id"` - Name string `json:"name"` - - Description *string `json:"description"` - - QueryString string `json:"queryString"` - - Start string `json:"start"` - - End string `json:"end"` + Username string `json:"username"` - TimeZone string `json:"timeZone"` + FullName *string `json:"fullName"` - Schedule string `json:"schedule"` + Email *string `json:"email"` - BackfillLimit int `json:"backfillLimit"` + Company *string `json:"company"` - Enabled bool `json:"enabled"` + CountryCode *string `json:"countryCode"` - ActionsV2 []json.RawMessage `json:"actionsV2"` + Picture *string `json:"picture"` - Labels []string `json:"labels"` + IsRoot bool `json:"isRoot"` - QueryOwnership json.RawMessage `json:"queryOwnership"` + CreatedAt time.Time `json:"createdAt"` } -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) MarshalJSON() ([]byte, error) { +func (v *GetUsersByUsernameUsersUser) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -7300,485 +7312,339 @@ func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) MarshalJSON() ([]byt return json.Marshal(premarshaled) } -func (v *GetScheduledSearchByIDSearchDomainScheduledSearch) __premarshalJSON() (*__premarshalGetScheduledSearchByIDSearchDomainScheduledSearch, error) { - var retval __premarshalGetScheduledSearchByIDSearchDomainScheduledSearch - - retval.Id = v.ScheduledSearchDetails.Id - retval.Name = v.ScheduledSearchDetails.Name - retval.Description = v.ScheduledSearchDetails.Description - retval.QueryString = v.ScheduledSearchDetails.QueryString - retval.Start = v.ScheduledSearchDetails.Start - retval.End = v.ScheduledSearchDetails.End - retval.TimeZone = v.ScheduledSearchDetails.TimeZone - retval.Schedule = v.ScheduledSearchDetails.Schedule - retval.BackfillLimit = v.ScheduledSearchDetails.BackfillLimit - retval.Enabled = v.ScheduledSearchDetails.Enabled - { - - dst := &retval.ActionsV2 - src := v.ScheduledSearchDetails.ActionsV2 - *dst = make( - []json.RawMessage, - len(src)) - for i, src := range src { - dst := &(*dst)[i] - var err error - *dst, err = __marshalScheduledSearchDetailsActionsV2Action( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal GetScheduledSearchByIDSearchDomainScheduledSearch.ScheduledSearchDetails.ActionsV2: %w", err) - } - } - } - retval.Labels = v.ScheduledSearchDetails.Labels - { +func (v *GetUsersByUsernameUsersUser) __premarshalJSON() (*__premarshalGetUsersByUsernameUsersUser, error) { + var retval __premarshalGetUsersByUsernameUsersUser - dst := &retval.QueryOwnership - src := v.ScheduledSearchDetails.QueryOwnership - var err error - *dst, err = __marshalSharedQueryOwnershipType( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal GetScheduledSearchByIDSearchDomainScheduledSearch.ScheduledSearchDetails.QueryOwnership: %w", err) - } - } + retval.Id = v.UserDetails.Id + retval.Username = v.UserDetails.Username + retval.FullName = v.UserDetails.FullName + retval.Email = v.UserDetails.Email + retval.Company = v.UserDetails.Company + retval.CountryCode = v.UserDetails.CountryCode + retval.Picture = v.UserDetails.Picture + retval.IsRoot = v.UserDetails.IsRoot + retval.CreatedAt = v.UserDetails.CreatedAt return &retval, nil } -// GetScheduledSearchByIDSearchDomainView includes the requested fields of the GraphQL type View. +// Http(s) Header entry. +type HttpHeaderEntryInput struct { + // Http(s) Header entry. + Header string `json:"header"` + // Http(s) Header entry. + Value string `json:"value"` +} + +// GetHeader returns HttpHeaderEntryInput.Header, and is useful for accessing the field via an interface. +func (v *HttpHeaderEntryInput) GetHeader() string { return v.Header } + +// GetValue returns HttpHeaderEntryInput.Value, and is useful for accessing the field via an interface. +func (v *HttpHeaderEntryInput) GetValue() string { return v.Value } + +// IngestTokenDetails includes the GraphQL fields of IngestToken requested by the fragment IngestTokenDetails. // The GraphQL type's documentation follows. // -// Represents information about a view, pulling data from one or several repositories. -type GetScheduledSearchByIDSearchDomainView struct { - Typename *string `json:"__typename"` - // Common interface for Repositories and Views. - ScheduledSearch GetScheduledSearchByIDSearchDomainScheduledSearch `json:"scheduledSearch"` +// An API ingest token used for sending data to LogScale. +type IngestTokenDetails struct { + Name string `json:"name"` + Token string `json:"token"` + Parser *IngestTokenDetailsParser `json:"parser"` } -// GetTypename returns GetScheduledSearchByIDSearchDomainView.Typename, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainView) GetTypename() *string { return v.Typename } +// GetName returns IngestTokenDetails.Name, and is useful for accessing the field via an interface. +func (v *IngestTokenDetails) GetName() string { return v.Name } -// GetScheduledSearch returns GetScheduledSearchByIDSearchDomainView.ScheduledSearch, and is useful for accessing the field via an interface. -func (v *GetScheduledSearchByIDSearchDomainView) GetScheduledSearch() GetScheduledSearchByIDSearchDomainScheduledSearch { - return v.ScheduledSearch -} +// GetToken returns IngestTokenDetails.Token, and is useful for accessing the field via an interface. +func (v *IngestTokenDetails) GetToken() string { return v.Token } -// GetSearchDomainResponse is returned by GetSearchDomain on success. -type GetSearchDomainResponse struct { - SearchDomain GetSearchDomainSearchDomain `json:"-"` -} +// GetParser returns IngestTokenDetails.Parser, and is useful for accessing the field via an interface. +func (v *IngestTokenDetails) GetParser() *IngestTokenDetailsParser { return v.Parser } -// GetSearchDomain returns GetSearchDomainResponse.SearchDomain, and is useful for accessing the field via an interface. -func (v *GetSearchDomainResponse) GetSearchDomain() GetSearchDomainSearchDomain { - return v.SearchDomain +// IngestTokenDetailsParser includes the requested fields of the GraphQL type Parser. +// The GraphQL type's documentation follows. +// +// A configured parser for incoming data. +type IngestTokenDetailsParser struct { + // Name of the parser. + Name string `json:"name"` } -func (v *GetSearchDomainResponse) UnmarshalJSON(b []byte) error { - - if string(b) == "null" { - return nil - } +// GetName returns IngestTokenDetailsParser.Name, and is useful for accessing the field via an interface. +func (v *IngestTokenDetailsParser) GetName() string { return v.Name } - var firstPass struct { - *GetSearchDomainResponse - SearchDomain json.RawMessage `json:"searchDomain"` - graphql.NoUnmarshalJSON - } - firstPass.GetSearchDomainResponse = v +// The version of the LogScale query language to use. +type LanguageVersionEnum string - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } +const ( + LanguageVersionEnumLegacy LanguageVersionEnum = "legacy" + LanguageVersionEnumXdr1 LanguageVersionEnum = "xdr1" + LanguageVersionEnumXdrdetects1 LanguageVersionEnum = "xdrdetects1" + LanguageVersionEnumFilteralert LanguageVersionEnum = "filteralert" + LanguageVersionEnumFederated1 LanguageVersionEnum = "federated1" +) - { - dst := &v.SearchDomain - src := firstPass.SearchDomain - if len(src) != 0 && string(src) != "null" { - err = __unmarshalGetSearchDomainSearchDomain( - src, dst) - if err != nil { - return fmt.Errorf( - "unable to unmarshal GetSearchDomainResponse.SearchDomain: %w", err) - } - } - } - return nil +// LegacyCreateParserCreateParserCreateParserMutation includes the requested fields of the GraphQL type CreateParserMutation. +type LegacyCreateParserCreateParserCreateParserMutation struct { + Parser LegacyCreateParserCreateParserCreateParserMutationParser `json:"parser"` } -type __premarshalGetSearchDomainResponse struct { - SearchDomain json.RawMessage `json:"searchDomain"` +// GetParser returns LegacyCreateParserCreateParserCreateParserMutation.Parser, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutation) GetParser() LegacyCreateParserCreateParserCreateParserMutationParser { + return v.Parser } -func (v *GetSearchDomainResponse) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) +// LegacyCreateParserCreateParserCreateParserMutationParser includes the requested fields of the GraphQL type Parser. +// The GraphQL type's documentation follows. +// +// A configured parser for incoming data. +type LegacyCreateParserCreateParserCreateParserMutationParser struct { + ParserDetails `json:"-"` } -func (v *GetSearchDomainResponse) __premarshalJSON() (*__premarshalGetSearchDomainResponse, error) { - var retval __premarshalGetSearchDomainResponse +// GetId returns LegacyCreateParserCreateParserCreateParserMutationParser.Id, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetId() string { + return v.ParserDetails.Id +} - { +// GetName returns LegacyCreateParserCreateParserCreateParserMutationParser.Name, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetName() string { + return v.ParserDetails.Name +} - dst := &retval.SearchDomain - src := v.SearchDomain - var err error - *dst, err = __marshalGetSearchDomainSearchDomain( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal GetSearchDomainResponse.SearchDomain: %w", err) - } - } - return &retval, nil +// GetDisplayName returns LegacyCreateParserCreateParserCreateParserMutationParser.DisplayName, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetDisplayName() string { + return v.ParserDetails.DisplayName } -// GetSearchDomainSearchDomain includes the requested fields of the GraphQL interface SearchDomain. -// -// GetSearchDomainSearchDomain is implemented by the following types: -// GetSearchDomainSearchDomainRepository -// GetSearchDomainSearchDomainView -// The GraphQL type's documentation follows. -// -// Common interface for Repositories and Views. -type GetSearchDomainSearchDomain interface { - implementsGraphQLInterfaceGetSearchDomainSearchDomain() - // GetId returns the interface-field "id" from its implementation. - // The GraphQL interface field's documentation follows. - // - // Common interface for Repositories and Views. - GetId() string - // GetName returns the interface-field "name" from its implementation. - // The GraphQL interface field's documentation follows. - // - // Common interface for Repositories and Views. - GetName() string - // GetDescription returns the interface-field "description" from its implementation. - // The GraphQL interface field's documentation follows. - // - // Common interface for Repositories and Views. - GetDescription() *string - // GetAutomaticSearch returns the interface-field "automaticSearch" from its implementation. - // The GraphQL interface field's documentation follows. - // - // Common interface for Repositories and Views. - GetAutomaticSearch() bool - // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). - GetTypename() *string +// GetDescription returns LegacyCreateParserCreateParserCreateParserMutationParser.Description, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetDescription() *string { + return v.ParserDetails.Description } -func (v *GetSearchDomainSearchDomainRepository) implementsGraphQLInterfaceGetSearchDomainSearchDomain() { +// GetIsBuiltIn returns LegacyCreateParserCreateParserCreateParserMutationParser.IsBuiltIn, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetIsBuiltIn() bool { + return v.ParserDetails.IsBuiltIn } -func (v *GetSearchDomainSearchDomainView) implementsGraphQLInterfaceGetSearchDomainSearchDomain() {} -func __unmarshalGetSearchDomainSearchDomain(b []byte, v *GetSearchDomainSearchDomain) error { +// GetScript returns LegacyCreateParserCreateParserCreateParserMutationParser.Script, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetScript() string { + return v.ParserDetails.Script +} + +// GetFieldsToTag returns LegacyCreateParserCreateParserCreateParserMutationParser.FieldsToTag, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetFieldsToTag() []string { + return v.ParserDetails.FieldsToTag +} + +// GetFieldsToBeRemovedBeforeParsing returns LegacyCreateParserCreateParserCreateParserMutationParser.FieldsToBeRemovedBeforeParsing, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetFieldsToBeRemovedBeforeParsing() []string { + return v.ParserDetails.FieldsToBeRemovedBeforeParsing +} + +// GetTestCases returns LegacyCreateParserCreateParserCreateParserMutationParser.TestCases, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetTestCases() []ParserDetailsTestCasesParserTestCase { + return v.ParserDetails.TestCases +} + +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) UnmarshalJSON(b []byte) error { + if string(b) == "null" { return nil } - var tn struct { - TypeName string `json:"__typename"` + var firstPass struct { + *LegacyCreateParserCreateParserCreateParserMutationParser + graphql.NoUnmarshalJSON } - err := json.Unmarshal(b, &tn) + firstPass.LegacyCreateParserCreateParserCreateParserMutationParser = v + + err := json.Unmarshal(b, &firstPass) if err != nil { return err } - switch tn.TypeName { - case "Repository": - *v = new(GetSearchDomainSearchDomainRepository) - return json.Unmarshal(b, *v) - case "View": - *v = new(GetSearchDomainSearchDomainView) - return json.Unmarshal(b, *v) - case "": - return fmt.Errorf( - "response was missing SearchDomain.__typename") - default: - return fmt.Errorf( - `unexpected concrete type for GetSearchDomainSearchDomain: "%v"`, tn.TypeName) + err = json.Unmarshal( + b, &v.ParserDetails) + if err != nil { + return err } + return nil } -func __marshalGetSearchDomainSearchDomain(v *GetSearchDomainSearchDomain) ([]byte, error) { - - var typename string - switch v := (*v).(type) { - case *GetSearchDomainSearchDomainRepository: - typename = "Repository" +type __premarshalLegacyCreateParserCreateParserCreateParserMutationParser struct { + Id string `json:"id"` - result := struct { - TypeName string `json:"__typename"` - *GetSearchDomainSearchDomainRepository - }{typename, v} - return json.Marshal(result) - case *GetSearchDomainSearchDomainView: - typename = "View" + Name string `json:"name"` - result := struct { - TypeName string `json:"__typename"` - *GetSearchDomainSearchDomainView - }{typename, v} - return json.Marshal(result) - case nil: - return []byte("null"), nil - default: - return nil, fmt.Errorf( - `unexpected concrete type for GetSearchDomainSearchDomain: "%T"`, v) - } -} + DisplayName string `json:"displayName"` -// GetSearchDomainSearchDomainRepository includes the requested fields of the GraphQL type Repository. -// The GraphQL type's documentation follows. -// -// A repository stores ingested data, configures parsers and data retention policies. -type GetSearchDomainSearchDomainRepository struct { - // Common interface for Repositories and Views. - Id string `json:"id"` - // Common interface for Repositories and Views. - Name string `json:"name"` - // Common interface for Repositories and Views. Description *string `json:"description"` - // Common interface for Repositories and Views. - AutomaticSearch bool `json:"automaticSearch"` - Typename *string `json:"__typename"` -} - -// GetId returns GetSearchDomainSearchDomainRepository.Id, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainRepository) GetId() string { return v.Id } -// GetName returns GetSearchDomainSearchDomainRepository.Name, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainRepository) GetName() string { return v.Name } + IsBuiltIn bool `json:"isBuiltIn"` -// GetDescription returns GetSearchDomainSearchDomainRepository.Description, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainRepository) GetDescription() *string { return v.Description } + Script string `json:"script"` -// GetAutomaticSearch returns GetSearchDomainSearchDomainRepository.AutomaticSearch, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainRepository) GetAutomaticSearch() bool { return v.AutomaticSearch } + FieldsToTag []string `json:"fieldsToTag"` -// GetTypename returns GetSearchDomainSearchDomainRepository.Typename, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainRepository) GetTypename() *string { return v.Typename } + FieldsToBeRemovedBeforeParsing []string `json:"fieldsToBeRemovedBeforeParsing"` -// GetSearchDomainSearchDomainView includes the requested fields of the GraphQL type View. -// The GraphQL type's documentation follows. -// -// Represents information about a view, pulling data from one or several repositories. -type GetSearchDomainSearchDomainView struct { - // Common interface for Repositories and Views. - Id string `json:"id"` - // Common interface for Repositories and Views. - Name string `json:"name"` - // Common interface for Repositories and Views. - Description *string `json:"description"` - // Common interface for Repositories and Views. - AutomaticSearch bool `json:"automaticSearch"` - Connections []GetSearchDomainSearchDomainViewConnectionsViewConnection `json:"connections"` - Typename *string `json:"__typename"` + TestCases []ParserDetailsTestCasesParserTestCase `json:"testCases"` } -// GetId returns GetSearchDomainSearchDomainView.Id, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainView) GetId() string { return v.Id } +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) MarshalJSON() ([]byte, error) { + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + return json.Marshal(premarshaled) +} -// GetName returns GetSearchDomainSearchDomainView.Name, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainView) GetName() string { return v.Name } +func (v *LegacyCreateParserCreateParserCreateParserMutationParser) __premarshalJSON() (*__premarshalLegacyCreateParserCreateParserCreateParserMutationParser, error) { + var retval __premarshalLegacyCreateParserCreateParserCreateParserMutationParser -// GetDescription returns GetSearchDomainSearchDomainView.Description, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainView) GetDescription() *string { return v.Description } + retval.Id = v.ParserDetails.Id + retval.Name = v.ParserDetails.Name + retval.DisplayName = v.ParserDetails.DisplayName + retval.Description = v.ParserDetails.Description + retval.IsBuiltIn = v.ParserDetails.IsBuiltIn + retval.Script = v.ParserDetails.Script + retval.FieldsToTag = v.ParserDetails.FieldsToTag + retval.FieldsToBeRemovedBeforeParsing = v.ParserDetails.FieldsToBeRemovedBeforeParsing + retval.TestCases = v.ParserDetails.TestCases + return &retval, nil +} -// GetAutomaticSearch returns GetSearchDomainSearchDomainView.AutomaticSearch, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainView) GetAutomaticSearch() bool { return v.AutomaticSearch } +// LegacyCreateParserResponse is returned by LegacyCreateParser on success. +type LegacyCreateParserResponse struct { + // Create a parser. + CreateParser LegacyCreateParserCreateParserCreateParserMutation `json:"createParser"` +} -// GetConnections returns GetSearchDomainSearchDomainView.Connections, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainView) GetConnections() []GetSearchDomainSearchDomainViewConnectionsViewConnection { - return v.Connections +// GetCreateParser returns LegacyCreateParserResponse.CreateParser, and is useful for accessing the field via an interface. +func (v *LegacyCreateParserResponse) GetCreateParser() LegacyCreateParserCreateParserCreateParserMutation { + return v.CreateParser } -// GetTypename returns GetSearchDomainSearchDomainView.Typename, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainView) GetTypename() *string { return v.Typename } +// LegacyDeleteParserByIDRemoveParserRemoveParserMutation includes the requested fields of the GraphQL type RemoveParserMutation. +type LegacyDeleteParserByIDRemoveParserRemoveParserMutation struct { + Typename *string `json:"__typename"` +} -// GetSearchDomainSearchDomainViewConnectionsViewConnection includes the requested fields of the GraphQL type ViewConnection. -// The GraphQL type's documentation follows. -// -// Represents the connection between a view and an underlying repository. -type GetSearchDomainSearchDomainViewConnectionsViewConnection struct { - // The underlying repository - Repository GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository `json:"repository"` - // The filter applied to all results from the repository. - Filter string `json:"filter"` +// GetTypename returns LegacyDeleteParserByIDRemoveParserRemoveParserMutation.Typename, and is useful for accessing the field via an interface. +func (v *LegacyDeleteParserByIDRemoveParserRemoveParserMutation) GetTypename() *string { + return v.Typename } -// GetRepository returns GetSearchDomainSearchDomainViewConnectionsViewConnection.Repository, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainViewConnectionsViewConnection) GetRepository() GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository { - return v.Repository +// LegacyDeleteParserByIDResponse is returned by LegacyDeleteParserByID on success. +type LegacyDeleteParserByIDResponse struct { + // Remove a parser. + RemoveParser LegacyDeleteParserByIDRemoveParserRemoveParserMutation `json:"removeParser"` } -// GetFilter returns GetSearchDomainSearchDomainViewConnectionsViewConnection.Filter, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainViewConnectionsViewConnection) GetFilter() string { - return v.Filter +// GetRemoveParser returns LegacyDeleteParserByIDResponse.RemoveParser, and is useful for accessing the field via an interface. +func (v *LegacyDeleteParserByIDResponse) GetRemoveParser() LegacyDeleteParserByIDRemoveParserRemoveParserMutation { + return v.RemoveParser } -// GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository includes the requested fields of the GraphQL type Repository. +// LegacyGetParserRepository includes the requested fields of the GraphQL type Repository. // The GraphQL type's documentation follows. // // A repository stores ingested data, configures parsers and data retention policies. -type GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository struct { - Name string `json:"name"` +type LegacyGetParserRepository struct { + // A parser on the repository. + Parser *LegacyGetParserRepositoryParser `json:"parser"` } -// GetName returns GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository.Name, and is useful for accessing the field via an interface. -func (v *GetSearchDomainSearchDomainViewConnectionsViewConnectionRepository) GetName() string { - return v.Name -} +// GetParser returns LegacyGetParserRepository.Parser, and is useful for accessing the field via an interface. +func (v *LegacyGetParserRepository) GetParser() *LegacyGetParserRepositoryParser { return v.Parser } -// GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2 includes the requested fields of the GraphQL type FeatureFlagV2. +// LegacyGetParserRepositoryParser includes the requested fields of the GraphQL type Parser. // The GraphQL type's documentation follows. // -// Feature flags with details -type GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2 struct { - Flag FeatureFlag `json:"flag"` - Experimental bool `json:"experimental"` - Description string `json:"description"` -} - -// GetFlag returns GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2.Flag, and is useful for accessing the field via an interface. -func (v *GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2) GetFlag() FeatureFlag { return v.Flag } - -// GetExperimental returns GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2.Experimental, and is useful for accessing the field via an interface. -func (v *GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2) GetExperimental() bool { - return v.Experimental -} - -// GetDescription returns GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2.Description, and is useful for accessing the field via an interface. -func (v *GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2) GetDescription() string { - return v.Description -} - -// GetSupportedFeatureFlagsResponse is returned by GetSupportedFeatureFlags on success. -type GetSupportedFeatureFlagsResponse struct { - // [PREVIEW: All flags should be considered as beta features. Enabling features that are marked as experimental is strongly discouraged and can lead to LogScale ending up in a bad state beyond repair.] List feature flags depending on filters and context - FeatureFlags []GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2 `json:"featureFlags"` +// A configured parser for incoming data. +type LegacyGetParserRepositoryParser struct { + // The id of the parser. + Id string `json:"id"` + // Name of the parser. + Name string `json:"name"` + // The source code of the parser. + SourceCode string `json:"sourceCode"` + // Saved test data (e.g. log lines) that you can use to test the parser. + TestData []string `json:"testData"` + // The fields to use as tags. + TagFields []string `json:"tagFields"` } -// GetFeatureFlags returns GetSupportedFeatureFlagsResponse.FeatureFlags, and is useful for accessing the field via an interface. -func (v *GetSupportedFeatureFlagsResponse) GetFeatureFlags() []GetSupportedFeatureFlagsFeatureFlagsFeatureFlagV2 { - return v.FeatureFlags -} +// GetId returns LegacyGetParserRepositoryParser.Id, and is useful for accessing the field via an interface. +func (v *LegacyGetParserRepositoryParser) GetId() string { return v.Id } -// GetUsernameResponse is returned by GetUsername on success. -type GetUsernameResponse struct { - // The currently authenticated user's account. - Viewer GetUsernameViewerAccount `json:"viewer"` -} +// GetName returns LegacyGetParserRepositoryParser.Name, and is useful for accessing the field via an interface. +func (v *LegacyGetParserRepositoryParser) GetName() string { return v.Name } -// GetViewer returns GetUsernameResponse.Viewer, and is useful for accessing the field via an interface. -func (v *GetUsernameResponse) GetViewer() GetUsernameViewerAccount { return v.Viewer } +// GetSourceCode returns LegacyGetParserRepositoryParser.SourceCode, and is useful for accessing the field via an interface. +func (v *LegacyGetParserRepositoryParser) GetSourceCode() string { return v.SourceCode } -// GetUsernameViewerAccount includes the requested fields of the GraphQL type Account. -// The GraphQL type's documentation follows. -// -// A user account. -type GetUsernameViewerAccount struct { - Username string `json:"username"` -} +// GetTestData returns LegacyGetParserRepositoryParser.TestData, and is useful for accessing the field via an interface. +func (v *LegacyGetParserRepositoryParser) GetTestData() []string { return v.TestData } -// GetUsername returns GetUsernameViewerAccount.Username, and is useful for accessing the field via an interface. -func (v *GetUsernameViewerAccount) GetUsername() string { return v.Username } +// GetTagFields returns LegacyGetParserRepositoryParser.TagFields, and is useful for accessing the field via an interface. +func (v *LegacyGetParserRepositoryParser) GetTagFields() []string { return v.TagFields } -// GetUsersByUsernameResponse is returned by GetUsersByUsername on success. -type GetUsersByUsernameResponse struct { - // Requires manage cluster permission; Returns all users in the system. - Users []GetUsersByUsernameUsersUser `json:"users"` +// LegacyGetParserResponse is returned by LegacyGetParser on success. +type LegacyGetParserResponse struct { + // Lookup a given repository by name. + Repository LegacyGetParserRepository `json:"repository"` } -// GetUsers returns GetUsersByUsernameResponse.Users, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameResponse) GetUsers() []GetUsersByUsernameUsersUser { return v.Users } +// GetRepository returns LegacyGetParserResponse.Repository, and is useful for accessing the field via an interface. +func (v *LegacyGetParserResponse) GetRepository() LegacyGetParserRepository { return v.Repository } -// GetUsersByUsernameUsersUser includes the requested fields of the GraphQL type User. -// The GraphQL type's documentation follows. -// -// A user profile. -type GetUsersByUsernameUsersUser struct { - UserDetails `json:"-"` +// ListActionsResponse is returned by ListActions on success. +type ListActionsResponse struct { + SearchDomain ListActionsSearchDomain `json:"-"` } -// GetId returns GetUsersByUsernameUsersUser.Id, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameUsersUser) GetId() string { return v.UserDetails.Id } - -// GetUsername returns GetUsersByUsernameUsersUser.Username, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameUsersUser) GetUsername() string { return v.UserDetails.Username } - -// GetFullName returns GetUsersByUsernameUsersUser.FullName, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameUsersUser) GetFullName() *string { return v.UserDetails.FullName } - -// GetEmail returns GetUsersByUsernameUsersUser.Email, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameUsersUser) GetEmail() *string { return v.UserDetails.Email } - -// GetCompany returns GetUsersByUsernameUsersUser.Company, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameUsersUser) GetCompany() *string { return v.UserDetails.Company } - -// GetCountryCode returns GetUsersByUsernameUsersUser.CountryCode, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameUsersUser) GetCountryCode() *string { return v.UserDetails.CountryCode } - -// GetPicture returns GetUsersByUsernameUsersUser.Picture, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameUsersUser) GetPicture() *string { return v.UserDetails.Picture } - -// GetIsRoot returns GetUsersByUsernameUsersUser.IsRoot, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameUsersUser) GetIsRoot() bool { return v.UserDetails.IsRoot } - -// GetCreatedAt returns GetUsersByUsernameUsersUser.CreatedAt, and is useful for accessing the field via an interface. -func (v *GetUsersByUsernameUsersUser) GetCreatedAt() time.Time { return v.UserDetails.CreatedAt } +// GetSearchDomain returns ListActionsResponse.SearchDomain, and is useful for accessing the field via an interface. +func (v *ListActionsResponse) GetSearchDomain() ListActionsSearchDomain { return v.SearchDomain } -func (v *GetUsersByUsernameUsersUser) UnmarshalJSON(b []byte) error { +func (v *ListActionsResponse) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *GetUsersByUsernameUsersUser + *ListActionsResponse + SearchDomain json.RawMessage `json:"searchDomain"` graphql.NoUnmarshalJSON } - firstPass.GetUsersByUsernameUsersUser = v + firstPass.ListActionsResponse = v err := json.Unmarshal(b, &firstPass) if err != nil { return err } - err = json.Unmarshal( - b, &v.UserDetails) - if err != nil { - return err + { + dst := &v.SearchDomain + src := firstPass.SearchDomain + if len(src) != 0 && string(src) != "null" { + err = __unmarshalListActionsSearchDomain( + src, dst) + if err != nil { + return fmt.Errorf( + "unable to unmarshal ListActionsResponse.SearchDomain: %w", err) + } + } } return nil } -type __premarshalGetUsersByUsernameUsersUser struct { - Id string `json:"id"` - - Username string `json:"username"` - - FullName *string `json:"fullName"` - - Email *string `json:"email"` - - Company *string `json:"company"` - - CountryCode *string `json:"countryCode"` - - Picture *string `json:"picture"` - - IsRoot bool `json:"isRoot"` - - CreatedAt time.Time `json:"createdAt"` +type __premarshalListActionsResponse struct { + SearchDomain json.RawMessage `json:"searchDomain"` } -func (v *GetUsersByUsernameUsersUser) MarshalJSON() ([]byte, error) { +func (v *ListActionsResponse) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -7786,339 +7652,406 @@ func (v *GetUsersByUsernameUsersUser) MarshalJSON() ([]byte, error) { return json.Marshal(premarshaled) } -func (v *GetUsersByUsernameUsersUser) __premarshalJSON() (*__premarshalGetUsersByUsernameUsersUser, error) { - var retval __premarshalGetUsersByUsernameUsersUser +func (v *ListActionsResponse) __premarshalJSON() (*__premarshalListActionsResponse, error) { + var retval __premarshalListActionsResponse - retval.Id = v.UserDetails.Id - retval.Username = v.UserDetails.Username - retval.FullName = v.UserDetails.FullName - retval.Email = v.UserDetails.Email - retval.Company = v.UserDetails.Company - retval.CountryCode = v.UserDetails.CountryCode - retval.Picture = v.UserDetails.Picture - retval.IsRoot = v.UserDetails.IsRoot - retval.CreatedAt = v.UserDetails.CreatedAt - return &retval, nil -} + { -// Http(s) Header entry. -type HttpHeaderEntryInput struct { - // Http(s) Header entry. - Header string `json:"header"` - // Http(s) Header entry. - Value string `json:"value"` + dst := &retval.SearchDomain + src := v.SearchDomain + var err error + *dst, err = __marshalListActionsSearchDomain( + &src) + if err != nil { + return nil, fmt.Errorf( + "unable to marshal ListActionsResponse.SearchDomain: %w", err) + } + } + return &retval, nil } -// GetHeader returns HttpHeaderEntryInput.Header, and is useful for accessing the field via an interface. -func (v *HttpHeaderEntryInput) GetHeader() string { return v.Header } - -// GetValue returns HttpHeaderEntryInput.Value, and is useful for accessing the field via an interface. -func (v *HttpHeaderEntryInput) GetValue() string { return v.Value } - -// IngestTokenDetails includes the GraphQL fields of IngestToken requested by the fragment IngestTokenDetails. -// The GraphQL type's documentation follows. +// ListActionsSearchDomain includes the requested fields of the GraphQL interface SearchDomain. // -// An API ingest token used for sending data to LogScale. -type IngestTokenDetails struct { - Name string `json:"name"` - Token string `json:"token"` - Parser *IngestTokenDetailsParser `json:"parser"` -} - -// GetName returns IngestTokenDetails.Name, and is useful for accessing the field via an interface. -func (v *IngestTokenDetails) GetName() string { return v.Name } - -// GetToken returns IngestTokenDetails.Token, and is useful for accessing the field via an interface. -func (v *IngestTokenDetails) GetToken() string { return v.Token } - -// GetParser returns IngestTokenDetails.Parser, and is useful for accessing the field via an interface. -func (v *IngestTokenDetails) GetParser() *IngestTokenDetailsParser { return v.Parser } - -// IngestTokenDetailsParser includes the requested fields of the GraphQL type Parser. +// ListActionsSearchDomain is implemented by the following types: +// ListActionsSearchDomainRepository +// ListActionsSearchDomainView // The GraphQL type's documentation follows. // -// A configured parser for incoming data. -type IngestTokenDetailsParser struct { - // Name of the parser. - Name string `json:"name"` +// Common interface for Repositories and Views. +type ListActionsSearchDomain interface { + implementsGraphQLInterfaceListActionsSearchDomain() + // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). + GetTypename() *string + // GetActions returns the interface-field "actions" from its implementation. + // The GraphQL interface field's documentation follows. + // + // Common interface for Repositories and Views. + GetActions() []ListActionsSearchDomainActionsAction } -// GetName returns IngestTokenDetailsParser.Name, and is useful for accessing the field via an interface. -func (v *IngestTokenDetailsParser) GetName() string { return v.Name } +func (v *ListActionsSearchDomainRepository) implementsGraphQLInterfaceListActionsSearchDomain() {} +func (v *ListActionsSearchDomainView) implementsGraphQLInterfaceListActionsSearchDomain() {} -// The version of the LogScale query language to use. -type LanguageVersionEnum string +func __unmarshalListActionsSearchDomain(b []byte, v *ListActionsSearchDomain) error { + if string(b) == "null" { + return nil + } -const ( - LanguageVersionEnumLegacy LanguageVersionEnum = "legacy" - LanguageVersionEnumXdr1 LanguageVersionEnum = "xdr1" - LanguageVersionEnumXdrdetects1 LanguageVersionEnum = "xdrdetects1" - LanguageVersionEnumFilteralert LanguageVersionEnum = "filteralert" - LanguageVersionEnumFederated1 LanguageVersionEnum = "federated1" -) + var tn struct { + TypeName string `json:"__typename"` + } + err := json.Unmarshal(b, &tn) + if err != nil { + return err + } -// LegacyCreateParserCreateParserCreateParserMutation includes the requested fields of the GraphQL type CreateParserMutation. -type LegacyCreateParserCreateParserCreateParserMutation struct { - Parser LegacyCreateParserCreateParserCreateParserMutationParser `json:"parser"` + switch tn.TypeName { + case "Repository": + *v = new(ListActionsSearchDomainRepository) + return json.Unmarshal(b, *v) + case "View": + *v = new(ListActionsSearchDomainView) + return json.Unmarshal(b, *v) + case "": + return fmt.Errorf( + "response was missing SearchDomain.__typename") + default: + return fmt.Errorf( + `unexpected concrete type for ListActionsSearchDomain: "%v"`, tn.TypeName) + } } -// GetParser returns LegacyCreateParserCreateParserCreateParserMutation.Parser, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutation) GetParser() LegacyCreateParserCreateParserCreateParserMutationParser { - return v.Parser +func __marshalListActionsSearchDomain(v *ListActionsSearchDomain) ([]byte, error) { + + var typename string + switch v := (*v).(type) { + case *ListActionsSearchDomainRepository: + typename = "Repository" + + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainRepository + }{typename, premarshaled} + return json.Marshal(result) + case *ListActionsSearchDomainView: + typename = "View" + + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainView + }{typename, premarshaled} + return json.Marshal(result) + case nil: + return []byte("null"), nil + default: + return nil, fmt.Errorf( + `unexpected concrete type for ListActionsSearchDomain: "%T"`, v) + } } -// LegacyCreateParserCreateParserCreateParserMutationParser includes the requested fields of the GraphQL type Parser. +// ListActionsSearchDomainActionsAction includes the requested fields of the GraphQL interface Action. +// +// ListActionsSearchDomainActionsAction is implemented by the following types: +// ListActionsSearchDomainActionsEmailAction +// ListActionsSearchDomainActionsHumioRepoAction +// ListActionsSearchDomainActionsOpsGenieAction +// ListActionsSearchDomainActionsPagerDutyAction +// ListActionsSearchDomainActionsSlackAction +// ListActionsSearchDomainActionsSlackPostMessageAction +// ListActionsSearchDomainActionsUploadFileAction +// ListActionsSearchDomainActionsVictorOpsAction +// ListActionsSearchDomainActionsWebhookAction // The GraphQL type's documentation follows. // -// A configured parser for incoming data. -type LegacyCreateParserCreateParserCreateParserMutationParser struct { - ParserDetails `json:"-"` +// An action that can be invoked from a trigger. +type ListActionsSearchDomainActionsAction interface { + implementsGraphQLInterfaceListActionsSearchDomainActionsAction() + // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). + GetTypename() *string + ActionDetails } -// GetId returns LegacyCreateParserCreateParserCreateParserMutationParser.Id, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetId() string { - return v.ParserDetails.Id +func (v *ListActionsSearchDomainActionsEmailAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { } - -// GetName returns LegacyCreateParserCreateParserCreateParserMutationParser.Name, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetName() string { - return v.ParserDetails.Name +func (v *ListActionsSearchDomainActionsHumioRepoAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { } - -// GetDisplayName returns LegacyCreateParserCreateParserCreateParserMutationParser.DisplayName, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetDisplayName() string { - return v.ParserDetails.DisplayName +func (v *ListActionsSearchDomainActionsOpsGenieAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { } - -// GetDescription returns LegacyCreateParserCreateParserCreateParserMutationParser.Description, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetDescription() *string { - return v.ParserDetails.Description +func (v *ListActionsSearchDomainActionsPagerDutyAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { } - -// GetIsBuiltIn returns LegacyCreateParserCreateParserCreateParserMutationParser.IsBuiltIn, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetIsBuiltIn() bool { - return v.ParserDetails.IsBuiltIn +func (v *ListActionsSearchDomainActionsSlackAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { } - -// GetScript returns LegacyCreateParserCreateParserCreateParserMutationParser.Script, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetScript() string { - return v.ParserDetails.Script +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { } - -// GetFieldsToTag returns LegacyCreateParserCreateParserCreateParserMutationParser.FieldsToTag, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetFieldsToTag() []string { - return v.ParserDetails.FieldsToTag +func (v *ListActionsSearchDomainActionsUploadFileAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { } - -// GetFieldsToBeRemovedBeforeParsing returns LegacyCreateParserCreateParserCreateParserMutationParser.FieldsToBeRemovedBeforeParsing, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetFieldsToBeRemovedBeforeParsing() []string { - return v.ParserDetails.FieldsToBeRemovedBeforeParsing +func (v *ListActionsSearchDomainActionsVictorOpsAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { } - -// GetTestCases returns LegacyCreateParserCreateParserCreateParserMutationParser.TestCases, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) GetTestCases() []ParserDetailsTestCasesParserTestCase { - return v.ParserDetails.TestCases +func (v *ListActionsSearchDomainActionsWebhookAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { } -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) UnmarshalJSON(b []byte) error { - +func __unmarshalListActionsSearchDomainActionsAction(b []byte, v *ListActionsSearchDomainActionsAction) error { if string(b) == "null" { return nil } - var firstPass struct { - *LegacyCreateParserCreateParserCreateParserMutationParser - graphql.NoUnmarshalJSON + var tn struct { + TypeName string `json:"__typename"` } - firstPass.LegacyCreateParserCreateParserCreateParserMutationParser = v - - err := json.Unmarshal(b, &firstPass) + err := json.Unmarshal(b, &tn) if err != nil { return err } - err = json.Unmarshal( - b, &v.ParserDetails) - if err != nil { - return err + switch tn.TypeName { + case "EmailAction": + *v = new(ListActionsSearchDomainActionsEmailAction) + return json.Unmarshal(b, *v) + case "HumioRepoAction": + *v = new(ListActionsSearchDomainActionsHumioRepoAction) + return json.Unmarshal(b, *v) + case "OpsGenieAction": + *v = new(ListActionsSearchDomainActionsOpsGenieAction) + return json.Unmarshal(b, *v) + case "PagerDutyAction": + *v = new(ListActionsSearchDomainActionsPagerDutyAction) + return json.Unmarshal(b, *v) + case "SlackAction": + *v = new(ListActionsSearchDomainActionsSlackAction) + return json.Unmarshal(b, *v) + case "SlackPostMessageAction": + *v = new(ListActionsSearchDomainActionsSlackPostMessageAction) + return json.Unmarshal(b, *v) + case "UploadFileAction": + *v = new(ListActionsSearchDomainActionsUploadFileAction) + return json.Unmarshal(b, *v) + case "VictorOpsAction": + *v = new(ListActionsSearchDomainActionsVictorOpsAction) + return json.Unmarshal(b, *v) + case "WebhookAction": + *v = new(ListActionsSearchDomainActionsWebhookAction) + return json.Unmarshal(b, *v) + case "": + return fmt.Errorf( + "response was missing Action.__typename") + default: + return fmt.Errorf( + `unexpected concrete type for ListActionsSearchDomainActionsAction: "%v"`, tn.TypeName) } - return nil } -type __premarshalLegacyCreateParserCreateParserCreateParserMutationParser struct { - Id string `json:"id"` - - Name string `json:"name"` - - DisplayName string `json:"displayName"` +func __marshalListActionsSearchDomainActionsAction(v *ListActionsSearchDomainActionsAction) ([]byte, error) { - Description *string `json:"description"` + var typename string + switch v := (*v).(type) { + case *ListActionsSearchDomainActionsEmailAction: + typename = "EmailAction" - IsBuiltIn bool `json:"isBuiltIn"` + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainActionsEmailAction + }{typename, premarshaled} + return json.Marshal(result) + case *ListActionsSearchDomainActionsHumioRepoAction: + typename = "HumioRepoAction" - Script string `json:"script"` + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainActionsHumioRepoAction + }{typename, premarshaled} + return json.Marshal(result) + case *ListActionsSearchDomainActionsOpsGenieAction: + typename = "OpsGenieAction" - FieldsToTag []string `json:"fieldsToTag"` + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainActionsOpsGenieAction + }{typename, premarshaled} + return json.Marshal(result) + case *ListActionsSearchDomainActionsPagerDutyAction: + typename = "PagerDutyAction" - FieldsToBeRemovedBeforeParsing []string `json:"fieldsToBeRemovedBeforeParsing"` + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainActionsPagerDutyAction + }{typename, premarshaled} + return json.Marshal(result) + case *ListActionsSearchDomainActionsSlackAction: + typename = "SlackAction" - TestCases []ParserDetailsTestCasesParserTestCase `json:"testCases"` -} + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainActionsSlackAction + }{typename, premarshaled} + return json.Marshal(result) + case *ListActionsSearchDomainActionsSlackPostMessageAction: + typename = "SlackPostMessageAction" -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) -} - -func (v *LegacyCreateParserCreateParserCreateParserMutationParser) __premarshalJSON() (*__premarshalLegacyCreateParserCreateParserCreateParserMutationParser, error) { - var retval __premarshalLegacyCreateParserCreateParserCreateParserMutationParser + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainActionsSlackPostMessageAction + }{typename, premarshaled} + return json.Marshal(result) + case *ListActionsSearchDomainActionsUploadFileAction: + typename = "UploadFileAction" - retval.Id = v.ParserDetails.Id - retval.Name = v.ParserDetails.Name - retval.DisplayName = v.ParserDetails.DisplayName - retval.Description = v.ParserDetails.Description - retval.IsBuiltIn = v.ParserDetails.IsBuiltIn - retval.Script = v.ParserDetails.Script - retval.FieldsToTag = v.ParserDetails.FieldsToTag - retval.FieldsToBeRemovedBeforeParsing = v.ParserDetails.FieldsToBeRemovedBeforeParsing - retval.TestCases = v.ParserDetails.TestCases - return &retval, nil -} + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainActionsUploadFileAction + }{typename, premarshaled} + return json.Marshal(result) + case *ListActionsSearchDomainActionsVictorOpsAction: + typename = "VictorOpsAction" -// LegacyCreateParserResponse is returned by LegacyCreateParser on success. -type LegacyCreateParserResponse struct { - // Create a parser. - CreateParser LegacyCreateParserCreateParserCreateParserMutation `json:"createParser"` -} + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainActionsVictorOpsAction + }{typename, premarshaled} + return json.Marshal(result) + case *ListActionsSearchDomainActionsWebhookAction: + typename = "WebhookAction" -// GetCreateParser returns LegacyCreateParserResponse.CreateParser, and is useful for accessing the field via an interface. -func (v *LegacyCreateParserResponse) GetCreateParser() LegacyCreateParserCreateParserCreateParserMutation { - return v.CreateParser + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + result := struct { + TypeName string `json:"__typename"` + *__premarshalListActionsSearchDomainActionsWebhookAction + }{typename, premarshaled} + return json.Marshal(result) + case nil: + return []byte("null"), nil + default: + return nil, fmt.Errorf( + `unexpected concrete type for ListActionsSearchDomainActionsAction: "%T"`, v) + } } -// LegacyDeleteParserByIDRemoveParserRemoveParserMutation includes the requested fields of the GraphQL type RemoveParserMutation. -type LegacyDeleteParserByIDRemoveParserRemoveParserMutation struct { - Typename *string `json:"__typename"` +// ListActionsSearchDomainActionsEmailAction includes the requested fields of the GraphQL type EmailAction. +// The GraphQL type's documentation follows. +// +// An email action. +type ListActionsSearchDomainActionsEmailAction struct { + Typename *string `json:"__typename"` + ActionDetailsEmailAction `json:"-"` } -// GetTypename returns LegacyDeleteParserByIDRemoveParserRemoveParserMutation.Typename, and is useful for accessing the field via an interface. -func (v *LegacyDeleteParserByIDRemoveParserRemoveParserMutation) GetTypename() *string { - return v.Typename -} +// GetTypename returns ListActionsSearchDomainActionsEmailAction.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsEmailAction) GetTypename() *string { return v.Typename } -// LegacyDeleteParserByIDResponse is returned by LegacyDeleteParserByID on success. -type LegacyDeleteParserByIDResponse struct { - // Remove a parser. - RemoveParser LegacyDeleteParserByIDRemoveParserRemoveParserMutation `json:"removeParser"` +// GetId returns ListActionsSearchDomainActionsEmailAction.Id, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsEmailAction) GetId() string { + return v.ActionDetailsEmailAction.Id } -// GetRemoveParser returns LegacyDeleteParserByIDResponse.RemoveParser, and is useful for accessing the field via an interface. -func (v *LegacyDeleteParserByIDResponse) GetRemoveParser() LegacyDeleteParserByIDRemoveParserRemoveParserMutation { - return v.RemoveParser +// GetName returns ListActionsSearchDomainActionsEmailAction.Name, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsEmailAction) GetName() string { + return v.ActionDetailsEmailAction.Name } -// LegacyGetParserRepository includes the requested fields of the GraphQL type Repository. -// The GraphQL type's documentation follows. -// -// A repository stores ingested data, configures parsers and data retention policies. -type LegacyGetParserRepository struct { - // A parser on the repository. - Parser *LegacyGetParserRepositoryParser `json:"parser"` +// GetRecipients returns ListActionsSearchDomainActionsEmailAction.Recipients, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsEmailAction) GetRecipients() []string { + return v.ActionDetailsEmailAction.Recipients } -// GetParser returns LegacyGetParserRepository.Parser, and is useful for accessing the field via an interface. -func (v *LegacyGetParserRepository) GetParser() *LegacyGetParserRepositoryParser { return v.Parser } - -// LegacyGetParserRepositoryParser includes the requested fields of the GraphQL type Parser. -// The GraphQL type's documentation follows. -// -// A configured parser for incoming data. -type LegacyGetParserRepositoryParser struct { - // The id of the parser. - Id string `json:"id"` - // Name of the parser. - Name string `json:"name"` - // The source code of the parser. - SourceCode string `json:"sourceCode"` - // Saved test data (e.g. log lines) that you can use to test the parser. - TestData []string `json:"testData"` - // The fields to use as tags. - TagFields []string `json:"tagFields"` +// GetSubjectTemplate returns ListActionsSearchDomainActionsEmailAction.SubjectTemplate, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsEmailAction) GetSubjectTemplate() *string { + return v.ActionDetailsEmailAction.SubjectTemplate } -// GetId returns LegacyGetParserRepositoryParser.Id, and is useful for accessing the field via an interface. -func (v *LegacyGetParserRepositoryParser) GetId() string { return v.Id } - -// GetName returns LegacyGetParserRepositoryParser.Name, and is useful for accessing the field via an interface. -func (v *LegacyGetParserRepositoryParser) GetName() string { return v.Name } - -// GetSourceCode returns LegacyGetParserRepositoryParser.SourceCode, and is useful for accessing the field via an interface. -func (v *LegacyGetParserRepositoryParser) GetSourceCode() string { return v.SourceCode } - -// GetTestData returns LegacyGetParserRepositoryParser.TestData, and is useful for accessing the field via an interface. -func (v *LegacyGetParserRepositoryParser) GetTestData() []string { return v.TestData } - -// GetTagFields returns LegacyGetParserRepositoryParser.TagFields, and is useful for accessing the field via an interface. -func (v *LegacyGetParserRepositoryParser) GetTagFields() []string { return v.TagFields } - -// LegacyGetParserResponse is returned by LegacyGetParser on success. -type LegacyGetParserResponse struct { - // Lookup a given repository by name. - Repository LegacyGetParserRepository `json:"repository"` +// GetEmailBodyTemplate returns ListActionsSearchDomainActionsEmailAction.EmailBodyTemplate, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsEmailAction) GetEmailBodyTemplate() *string { + return v.ActionDetailsEmailAction.EmailBodyTemplate } -// GetRepository returns LegacyGetParserResponse.Repository, and is useful for accessing the field via an interface. -func (v *LegacyGetParserResponse) GetRepository() LegacyGetParserRepository { return v.Repository } - -// ListActionsResponse is returned by ListActions on success. -type ListActionsResponse struct { - SearchDomain ListActionsSearchDomain `json:"-"` +// GetUseProxy returns ListActionsSearchDomainActionsEmailAction.UseProxy, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsEmailAction) GetUseProxy() bool { + return v.ActionDetailsEmailAction.UseProxy } -// GetSearchDomain returns ListActionsResponse.SearchDomain, and is useful for accessing the field via an interface. -func (v *ListActionsResponse) GetSearchDomain() ListActionsSearchDomain { return v.SearchDomain } - -func (v *ListActionsResponse) UnmarshalJSON(b []byte) error { +func (v *ListActionsSearchDomainActionsEmailAction) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsResponse - SearchDomain json.RawMessage `json:"searchDomain"` + *ListActionsSearchDomainActionsEmailAction graphql.NoUnmarshalJSON } - firstPass.ListActionsResponse = v + firstPass.ListActionsSearchDomainActionsEmailAction = v err := json.Unmarshal(b, &firstPass) if err != nil { return err } - { - dst := &v.SearchDomain - src := firstPass.SearchDomain - if len(src) != 0 && string(src) != "null" { - err = __unmarshalListActionsSearchDomain( - src, dst) - if err != nil { - return fmt.Errorf( - "unable to unmarshal ListActionsResponse.SearchDomain: %w", err) - } - } + err = json.Unmarshal( + b, &v.ActionDetailsEmailAction) + if err != nil { + return err } return nil } -type __premarshalListActionsResponse struct { - SearchDomain json.RawMessage `json:"searchDomain"` +type __premarshalListActionsSearchDomainActionsEmailAction struct { + Typename *string `json:"__typename"` + + Id string `json:"id"` + + Name string `json:"name"` + + Recipients []string `json:"recipients"` + + SubjectTemplate *string `json:"subjectTemplate"` + + EmailBodyTemplate *string `json:"emailBodyTemplate"` + + UseProxy bool `json:"useProxy"` } -func (v *ListActionsResponse) MarshalJSON() ([]byte, error) { +func (v *ListActionsSearchDomainActionsEmailAction) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -8126,375 +8059,243 @@ func (v *ListActionsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(premarshaled) } -func (v *ListActionsResponse) __premarshalJSON() (*__premarshalListActionsResponse, error) { - var retval __premarshalListActionsResponse - - { +func (v *ListActionsSearchDomainActionsEmailAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsEmailAction, error) { + var retval __premarshalListActionsSearchDomainActionsEmailAction - dst := &retval.SearchDomain - src := v.SearchDomain - var err error - *dst, err = __marshalListActionsSearchDomain( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal ListActionsResponse.SearchDomain: %w", err) - } - } + retval.Typename = v.Typename + retval.Id = v.ActionDetailsEmailAction.Id + retval.Name = v.ActionDetailsEmailAction.Name + retval.Recipients = v.ActionDetailsEmailAction.Recipients + retval.SubjectTemplate = v.ActionDetailsEmailAction.SubjectTemplate + retval.EmailBodyTemplate = v.ActionDetailsEmailAction.EmailBodyTemplate + retval.UseProxy = v.ActionDetailsEmailAction.UseProxy return &retval, nil } -// ListActionsSearchDomain includes the requested fields of the GraphQL interface SearchDomain. -// -// ListActionsSearchDomain is implemented by the following types: -// ListActionsSearchDomainRepository -// ListActionsSearchDomainView +// ListActionsSearchDomainActionsHumioRepoAction includes the requested fields of the GraphQL type HumioRepoAction. // The GraphQL type's documentation follows. // -// Common interface for Repositories and Views. -type ListActionsSearchDomain interface { - implementsGraphQLInterfaceListActionsSearchDomain() - // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). - GetTypename() *string - // GetActions returns the interface-field "actions" from its implementation. - // The GraphQL interface field's documentation follows. - // - // Common interface for Repositories and Views. - GetActions() []ListActionsSearchDomainActionsAction +// A LogScale repository action. +type ListActionsSearchDomainActionsHumioRepoAction struct { + Typename *string `json:"__typename"` + ActionDetailsHumioRepoAction `json:"-"` } -func (v *ListActionsSearchDomainRepository) implementsGraphQLInterfaceListActionsSearchDomain() {} -func (v *ListActionsSearchDomainView) implementsGraphQLInterfaceListActionsSearchDomain() {} +// GetTypename returns ListActionsSearchDomainActionsHumioRepoAction.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsHumioRepoAction) GetTypename() *string { return v.Typename } + +// GetId returns ListActionsSearchDomainActionsHumioRepoAction.Id, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsHumioRepoAction) GetId() string { + return v.ActionDetailsHumioRepoAction.Id +} + +// GetName returns ListActionsSearchDomainActionsHumioRepoAction.Name, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsHumioRepoAction) GetName() string { + return v.ActionDetailsHumioRepoAction.Name +} + +// GetIngestToken returns ListActionsSearchDomainActionsHumioRepoAction.IngestToken, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsHumioRepoAction) GetIngestToken() string { + return v.ActionDetailsHumioRepoAction.IngestToken +} + +func (v *ListActionsSearchDomainActionsHumioRepoAction) UnmarshalJSON(b []byte) error { -func __unmarshalListActionsSearchDomain(b []byte, v *ListActionsSearchDomain) error { if string(b) == "null" { return nil } - var tn struct { - TypeName string `json:"__typename"` + var firstPass struct { + *ListActionsSearchDomainActionsHumioRepoAction + graphql.NoUnmarshalJSON } - err := json.Unmarshal(b, &tn) + firstPass.ListActionsSearchDomainActionsHumioRepoAction = v + + err := json.Unmarshal(b, &firstPass) if err != nil { return err } - switch tn.TypeName { - case "Repository": - *v = new(ListActionsSearchDomainRepository) - return json.Unmarshal(b, *v) - case "View": - *v = new(ListActionsSearchDomainView) - return json.Unmarshal(b, *v) - case "": - return fmt.Errorf( - "response was missing SearchDomain.__typename") - default: - return fmt.Errorf( - `unexpected concrete type for ListActionsSearchDomain: "%v"`, tn.TypeName) + err = json.Unmarshal( + b, &v.ActionDetailsHumioRepoAction) + if err != nil { + return err } + return nil } -func __marshalListActionsSearchDomain(v *ListActionsSearchDomain) ([]byte, error) { +type __premarshalListActionsSearchDomainActionsHumioRepoAction struct { + Typename *string `json:"__typename"` - var typename string - switch v := (*v).(type) { - case *ListActionsSearchDomainRepository: - typename = "Repository" + Id string `json:"id"` - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainRepository - }{typename, premarshaled} - return json.Marshal(result) - case *ListActionsSearchDomainView: - typename = "View" + Name string `json:"name"` - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainView - }{typename, premarshaled} - return json.Marshal(result) - case nil: - return []byte("null"), nil - default: - return nil, fmt.Errorf( - `unexpected concrete type for ListActionsSearchDomain: "%T"`, v) + IngestToken string `json:"ingestToken"` +} + +func (v *ListActionsSearchDomainActionsHumioRepoAction) MarshalJSON() ([]byte, error) { + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err } + return json.Marshal(premarshaled) } -// ListActionsSearchDomainActionsAction includes the requested fields of the GraphQL interface Action. -// -// ListActionsSearchDomainActionsAction is implemented by the following types: -// ListActionsSearchDomainActionsEmailAction -// ListActionsSearchDomainActionsHumioRepoAction -// ListActionsSearchDomainActionsOpsGenieAction -// ListActionsSearchDomainActionsPagerDutyAction -// ListActionsSearchDomainActionsSlackAction -// ListActionsSearchDomainActionsSlackPostMessageAction -// ListActionsSearchDomainActionsUploadFileAction -// ListActionsSearchDomainActionsVictorOpsAction -// ListActionsSearchDomainActionsWebhookAction +func (v *ListActionsSearchDomainActionsHumioRepoAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsHumioRepoAction, error) { + var retval __premarshalListActionsSearchDomainActionsHumioRepoAction + + retval.Typename = v.Typename + retval.Id = v.ActionDetailsHumioRepoAction.Id + retval.Name = v.ActionDetailsHumioRepoAction.Name + retval.IngestToken = v.ActionDetailsHumioRepoAction.IngestToken + return &retval, nil +} + +// ListActionsSearchDomainActionsOpsGenieAction includes the requested fields of the GraphQL type OpsGenieAction. // The GraphQL type's documentation follows. // -// An action that can be invoked from a trigger. -type ListActionsSearchDomainActionsAction interface { - implementsGraphQLInterfaceListActionsSearchDomainActionsAction() - // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). - GetTypename() *string - ActionDetails +// An OpsGenie action +type ListActionsSearchDomainActionsOpsGenieAction struct { + Typename *string `json:"__typename"` + ActionDetailsOpsGenieAction `json:"-"` } -func (v *ListActionsSearchDomainActionsEmailAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { -} -func (v *ListActionsSearchDomainActionsHumioRepoAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { -} -func (v *ListActionsSearchDomainActionsOpsGenieAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { -} -func (v *ListActionsSearchDomainActionsPagerDutyAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { -} -func (v *ListActionsSearchDomainActionsSlackAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { +// GetTypename returns ListActionsSearchDomainActionsOpsGenieAction.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsOpsGenieAction) GetTypename() *string { return v.Typename } + +// GetId returns ListActionsSearchDomainActionsOpsGenieAction.Id, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsOpsGenieAction) GetId() string { + return v.ActionDetailsOpsGenieAction.Id } -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { + +// GetName returns ListActionsSearchDomainActionsOpsGenieAction.Name, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsOpsGenieAction) GetName() string { + return v.ActionDetailsOpsGenieAction.Name } -func (v *ListActionsSearchDomainActionsUploadFileAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { + +// GetApiUrl returns ListActionsSearchDomainActionsOpsGenieAction.ApiUrl, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsOpsGenieAction) GetApiUrl() string { + return v.ActionDetailsOpsGenieAction.ApiUrl } -func (v *ListActionsSearchDomainActionsVictorOpsAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { + +// GetGenieKey returns ListActionsSearchDomainActionsOpsGenieAction.GenieKey, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsOpsGenieAction) GetGenieKey() string { + return v.ActionDetailsOpsGenieAction.GenieKey } -func (v *ListActionsSearchDomainActionsWebhookAction) implementsGraphQLInterfaceListActionsSearchDomainActionsAction() { + +// GetUseProxy returns ListActionsSearchDomainActionsOpsGenieAction.UseProxy, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsOpsGenieAction) GetUseProxy() bool { + return v.ActionDetailsOpsGenieAction.UseProxy } -func __unmarshalListActionsSearchDomainActionsAction(b []byte, v *ListActionsSearchDomainActionsAction) error { +func (v *ListActionsSearchDomainActionsOpsGenieAction) UnmarshalJSON(b []byte) error { + if string(b) == "null" { return nil } - var tn struct { - TypeName string `json:"__typename"` + var firstPass struct { + *ListActionsSearchDomainActionsOpsGenieAction + graphql.NoUnmarshalJSON } - err := json.Unmarshal(b, &tn) + firstPass.ListActionsSearchDomainActionsOpsGenieAction = v + + err := json.Unmarshal(b, &firstPass) if err != nil { return err } - switch tn.TypeName { - case "EmailAction": - *v = new(ListActionsSearchDomainActionsEmailAction) - return json.Unmarshal(b, *v) - case "HumioRepoAction": - *v = new(ListActionsSearchDomainActionsHumioRepoAction) - return json.Unmarshal(b, *v) - case "OpsGenieAction": - *v = new(ListActionsSearchDomainActionsOpsGenieAction) - return json.Unmarshal(b, *v) - case "PagerDutyAction": - *v = new(ListActionsSearchDomainActionsPagerDutyAction) - return json.Unmarshal(b, *v) - case "SlackAction": - *v = new(ListActionsSearchDomainActionsSlackAction) - return json.Unmarshal(b, *v) - case "SlackPostMessageAction": - *v = new(ListActionsSearchDomainActionsSlackPostMessageAction) - return json.Unmarshal(b, *v) - case "UploadFileAction": - *v = new(ListActionsSearchDomainActionsUploadFileAction) - return json.Unmarshal(b, *v) - case "VictorOpsAction": - *v = new(ListActionsSearchDomainActionsVictorOpsAction) - return json.Unmarshal(b, *v) - case "WebhookAction": - *v = new(ListActionsSearchDomainActionsWebhookAction) - return json.Unmarshal(b, *v) - case "": - return fmt.Errorf( - "response was missing Action.__typename") - default: - return fmt.Errorf( - `unexpected concrete type for ListActionsSearchDomainActionsAction: "%v"`, tn.TypeName) + err = json.Unmarshal( + b, &v.ActionDetailsOpsGenieAction) + if err != nil { + return err } + return nil } -func __marshalListActionsSearchDomainActionsAction(v *ListActionsSearchDomainActionsAction) ([]byte, error) { +type __premarshalListActionsSearchDomainActionsOpsGenieAction struct { + Typename *string `json:"__typename"` - var typename string - switch v := (*v).(type) { - case *ListActionsSearchDomainActionsEmailAction: - typename = "EmailAction" + Id string `json:"id"` - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainActionsEmailAction - }{typename, premarshaled} - return json.Marshal(result) - case *ListActionsSearchDomainActionsHumioRepoAction: - typename = "HumioRepoAction" + Name string `json:"name"` - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainActionsHumioRepoAction - }{typename, premarshaled} - return json.Marshal(result) - case *ListActionsSearchDomainActionsOpsGenieAction: - typename = "OpsGenieAction" + ApiUrl string `json:"apiUrl"` - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainActionsOpsGenieAction - }{typename, premarshaled} - return json.Marshal(result) - case *ListActionsSearchDomainActionsPagerDutyAction: - typename = "PagerDutyAction" + GenieKey string `json:"genieKey"` - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainActionsPagerDutyAction - }{typename, premarshaled} - return json.Marshal(result) - case *ListActionsSearchDomainActionsSlackAction: - typename = "SlackAction" - - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainActionsSlackAction - }{typename, premarshaled} - return json.Marshal(result) - case *ListActionsSearchDomainActionsSlackPostMessageAction: - typename = "SlackPostMessageAction" - - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainActionsSlackPostMessageAction - }{typename, premarshaled} - return json.Marshal(result) - case *ListActionsSearchDomainActionsUploadFileAction: - typename = "UploadFileAction" + UseProxy bool `json:"useProxy"` +} - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainActionsUploadFileAction - }{typename, premarshaled} - return json.Marshal(result) - case *ListActionsSearchDomainActionsVictorOpsAction: - typename = "VictorOpsAction" +func (v *ListActionsSearchDomainActionsOpsGenieAction) MarshalJSON() ([]byte, error) { + premarshaled, err := v.__premarshalJSON() + if err != nil { + return nil, err + } + return json.Marshal(premarshaled) +} - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainActionsVictorOpsAction - }{typename, premarshaled} - return json.Marshal(result) - case *ListActionsSearchDomainActionsWebhookAction: - typename = "WebhookAction" +func (v *ListActionsSearchDomainActionsOpsGenieAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsOpsGenieAction, error) { + var retval __premarshalListActionsSearchDomainActionsOpsGenieAction - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - result := struct { - TypeName string `json:"__typename"` - *__premarshalListActionsSearchDomainActionsWebhookAction - }{typename, premarshaled} - return json.Marshal(result) - case nil: - return []byte("null"), nil - default: - return nil, fmt.Errorf( - `unexpected concrete type for ListActionsSearchDomainActionsAction: "%T"`, v) - } + retval.Typename = v.Typename + retval.Id = v.ActionDetailsOpsGenieAction.Id + retval.Name = v.ActionDetailsOpsGenieAction.Name + retval.ApiUrl = v.ActionDetailsOpsGenieAction.ApiUrl + retval.GenieKey = v.ActionDetailsOpsGenieAction.GenieKey + retval.UseProxy = v.ActionDetailsOpsGenieAction.UseProxy + return &retval, nil } -// ListActionsSearchDomainActionsEmailAction includes the requested fields of the GraphQL type EmailAction. +// ListActionsSearchDomainActionsPagerDutyAction includes the requested fields of the GraphQL type PagerDutyAction. // The GraphQL type's documentation follows. // -// An email action. -type ListActionsSearchDomainActionsEmailAction struct { - Typename *string `json:"__typename"` - ActionDetailsEmailAction `json:"-"` +// A PagerDuty action. +type ListActionsSearchDomainActionsPagerDutyAction struct { + Typename *string `json:"__typename"` + ActionDetailsPagerDutyAction `json:"-"` } -// GetTypename returns ListActionsSearchDomainActionsEmailAction.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsEmailAction) GetTypename() *string { return v.Typename } - -// GetId returns ListActionsSearchDomainActionsEmailAction.Id, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsEmailAction) GetId() string { - return v.ActionDetailsEmailAction.Id -} +// GetTypename returns ListActionsSearchDomainActionsPagerDutyAction.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsPagerDutyAction) GetTypename() *string { return v.Typename } -// GetName returns ListActionsSearchDomainActionsEmailAction.Name, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsEmailAction) GetName() string { - return v.ActionDetailsEmailAction.Name +// GetId returns ListActionsSearchDomainActionsPagerDutyAction.Id, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsPagerDutyAction) GetId() string { + return v.ActionDetailsPagerDutyAction.Id } -// GetRecipients returns ListActionsSearchDomainActionsEmailAction.Recipients, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsEmailAction) GetRecipients() []string { - return v.ActionDetailsEmailAction.Recipients +// GetName returns ListActionsSearchDomainActionsPagerDutyAction.Name, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsPagerDutyAction) GetName() string { + return v.ActionDetailsPagerDutyAction.Name } -// GetSubjectTemplate returns ListActionsSearchDomainActionsEmailAction.SubjectTemplate, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsEmailAction) GetSubjectTemplate() *string { - return v.ActionDetailsEmailAction.SubjectTemplate +// GetSeverity returns ListActionsSearchDomainActionsPagerDutyAction.Severity, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsPagerDutyAction) GetSeverity() string { + return v.ActionDetailsPagerDutyAction.Severity } -// GetEmailBodyTemplate returns ListActionsSearchDomainActionsEmailAction.EmailBodyTemplate, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsEmailAction) GetEmailBodyTemplate() *string { - return v.ActionDetailsEmailAction.EmailBodyTemplate +// GetRoutingKey returns ListActionsSearchDomainActionsPagerDutyAction.RoutingKey, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsPagerDutyAction) GetRoutingKey() string { + return v.ActionDetailsPagerDutyAction.RoutingKey } -// GetUseProxy returns ListActionsSearchDomainActionsEmailAction.UseProxy, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsEmailAction) GetUseProxy() bool { - return v.ActionDetailsEmailAction.UseProxy +// GetUseProxy returns ListActionsSearchDomainActionsPagerDutyAction.UseProxy, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsPagerDutyAction) GetUseProxy() bool { + return v.ActionDetailsPagerDutyAction.UseProxy } -func (v *ListActionsSearchDomainActionsEmailAction) UnmarshalJSON(b []byte) error { +func (v *ListActionsSearchDomainActionsPagerDutyAction) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsSearchDomainActionsEmailAction + *ListActionsSearchDomainActionsPagerDutyAction graphql.NoUnmarshalJSON } - firstPass.ListActionsSearchDomainActionsEmailAction = v + firstPass.ListActionsSearchDomainActionsPagerDutyAction = v err := json.Unmarshal(b, &firstPass) if err != nil { @@ -8502,30 +8303,28 @@ func (v *ListActionsSearchDomainActionsEmailAction) UnmarshalJSON(b []byte) erro } err = json.Unmarshal( - b, &v.ActionDetailsEmailAction) + b, &v.ActionDetailsPagerDutyAction) if err != nil { return err } return nil } -type __premarshalListActionsSearchDomainActionsEmailAction struct { +type __premarshalListActionsSearchDomainActionsPagerDutyAction struct { Typename *string `json:"__typename"` Id string `json:"id"` Name string `json:"name"` - Recipients []string `json:"recipients"` - - SubjectTemplate *string `json:"subjectTemplate"` + Severity string `json:"severity"` - EmailBodyTemplate *string `json:"emailBodyTemplate"` + RoutingKey string `json:"routingKey"` UseProxy bool `json:"useProxy"` } -func (v *ListActionsSearchDomainActionsEmailAction) MarshalJSON() ([]byte, error) { +func (v *ListActionsSearchDomainActionsPagerDutyAction) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -8533,57 +8332,66 @@ func (v *ListActionsSearchDomainActionsEmailAction) MarshalJSON() ([]byte, error return json.Marshal(premarshaled) } -func (v *ListActionsSearchDomainActionsEmailAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsEmailAction, error) { - var retval __premarshalListActionsSearchDomainActionsEmailAction +func (v *ListActionsSearchDomainActionsPagerDutyAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsPagerDutyAction, error) { + var retval __premarshalListActionsSearchDomainActionsPagerDutyAction retval.Typename = v.Typename - retval.Id = v.ActionDetailsEmailAction.Id - retval.Name = v.ActionDetailsEmailAction.Name - retval.Recipients = v.ActionDetailsEmailAction.Recipients - retval.SubjectTemplate = v.ActionDetailsEmailAction.SubjectTemplate - retval.EmailBodyTemplate = v.ActionDetailsEmailAction.EmailBodyTemplate - retval.UseProxy = v.ActionDetailsEmailAction.UseProxy + retval.Id = v.ActionDetailsPagerDutyAction.Id + retval.Name = v.ActionDetailsPagerDutyAction.Name + retval.Severity = v.ActionDetailsPagerDutyAction.Severity + retval.RoutingKey = v.ActionDetailsPagerDutyAction.RoutingKey + retval.UseProxy = v.ActionDetailsPagerDutyAction.UseProxy return &retval, nil } -// ListActionsSearchDomainActionsHumioRepoAction includes the requested fields of the GraphQL type HumioRepoAction. +// ListActionsSearchDomainActionsSlackAction includes the requested fields of the GraphQL type SlackAction. // The GraphQL type's documentation follows. // -// A LogScale repository action. -type ListActionsSearchDomainActionsHumioRepoAction struct { - Typename *string `json:"__typename"` - ActionDetailsHumioRepoAction `json:"-"` +// A Slack action +type ListActionsSearchDomainActionsSlackAction struct { + Typename *string `json:"__typename"` + ActionDetailsSlackAction `json:"-"` } -// GetTypename returns ListActionsSearchDomainActionsHumioRepoAction.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsHumioRepoAction) GetTypename() *string { return v.Typename } +// GetTypename returns ListActionsSearchDomainActionsSlackAction.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackAction) GetTypename() *string { return v.Typename } -// GetId returns ListActionsSearchDomainActionsHumioRepoAction.Id, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsHumioRepoAction) GetId() string { - return v.ActionDetailsHumioRepoAction.Id +// GetId returns ListActionsSearchDomainActionsSlackAction.Id, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackAction) GetId() string { + return v.ActionDetailsSlackAction.Id } -// GetName returns ListActionsSearchDomainActionsHumioRepoAction.Name, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsHumioRepoAction) GetName() string { - return v.ActionDetailsHumioRepoAction.Name +// GetName returns ListActionsSearchDomainActionsSlackAction.Name, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackAction) GetName() string { + return v.ActionDetailsSlackAction.Name } -// GetIngestToken returns ListActionsSearchDomainActionsHumioRepoAction.IngestToken, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsHumioRepoAction) GetIngestToken() string { - return v.ActionDetailsHumioRepoAction.IngestToken +// GetUrl returns ListActionsSearchDomainActionsSlackAction.Url, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackAction) GetUrl() string { + return v.ActionDetailsSlackAction.Url } -func (v *ListActionsSearchDomainActionsHumioRepoAction) UnmarshalJSON(b []byte) error { +// GetFields returns ListActionsSearchDomainActionsSlackAction.Fields, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackAction) GetFields() []ActionDetailsFieldsSlackFieldEntry { + return v.ActionDetailsSlackAction.Fields +} + +// GetUseProxy returns ListActionsSearchDomainActionsSlackAction.UseProxy, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackAction) GetUseProxy() bool { + return v.ActionDetailsSlackAction.UseProxy +} + +func (v *ListActionsSearchDomainActionsSlackAction) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsSearchDomainActionsHumioRepoAction + *ListActionsSearchDomainActionsSlackAction graphql.NoUnmarshalJSON } - firstPass.ListActionsSearchDomainActionsHumioRepoAction = v + firstPass.ListActionsSearchDomainActionsSlackAction = v err := json.Unmarshal(b, &firstPass) if err != nil { @@ -8591,24 +8399,28 @@ func (v *ListActionsSearchDomainActionsHumioRepoAction) UnmarshalJSON(b []byte) } err = json.Unmarshal( - b, &v.ActionDetailsHumioRepoAction) + b, &v.ActionDetailsSlackAction) if err != nil { return err } return nil } -type __premarshalListActionsSearchDomainActionsHumioRepoAction struct { +type __premarshalListActionsSearchDomainActionsSlackAction struct { Typename *string `json:"__typename"` Id string `json:"id"` Name string `json:"name"` - IngestToken string `json:"ingestToken"` + Url string `json:"url"` + + Fields []ActionDetailsFieldsSlackFieldEntry `json:"fields"` + + UseProxy bool `json:"useProxy"` } -func (v *ListActionsSearchDomainActionsHumioRepoAction) MarshalJSON() ([]byte, error) { +func (v *ListActionsSearchDomainActionsSlackAction) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -8616,64 +8428,73 @@ func (v *ListActionsSearchDomainActionsHumioRepoAction) MarshalJSON() ([]byte, e return json.Marshal(premarshaled) } -func (v *ListActionsSearchDomainActionsHumioRepoAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsHumioRepoAction, error) { - var retval __premarshalListActionsSearchDomainActionsHumioRepoAction +func (v *ListActionsSearchDomainActionsSlackAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsSlackAction, error) { + var retval __premarshalListActionsSearchDomainActionsSlackAction retval.Typename = v.Typename - retval.Id = v.ActionDetailsHumioRepoAction.Id - retval.Name = v.ActionDetailsHumioRepoAction.Name - retval.IngestToken = v.ActionDetailsHumioRepoAction.IngestToken + retval.Id = v.ActionDetailsSlackAction.Id + retval.Name = v.ActionDetailsSlackAction.Name + retval.Url = v.ActionDetailsSlackAction.Url + retval.Fields = v.ActionDetailsSlackAction.Fields + retval.UseProxy = v.ActionDetailsSlackAction.UseProxy return &retval, nil } -// ListActionsSearchDomainActionsOpsGenieAction includes the requested fields of the GraphQL type OpsGenieAction. +// ListActionsSearchDomainActionsSlackPostMessageAction includes the requested fields of the GraphQL type SlackPostMessageAction. // The GraphQL type's documentation follows. // -// An OpsGenie action -type ListActionsSearchDomainActionsOpsGenieAction struct { - Typename *string `json:"__typename"` - ActionDetailsOpsGenieAction `json:"-"` +// A slack post-message action. +type ListActionsSearchDomainActionsSlackPostMessageAction struct { + Typename *string `json:"__typename"` + ActionDetailsSlackPostMessageAction `json:"-"` } -// GetTypename returns ListActionsSearchDomainActionsOpsGenieAction.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsOpsGenieAction) GetTypename() *string { return v.Typename } +// GetTypename returns ListActionsSearchDomainActionsSlackPostMessageAction.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetTypename() *string { + return v.Typename +} -// GetId returns ListActionsSearchDomainActionsOpsGenieAction.Id, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsOpsGenieAction) GetId() string { - return v.ActionDetailsOpsGenieAction.Id +// GetId returns ListActionsSearchDomainActionsSlackPostMessageAction.Id, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetId() string { + return v.ActionDetailsSlackPostMessageAction.Id } -// GetName returns ListActionsSearchDomainActionsOpsGenieAction.Name, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsOpsGenieAction) GetName() string { - return v.ActionDetailsOpsGenieAction.Name +// GetName returns ListActionsSearchDomainActionsSlackPostMessageAction.Name, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetName() string { + return v.ActionDetailsSlackPostMessageAction.Name } -// GetApiUrl returns ListActionsSearchDomainActionsOpsGenieAction.ApiUrl, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsOpsGenieAction) GetApiUrl() string { - return v.ActionDetailsOpsGenieAction.ApiUrl +// GetApiToken returns ListActionsSearchDomainActionsSlackPostMessageAction.ApiToken, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetApiToken() string { + return v.ActionDetailsSlackPostMessageAction.ApiToken } -// GetGenieKey returns ListActionsSearchDomainActionsOpsGenieAction.GenieKey, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsOpsGenieAction) GetGenieKey() string { - return v.ActionDetailsOpsGenieAction.GenieKey +// GetChannels returns ListActionsSearchDomainActionsSlackPostMessageAction.Channels, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetChannels() []string { + return v.ActionDetailsSlackPostMessageAction.Channels } -// GetUseProxy returns ListActionsSearchDomainActionsOpsGenieAction.UseProxy, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsOpsGenieAction) GetUseProxy() bool { - return v.ActionDetailsOpsGenieAction.UseProxy +// GetFields returns ListActionsSearchDomainActionsSlackPostMessageAction.Fields, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetFields() []ActionDetailsFieldsSlackFieldEntry { + return v.ActionDetailsSlackPostMessageAction.Fields } -func (v *ListActionsSearchDomainActionsOpsGenieAction) UnmarshalJSON(b []byte) error { +// GetUseProxy returns ListActionsSearchDomainActionsSlackPostMessageAction.UseProxy, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetUseProxy() bool { + return v.ActionDetailsSlackPostMessageAction.UseProxy +} + +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsSearchDomainActionsOpsGenieAction + *ListActionsSearchDomainActionsSlackPostMessageAction graphql.NoUnmarshalJSON } - firstPass.ListActionsSearchDomainActionsOpsGenieAction = v + firstPass.ListActionsSearchDomainActionsSlackPostMessageAction = v err := json.Unmarshal(b, &firstPass) if err != nil { @@ -8681,28 +8502,30 @@ func (v *ListActionsSearchDomainActionsOpsGenieAction) UnmarshalJSON(b []byte) e } err = json.Unmarshal( - b, &v.ActionDetailsOpsGenieAction) + b, &v.ActionDetailsSlackPostMessageAction) if err != nil { return err } return nil } -type __premarshalListActionsSearchDomainActionsOpsGenieAction struct { +type __premarshalListActionsSearchDomainActionsSlackPostMessageAction struct { Typename *string `json:"__typename"` Id string `json:"id"` Name string `json:"name"` - ApiUrl string `json:"apiUrl"` + ApiToken string `json:"apiToken"` - GenieKey string `json:"genieKey"` + Channels []string `json:"channels"` + + Fields []ActionDetailsFieldsSlackFieldEntry `json:"fields"` UseProxy bool `json:"useProxy"` } -func (v *ListActionsSearchDomainActionsOpsGenieAction) MarshalJSON() ([]byte, error) { +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -8710,66 +8533,57 @@ func (v *ListActionsSearchDomainActionsOpsGenieAction) MarshalJSON() ([]byte, er return json.Marshal(premarshaled) } -func (v *ListActionsSearchDomainActionsOpsGenieAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsOpsGenieAction, error) { - var retval __premarshalListActionsSearchDomainActionsOpsGenieAction +func (v *ListActionsSearchDomainActionsSlackPostMessageAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsSlackPostMessageAction, error) { + var retval __premarshalListActionsSearchDomainActionsSlackPostMessageAction retval.Typename = v.Typename - retval.Id = v.ActionDetailsOpsGenieAction.Id - retval.Name = v.ActionDetailsOpsGenieAction.Name - retval.ApiUrl = v.ActionDetailsOpsGenieAction.ApiUrl - retval.GenieKey = v.ActionDetailsOpsGenieAction.GenieKey - retval.UseProxy = v.ActionDetailsOpsGenieAction.UseProxy + retval.Id = v.ActionDetailsSlackPostMessageAction.Id + retval.Name = v.ActionDetailsSlackPostMessageAction.Name + retval.ApiToken = v.ActionDetailsSlackPostMessageAction.ApiToken + retval.Channels = v.ActionDetailsSlackPostMessageAction.Channels + retval.Fields = v.ActionDetailsSlackPostMessageAction.Fields + retval.UseProxy = v.ActionDetailsSlackPostMessageAction.UseProxy return &retval, nil } -// ListActionsSearchDomainActionsPagerDutyAction includes the requested fields of the GraphQL type PagerDutyAction. +// ListActionsSearchDomainActionsUploadFileAction includes the requested fields of the GraphQL type UploadFileAction. // The GraphQL type's documentation follows. // -// A PagerDuty action. -type ListActionsSearchDomainActionsPagerDutyAction struct { - Typename *string `json:"__typename"` - ActionDetailsPagerDutyAction `json:"-"` -} - -// GetTypename returns ListActionsSearchDomainActionsPagerDutyAction.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsPagerDutyAction) GetTypename() *string { return v.Typename } - -// GetId returns ListActionsSearchDomainActionsPagerDutyAction.Id, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsPagerDutyAction) GetId() string { - return v.ActionDetailsPagerDutyAction.Id +// An upload file action. +type ListActionsSearchDomainActionsUploadFileAction struct { + Typename *string `json:"__typename"` + ActionDetailsUploadFileAction `json:"-"` } -// GetName returns ListActionsSearchDomainActionsPagerDutyAction.Name, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsPagerDutyAction) GetName() string { - return v.ActionDetailsPagerDutyAction.Name -} +// GetTypename returns ListActionsSearchDomainActionsUploadFileAction.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsUploadFileAction) GetTypename() *string { return v.Typename } -// GetSeverity returns ListActionsSearchDomainActionsPagerDutyAction.Severity, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsPagerDutyAction) GetSeverity() string { - return v.ActionDetailsPagerDutyAction.Severity +// GetId returns ListActionsSearchDomainActionsUploadFileAction.Id, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsUploadFileAction) GetId() string { + return v.ActionDetailsUploadFileAction.Id } -// GetRoutingKey returns ListActionsSearchDomainActionsPagerDutyAction.RoutingKey, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsPagerDutyAction) GetRoutingKey() string { - return v.ActionDetailsPagerDutyAction.RoutingKey +// GetName returns ListActionsSearchDomainActionsUploadFileAction.Name, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsUploadFileAction) GetName() string { + return v.ActionDetailsUploadFileAction.Name } -// GetUseProxy returns ListActionsSearchDomainActionsPagerDutyAction.UseProxy, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsPagerDutyAction) GetUseProxy() bool { - return v.ActionDetailsPagerDutyAction.UseProxy +// GetFileName returns ListActionsSearchDomainActionsUploadFileAction.FileName, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsUploadFileAction) GetFileName() string { + return v.ActionDetailsUploadFileAction.FileName } -func (v *ListActionsSearchDomainActionsPagerDutyAction) UnmarshalJSON(b []byte) error { +func (v *ListActionsSearchDomainActionsUploadFileAction) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsSearchDomainActionsPagerDutyAction + *ListActionsSearchDomainActionsUploadFileAction graphql.NoUnmarshalJSON } - firstPass.ListActionsSearchDomainActionsPagerDutyAction = v + firstPass.ListActionsSearchDomainActionsUploadFileAction = v err := json.Unmarshal(b, &firstPass) if err != nil { @@ -8777,28 +8591,24 @@ func (v *ListActionsSearchDomainActionsPagerDutyAction) UnmarshalJSON(b []byte) } err = json.Unmarshal( - b, &v.ActionDetailsPagerDutyAction) + b, &v.ActionDetailsUploadFileAction) if err != nil { return err } return nil } -type __premarshalListActionsSearchDomainActionsPagerDutyAction struct { +type __premarshalListActionsSearchDomainActionsUploadFileAction struct { Typename *string `json:"__typename"` Id string `json:"id"` Name string `json:"name"` - Severity string `json:"severity"` - - RoutingKey string `json:"routingKey"` - - UseProxy bool `json:"useProxy"` + FileName string `json:"fileName"` } -func (v *ListActionsSearchDomainActionsPagerDutyAction) MarshalJSON() ([]byte, error) { +func (v *ListActionsSearchDomainActionsUploadFileAction) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -8806,66 +8616,64 @@ func (v *ListActionsSearchDomainActionsPagerDutyAction) MarshalJSON() ([]byte, e return json.Marshal(premarshaled) } -func (v *ListActionsSearchDomainActionsPagerDutyAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsPagerDutyAction, error) { - var retval __premarshalListActionsSearchDomainActionsPagerDutyAction +func (v *ListActionsSearchDomainActionsUploadFileAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsUploadFileAction, error) { + var retval __premarshalListActionsSearchDomainActionsUploadFileAction retval.Typename = v.Typename - retval.Id = v.ActionDetailsPagerDutyAction.Id - retval.Name = v.ActionDetailsPagerDutyAction.Name - retval.Severity = v.ActionDetailsPagerDutyAction.Severity - retval.RoutingKey = v.ActionDetailsPagerDutyAction.RoutingKey - retval.UseProxy = v.ActionDetailsPagerDutyAction.UseProxy + retval.Id = v.ActionDetailsUploadFileAction.Id + retval.Name = v.ActionDetailsUploadFileAction.Name + retval.FileName = v.ActionDetailsUploadFileAction.FileName return &retval, nil } -// ListActionsSearchDomainActionsSlackAction includes the requested fields of the GraphQL type SlackAction. +// ListActionsSearchDomainActionsVictorOpsAction includes the requested fields of the GraphQL type VictorOpsAction. // The GraphQL type's documentation follows. // -// A Slack action -type ListActionsSearchDomainActionsSlackAction struct { - Typename *string `json:"__typename"` - ActionDetailsSlackAction `json:"-"` +// A VictorOps action. +type ListActionsSearchDomainActionsVictorOpsAction struct { + Typename *string `json:"__typename"` + ActionDetailsVictorOpsAction `json:"-"` } -// GetTypename returns ListActionsSearchDomainActionsSlackAction.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackAction) GetTypename() *string { return v.Typename } +// GetTypename returns ListActionsSearchDomainActionsVictorOpsAction.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsVictorOpsAction) GetTypename() *string { return v.Typename } -// GetId returns ListActionsSearchDomainActionsSlackAction.Id, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackAction) GetId() string { - return v.ActionDetailsSlackAction.Id +// GetId returns ListActionsSearchDomainActionsVictorOpsAction.Id, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsVictorOpsAction) GetId() string { + return v.ActionDetailsVictorOpsAction.Id } -// GetName returns ListActionsSearchDomainActionsSlackAction.Name, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackAction) GetName() string { - return v.ActionDetailsSlackAction.Name +// GetName returns ListActionsSearchDomainActionsVictorOpsAction.Name, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsVictorOpsAction) GetName() string { + return v.ActionDetailsVictorOpsAction.Name } -// GetUrl returns ListActionsSearchDomainActionsSlackAction.Url, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackAction) GetUrl() string { - return v.ActionDetailsSlackAction.Url +// GetMessageType returns ListActionsSearchDomainActionsVictorOpsAction.MessageType, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsVictorOpsAction) GetMessageType() string { + return v.ActionDetailsVictorOpsAction.MessageType } -// GetFields returns ListActionsSearchDomainActionsSlackAction.Fields, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackAction) GetFields() []ActionDetailsFieldsSlackFieldEntry { - return v.ActionDetailsSlackAction.Fields +// GetNotifyUrl returns ListActionsSearchDomainActionsVictorOpsAction.NotifyUrl, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsVictorOpsAction) GetNotifyUrl() string { + return v.ActionDetailsVictorOpsAction.NotifyUrl } -// GetUseProxy returns ListActionsSearchDomainActionsSlackAction.UseProxy, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackAction) GetUseProxy() bool { - return v.ActionDetailsSlackAction.UseProxy +// GetUseProxy returns ListActionsSearchDomainActionsVictorOpsAction.UseProxy, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsVictorOpsAction) GetUseProxy() bool { + return v.ActionDetailsVictorOpsAction.UseProxy } -func (v *ListActionsSearchDomainActionsSlackAction) UnmarshalJSON(b []byte) error { +func (v *ListActionsSearchDomainActionsVictorOpsAction) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsSearchDomainActionsSlackAction + *ListActionsSearchDomainActionsVictorOpsAction graphql.NoUnmarshalJSON } - firstPass.ListActionsSearchDomainActionsSlackAction = v + firstPass.ListActionsSearchDomainActionsVictorOpsAction = v err := json.Unmarshal(b, &firstPass) if err != nil { @@ -8873,28 +8681,28 @@ func (v *ListActionsSearchDomainActionsSlackAction) UnmarshalJSON(b []byte) erro } err = json.Unmarshal( - b, &v.ActionDetailsSlackAction) + b, &v.ActionDetailsVictorOpsAction) if err != nil { return err } return nil } -type __premarshalListActionsSearchDomainActionsSlackAction struct { +type __premarshalListActionsSearchDomainActionsVictorOpsAction struct { Typename *string `json:"__typename"` Id string `json:"id"` Name string `json:"name"` - Url string `json:"url"` + MessageType string `json:"messageType"` - Fields []ActionDetailsFieldsSlackFieldEntry `json:"fields"` + NotifyUrl string `json:"notifyUrl"` UseProxy bool `json:"useProxy"` } -func (v *ListActionsSearchDomainActionsSlackAction) MarshalJSON() ([]byte, error) { +func (v *ListActionsSearchDomainActionsVictorOpsAction) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -8902,73 +8710,81 @@ func (v *ListActionsSearchDomainActionsSlackAction) MarshalJSON() ([]byte, error return json.Marshal(premarshaled) } -func (v *ListActionsSearchDomainActionsSlackAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsSlackAction, error) { - var retval __premarshalListActionsSearchDomainActionsSlackAction +func (v *ListActionsSearchDomainActionsVictorOpsAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsVictorOpsAction, error) { + var retval __premarshalListActionsSearchDomainActionsVictorOpsAction retval.Typename = v.Typename - retval.Id = v.ActionDetailsSlackAction.Id - retval.Name = v.ActionDetailsSlackAction.Name - retval.Url = v.ActionDetailsSlackAction.Url - retval.Fields = v.ActionDetailsSlackAction.Fields - retval.UseProxy = v.ActionDetailsSlackAction.UseProxy + retval.Id = v.ActionDetailsVictorOpsAction.Id + retval.Name = v.ActionDetailsVictorOpsAction.Name + retval.MessageType = v.ActionDetailsVictorOpsAction.MessageType + retval.NotifyUrl = v.ActionDetailsVictorOpsAction.NotifyUrl + retval.UseProxy = v.ActionDetailsVictorOpsAction.UseProxy return &retval, nil } -// ListActionsSearchDomainActionsSlackPostMessageAction includes the requested fields of the GraphQL type SlackPostMessageAction. +// ListActionsSearchDomainActionsWebhookAction includes the requested fields of the GraphQL type WebhookAction. // The GraphQL type's documentation follows. // -// A slack post-message action. -type ListActionsSearchDomainActionsSlackPostMessageAction struct { - Typename *string `json:"__typename"` - ActionDetailsSlackPostMessageAction `json:"-"` +// A webhook action +type ListActionsSearchDomainActionsWebhookAction struct { + Typename *string `json:"__typename"` + ActionDetailsWebhookAction `json:"-"` } -// GetTypename returns ListActionsSearchDomainActionsSlackPostMessageAction.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetTypename() *string { - return v.Typename +// GetTypename returns ListActionsSearchDomainActionsWebhookAction.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsWebhookAction) GetTypename() *string { return v.Typename } + +// GetId returns ListActionsSearchDomainActionsWebhookAction.Id, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsWebhookAction) GetId() string { + return v.ActionDetailsWebhookAction.Id } -// GetId returns ListActionsSearchDomainActionsSlackPostMessageAction.Id, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetId() string { - return v.ActionDetailsSlackPostMessageAction.Id +// GetName returns ListActionsSearchDomainActionsWebhookAction.Name, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsWebhookAction) GetName() string { + return v.ActionDetailsWebhookAction.Name } -// GetName returns ListActionsSearchDomainActionsSlackPostMessageAction.Name, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetName() string { - return v.ActionDetailsSlackPostMessageAction.Name +// GetMethod returns ListActionsSearchDomainActionsWebhookAction.Method, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsWebhookAction) GetMethod() string { + return v.ActionDetailsWebhookAction.Method } -// GetApiToken returns ListActionsSearchDomainActionsSlackPostMessageAction.ApiToken, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetApiToken() string { - return v.ActionDetailsSlackPostMessageAction.ApiToken +// GetUrl returns ListActionsSearchDomainActionsWebhookAction.Url, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsWebhookAction) GetUrl() string { + return v.ActionDetailsWebhookAction.Url } -// GetChannels returns ListActionsSearchDomainActionsSlackPostMessageAction.Channels, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetChannels() []string { - return v.ActionDetailsSlackPostMessageAction.Channels +// GetHeaders returns ListActionsSearchDomainActionsWebhookAction.Headers, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsWebhookAction) GetHeaders() []ActionDetailsHeadersHttpHeaderEntry { + return v.ActionDetailsWebhookAction.Headers } -// GetFields returns ListActionsSearchDomainActionsSlackPostMessageAction.Fields, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetFields() []ActionDetailsFieldsSlackFieldEntry { - return v.ActionDetailsSlackPostMessageAction.Fields +// GetWebhookBodyTemplate returns ListActionsSearchDomainActionsWebhookAction.WebhookBodyTemplate, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsWebhookAction) GetWebhookBodyTemplate() string { + return v.ActionDetailsWebhookAction.WebhookBodyTemplate } -// GetUseProxy returns ListActionsSearchDomainActionsSlackPostMessageAction.UseProxy, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) GetUseProxy() bool { - return v.ActionDetailsSlackPostMessageAction.UseProxy +// GetIgnoreSSL returns ListActionsSearchDomainActionsWebhookAction.IgnoreSSL, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsWebhookAction) GetIgnoreSSL() bool { + return v.ActionDetailsWebhookAction.IgnoreSSL } -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) UnmarshalJSON(b []byte) error { +// GetUseProxy returns ListActionsSearchDomainActionsWebhookAction.UseProxy, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainActionsWebhookAction) GetUseProxy() bool { + return v.ActionDetailsWebhookAction.UseProxy +} + +func (v *ListActionsSearchDomainActionsWebhookAction) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsSearchDomainActionsSlackPostMessageAction + *ListActionsSearchDomainActionsWebhookAction graphql.NoUnmarshalJSON } - firstPass.ListActionsSearchDomainActionsSlackPostMessageAction = v + firstPass.ListActionsSearchDomainActionsWebhookAction = v err := json.Unmarshal(b, &firstPass) if err != nil { @@ -8976,30 +8792,34 @@ func (v *ListActionsSearchDomainActionsSlackPostMessageAction) UnmarshalJSON(b [ } err = json.Unmarshal( - b, &v.ActionDetailsSlackPostMessageAction) + b, &v.ActionDetailsWebhookAction) if err != nil { return err } return nil } -type __premarshalListActionsSearchDomainActionsSlackPostMessageAction struct { +type __premarshalListActionsSearchDomainActionsWebhookAction struct { Typename *string `json:"__typename"` Id string `json:"id"` Name string `json:"name"` - ApiToken string `json:"apiToken"` + Method string `json:"method"` - Channels []string `json:"channels"` + Url string `json:"url"` - Fields []ActionDetailsFieldsSlackFieldEntry `json:"fields"` + Headers []ActionDetailsHeadersHttpHeaderEntry `json:"headers"` + + WebhookBodyTemplate string `json:"WebhookBodyTemplate"` + + IgnoreSSL bool `json:"ignoreSSL"` UseProxy bool `json:"useProxy"` } -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) MarshalJSON() ([]byte, error) { +func (v *ListActionsSearchDomainActionsWebhookAction) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -9007,82 +8827,85 @@ func (v *ListActionsSearchDomainActionsSlackPostMessageAction) MarshalJSON() ([] return json.Marshal(premarshaled) } -func (v *ListActionsSearchDomainActionsSlackPostMessageAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsSlackPostMessageAction, error) { - var retval __premarshalListActionsSearchDomainActionsSlackPostMessageAction +func (v *ListActionsSearchDomainActionsWebhookAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsWebhookAction, error) { + var retval __premarshalListActionsSearchDomainActionsWebhookAction retval.Typename = v.Typename - retval.Id = v.ActionDetailsSlackPostMessageAction.Id - retval.Name = v.ActionDetailsSlackPostMessageAction.Name - retval.ApiToken = v.ActionDetailsSlackPostMessageAction.ApiToken - retval.Channels = v.ActionDetailsSlackPostMessageAction.Channels - retval.Fields = v.ActionDetailsSlackPostMessageAction.Fields - retval.UseProxy = v.ActionDetailsSlackPostMessageAction.UseProxy + retval.Id = v.ActionDetailsWebhookAction.Id + retval.Name = v.ActionDetailsWebhookAction.Name + retval.Method = v.ActionDetailsWebhookAction.Method + retval.Url = v.ActionDetailsWebhookAction.Url + retval.Headers = v.ActionDetailsWebhookAction.Headers + retval.WebhookBodyTemplate = v.ActionDetailsWebhookAction.WebhookBodyTemplate + retval.IgnoreSSL = v.ActionDetailsWebhookAction.IgnoreSSL + retval.UseProxy = v.ActionDetailsWebhookAction.UseProxy return &retval, nil } -// ListActionsSearchDomainActionsUploadFileAction includes the requested fields of the GraphQL type UploadFileAction. +// ListActionsSearchDomainRepository includes the requested fields of the GraphQL type Repository. // The GraphQL type's documentation follows. // -// An upload file action. -type ListActionsSearchDomainActionsUploadFileAction struct { - Typename *string `json:"__typename"` - ActionDetailsUploadFileAction `json:"-"` -} - -// GetTypename returns ListActionsSearchDomainActionsUploadFileAction.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsUploadFileAction) GetTypename() *string { return v.Typename } - -// GetId returns ListActionsSearchDomainActionsUploadFileAction.Id, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsUploadFileAction) GetId() string { - return v.ActionDetailsUploadFileAction.Id +// A repository stores ingested data, configures parsers and data retention policies. +type ListActionsSearchDomainRepository struct { + Typename *string `json:"__typename"` + // Common interface for Repositories and Views. + Actions []ListActionsSearchDomainActionsAction `json:"-"` } -// GetName returns ListActionsSearchDomainActionsUploadFileAction.Name, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsUploadFileAction) GetName() string { - return v.ActionDetailsUploadFileAction.Name -} +// GetTypename returns ListActionsSearchDomainRepository.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainRepository) GetTypename() *string { return v.Typename } -// GetFileName returns ListActionsSearchDomainActionsUploadFileAction.FileName, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsUploadFileAction) GetFileName() string { - return v.ActionDetailsUploadFileAction.FileName +// GetActions returns ListActionsSearchDomainRepository.Actions, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainRepository) GetActions() []ListActionsSearchDomainActionsAction { + return v.Actions } -func (v *ListActionsSearchDomainActionsUploadFileAction) UnmarshalJSON(b []byte) error { +func (v *ListActionsSearchDomainRepository) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsSearchDomainActionsUploadFileAction + *ListActionsSearchDomainRepository + Actions []json.RawMessage `json:"actions"` graphql.NoUnmarshalJSON } - firstPass.ListActionsSearchDomainActionsUploadFileAction = v + firstPass.ListActionsSearchDomainRepository = v err := json.Unmarshal(b, &firstPass) if err != nil { return err } - err = json.Unmarshal( - b, &v.ActionDetailsUploadFileAction) - if err != nil { - return err + { + dst := &v.Actions + src := firstPass.Actions + *dst = make( + []ListActionsSearchDomainActionsAction, + len(src)) + for i, src := range src { + dst := &(*dst)[i] + if len(src) != 0 && string(src) != "null" { + err = __unmarshalListActionsSearchDomainActionsAction( + src, dst) + if err != nil { + return fmt.Errorf( + "unable to unmarshal ListActionsSearchDomainRepository.Actions: %w", err) + } + } + } } return nil } -type __premarshalListActionsSearchDomainActionsUploadFileAction struct { +type __premarshalListActionsSearchDomainRepository struct { Typename *string `json:"__typename"` - Id string `json:"id"` - - Name string `json:"name"` - - FileName string `json:"fileName"` + Actions []json.RawMessage `json:"actions"` } -func (v *ListActionsSearchDomainActionsUploadFileAction) MarshalJSON() ([]byte, error) { +func (v *ListActionsSearchDomainRepository) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -9090,93 +8913,95 @@ func (v *ListActionsSearchDomainActionsUploadFileAction) MarshalJSON() ([]byte, return json.Marshal(premarshaled) } -func (v *ListActionsSearchDomainActionsUploadFileAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsUploadFileAction, error) { - var retval __premarshalListActionsSearchDomainActionsUploadFileAction +func (v *ListActionsSearchDomainRepository) __premarshalJSON() (*__premarshalListActionsSearchDomainRepository, error) { + var retval __premarshalListActionsSearchDomainRepository retval.Typename = v.Typename - retval.Id = v.ActionDetailsUploadFileAction.Id - retval.Name = v.ActionDetailsUploadFileAction.Name - retval.FileName = v.ActionDetailsUploadFileAction.FileName + { + + dst := &retval.Actions + src := v.Actions + *dst = make( + []json.RawMessage, + len(src)) + for i, src := range src { + dst := &(*dst)[i] + var err error + *dst, err = __marshalListActionsSearchDomainActionsAction( + &src) + if err != nil { + return nil, fmt.Errorf( + "unable to marshal ListActionsSearchDomainRepository.Actions: %w", err) + } + } + } return &retval, nil } -// ListActionsSearchDomainActionsVictorOpsAction includes the requested fields of the GraphQL type VictorOpsAction. +// ListActionsSearchDomainView includes the requested fields of the GraphQL type View. // The GraphQL type's documentation follows. // -// A VictorOps action. -type ListActionsSearchDomainActionsVictorOpsAction struct { - Typename *string `json:"__typename"` - ActionDetailsVictorOpsAction `json:"-"` -} - -// GetTypename returns ListActionsSearchDomainActionsVictorOpsAction.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsVictorOpsAction) GetTypename() *string { return v.Typename } - -// GetId returns ListActionsSearchDomainActionsVictorOpsAction.Id, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsVictorOpsAction) GetId() string { - return v.ActionDetailsVictorOpsAction.Id -} - -// GetName returns ListActionsSearchDomainActionsVictorOpsAction.Name, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsVictorOpsAction) GetName() string { - return v.ActionDetailsVictorOpsAction.Name -} - -// GetMessageType returns ListActionsSearchDomainActionsVictorOpsAction.MessageType, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsVictorOpsAction) GetMessageType() string { - return v.ActionDetailsVictorOpsAction.MessageType +// Represents information about a view, pulling data from one or several repositories. +type ListActionsSearchDomainView struct { + Typename *string `json:"__typename"` + // Common interface for Repositories and Views. + Actions []ListActionsSearchDomainActionsAction `json:"-"` } -// GetNotifyUrl returns ListActionsSearchDomainActionsVictorOpsAction.NotifyUrl, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsVictorOpsAction) GetNotifyUrl() string { - return v.ActionDetailsVictorOpsAction.NotifyUrl -} +// GetTypename returns ListActionsSearchDomainView.Typename, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainView) GetTypename() *string { return v.Typename } -// GetUseProxy returns ListActionsSearchDomainActionsVictorOpsAction.UseProxy, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsVictorOpsAction) GetUseProxy() bool { - return v.ActionDetailsVictorOpsAction.UseProxy +// GetActions returns ListActionsSearchDomainView.Actions, and is useful for accessing the field via an interface. +func (v *ListActionsSearchDomainView) GetActions() []ListActionsSearchDomainActionsAction { + return v.Actions } -func (v *ListActionsSearchDomainActionsVictorOpsAction) UnmarshalJSON(b []byte) error { +func (v *ListActionsSearchDomainView) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsSearchDomainActionsVictorOpsAction + *ListActionsSearchDomainView + Actions []json.RawMessage `json:"actions"` graphql.NoUnmarshalJSON } - firstPass.ListActionsSearchDomainActionsVictorOpsAction = v + firstPass.ListActionsSearchDomainView = v err := json.Unmarshal(b, &firstPass) if err != nil { return err } - err = json.Unmarshal( - b, &v.ActionDetailsVictorOpsAction) - if err != nil { - return err + { + dst := &v.Actions + src := firstPass.Actions + *dst = make( + []ListActionsSearchDomainActionsAction, + len(src)) + for i, src := range src { + dst := &(*dst)[i] + if len(src) != 0 && string(src) != "null" { + err = __unmarshalListActionsSearchDomainActionsAction( + src, dst) + if err != nil { + return fmt.Errorf( + "unable to unmarshal ListActionsSearchDomainView.Actions: %w", err) + } + } + } } return nil } -type __premarshalListActionsSearchDomainActionsVictorOpsAction struct { +type __premarshalListActionsSearchDomainView struct { Typename *string `json:"__typename"` - Id string `json:"id"` - - Name string `json:"name"` - - MessageType string `json:"messageType"` - - NotifyUrl string `json:"notifyUrl"` - - UseProxy bool `json:"useProxy"` + Actions []json.RawMessage `json:"actions"` } -func (v *ListActionsSearchDomainActionsVictorOpsAction) MarshalJSON() ([]byte, error) { +func (v *ListActionsSearchDomainView) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -9184,116 +9009,79 @@ func (v *ListActionsSearchDomainActionsVictorOpsAction) MarshalJSON() ([]byte, e return json.Marshal(premarshaled) } -func (v *ListActionsSearchDomainActionsVictorOpsAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsVictorOpsAction, error) { - var retval __premarshalListActionsSearchDomainActionsVictorOpsAction +func (v *ListActionsSearchDomainView) __premarshalJSON() (*__premarshalListActionsSearchDomainView, error) { + var retval __premarshalListActionsSearchDomainView retval.Typename = v.Typename - retval.Id = v.ActionDetailsVictorOpsAction.Id - retval.Name = v.ActionDetailsVictorOpsAction.Name - retval.MessageType = v.ActionDetailsVictorOpsAction.MessageType - retval.NotifyUrl = v.ActionDetailsVictorOpsAction.NotifyUrl - retval.UseProxy = v.ActionDetailsVictorOpsAction.UseProxy - return &retval, nil -} - -// ListActionsSearchDomainActionsWebhookAction includes the requested fields of the GraphQL type WebhookAction. -// The GraphQL type's documentation follows. -// -// A webhook action -type ListActionsSearchDomainActionsWebhookAction struct { - Typename *string `json:"__typename"` - ActionDetailsWebhookAction `json:"-"` -} + { -// GetTypename returns ListActionsSearchDomainActionsWebhookAction.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsWebhookAction) GetTypename() *string { return v.Typename } - -// GetId returns ListActionsSearchDomainActionsWebhookAction.Id, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsWebhookAction) GetId() string { - return v.ActionDetailsWebhookAction.Id -} - -// GetName returns ListActionsSearchDomainActionsWebhookAction.Name, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsWebhookAction) GetName() string { - return v.ActionDetailsWebhookAction.Name -} - -// GetMethod returns ListActionsSearchDomainActionsWebhookAction.Method, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsWebhookAction) GetMethod() string { - return v.ActionDetailsWebhookAction.Method -} - -// GetUrl returns ListActionsSearchDomainActionsWebhookAction.Url, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsWebhookAction) GetUrl() string { - return v.ActionDetailsWebhookAction.Url -} - -// GetHeaders returns ListActionsSearchDomainActionsWebhookAction.Headers, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsWebhookAction) GetHeaders() []ActionDetailsHeadersHttpHeaderEntry { - return v.ActionDetailsWebhookAction.Headers -} - -// GetWebhookBodyTemplate returns ListActionsSearchDomainActionsWebhookAction.WebhookBodyTemplate, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsWebhookAction) GetWebhookBodyTemplate() string { - return v.ActionDetailsWebhookAction.WebhookBodyTemplate + dst := &retval.Actions + src := v.Actions + *dst = make( + []json.RawMessage, + len(src)) + for i, src := range src { + dst := &(*dst)[i] + var err error + *dst, err = __marshalListActionsSearchDomainActionsAction( + &src) + if err != nil { + return nil, fmt.Errorf( + "unable to marshal ListActionsSearchDomainView.Actions: %w", err) + } + } + } + return &retval, nil } -// GetIgnoreSSL returns ListActionsSearchDomainActionsWebhookAction.IgnoreSSL, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsWebhookAction) GetIgnoreSSL() bool { - return v.ActionDetailsWebhookAction.IgnoreSSL +// ListAggregateAlertsResponse is returned by ListAggregateAlerts on success. +type ListAggregateAlertsResponse struct { + SearchDomain ListAggregateAlertsSearchDomain `json:"-"` } -// GetUseProxy returns ListActionsSearchDomainActionsWebhookAction.UseProxy, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainActionsWebhookAction) GetUseProxy() bool { - return v.ActionDetailsWebhookAction.UseProxy +// GetSearchDomain returns ListAggregateAlertsResponse.SearchDomain, and is useful for accessing the field via an interface. +func (v *ListAggregateAlertsResponse) GetSearchDomain() ListAggregateAlertsSearchDomain { + return v.SearchDomain } -func (v *ListActionsSearchDomainActionsWebhookAction) UnmarshalJSON(b []byte) error { +func (v *ListAggregateAlertsResponse) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *ListActionsSearchDomainActionsWebhookAction + *ListAggregateAlertsResponse + SearchDomain json.RawMessage `json:"searchDomain"` graphql.NoUnmarshalJSON } - firstPass.ListActionsSearchDomainActionsWebhookAction = v + firstPass.ListAggregateAlertsResponse = v err := json.Unmarshal(b, &firstPass) if err != nil { return err } - err = json.Unmarshal( - b, &v.ActionDetailsWebhookAction) - if err != nil { - return err + { + dst := &v.SearchDomain + src := firstPass.SearchDomain + if len(src) != 0 && string(src) != "null" { + err = __unmarshalListAggregateAlertsSearchDomain( + src, dst) + if err != nil { + return fmt.Errorf( + "unable to unmarshal ListAggregateAlertsResponse.SearchDomain: %w", err) + } + } } return nil } -type __premarshalListActionsSearchDomainActionsWebhookAction struct { - Typename *string `json:"__typename"` - - Id string `json:"id"` - - Name string `json:"name"` - - Method string `json:"method"` - - Url string `json:"url"` - - Headers []ActionDetailsHeadersHttpHeaderEntry `json:"headers"` - - WebhookBodyTemplate string `json:"WebhookBodyTemplate"` - - IgnoreSSL bool `json:"ignoreSSL"` - - UseProxy bool `json:"useProxy"` +type __premarshalListAggregateAlertsResponse struct { + SearchDomain json.RawMessage `json:"searchDomain"` } -func (v *ListActionsSearchDomainActionsWebhookAction) MarshalJSON() ([]byte, error) { +func (v *ListAggregateAlertsResponse) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -9301,368 +9089,106 @@ func (v *ListActionsSearchDomainActionsWebhookAction) MarshalJSON() ([]byte, err return json.Marshal(premarshaled) } -func (v *ListActionsSearchDomainActionsWebhookAction) __premarshalJSON() (*__premarshalListActionsSearchDomainActionsWebhookAction, error) { - var retval __premarshalListActionsSearchDomainActionsWebhookAction +func (v *ListAggregateAlertsResponse) __premarshalJSON() (*__premarshalListAggregateAlertsResponse, error) { + var retval __premarshalListAggregateAlertsResponse - retval.Typename = v.Typename - retval.Id = v.ActionDetailsWebhookAction.Id - retval.Name = v.ActionDetailsWebhookAction.Name - retval.Method = v.ActionDetailsWebhookAction.Method - retval.Url = v.ActionDetailsWebhookAction.Url - retval.Headers = v.ActionDetailsWebhookAction.Headers - retval.WebhookBodyTemplate = v.ActionDetailsWebhookAction.WebhookBodyTemplate - retval.IgnoreSSL = v.ActionDetailsWebhookAction.IgnoreSSL - retval.UseProxy = v.ActionDetailsWebhookAction.UseProxy + { + + dst := &retval.SearchDomain + src := v.SearchDomain + var err error + *dst, err = __marshalListAggregateAlertsSearchDomain( + &src) + if err != nil { + return nil, fmt.Errorf( + "unable to marshal ListAggregateAlertsResponse.SearchDomain: %w", err) + } + } return &retval, nil } -// ListActionsSearchDomainRepository includes the requested fields of the GraphQL type Repository. +// ListAggregateAlertsSearchDomain includes the requested fields of the GraphQL interface SearchDomain. +// +// ListAggregateAlertsSearchDomain is implemented by the following types: +// ListAggregateAlertsSearchDomainRepository +// ListAggregateAlertsSearchDomainView // The GraphQL type's documentation follows. // -// A repository stores ingested data, configures parsers and data retention policies. -type ListActionsSearchDomainRepository struct { - Typename *string `json:"__typename"` +// Common interface for Repositories and Views. +type ListAggregateAlertsSearchDomain interface { + implementsGraphQLInterfaceListAggregateAlertsSearchDomain() + // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). + GetTypename() *string + // GetAggregateAlerts returns the interface-field "aggregateAlerts" from its implementation. + // The GraphQL interface field's documentation follows. + // // Common interface for Repositories and Views. - Actions []ListActionsSearchDomainActionsAction `json:"-"` + GetAggregateAlerts() []ListAggregateAlertsSearchDomainAggregateAlertsAggregateAlert } -// GetTypename returns ListActionsSearchDomainRepository.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainRepository) GetTypename() *string { return v.Typename } - -// GetActions returns ListActionsSearchDomainRepository.Actions, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainRepository) GetActions() []ListActionsSearchDomainActionsAction { - return v.Actions +func (v *ListAggregateAlertsSearchDomainRepository) implementsGraphQLInterfaceListAggregateAlertsSearchDomain() { +} +func (v *ListAggregateAlertsSearchDomainView) implementsGraphQLInterfaceListAggregateAlertsSearchDomain() { } -func (v *ListActionsSearchDomainRepository) UnmarshalJSON(b []byte) error { - +func __unmarshalListAggregateAlertsSearchDomain(b []byte, v *ListAggregateAlertsSearchDomain) error { if string(b) == "null" { return nil } - var firstPass struct { - *ListActionsSearchDomainRepository - Actions []json.RawMessage `json:"actions"` - graphql.NoUnmarshalJSON + var tn struct { + TypeName string `json:"__typename"` } - firstPass.ListActionsSearchDomainRepository = v - - err := json.Unmarshal(b, &firstPass) + err := json.Unmarshal(b, &tn) if err != nil { return err } - { - dst := &v.Actions - src := firstPass.Actions - *dst = make( - []ListActionsSearchDomainActionsAction, - len(src)) - for i, src := range src { - dst := &(*dst)[i] - if len(src) != 0 && string(src) != "null" { - err = __unmarshalListActionsSearchDomainActionsAction( - src, dst) - if err != nil { - return fmt.Errorf( - "unable to unmarshal ListActionsSearchDomainRepository.Actions: %w", err) - } - } - } + switch tn.TypeName { + case "Repository": + *v = new(ListAggregateAlertsSearchDomainRepository) + return json.Unmarshal(b, *v) + case "View": + *v = new(ListAggregateAlertsSearchDomainView) + return json.Unmarshal(b, *v) + case "": + return fmt.Errorf( + "response was missing SearchDomain.__typename") + default: + return fmt.Errorf( + `unexpected concrete type for ListAggregateAlertsSearchDomain: "%v"`, tn.TypeName) } - return nil -} - -type __premarshalListActionsSearchDomainRepository struct { - Typename *string `json:"__typename"` - - Actions []json.RawMessage `json:"actions"` } -func (v *ListActionsSearchDomainRepository) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) -} +func __marshalListAggregateAlertsSearchDomain(v *ListAggregateAlertsSearchDomain) ([]byte, error) { -func (v *ListActionsSearchDomainRepository) __premarshalJSON() (*__premarshalListActionsSearchDomainRepository, error) { - var retval __premarshalListActionsSearchDomainRepository + var typename string + switch v := (*v).(type) { + case *ListAggregateAlertsSearchDomainRepository: + typename = "Repository" - retval.Typename = v.Typename - { + result := struct { + TypeName string `json:"__typename"` + *ListAggregateAlertsSearchDomainRepository + }{typename, v} + return json.Marshal(result) + case *ListAggregateAlertsSearchDomainView: + typename = "View" - dst := &retval.Actions - src := v.Actions - *dst = make( - []json.RawMessage, - len(src)) - for i, src := range src { - dst := &(*dst)[i] - var err error - *dst, err = __marshalListActionsSearchDomainActionsAction( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal ListActionsSearchDomainRepository.Actions: %w", err) - } - } + result := struct { + TypeName string `json:"__typename"` + *ListAggregateAlertsSearchDomainView + }{typename, v} + return json.Marshal(result) + case nil: + return []byte("null"), nil + default: + return nil, fmt.Errorf( + `unexpected concrete type for ListAggregateAlertsSearchDomain: "%T"`, v) } - return &retval, nil } -// ListActionsSearchDomainView includes the requested fields of the GraphQL type View. -// The GraphQL type's documentation follows. -// -// Represents information about a view, pulling data from one or several repositories. -type ListActionsSearchDomainView struct { - Typename *string `json:"__typename"` - // Common interface for Repositories and Views. - Actions []ListActionsSearchDomainActionsAction `json:"-"` -} - -// GetTypename returns ListActionsSearchDomainView.Typename, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainView) GetTypename() *string { return v.Typename } - -// GetActions returns ListActionsSearchDomainView.Actions, and is useful for accessing the field via an interface. -func (v *ListActionsSearchDomainView) GetActions() []ListActionsSearchDomainActionsAction { - return v.Actions -} - -func (v *ListActionsSearchDomainView) UnmarshalJSON(b []byte) error { - - if string(b) == "null" { - return nil - } - - var firstPass struct { - *ListActionsSearchDomainView - Actions []json.RawMessage `json:"actions"` - graphql.NoUnmarshalJSON - } - firstPass.ListActionsSearchDomainView = v - - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } - - { - dst := &v.Actions - src := firstPass.Actions - *dst = make( - []ListActionsSearchDomainActionsAction, - len(src)) - for i, src := range src { - dst := &(*dst)[i] - if len(src) != 0 && string(src) != "null" { - err = __unmarshalListActionsSearchDomainActionsAction( - src, dst) - if err != nil { - return fmt.Errorf( - "unable to unmarshal ListActionsSearchDomainView.Actions: %w", err) - } - } - } - } - return nil -} - -type __premarshalListActionsSearchDomainView struct { - Typename *string `json:"__typename"` - - Actions []json.RawMessage `json:"actions"` -} - -func (v *ListActionsSearchDomainView) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) -} - -func (v *ListActionsSearchDomainView) __premarshalJSON() (*__premarshalListActionsSearchDomainView, error) { - var retval __premarshalListActionsSearchDomainView - - retval.Typename = v.Typename - { - - dst := &retval.Actions - src := v.Actions - *dst = make( - []json.RawMessage, - len(src)) - for i, src := range src { - dst := &(*dst)[i] - var err error - *dst, err = __marshalListActionsSearchDomainActionsAction( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal ListActionsSearchDomainView.Actions: %w", err) - } - } - } - return &retval, nil -} - -// ListAggregateAlertsResponse is returned by ListAggregateAlerts on success. -type ListAggregateAlertsResponse struct { - SearchDomain ListAggregateAlertsSearchDomain `json:"-"` -} - -// GetSearchDomain returns ListAggregateAlertsResponse.SearchDomain, and is useful for accessing the field via an interface. -func (v *ListAggregateAlertsResponse) GetSearchDomain() ListAggregateAlertsSearchDomain { - return v.SearchDomain -} - -func (v *ListAggregateAlertsResponse) UnmarshalJSON(b []byte) error { - - if string(b) == "null" { - return nil - } - - var firstPass struct { - *ListAggregateAlertsResponse - SearchDomain json.RawMessage `json:"searchDomain"` - graphql.NoUnmarshalJSON - } - firstPass.ListAggregateAlertsResponse = v - - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } - - { - dst := &v.SearchDomain - src := firstPass.SearchDomain - if len(src) != 0 && string(src) != "null" { - err = __unmarshalListAggregateAlertsSearchDomain( - src, dst) - if err != nil { - return fmt.Errorf( - "unable to unmarshal ListAggregateAlertsResponse.SearchDomain: %w", err) - } - } - } - return nil -} - -type __premarshalListAggregateAlertsResponse struct { - SearchDomain json.RawMessage `json:"searchDomain"` -} - -func (v *ListAggregateAlertsResponse) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) -} - -func (v *ListAggregateAlertsResponse) __premarshalJSON() (*__premarshalListAggregateAlertsResponse, error) { - var retval __premarshalListAggregateAlertsResponse - - { - - dst := &retval.SearchDomain - src := v.SearchDomain - var err error - *dst, err = __marshalListAggregateAlertsSearchDomain( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal ListAggregateAlertsResponse.SearchDomain: %w", err) - } - } - return &retval, nil -} - -// ListAggregateAlertsSearchDomain includes the requested fields of the GraphQL interface SearchDomain. -// -// ListAggregateAlertsSearchDomain is implemented by the following types: -// ListAggregateAlertsSearchDomainRepository -// ListAggregateAlertsSearchDomainView -// The GraphQL type's documentation follows. -// -// Common interface for Repositories and Views. -type ListAggregateAlertsSearchDomain interface { - implementsGraphQLInterfaceListAggregateAlertsSearchDomain() - // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). - GetTypename() *string - // GetAggregateAlerts returns the interface-field "aggregateAlerts" from its implementation. - // The GraphQL interface field's documentation follows. - // - // Common interface for Repositories and Views. - GetAggregateAlerts() []ListAggregateAlertsSearchDomainAggregateAlertsAggregateAlert -} - -func (v *ListAggregateAlertsSearchDomainRepository) implementsGraphQLInterfaceListAggregateAlertsSearchDomain() { -} -func (v *ListAggregateAlertsSearchDomainView) implementsGraphQLInterfaceListAggregateAlertsSearchDomain() { -} - -func __unmarshalListAggregateAlertsSearchDomain(b []byte, v *ListAggregateAlertsSearchDomain) error { - if string(b) == "null" { - return nil - } - - var tn struct { - TypeName string `json:"__typename"` - } - err := json.Unmarshal(b, &tn) - if err != nil { - return err - } - - switch tn.TypeName { - case "Repository": - *v = new(ListAggregateAlertsSearchDomainRepository) - return json.Unmarshal(b, *v) - case "View": - *v = new(ListAggregateAlertsSearchDomainView) - return json.Unmarshal(b, *v) - case "": - return fmt.Errorf( - "response was missing SearchDomain.__typename") - default: - return fmt.Errorf( - `unexpected concrete type for ListAggregateAlertsSearchDomain: "%v"`, tn.TypeName) - } -} - -func __marshalListAggregateAlertsSearchDomain(v *ListAggregateAlertsSearchDomain) ([]byte, error) { - - var typename string - switch v := (*v).(type) { - case *ListAggregateAlertsSearchDomainRepository: - typename = "Repository" - - result := struct { - TypeName string `json:"__typename"` - *ListAggregateAlertsSearchDomainRepository - }{typename, v} - return json.Marshal(result) - case *ListAggregateAlertsSearchDomainView: - typename = "View" - - result := struct { - TypeName string `json:"__typename"` - *ListAggregateAlertsSearchDomainView - }{typename, v} - return json.Marshal(result) - case nil: - return []byte("null"), nil - default: - return nil, fmt.Errorf( - `unexpected concrete type for ListAggregateAlertsSearchDomain: "%T"`, v) - } -} - -// ListAggregateAlertsSearchDomainAggregateAlertsAggregateAlert includes the requested fields of the GraphQL type AggregateAlert. +// ListAggregateAlertsSearchDomainAggregateAlertsAggregateAlert includes the requested fields of the GraphQL type AggregateAlert. // The GraphQL type's documentation follows. // // An aggregate alert. @@ -12541,33 +12067,14 @@ func (v *RemoveIngestTokenResponse) GetRemoveIngestToken() RemoveIngestTokenRemo return v.RemoveIngestToken } -// RemoveRoleByIDRemoveRoleBooleanResultType includes the requested fields of the GraphQL type BooleanResultType. -type RemoveRoleByIDRemoveRoleBooleanResultType struct { +// RemoveUserFromGroupRemoveUsersFromGroupRemoveUsersFromGroupMutation includes the requested fields of the GraphQL type RemoveUsersFromGroupMutation. +type RemoveUserFromGroupRemoveUsersFromGroupRemoveUsersFromGroupMutation struct { Typename *string `json:"__typename"` } -// GetTypename returns RemoveRoleByIDRemoveRoleBooleanResultType.Typename, and is useful for accessing the field via an interface. -func (v *RemoveRoleByIDRemoveRoleBooleanResultType) GetTypename() *string { return v.Typename } - -// RemoveRoleByIDResponse is returned by RemoveRoleByID on success. -type RemoveRoleByIDResponse struct { - // Removes a role. Only usable if roles are not managed externally, e.g. in LDAP. - RemoveRole RemoveRoleByIDRemoveRoleBooleanResultType `json:"removeRole"` -} - -// GetRemoveRole returns RemoveRoleByIDResponse.RemoveRole, and is useful for accessing the field via an interface. -func (v *RemoveRoleByIDResponse) GetRemoveRole() RemoveRoleByIDRemoveRoleBooleanResultType { - return v.RemoveRole -} - -// RemoveUserFromGroupRemoveUsersFromGroupRemoveUsersFromGroupMutation includes the requested fields of the GraphQL type RemoveUsersFromGroupMutation. -type RemoveUserFromGroupRemoveUsersFromGroupRemoveUsersFromGroupMutation struct { - Typename *string `json:"__typename"` -} - -// GetTypename returns RemoveUserFromGroupRemoveUsersFromGroupRemoveUsersFromGroupMutation.Typename, and is useful for accessing the field via an interface. -func (v *RemoveUserFromGroupRemoveUsersFromGroupRemoveUsersFromGroupMutation) GetTypename() *string { - return v.Typename +// GetTypename returns RemoveUserFromGroupRemoveUsersFromGroupRemoveUsersFromGroupMutation.Typename, and is useful for accessing the field via an interface. +func (v *RemoveUserFromGroupRemoveUsersFromGroupRemoveUsersFromGroupMutation) GetTypename() *string { + return v.Typename } // RemoveUserFromGroupResponse is returned by RemoveUserFromGroup on success. @@ -13723,142 +13230,96 @@ func (v *UnregisterClusterNodeResponse) GetClusterUnregisterNode() UnregisterClu return v.ClusterUnregisterNode } -// UpdateAggregateAlertResponse is returned by UpdateAggregateAlert on success. -type UpdateAggregateAlertResponse struct { - // Update an aggregate alert. - UpdateAggregateAlert UpdateAggregateAlertUpdateAggregateAlert `json:"updateAggregateAlert"` -} - -// GetUpdateAggregateAlert returns UpdateAggregateAlertResponse.UpdateAggregateAlert, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertResponse) GetUpdateAggregateAlert() UpdateAggregateAlertUpdateAggregateAlert { - return v.UpdateAggregateAlert -} - -// UpdateAggregateAlertUpdateAggregateAlert includes the requested fields of the GraphQL type AggregateAlert. -// The GraphQL type's documentation follows. -// -// An aggregate alert. -type UpdateAggregateAlertUpdateAggregateAlert struct { - AggregateAlertDetails `json:"-"` -} - -// GetId returns UpdateAggregateAlertUpdateAggregateAlert.Id, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetId() string { return v.AggregateAlertDetails.Id } - -// GetName returns UpdateAggregateAlertUpdateAggregateAlert.Name, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetName() string { - return v.AggregateAlertDetails.Name -} - -// GetDescription returns UpdateAggregateAlertUpdateAggregateAlert.Description, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetDescription() *string { - return v.AggregateAlertDetails.Description -} - -// GetQueryString returns UpdateAggregateAlertUpdateAggregateAlert.QueryString, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetQueryString() string { - return v.AggregateAlertDetails.QueryString +// UpdateDescriptionForSearchDomainResponse is returned by UpdateDescriptionForSearchDomain on success. +type UpdateDescriptionForSearchDomainResponse struct { + UpdateDescriptionForSearchDomain UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation `json:"updateDescriptionForSearchDomain"` } -// GetSearchIntervalSeconds returns UpdateAggregateAlertUpdateAggregateAlert.SearchIntervalSeconds, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetSearchIntervalSeconds() int64 { - return v.AggregateAlertDetails.SearchIntervalSeconds +// GetUpdateDescriptionForSearchDomain returns UpdateDescriptionForSearchDomainResponse.UpdateDescriptionForSearchDomain, and is useful for accessing the field via an interface. +func (v *UpdateDescriptionForSearchDomainResponse) GetUpdateDescriptionForSearchDomain() UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation { + return v.UpdateDescriptionForSearchDomain } -// GetThrottleTimeSeconds returns UpdateAggregateAlertUpdateAggregateAlert.ThrottleTimeSeconds, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetThrottleTimeSeconds() int64 { - return v.AggregateAlertDetails.ThrottleTimeSeconds +// UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation includes the requested fields of the GraphQL type UpdateDescriptionMutation. +type UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation struct { + Typename *string `json:"__typename"` } -// GetThrottleField returns UpdateAggregateAlertUpdateAggregateAlert.ThrottleField, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetThrottleField() *string { - return v.AggregateAlertDetails.ThrottleField +// GetTypename returns UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation.Typename, and is useful for accessing the field via an interface. +func (v *UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation) GetTypename() *string { + return v.Typename } -// GetActions returns UpdateAggregateAlertUpdateAggregateAlert.Actions, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetActions() []AggregateAlertDetailsActionsAction { - return v.AggregateAlertDetails.Actions +// UpdateIngestBasedRetentionResponse is returned by UpdateIngestBasedRetention on success. +type UpdateIngestBasedRetentionResponse struct { + // Update the retention policy of a repository. + UpdateRetention UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation `json:"updateRetention"` } -// GetLabels returns UpdateAggregateAlertUpdateAggregateAlert.Labels, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetLabels() []string { - return v.AggregateAlertDetails.Labels +// GetUpdateRetention returns UpdateIngestBasedRetentionResponse.UpdateRetention, and is useful for accessing the field via an interface. +func (v *UpdateIngestBasedRetentionResponse) GetUpdateRetention() UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation { + return v.UpdateRetention } -// GetEnabled returns UpdateAggregateAlertUpdateAggregateAlert.Enabled, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetEnabled() bool { - return v.AggregateAlertDetails.Enabled +// UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation includes the requested fields of the GraphQL type UpdateRetentionMutation. +type UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation struct { + Typename *string `json:"__typename"` } -// GetTriggerMode returns UpdateAggregateAlertUpdateAggregateAlert.TriggerMode, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetTriggerMode() TriggerMode { - return v.AggregateAlertDetails.TriggerMode +// GetTypename returns UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation.Typename, and is useful for accessing the field via an interface. +func (v *UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation) GetTypename() *string { + return v.Typename } -// GetQueryTimestampType returns UpdateAggregateAlertUpdateAggregateAlert.QueryTimestampType, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetQueryTimestampType() QueryTimestampType { - return v.AggregateAlertDetails.QueryTimestampType +// UpdateLicenseKeyResponse is returned by UpdateLicenseKey on success. +type UpdateLicenseKeyResponse struct { + // Update the license key for the LogScale cluster. If there is an existing license on this cluster this operation requires permission to manage cluster. + UpdateLicenseKey UpdateLicenseKeyUpdateLicenseKeyLicense `json:"-"` } -// GetQueryOwnership returns UpdateAggregateAlertUpdateAggregateAlert.QueryOwnership, and is useful for accessing the field via an interface. -func (v *UpdateAggregateAlertUpdateAggregateAlert) GetQueryOwnership() SharedQueryOwnershipType { - return v.AggregateAlertDetails.QueryOwnership +// GetUpdateLicenseKey returns UpdateLicenseKeyResponse.UpdateLicenseKey, and is useful for accessing the field via an interface. +func (v *UpdateLicenseKeyResponse) GetUpdateLicenseKey() UpdateLicenseKeyUpdateLicenseKeyLicense { + return v.UpdateLicenseKey } -func (v *UpdateAggregateAlertUpdateAggregateAlert) UnmarshalJSON(b []byte) error { +func (v *UpdateLicenseKeyResponse) UnmarshalJSON(b []byte) error { if string(b) == "null" { return nil } var firstPass struct { - *UpdateAggregateAlertUpdateAggregateAlert + *UpdateLicenseKeyResponse + UpdateLicenseKey json.RawMessage `json:"updateLicenseKey"` graphql.NoUnmarshalJSON } - firstPass.UpdateAggregateAlertUpdateAggregateAlert = v + firstPass.UpdateLicenseKeyResponse = v err := json.Unmarshal(b, &firstPass) if err != nil { return err } - err = json.Unmarshal( - b, &v.AggregateAlertDetails) - if err != nil { - return err + { + dst := &v.UpdateLicenseKey + src := firstPass.UpdateLicenseKey + if len(src) != 0 && string(src) != "null" { + err = __unmarshalUpdateLicenseKeyUpdateLicenseKeyLicense( + src, dst) + if err != nil { + return fmt.Errorf( + "unable to unmarshal UpdateLicenseKeyResponse.UpdateLicenseKey: %w", err) + } + } } return nil } -type __premarshalUpdateAggregateAlertUpdateAggregateAlert struct { - Id string `json:"id"` - - Name string `json:"name"` - - Description *string `json:"description"` - - QueryString string `json:"queryString"` - - SearchIntervalSeconds int64 `json:"searchIntervalSeconds"` - - ThrottleTimeSeconds int64 `json:"throttleTimeSeconds"` - - ThrottleField *string `json:"throttleField"` - - Actions []json.RawMessage `json:"actions"` - - Labels []string `json:"labels"` - - Enabled bool `json:"enabled"` - - TriggerMode TriggerMode `json:"triggerMode"` - - QueryTimestampType QueryTimestampType `json:"queryTimestampType"` - - QueryOwnership json.RawMessage `json:"queryOwnership"` +type __premarshalUpdateLicenseKeyResponse struct { + UpdateLicenseKey json.RawMessage `json:"updateLicenseKey"` } -func (v *UpdateAggregateAlertUpdateAggregateAlert) MarshalJSON() ([]byte, error) { +func (v *UpdateLicenseKeyResponse) MarshalJSON() ([]byte, error) { premarshaled, err := v.__premarshalJSON() if err != nil { return nil, err @@ -13866,3869 +13327,1513 @@ func (v *UpdateAggregateAlertUpdateAggregateAlert) MarshalJSON() ([]byte, error) return json.Marshal(premarshaled) } -func (v *UpdateAggregateAlertUpdateAggregateAlert) __premarshalJSON() (*__premarshalUpdateAggregateAlertUpdateAggregateAlert, error) { - var retval __premarshalUpdateAggregateAlertUpdateAggregateAlert - - retval.Id = v.AggregateAlertDetails.Id - retval.Name = v.AggregateAlertDetails.Name - retval.Description = v.AggregateAlertDetails.Description - retval.QueryString = v.AggregateAlertDetails.QueryString - retval.SearchIntervalSeconds = v.AggregateAlertDetails.SearchIntervalSeconds - retval.ThrottleTimeSeconds = v.AggregateAlertDetails.ThrottleTimeSeconds - retval.ThrottleField = v.AggregateAlertDetails.ThrottleField - { +func (v *UpdateLicenseKeyResponse) __premarshalJSON() (*__premarshalUpdateLicenseKeyResponse, error) { + var retval __premarshalUpdateLicenseKeyResponse - dst := &retval.Actions - src := v.AggregateAlertDetails.Actions - *dst = make( - []json.RawMessage, - len(src)) - for i, src := range src { - dst := &(*dst)[i] - var err error - *dst, err = __marshalAggregateAlertDetailsActionsAction( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal UpdateAggregateAlertUpdateAggregateAlert.AggregateAlertDetails.Actions: %w", err) - } - } - } - retval.Labels = v.AggregateAlertDetails.Labels - retval.Enabled = v.AggregateAlertDetails.Enabled - retval.TriggerMode = v.AggregateAlertDetails.TriggerMode - retval.QueryTimestampType = v.AggregateAlertDetails.QueryTimestampType { - dst := &retval.QueryOwnership - src := v.AggregateAlertDetails.QueryOwnership + dst := &retval.UpdateLicenseKey + src := v.UpdateLicenseKey var err error - *dst, err = __marshalSharedQueryOwnershipType( + *dst, err = __marshalUpdateLicenseKeyUpdateLicenseKeyLicense( &src) if err != nil { return nil, fmt.Errorf( - "unable to marshal UpdateAggregateAlertUpdateAggregateAlert.AggregateAlertDetails.QueryOwnership: %w", err) + "unable to marshal UpdateLicenseKeyResponse.UpdateLicenseKey: %w", err) } } return &retval, nil } -// UpdateAlertResponse is returned by UpdateAlert on success. -type UpdateAlertResponse struct { - // Update an alert. - UpdateAlert UpdateAlertUpdateAlert `json:"updateAlert"` -} - -// GetUpdateAlert returns UpdateAlertResponse.UpdateAlert, and is useful for accessing the field via an interface. -func (v *UpdateAlertResponse) GetUpdateAlert() UpdateAlertUpdateAlert { return v.UpdateAlert } - -// UpdateAlertUpdateAlert includes the requested fields of the GraphQL type Alert. +// UpdateLicenseKeyUpdateLicenseKeyLicense includes the requested fields of the GraphQL interface License. +// +// UpdateLicenseKeyUpdateLicenseKeyLicense is implemented by the following types: +// UpdateLicenseKeyUpdateLicenseKeyOnPremLicense +// UpdateLicenseKeyUpdateLicenseKeyTrialLicense // The GraphQL type's documentation follows. // -// An alert. -type UpdateAlertUpdateAlert struct { - AlertDetails `json:"-"` -} - -// GetId returns UpdateAlertUpdateAlert.Id, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetId() string { return v.AlertDetails.Id } - -// GetName returns UpdateAlertUpdateAlert.Name, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetName() string { return v.AlertDetails.Name } - -// GetQueryString returns UpdateAlertUpdateAlert.QueryString, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetQueryString() string { return v.AlertDetails.QueryString } - -// GetQueryStart returns UpdateAlertUpdateAlert.QueryStart, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetQueryStart() string { return v.AlertDetails.QueryStart } - -// GetThrottleField returns UpdateAlertUpdateAlert.ThrottleField, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetThrottleField() *string { return v.AlertDetails.ThrottleField } - -// GetTimeOfLastTrigger returns UpdateAlertUpdateAlert.TimeOfLastTrigger, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetTimeOfLastTrigger() *int64 { - return v.AlertDetails.TimeOfLastTrigger +// Represents information about the LogScale instance. +type UpdateLicenseKeyUpdateLicenseKeyLicense interface { + implementsGraphQLInterfaceUpdateLicenseKeyUpdateLicenseKeyLicense() + // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). + GetTypename() *string } -// GetIsStarred returns UpdateAlertUpdateAlert.IsStarred, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetIsStarred() bool { return v.AlertDetails.IsStarred } - -// GetDescription returns UpdateAlertUpdateAlert.Description, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetDescription() *string { return v.AlertDetails.Description } - -// GetThrottleTimeMillis returns UpdateAlertUpdateAlert.ThrottleTimeMillis, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetThrottleTimeMillis() int64 { - return v.AlertDetails.ThrottleTimeMillis +func (v *UpdateLicenseKeyUpdateLicenseKeyOnPremLicense) implementsGraphQLInterfaceUpdateLicenseKeyUpdateLicenseKeyLicense() { } - -// GetEnabled returns UpdateAlertUpdateAlert.Enabled, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetEnabled() bool { return v.AlertDetails.Enabled } - -// GetActions returns UpdateAlertUpdateAlert.Actions, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetActions() []string { return v.AlertDetails.Actions } - -// GetLabels returns UpdateAlertUpdateAlert.Labels, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetLabels() []string { return v.AlertDetails.Labels } - -// GetLastError returns UpdateAlertUpdateAlert.LastError, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetLastError() *string { return v.AlertDetails.LastError } - -// GetQueryOwnership returns UpdateAlertUpdateAlert.QueryOwnership, and is useful for accessing the field via an interface. -func (v *UpdateAlertUpdateAlert) GetQueryOwnership() SharedQueryOwnershipType { - return v.AlertDetails.QueryOwnership +func (v *UpdateLicenseKeyUpdateLicenseKeyTrialLicense) implementsGraphQLInterfaceUpdateLicenseKeyUpdateLicenseKeyLicense() { } -func (v *UpdateAlertUpdateAlert) UnmarshalJSON(b []byte) error { - +func __unmarshalUpdateLicenseKeyUpdateLicenseKeyLicense(b []byte, v *UpdateLicenseKeyUpdateLicenseKeyLicense) error { if string(b) == "null" { return nil } - var firstPass struct { - *UpdateAlertUpdateAlert - graphql.NoUnmarshalJSON + var tn struct { + TypeName string `json:"__typename"` } - firstPass.UpdateAlertUpdateAlert = v - - err := json.Unmarshal(b, &firstPass) + err := json.Unmarshal(b, &tn) if err != nil { return err } - err = json.Unmarshal( - b, &v.AlertDetails) - if err != nil { - return err + switch tn.TypeName { + case "OnPremLicense": + *v = new(UpdateLicenseKeyUpdateLicenseKeyOnPremLicense) + return json.Unmarshal(b, *v) + case "TrialLicense": + *v = new(UpdateLicenseKeyUpdateLicenseKeyTrialLicense) + return json.Unmarshal(b, *v) + case "": + return fmt.Errorf( + "response was missing License.__typename") + default: + return fmt.Errorf( + `unexpected concrete type for UpdateLicenseKeyUpdateLicenseKeyLicense: "%v"`, tn.TypeName) } - return nil } -type __premarshalUpdateAlertUpdateAlert struct { - Id string `json:"id"` +func __marshalUpdateLicenseKeyUpdateLicenseKeyLicense(v *UpdateLicenseKeyUpdateLicenseKeyLicense) ([]byte, error) { - Name string `json:"name"` + var typename string + switch v := (*v).(type) { + case *UpdateLicenseKeyUpdateLicenseKeyOnPremLicense: + typename = "OnPremLicense" - QueryString string `json:"queryString"` + result := struct { + TypeName string `json:"__typename"` + *UpdateLicenseKeyUpdateLicenseKeyOnPremLicense + }{typename, v} + return json.Marshal(result) + case *UpdateLicenseKeyUpdateLicenseKeyTrialLicense: + typename = "TrialLicense" - QueryStart string `json:"queryStart"` + result := struct { + TypeName string `json:"__typename"` + *UpdateLicenseKeyUpdateLicenseKeyTrialLicense + }{typename, v} + return json.Marshal(result) + case nil: + return []byte("null"), nil + default: + return nil, fmt.Errorf( + `unexpected concrete type for UpdateLicenseKeyUpdateLicenseKeyLicense: "%T"`, v) + } +} - ThrottleField *string `json:"throttleField"` +// UpdateLicenseKeyUpdateLicenseKeyOnPremLicense includes the requested fields of the GraphQL type OnPremLicense. +// The GraphQL type's documentation follows. +// +// Represents information about a LogScale License. +type UpdateLicenseKeyUpdateLicenseKeyOnPremLicense struct { + Typename *string `json:"__typename"` +} - TimeOfLastTrigger *int64 `json:"timeOfLastTrigger"` +// GetTypename returns UpdateLicenseKeyUpdateLicenseKeyOnPremLicense.Typename, and is useful for accessing the field via an interface. +func (v *UpdateLicenseKeyUpdateLicenseKeyOnPremLicense) GetTypename() *string { return v.Typename } - IsStarred bool `json:"isStarred"` - - Description *string `json:"description"` - - ThrottleTimeMillis int64 `json:"throttleTimeMillis"` - - Enabled bool `json:"enabled"` - - Actions []string `json:"actions"` - - Labels []string `json:"labels"` +// UpdateLicenseKeyUpdateLicenseKeyTrialLicense includes the requested fields of the GraphQL type TrialLicense. +// The GraphQL type's documentation follows. +// +// Represents information about an on-going trial of LogScale. +type UpdateLicenseKeyUpdateLicenseKeyTrialLicense struct { + Typename *string `json:"__typename"` +} - LastError *string `json:"lastError"` +// GetTypename returns UpdateLicenseKeyUpdateLicenseKeyTrialLicense.Typename, and is useful for accessing the field via an interface. +func (v *UpdateLicenseKeyUpdateLicenseKeyTrialLicense) GetTypename() *string { return v.Typename } - QueryOwnership json.RawMessage `json:"queryOwnership"` +// UpdateS3ArchivingConfigurationResponse is returned by UpdateS3ArchivingConfiguration on success. +type UpdateS3ArchivingConfigurationResponse struct { + // Configures S3 archiving for a repository. E.g. bucket and region. + S3ConfigureArchiving UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType `json:"s3ConfigureArchiving"` } -func (v *UpdateAlertUpdateAlert) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) +// GetS3ConfigureArchiving returns UpdateS3ArchivingConfigurationResponse.S3ConfigureArchiving, and is useful for accessing the field via an interface. +func (v *UpdateS3ArchivingConfigurationResponse) GetS3ConfigureArchiving() UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType { + return v.S3ConfigureArchiving } -func (v *UpdateAlertUpdateAlert) __premarshalJSON() (*__premarshalUpdateAlertUpdateAlert, error) { - var retval __premarshalUpdateAlertUpdateAlert - - retval.Id = v.AlertDetails.Id - retval.Name = v.AlertDetails.Name - retval.QueryString = v.AlertDetails.QueryString - retval.QueryStart = v.AlertDetails.QueryStart - retval.ThrottleField = v.AlertDetails.ThrottleField - retval.TimeOfLastTrigger = v.AlertDetails.TimeOfLastTrigger - retval.IsStarred = v.AlertDetails.IsStarred - retval.Description = v.AlertDetails.Description - retval.ThrottleTimeMillis = v.AlertDetails.ThrottleTimeMillis - retval.Enabled = v.AlertDetails.Enabled - retval.Actions = v.AlertDetails.Actions - retval.Labels = v.AlertDetails.Labels - retval.LastError = v.AlertDetails.LastError - { +// UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType includes the requested fields of the GraphQL type BooleanResultType. +type UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType struct { + Typename *string `json:"__typename"` +} - dst := &retval.QueryOwnership - src := v.AlertDetails.QueryOwnership - var err error - *dst, err = __marshalSharedQueryOwnershipType( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal UpdateAlertUpdateAlert.AlertDetails.QueryOwnership: %w", err) - } - } - return &retval, nil +// GetTypename returns UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType.Typename, and is useful for accessing the field via an interface. +func (v *UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType) GetTypename() *string { + return v.Typename } -// UpdateDescriptionForSearchDomainResponse is returned by UpdateDescriptionForSearchDomain on success. -type UpdateDescriptionForSearchDomainResponse struct { - UpdateDescriptionForSearchDomain UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation `json:"updateDescriptionForSearchDomain"` +// UpdateStorageBasedRetentionResponse is returned by UpdateStorageBasedRetention on success. +type UpdateStorageBasedRetentionResponse struct { + // Update the retention policy of a repository. + UpdateRetention UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation `json:"updateRetention"` } -// GetUpdateDescriptionForSearchDomain returns UpdateDescriptionForSearchDomainResponse.UpdateDescriptionForSearchDomain, and is useful for accessing the field via an interface. -func (v *UpdateDescriptionForSearchDomainResponse) GetUpdateDescriptionForSearchDomain() UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation { - return v.UpdateDescriptionForSearchDomain +// GetUpdateRetention returns UpdateStorageBasedRetentionResponse.UpdateRetention, and is useful for accessing the field via an interface. +func (v *UpdateStorageBasedRetentionResponse) GetUpdateRetention() UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation { + return v.UpdateRetention } -// UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation includes the requested fields of the GraphQL type UpdateDescriptionMutation. -type UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation struct { +// UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation includes the requested fields of the GraphQL type UpdateRetentionMutation. +type UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation struct { Typename *string `json:"__typename"` } -// GetTypename returns UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation.Typename, and is useful for accessing the field via an interface. -func (v *UpdateDescriptionForSearchDomainUpdateDescriptionForSearchDomainUpdateDescriptionMutation) GetTypename() *string { +// GetTypename returns UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation.Typename, and is useful for accessing the field via an interface. +func (v *UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation) GetTypename() *string { return v.Typename } -// UpdateEmailActionResponse is returned by UpdateEmailAction on success. -type UpdateEmailActionResponse struct { - // Update an email action. - UpdateEmailAction UpdateEmailActionUpdateEmailAction `json:"updateEmailAction"` +// UpdateTimeBasedRetentionResponse is returned by UpdateTimeBasedRetention on success. +type UpdateTimeBasedRetentionResponse struct { + // Update the retention policy of a repository. + UpdateRetention UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation `json:"updateRetention"` } -// GetUpdateEmailAction returns UpdateEmailActionResponse.UpdateEmailAction, and is useful for accessing the field via an interface. -func (v *UpdateEmailActionResponse) GetUpdateEmailAction() UpdateEmailActionUpdateEmailAction { - return v.UpdateEmailAction +// GetUpdateRetention returns UpdateTimeBasedRetentionResponse.UpdateRetention, and is useful for accessing the field via an interface. +func (v *UpdateTimeBasedRetentionResponse) GetUpdateRetention() UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation { + return v.UpdateRetention } -// UpdateEmailActionUpdateEmailAction includes the requested fields of the GraphQL type EmailAction. -// The GraphQL type's documentation follows. -// -// An email action. -type UpdateEmailActionUpdateEmailAction struct { - // The id of the action. - Id string `json:"id"` - // The name of the action. - Name string `json:"name"` - // List of email addresses to send an email to. - Recipients []string `json:"recipients"` - // Subject of the email. Can be templated with values from the result. - SubjectTemplate *string `json:"subjectTemplate"` - // Body of the email. Can be templated with values from the result. - BodyTemplate *string `json:"bodyTemplate"` - // Defines whether the action should use the configured proxy to make web requests. - UseProxy bool `json:"useProxy"` +// UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation includes the requested fields of the GraphQL type UpdateRetentionMutation. +type UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation struct { + Typename *string `json:"__typename"` } -// GetId returns UpdateEmailActionUpdateEmailAction.Id, and is useful for accessing the field via an interface. -func (v *UpdateEmailActionUpdateEmailAction) GetId() string { return v.Id } +// GetTypename returns UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation.Typename, and is useful for accessing the field via an interface. +func (v *UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation) GetTypename() *string { + return v.Typename +} -// GetName returns UpdateEmailActionUpdateEmailAction.Name, and is useful for accessing the field via an interface. -func (v *UpdateEmailActionUpdateEmailAction) GetName() string { return v.Name } +// UpdateUserResponse is returned by UpdateUser on success. +type UpdateUserResponse struct { + // Updates a user. Requires Root Permission. + UpdateUser UpdateUserUpdateUserUpdateUserMutation `json:"updateUser"` +} -// GetRecipients returns UpdateEmailActionUpdateEmailAction.Recipients, and is useful for accessing the field via an interface. -func (v *UpdateEmailActionUpdateEmailAction) GetRecipients() []string { return v.Recipients } +// GetUpdateUser returns UpdateUserResponse.UpdateUser, and is useful for accessing the field via an interface. +func (v *UpdateUserResponse) GetUpdateUser() UpdateUserUpdateUserUpdateUserMutation { + return v.UpdateUser +} -// GetSubjectTemplate returns UpdateEmailActionUpdateEmailAction.SubjectTemplate, and is useful for accessing the field via an interface. -func (v *UpdateEmailActionUpdateEmailAction) GetSubjectTemplate() *string { return v.SubjectTemplate } +// UpdateUserUpdateUserUpdateUserMutation includes the requested fields of the GraphQL type UpdateUserMutation. +type UpdateUserUpdateUserUpdateUserMutation struct { + Typename *string `json:"__typename"` +} -// GetBodyTemplate returns UpdateEmailActionUpdateEmailAction.BodyTemplate, and is useful for accessing the field via an interface. -func (v *UpdateEmailActionUpdateEmailAction) GetBodyTemplate() *string { return v.BodyTemplate } +// GetTypename returns UpdateUserUpdateUserUpdateUserMutation.Typename, and is useful for accessing the field via an interface. +func (v *UpdateUserUpdateUserUpdateUserMutation) GetTypename() *string { return v.Typename } -// GetUseProxy returns UpdateEmailActionUpdateEmailAction.UseProxy, and is useful for accessing the field via an interface. -func (v *UpdateEmailActionUpdateEmailAction) GetUseProxy() bool { return v.UseProxy } +// UpdateViewConnectionsResponse is returned by UpdateViewConnections on success. +type UpdateViewConnectionsResponse struct { + // Update a view. + UpdateView UpdateViewConnectionsUpdateView `json:"updateView"` +} -// UpdateFilterAlertResponse is returned by UpdateFilterAlert on success. -type UpdateFilterAlertResponse struct { - // Update a filter alert. - UpdateFilterAlert UpdateFilterAlertUpdateFilterAlert `json:"updateFilterAlert"` +// GetUpdateView returns UpdateViewConnectionsResponse.UpdateView, and is useful for accessing the field via an interface. +func (v *UpdateViewConnectionsResponse) GetUpdateView() UpdateViewConnectionsUpdateView { + return v.UpdateView } -// GetUpdateFilterAlert returns UpdateFilterAlertResponse.UpdateFilterAlert, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertResponse) GetUpdateFilterAlert() UpdateFilterAlertUpdateFilterAlert { - return v.UpdateFilterAlert +// UpdateViewConnectionsUpdateView includes the requested fields of the GraphQL type View. +// The GraphQL type's documentation follows. +// +// Represents information about a view, pulling data from one or several repositories. +type UpdateViewConnectionsUpdateView struct { + Name string `json:"name"` } -// UpdateFilterAlertUpdateFilterAlert includes the requested fields of the GraphQL type FilterAlert. +// GetName returns UpdateViewConnectionsUpdateView.Name, and is useful for accessing the field via an interface. +func (v *UpdateViewConnectionsUpdateView) GetName() string { return v.Name } + +// UserDetails includes the GraphQL fields of User requested by the fragment UserDetails. // The GraphQL type's documentation follows. // -// A filter alert. -type UpdateFilterAlertUpdateFilterAlert struct { - FilterAlertDetails `json:"-"` +// A user profile. +type UserDetails struct { + Id string `json:"id"` + Username string `json:"username"` + FullName *string `json:"fullName"` + Email *string `json:"email"` + Company *string `json:"company"` + CountryCode *string `json:"countryCode"` + Picture *string `json:"picture"` + IsRoot bool `json:"isRoot"` + CreatedAt time.Time `json:"createdAt"` } -// GetId returns UpdateFilterAlertUpdateFilterAlert.Id, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetId() string { return v.FilterAlertDetails.Id } +// GetId returns UserDetails.Id, and is useful for accessing the field via an interface. +func (v *UserDetails) GetId() string { return v.Id } -// GetName returns UpdateFilterAlertUpdateFilterAlert.Name, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetName() string { return v.FilterAlertDetails.Name } +// GetUsername returns UserDetails.Username, and is useful for accessing the field via an interface. +func (v *UserDetails) GetUsername() string { return v.Username } -// GetDescription returns UpdateFilterAlertUpdateFilterAlert.Description, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetDescription() *string { - return v.FilterAlertDetails.Description -} +// GetFullName returns UserDetails.FullName, and is useful for accessing the field via an interface. +func (v *UserDetails) GetFullName() *string { return v.FullName } -// GetQueryString returns UpdateFilterAlertUpdateFilterAlert.QueryString, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetQueryString() string { - return v.FilterAlertDetails.QueryString -} +// GetEmail returns UserDetails.Email, and is useful for accessing the field via an interface. +func (v *UserDetails) GetEmail() *string { return v.Email } -// GetThrottleTimeSeconds returns UpdateFilterAlertUpdateFilterAlert.ThrottleTimeSeconds, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetThrottleTimeSeconds() *int64 { - return v.FilterAlertDetails.ThrottleTimeSeconds -} +// GetCompany returns UserDetails.Company, and is useful for accessing the field via an interface. +func (v *UserDetails) GetCompany() *string { return v.Company } -// GetThrottleField returns UpdateFilterAlertUpdateFilterAlert.ThrottleField, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetThrottleField() *string { - return v.FilterAlertDetails.ThrottleField -} +// GetCountryCode returns UserDetails.CountryCode, and is useful for accessing the field via an interface. +func (v *UserDetails) GetCountryCode() *string { return v.CountryCode } -// GetActions returns UpdateFilterAlertUpdateFilterAlert.Actions, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetActions() []FilterAlertDetailsActionsAction { - return v.FilterAlertDetails.Actions -} +// GetPicture returns UserDetails.Picture, and is useful for accessing the field via an interface. +func (v *UserDetails) GetPicture() *string { return v.Picture } -// GetLabels returns UpdateFilterAlertUpdateFilterAlert.Labels, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetLabels() []string { return v.FilterAlertDetails.Labels } +// GetIsRoot returns UserDetails.IsRoot, and is useful for accessing the field via an interface. +func (v *UserDetails) GetIsRoot() bool { return v.IsRoot } -// GetEnabled returns UpdateFilterAlertUpdateFilterAlert.Enabled, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetEnabled() bool { return v.FilterAlertDetails.Enabled } +// GetCreatedAt returns UserDetails.CreatedAt, and is useful for accessing the field via an interface. +func (v *UserDetails) GetCreatedAt() time.Time { return v.CreatedAt } -// GetQueryOwnership returns UpdateFilterAlertUpdateFilterAlert.QueryOwnership, and is useful for accessing the field via an interface. -func (v *UpdateFilterAlertUpdateFilterAlert) GetQueryOwnership() SharedQueryOwnershipType { - return v.FilterAlertDetails.QueryOwnership +// The repositories this view will read from. +type ViewConnectionInput struct { + // The repositories this view will read from. + RepositoryName string `json:"repositoryName"` + // The repositories this view will read from. + Filter string `json:"filter"` + // The repositories this view will read from. + LanguageVersion *LanguageVersionEnum `json:"languageVersion"` } -func (v *UpdateFilterAlertUpdateFilterAlert) UnmarshalJSON(b []byte) error { - - if string(b) == "null" { - return nil - } +// GetRepositoryName returns ViewConnectionInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *ViewConnectionInput) GetRepositoryName() string { return v.RepositoryName } - var firstPass struct { - *UpdateFilterAlertUpdateFilterAlert - graphql.NoUnmarshalJSON - } - firstPass.UpdateFilterAlertUpdateFilterAlert = v +// GetFilter returns ViewConnectionInput.Filter, and is useful for accessing the field via an interface. +func (v *ViewConnectionInput) GetFilter() string { return v.Filter } - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } +// GetLanguageVersion returns ViewConnectionInput.LanguageVersion, and is useful for accessing the field via an interface. +func (v *ViewConnectionInput) GetLanguageVersion() *LanguageVersionEnum { return v.LanguageVersion } - err = json.Unmarshal( - b, &v.FilterAlertDetails) - if err != nil { - return err - } - return nil +// __AddIngestTokenInput is used internally by genqlient +type __AddIngestTokenInput struct { + RepositoryName string `json:"RepositoryName"` + Name string `json:"Name"` + ParserName *string `json:"ParserName"` } -type __premarshalUpdateFilterAlertUpdateFilterAlert struct { - Id string `json:"id"` +// GetRepositoryName returns __AddIngestTokenInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__AddIngestTokenInput) GetRepositoryName() string { return v.RepositoryName } - Name string `json:"name"` +// GetName returns __AddIngestTokenInput.Name, and is useful for accessing the field via an interface. +func (v *__AddIngestTokenInput) GetName() string { return v.Name } - Description *string `json:"description"` +// GetParserName returns __AddIngestTokenInput.ParserName, and is useful for accessing the field via an interface. +func (v *__AddIngestTokenInput) GetParserName() *string { return v.ParserName } - QueryString string `json:"queryString"` +// __AddUserInput is used internally by genqlient +type __AddUserInput struct { + Username string `json:"Username"` + Company *string `json:"Company"` + IsRoot *bool `json:"IsRoot"` + FullName *string `json:"FullName"` + Picture *string `json:"Picture"` + Email *string `json:"Email"` + CountryCode *string `json:"CountryCode"` +} - ThrottleTimeSeconds *int64 `json:"throttleTimeSeconds"` +// GetUsername returns __AddUserInput.Username, and is useful for accessing the field via an interface. +func (v *__AddUserInput) GetUsername() string { return v.Username } - ThrottleField *string `json:"throttleField"` +// GetCompany returns __AddUserInput.Company, and is useful for accessing the field via an interface. +func (v *__AddUserInput) GetCompany() *string { return v.Company } - Actions []json.RawMessage `json:"actions"` +// GetIsRoot returns __AddUserInput.IsRoot, and is useful for accessing the field via an interface. +func (v *__AddUserInput) GetIsRoot() *bool { return v.IsRoot } - Labels []string `json:"labels"` +// GetFullName returns __AddUserInput.FullName, and is useful for accessing the field via an interface. +func (v *__AddUserInput) GetFullName() *string { return v.FullName } - Enabled bool `json:"enabled"` +// GetPicture returns __AddUserInput.Picture, and is useful for accessing the field via an interface. +func (v *__AddUserInput) GetPicture() *string { return v.Picture } - QueryOwnership json.RawMessage `json:"queryOwnership"` -} +// GetEmail returns __AddUserInput.Email, and is useful for accessing the field via an interface. +func (v *__AddUserInput) GetEmail() *string { return v.Email } -func (v *UpdateFilterAlertUpdateFilterAlert) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) -} +// GetCountryCode returns __AddUserInput.CountryCode, and is useful for accessing the field via an interface. +func (v *__AddUserInput) GetCountryCode() *string { return v.CountryCode } -func (v *UpdateFilterAlertUpdateFilterAlert) __premarshalJSON() (*__premarshalUpdateFilterAlertUpdateFilterAlert, error) { - var retval __premarshalUpdateFilterAlertUpdateFilterAlert +// __AddUserToGroupInput is used internally by genqlient +type __AddUserToGroupInput struct { + GroupID string `json:"GroupID"` + UserID string `json:"UserID"` +} - retval.Id = v.FilterAlertDetails.Id - retval.Name = v.FilterAlertDetails.Name - retval.Description = v.FilterAlertDetails.Description - retval.QueryString = v.FilterAlertDetails.QueryString - retval.ThrottleTimeSeconds = v.FilterAlertDetails.ThrottleTimeSeconds - retval.ThrottleField = v.FilterAlertDetails.ThrottleField - { +// GetGroupID returns __AddUserToGroupInput.GroupID, and is useful for accessing the field via an interface. +func (v *__AddUserToGroupInput) GetGroupID() string { return v.GroupID } - dst := &retval.Actions - src := v.FilterAlertDetails.Actions - *dst = make( - []json.RawMessage, - len(src)) - for i, src := range src { - dst := &(*dst)[i] - var err error - *dst, err = __marshalFilterAlertDetailsActionsAction( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal UpdateFilterAlertUpdateFilterAlert.FilterAlertDetails.Actions: %w", err) - } - } - } - retval.Labels = v.FilterAlertDetails.Labels - retval.Enabled = v.FilterAlertDetails.Enabled - { +// GetUserID returns __AddUserToGroupInput.UserID, and is useful for accessing the field via an interface. +func (v *__AddUserToGroupInput) GetUserID() string { return v.UserID } - dst := &retval.QueryOwnership - src := v.FilterAlertDetails.QueryOwnership - var err error - *dst, err = __marshalSharedQueryOwnershipType( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal UpdateFilterAlertUpdateFilterAlert.FilterAlertDetails.QueryOwnership: %w", err) - } - } - return &retval, nil +// __AssignParserToIngestTokenInput is used internally by genqlient +type __AssignParserToIngestTokenInput struct { + RepositoryName string `json:"RepositoryName"` + IngestTokenName string `json:"IngestTokenName"` + ParserName string `json:"ParserName"` } -// UpdateHumioRepoActionResponse is returned by UpdateHumioRepoAction on success. -type UpdateHumioRepoActionResponse struct { - // Update a LogScale repository action. - UpdateHumioRepoAction UpdateHumioRepoActionUpdateHumioRepoAction `json:"updateHumioRepoAction"` -} +// GetRepositoryName returns __AssignParserToIngestTokenInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__AssignParserToIngestTokenInput) GetRepositoryName() string { return v.RepositoryName } -// GetUpdateHumioRepoAction returns UpdateHumioRepoActionResponse.UpdateHumioRepoAction, and is useful for accessing the field via an interface. -func (v *UpdateHumioRepoActionResponse) GetUpdateHumioRepoAction() UpdateHumioRepoActionUpdateHumioRepoAction { - return v.UpdateHumioRepoAction -} +// GetIngestTokenName returns __AssignParserToIngestTokenInput.IngestTokenName, and is useful for accessing the field via an interface. +func (v *__AssignParserToIngestTokenInput) GetIngestTokenName() string { return v.IngestTokenName } -// UpdateHumioRepoActionUpdateHumioRepoAction includes the requested fields of the GraphQL type HumioRepoAction. -// The GraphQL type's documentation follows. -// -// A LogScale repository action. -type UpdateHumioRepoActionUpdateHumioRepoAction struct { - // The id of the action. - Id string `json:"id"` - // The name of the action. - Name string `json:"name"` - // Humio ingest token for the dataspace that the action should ingest into. - IngestToken string `json:"ingestToken"` -} +// GetParserName returns __AssignParserToIngestTokenInput.ParserName, and is useful for accessing the field via an interface. +func (v *__AssignParserToIngestTokenInput) GetParserName() string { return v.ParserName } -// GetId returns UpdateHumioRepoActionUpdateHumioRepoAction.Id, and is useful for accessing the field via an interface. -func (v *UpdateHumioRepoActionUpdateHumioRepoAction) GetId() string { return v.Id } +// __CreateAggregateAlertInput is used internally by genqlient +type __CreateAggregateAlertInput struct { + SearchDomainName string `json:"SearchDomainName"` + Name string `json:"Name"` + Description *string `json:"Description"` + QueryString string `json:"QueryString"` + SearchIntervalSeconds int64 `json:"SearchIntervalSeconds"` + ActionIdsOrNames []string `json:"ActionIdsOrNames"` + Labels []string `json:"Labels"` + Enabled bool `json:"Enabled"` + RunAsUserID *string `json:"RunAsUserID"` + ThrottleField *string `json:"ThrottleField"` + ThrottleTimeSeconds int64 `json:"ThrottleTimeSeconds"` + TriggerMode TriggerMode `json:"TriggerMode"` + QueryTimestampMode QueryTimestampType `json:"QueryTimestampMode"` + QueryOwnershipType QueryOwnershipType `json:"QueryOwnershipType"` +} -// GetName returns UpdateHumioRepoActionUpdateHumioRepoAction.Name, and is useful for accessing the field via an interface. -func (v *UpdateHumioRepoActionUpdateHumioRepoAction) GetName() string { return v.Name } +// GetSearchDomainName returns __CreateAggregateAlertInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetIngestToken returns UpdateHumioRepoActionUpdateHumioRepoAction.IngestToken, and is useful for accessing the field via an interface. -func (v *UpdateHumioRepoActionUpdateHumioRepoAction) GetIngestToken() string { return v.IngestToken } +// GetName returns __CreateAggregateAlertInput.Name, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetName() string { return v.Name } -// UpdateIngestBasedRetentionResponse is returned by UpdateIngestBasedRetention on success. -type UpdateIngestBasedRetentionResponse struct { - // Update the retention policy of a repository. - UpdateRetention UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation `json:"updateRetention"` -} +// GetDescription returns __CreateAggregateAlertInput.Description, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetDescription() *string { return v.Description } -// GetUpdateRetention returns UpdateIngestBasedRetentionResponse.UpdateRetention, and is useful for accessing the field via an interface. -func (v *UpdateIngestBasedRetentionResponse) GetUpdateRetention() UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation { - return v.UpdateRetention -} +// GetQueryString returns __CreateAggregateAlertInput.QueryString, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetQueryString() string { return v.QueryString } -// UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation includes the requested fields of the GraphQL type UpdateRetentionMutation. -type UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation struct { - Typename *string `json:"__typename"` +// GetSearchIntervalSeconds returns __CreateAggregateAlertInput.SearchIntervalSeconds, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetSearchIntervalSeconds() int64 { + return v.SearchIntervalSeconds } -// GetTypename returns UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation.Typename, and is useful for accessing the field via an interface. -func (v *UpdateIngestBasedRetentionUpdateRetentionUpdateRetentionMutation) GetTypename() *string { - return v.Typename -} +// GetActionIdsOrNames returns __CreateAggregateAlertInput.ActionIdsOrNames, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetActionIdsOrNames() []string { return v.ActionIdsOrNames } -// UpdateLicenseKeyResponse is returned by UpdateLicenseKey on success. -type UpdateLicenseKeyResponse struct { - // Update the license key for the LogScale cluster. If there is an existing license on this cluster this operation requires permission to manage cluster. - UpdateLicenseKey UpdateLicenseKeyUpdateLicenseKeyLicense `json:"-"` -} +// GetLabels returns __CreateAggregateAlertInput.Labels, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetLabels() []string { return v.Labels } -// GetUpdateLicenseKey returns UpdateLicenseKeyResponse.UpdateLicenseKey, and is useful for accessing the field via an interface. -func (v *UpdateLicenseKeyResponse) GetUpdateLicenseKey() UpdateLicenseKeyUpdateLicenseKeyLicense { - return v.UpdateLicenseKey -} +// GetEnabled returns __CreateAggregateAlertInput.Enabled, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetEnabled() bool { return v.Enabled } -func (v *UpdateLicenseKeyResponse) UnmarshalJSON(b []byte) error { +// GetRunAsUserID returns __CreateAggregateAlertInput.RunAsUserID, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetRunAsUserID() *string { return v.RunAsUserID } - if string(b) == "null" { - return nil - } +// GetThrottleField returns __CreateAggregateAlertInput.ThrottleField, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetThrottleField() *string { return v.ThrottleField } - var firstPass struct { - *UpdateLicenseKeyResponse - UpdateLicenseKey json.RawMessage `json:"updateLicenseKey"` - graphql.NoUnmarshalJSON - } - firstPass.UpdateLicenseKeyResponse = v +// GetThrottleTimeSeconds returns __CreateAggregateAlertInput.ThrottleTimeSeconds, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetThrottleTimeSeconds() int64 { return v.ThrottleTimeSeconds } - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } +// GetTriggerMode returns __CreateAggregateAlertInput.TriggerMode, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetTriggerMode() TriggerMode { return v.TriggerMode } - { - dst := &v.UpdateLicenseKey - src := firstPass.UpdateLicenseKey - if len(src) != 0 && string(src) != "null" { - err = __unmarshalUpdateLicenseKeyUpdateLicenseKeyLicense( - src, dst) - if err != nil { - return fmt.Errorf( - "unable to unmarshal UpdateLicenseKeyResponse.UpdateLicenseKey: %w", err) - } - } - } - return nil +// GetQueryTimestampMode returns __CreateAggregateAlertInput.QueryTimestampMode, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetQueryTimestampMode() QueryTimestampType { + return v.QueryTimestampMode } -type __premarshalUpdateLicenseKeyResponse struct { - UpdateLicenseKey json.RawMessage `json:"updateLicenseKey"` +// GetQueryOwnershipType returns __CreateAggregateAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. +func (v *__CreateAggregateAlertInput) GetQueryOwnershipType() QueryOwnershipType { + return v.QueryOwnershipType } -func (v *UpdateLicenseKeyResponse) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) +// __CreateAlertInput is used internally by genqlient +type __CreateAlertInput struct { + SearchDomainName string `json:"SearchDomainName"` + Name string `json:"Name"` + Description *string `json:"Description"` + QueryString string `json:"QueryString"` + QueryStart string `json:"QueryStart"` + ThrottleTimeMillis int64 `json:"ThrottleTimeMillis"` + Enabled *bool `json:"Enabled"` + Actions []string `json:"Actions"` + Labels []string `json:"Labels"` + RunAsUserID *string `json:"RunAsUserID"` + QueryOwnershipType *QueryOwnershipType `json:"QueryOwnershipType"` + ThrottleField *string `json:"ThrottleField"` } -func (v *UpdateLicenseKeyResponse) __premarshalJSON() (*__premarshalUpdateLicenseKeyResponse, error) { - var retval __premarshalUpdateLicenseKeyResponse +// GetSearchDomainName returns __CreateAlertInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetSearchDomainName() string { return v.SearchDomainName } - { +// GetName returns __CreateAlertInput.Name, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetName() string { return v.Name } - dst := &retval.UpdateLicenseKey - src := v.UpdateLicenseKey - var err error - *dst, err = __marshalUpdateLicenseKeyUpdateLicenseKeyLicense( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal UpdateLicenseKeyResponse.UpdateLicenseKey: %w", err) - } - } - return &retval, nil -} +// GetDescription returns __CreateAlertInput.Description, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetDescription() *string { return v.Description } -// UpdateLicenseKeyUpdateLicenseKeyLicense includes the requested fields of the GraphQL interface License. -// -// UpdateLicenseKeyUpdateLicenseKeyLicense is implemented by the following types: -// UpdateLicenseKeyUpdateLicenseKeyOnPremLicense -// UpdateLicenseKeyUpdateLicenseKeyTrialLicense -// The GraphQL type's documentation follows. -// -// Represents information about the LogScale instance. -type UpdateLicenseKeyUpdateLicenseKeyLicense interface { - implementsGraphQLInterfaceUpdateLicenseKeyUpdateLicenseKeyLicense() - // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). - GetTypename() *string -} +// GetQueryString returns __CreateAlertInput.QueryString, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetQueryString() string { return v.QueryString } -func (v *UpdateLicenseKeyUpdateLicenseKeyOnPremLicense) implementsGraphQLInterfaceUpdateLicenseKeyUpdateLicenseKeyLicense() { -} -func (v *UpdateLicenseKeyUpdateLicenseKeyTrialLicense) implementsGraphQLInterfaceUpdateLicenseKeyUpdateLicenseKeyLicense() { -} +// GetQueryStart returns __CreateAlertInput.QueryStart, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetQueryStart() string { return v.QueryStart } -func __unmarshalUpdateLicenseKeyUpdateLicenseKeyLicense(b []byte, v *UpdateLicenseKeyUpdateLicenseKeyLicense) error { - if string(b) == "null" { - return nil - } +// GetThrottleTimeMillis returns __CreateAlertInput.ThrottleTimeMillis, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetThrottleTimeMillis() int64 { return v.ThrottleTimeMillis } - var tn struct { - TypeName string `json:"__typename"` - } - err := json.Unmarshal(b, &tn) - if err != nil { - return err - } +// GetEnabled returns __CreateAlertInput.Enabled, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetEnabled() *bool { return v.Enabled } - switch tn.TypeName { - case "OnPremLicense": - *v = new(UpdateLicenseKeyUpdateLicenseKeyOnPremLicense) - return json.Unmarshal(b, *v) - case "TrialLicense": - *v = new(UpdateLicenseKeyUpdateLicenseKeyTrialLicense) - return json.Unmarshal(b, *v) - case "": - return fmt.Errorf( - "response was missing License.__typename") - default: - return fmt.Errorf( - `unexpected concrete type for UpdateLicenseKeyUpdateLicenseKeyLicense: "%v"`, tn.TypeName) - } -} +// GetActions returns __CreateAlertInput.Actions, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetActions() []string { return v.Actions } -func __marshalUpdateLicenseKeyUpdateLicenseKeyLicense(v *UpdateLicenseKeyUpdateLicenseKeyLicense) ([]byte, error) { +// GetLabels returns __CreateAlertInput.Labels, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetLabels() []string { return v.Labels } - var typename string - switch v := (*v).(type) { - case *UpdateLicenseKeyUpdateLicenseKeyOnPremLicense: - typename = "OnPremLicense" +// GetRunAsUserID returns __CreateAlertInput.RunAsUserID, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetRunAsUserID() *string { return v.RunAsUserID } - result := struct { - TypeName string `json:"__typename"` - *UpdateLicenseKeyUpdateLicenseKeyOnPremLicense - }{typename, v} - return json.Marshal(result) - case *UpdateLicenseKeyUpdateLicenseKeyTrialLicense: - typename = "TrialLicense" +// GetQueryOwnershipType returns __CreateAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetQueryOwnershipType() *QueryOwnershipType { return v.QueryOwnershipType } - result := struct { - TypeName string `json:"__typename"` - *UpdateLicenseKeyUpdateLicenseKeyTrialLicense - }{typename, v} - return json.Marshal(result) - case nil: - return []byte("null"), nil - default: - return nil, fmt.Errorf( - `unexpected concrete type for UpdateLicenseKeyUpdateLicenseKeyLicense: "%T"`, v) - } -} +// GetThrottleField returns __CreateAlertInput.ThrottleField, and is useful for accessing the field via an interface. +func (v *__CreateAlertInput) GetThrottleField() *string { return v.ThrottleField } -// UpdateLicenseKeyUpdateLicenseKeyOnPremLicense includes the requested fields of the GraphQL type OnPremLicense. -// The GraphQL type's documentation follows. -// -// Represents information about a LogScale License. -type UpdateLicenseKeyUpdateLicenseKeyOnPremLicense struct { - Typename *string `json:"__typename"` +// __CreateEmailActionInput is used internally by genqlient +type __CreateEmailActionInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionName string `json:"ActionName"` + Recipients []string `json:"Recipients"` + SubjectTemplate *string `json:"SubjectTemplate"` + BodyTemplate *string `json:"BodyTemplate"` + UseProxy bool `json:"UseProxy"` } -// GetTypename returns UpdateLicenseKeyUpdateLicenseKeyOnPremLicense.Typename, and is useful for accessing the field via an interface. -func (v *UpdateLicenseKeyUpdateLicenseKeyOnPremLicense) GetTypename() *string { return v.Typename } +// GetSearchDomainName returns __CreateEmailActionInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateEmailActionInput) GetSearchDomainName() string { return v.SearchDomainName } -// UpdateLicenseKeyUpdateLicenseKeyTrialLicense includes the requested fields of the GraphQL type TrialLicense. -// The GraphQL type's documentation follows. -// -// Represents information about an on-going trial of LogScale. -type UpdateLicenseKeyUpdateLicenseKeyTrialLicense struct { - Typename *string `json:"__typename"` -} +// GetActionName returns __CreateEmailActionInput.ActionName, and is useful for accessing the field via an interface. +func (v *__CreateEmailActionInput) GetActionName() string { return v.ActionName } -// GetTypename returns UpdateLicenseKeyUpdateLicenseKeyTrialLicense.Typename, and is useful for accessing the field via an interface. -func (v *UpdateLicenseKeyUpdateLicenseKeyTrialLicense) GetTypename() *string { return v.Typename } +// GetRecipients returns __CreateEmailActionInput.Recipients, and is useful for accessing the field via an interface. +func (v *__CreateEmailActionInput) GetRecipients() []string { return v.Recipients } -// UpdateOpsGenieActionResponse is returned by UpdateOpsGenieAction on success. -type UpdateOpsGenieActionResponse struct { - // Update an OpsGenie action. - UpdateOpsGenieAction UpdateOpsGenieActionUpdateOpsGenieAction `json:"updateOpsGenieAction"` -} +// GetSubjectTemplate returns __CreateEmailActionInput.SubjectTemplate, and is useful for accessing the field via an interface. +func (v *__CreateEmailActionInput) GetSubjectTemplate() *string { return v.SubjectTemplate } -// GetUpdateOpsGenieAction returns UpdateOpsGenieActionResponse.UpdateOpsGenieAction, and is useful for accessing the field via an interface. -func (v *UpdateOpsGenieActionResponse) GetUpdateOpsGenieAction() UpdateOpsGenieActionUpdateOpsGenieAction { - return v.UpdateOpsGenieAction -} +// GetBodyTemplate returns __CreateEmailActionInput.BodyTemplate, and is useful for accessing the field via an interface. +func (v *__CreateEmailActionInput) GetBodyTemplate() *string { return v.BodyTemplate } -// UpdateOpsGenieActionUpdateOpsGenieAction includes the requested fields of the GraphQL type OpsGenieAction. -// The GraphQL type's documentation follows. -// -// An OpsGenie action -type UpdateOpsGenieActionUpdateOpsGenieAction struct { - // The id of the action. - Id string `json:"id"` - // The name of the action. - Name string `json:"name"` - // OpsGenie webhook url to send the request to. - ApiUrl string `json:"apiUrl"` - // Key to authenticate with OpsGenie. - GenieKey string `json:"genieKey"` - // Defines whether the action should use the configured proxy to make web requests. - UseProxy bool `json:"useProxy"` +// GetUseProxy returns __CreateEmailActionInput.UseProxy, and is useful for accessing the field via an interface. +func (v *__CreateEmailActionInput) GetUseProxy() bool { return v.UseProxy } + +// __CreateFilterAlertInput is used internally by genqlient +type __CreateFilterAlertInput struct { + SearchDomainName string `json:"SearchDomainName"` + Name string `json:"Name"` + Description *string `json:"Description"` + QueryString string `json:"QueryString"` + ActionIdsOrNames []string `json:"ActionIdsOrNames"` + Labels []string `json:"Labels"` + Enabled bool `json:"Enabled"` + RunAsUserID *string `json:"RunAsUserID"` + ThrottleField *string `json:"ThrottleField"` + ThrottleTimeSeconds int64 `json:"ThrottleTimeSeconds"` + QueryOwnershipType QueryOwnershipType `json:"QueryOwnershipType"` } -// GetId returns UpdateOpsGenieActionUpdateOpsGenieAction.Id, and is useful for accessing the field via an interface. -func (v *UpdateOpsGenieActionUpdateOpsGenieAction) GetId() string { return v.Id } +// GetSearchDomainName returns __CreateFilterAlertInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetName returns UpdateOpsGenieActionUpdateOpsGenieAction.Name, and is useful for accessing the field via an interface. -func (v *UpdateOpsGenieActionUpdateOpsGenieAction) GetName() string { return v.Name } +// GetName returns __CreateFilterAlertInput.Name, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetName() string { return v.Name } -// GetApiUrl returns UpdateOpsGenieActionUpdateOpsGenieAction.ApiUrl, and is useful for accessing the field via an interface. -func (v *UpdateOpsGenieActionUpdateOpsGenieAction) GetApiUrl() string { return v.ApiUrl } +// GetDescription returns __CreateFilterAlertInput.Description, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetDescription() *string { return v.Description } -// GetGenieKey returns UpdateOpsGenieActionUpdateOpsGenieAction.GenieKey, and is useful for accessing the field via an interface. -func (v *UpdateOpsGenieActionUpdateOpsGenieAction) GetGenieKey() string { return v.GenieKey } +// GetQueryString returns __CreateFilterAlertInput.QueryString, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetQueryString() string { return v.QueryString } -// GetUseProxy returns UpdateOpsGenieActionUpdateOpsGenieAction.UseProxy, and is useful for accessing the field via an interface. -func (v *UpdateOpsGenieActionUpdateOpsGenieAction) GetUseProxy() bool { return v.UseProxy } +// GetActionIdsOrNames returns __CreateFilterAlertInput.ActionIdsOrNames, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetActionIdsOrNames() []string { return v.ActionIdsOrNames } -// UpdatePagerDutyActionResponse is returned by UpdatePagerDutyAction on success. -type UpdatePagerDutyActionResponse struct { - // Update a PagerDuty action. - UpdatePagerDutyAction UpdatePagerDutyActionUpdatePagerDutyAction `json:"updatePagerDutyAction"` -} +// GetLabels returns __CreateFilterAlertInput.Labels, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetLabels() []string { return v.Labels } -// GetUpdatePagerDutyAction returns UpdatePagerDutyActionResponse.UpdatePagerDutyAction, and is useful for accessing the field via an interface. -func (v *UpdatePagerDutyActionResponse) GetUpdatePagerDutyAction() UpdatePagerDutyActionUpdatePagerDutyAction { - return v.UpdatePagerDutyAction -} +// GetEnabled returns __CreateFilterAlertInput.Enabled, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetEnabled() bool { return v.Enabled } -// UpdatePagerDutyActionUpdatePagerDutyAction includes the requested fields of the GraphQL type PagerDutyAction. -// The GraphQL type's documentation follows. -// -// A PagerDuty action. -type UpdatePagerDutyActionUpdatePagerDutyAction struct { - // The id of the action. - Id string `json:"id"` - // The name of the action. - Name string `json:"name"` - // Severity level to give to the message. - Severity string `json:"severity"` - // Routing key to authenticate with PagerDuty. - RoutingKey string `json:"routingKey"` - // Defines whether the action should use the configured proxy to make web requests. - UseProxy bool `json:"useProxy"` -} +// GetRunAsUserID returns __CreateFilterAlertInput.RunAsUserID, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetRunAsUserID() *string { return v.RunAsUserID } -// GetId returns UpdatePagerDutyActionUpdatePagerDutyAction.Id, and is useful for accessing the field via an interface. -func (v *UpdatePagerDutyActionUpdatePagerDutyAction) GetId() string { return v.Id } +// GetThrottleField returns __CreateFilterAlertInput.ThrottleField, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetThrottleField() *string { return v.ThrottleField } -// GetName returns UpdatePagerDutyActionUpdatePagerDutyAction.Name, and is useful for accessing the field via an interface. -func (v *UpdatePagerDutyActionUpdatePagerDutyAction) GetName() string { return v.Name } +// GetThrottleTimeSeconds returns __CreateFilterAlertInput.ThrottleTimeSeconds, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetThrottleTimeSeconds() int64 { return v.ThrottleTimeSeconds } -// GetSeverity returns UpdatePagerDutyActionUpdatePagerDutyAction.Severity, and is useful for accessing the field via an interface. -func (v *UpdatePagerDutyActionUpdatePagerDutyAction) GetSeverity() string { return v.Severity } +// GetQueryOwnershipType returns __CreateFilterAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. +func (v *__CreateFilterAlertInput) GetQueryOwnershipType() QueryOwnershipType { + return v.QueryOwnershipType +} -// GetRoutingKey returns UpdatePagerDutyActionUpdatePagerDutyAction.RoutingKey, and is useful for accessing the field via an interface. -func (v *UpdatePagerDutyActionUpdatePagerDutyAction) GetRoutingKey() string { return v.RoutingKey } +// __CreateHumioRepoActionInput is used internally by genqlient +type __CreateHumioRepoActionInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionName string `json:"ActionName"` + IngestToken string `json:"IngestToken"` +} -// GetUseProxy returns UpdatePagerDutyActionUpdatePagerDutyAction.UseProxy, and is useful for accessing the field via an interface. -func (v *UpdatePagerDutyActionUpdatePagerDutyAction) GetUseProxy() bool { return v.UseProxy } +// GetSearchDomainName returns __CreateHumioRepoActionInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateHumioRepoActionInput) GetSearchDomainName() string { return v.SearchDomainName } -// UpdateRoleResponse is returned by UpdateRole on success. -type UpdateRoleResponse struct { - UpdateRole UpdateRoleUpdateRoleUpdateRoleMutation `json:"updateRole"` -} +// GetActionName returns __CreateHumioRepoActionInput.ActionName, and is useful for accessing the field via an interface. +func (v *__CreateHumioRepoActionInput) GetActionName() string { return v.ActionName } -// GetUpdateRole returns UpdateRoleResponse.UpdateRole, and is useful for accessing the field via an interface. -func (v *UpdateRoleResponse) GetUpdateRole() UpdateRoleUpdateRoleUpdateRoleMutation { - return v.UpdateRole -} +// GetIngestToken returns __CreateHumioRepoActionInput.IngestToken, and is useful for accessing the field via an interface. +func (v *__CreateHumioRepoActionInput) GetIngestToken() string { return v.IngestToken } -// UpdateRoleUpdateRoleUpdateRoleMutation includes the requested fields of the GraphQL type UpdateRoleMutation. -type UpdateRoleUpdateRoleUpdateRoleMutation struct { - Role UpdateRoleUpdateRoleUpdateRoleMutationRole `json:"role"` +// __CreateOpsGenieActionInput is used internally by genqlient +type __CreateOpsGenieActionInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionName string `json:"ActionName"` + ApiUrl string `json:"ApiUrl"` + GenieKey string `json:"GenieKey"` + UseProxy bool `json:"UseProxy"` } -// GetRole returns UpdateRoleUpdateRoleUpdateRoleMutation.Role, and is useful for accessing the field via an interface. -func (v *UpdateRoleUpdateRoleUpdateRoleMutation) GetRole() UpdateRoleUpdateRoleUpdateRoleMutationRole { - return v.Role -} +// GetSearchDomainName returns __CreateOpsGenieActionInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateOpsGenieActionInput) GetSearchDomainName() string { return v.SearchDomainName } -// UpdateRoleUpdateRoleUpdateRoleMutationRole includes the requested fields of the GraphQL type Role. -type UpdateRoleUpdateRoleUpdateRoleMutationRole struct { - RoleDetails `json:"-"` -} +// GetActionName returns __CreateOpsGenieActionInput.ActionName, and is useful for accessing the field via an interface. +func (v *__CreateOpsGenieActionInput) GetActionName() string { return v.ActionName } -// GetId returns UpdateRoleUpdateRoleUpdateRoleMutationRole.Id, and is useful for accessing the field via an interface. -func (v *UpdateRoleUpdateRoleUpdateRoleMutationRole) GetId() string { return v.RoleDetails.Id } +// GetApiUrl returns __CreateOpsGenieActionInput.ApiUrl, and is useful for accessing the field via an interface. +func (v *__CreateOpsGenieActionInput) GetApiUrl() string { return v.ApiUrl } -// GetDisplayName returns UpdateRoleUpdateRoleUpdateRoleMutationRole.DisplayName, and is useful for accessing the field via an interface. -func (v *UpdateRoleUpdateRoleUpdateRoleMutationRole) GetDisplayName() string { - return v.RoleDetails.DisplayName -} +// GetGenieKey returns __CreateOpsGenieActionInput.GenieKey, and is useful for accessing the field via an interface. +func (v *__CreateOpsGenieActionInput) GetGenieKey() string { return v.GenieKey } -// GetViewPermissions returns UpdateRoleUpdateRoleUpdateRoleMutationRole.ViewPermissions, and is useful for accessing the field via an interface. -func (v *UpdateRoleUpdateRoleUpdateRoleMutationRole) GetViewPermissions() []Permission { - return v.RoleDetails.ViewPermissions -} +// GetUseProxy returns __CreateOpsGenieActionInput.UseProxy, and is useful for accessing the field via an interface. +func (v *__CreateOpsGenieActionInput) GetUseProxy() bool { return v.UseProxy } -// GetOrganizationPermissions returns UpdateRoleUpdateRoleUpdateRoleMutationRole.OrganizationPermissions, and is useful for accessing the field via an interface. -func (v *UpdateRoleUpdateRoleUpdateRoleMutationRole) GetOrganizationPermissions() []OrganizationPermission { - return v.RoleDetails.OrganizationPermissions +// __CreatePagerDutyActionInput is used internally by genqlient +type __CreatePagerDutyActionInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionName string `json:"ActionName"` + Severity string `json:"Severity"` + RoutingKey string `json:"RoutingKey"` + UseProxy bool `json:"UseProxy"` } -// GetSystemPermissions returns UpdateRoleUpdateRoleUpdateRoleMutationRole.SystemPermissions, and is useful for accessing the field via an interface. -func (v *UpdateRoleUpdateRoleUpdateRoleMutationRole) GetSystemPermissions() []SystemPermission { - return v.RoleDetails.SystemPermissions -} +// GetSearchDomainName returns __CreatePagerDutyActionInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreatePagerDutyActionInput) GetSearchDomainName() string { return v.SearchDomainName } -func (v *UpdateRoleUpdateRoleUpdateRoleMutationRole) UnmarshalJSON(b []byte) error { +// GetActionName returns __CreatePagerDutyActionInput.ActionName, and is useful for accessing the field via an interface. +func (v *__CreatePagerDutyActionInput) GetActionName() string { return v.ActionName } - if string(b) == "null" { - return nil - } +// GetSeverity returns __CreatePagerDutyActionInput.Severity, and is useful for accessing the field via an interface. +func (v *__CreatePagerDutyActionInput) GetSeverity() string { return v.Severity } - var firstPass struct { - *UpdateRoleUpdateRoleUpdateRoleMutationRole - graphql.NoUnmarshalJSON - } - firstPass.UpdateRoleUpdateRoleUpdateRoleMutationRole = v +// GetRoutingKey returns __CreatePagerDutyActionInput.RoutingKey, and is useful for accessing the field via an interface. +func (v *__CreatePagerDutyActionInput) GetRoutingKey() string { return v.RoutingKey } - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } +// GetUseProxy returns __CreatePagerDutyActionInput.UseProxy, and is useful for accessing the field via an interface. +func (v *__CreatePagerDutyActionInput) GetUseProxy() bool { return v.UseProxy } - err = json.Unmarshal( - b, &v.RoleDetails) - if err != nil { - return err - } - return nil +// __CreateParserInput is used internally by genqlient +type __CreateParserInput struct { + RepositoryName string `json:"RepositoryName"` + Name string `json:"Name"` + Script string `json:"Script"` + TestCases []ParserTestCaseInput `json:"TestCases"` + FieldsToTag []string `json:"FieldsToTag"` + FieldsToBeRemovedBeforeParsing []string `json:"FieldsToBeRemovedBeforeParsing"` + AllowOverridingExistingParser bool `json:"AllowOverridingExistingParser"` } -type __premarshalUpdateRoleUpdateRoleUpdateRoleMutationRole struct { - Id string `json:"id"` +// GetRepositoryName returns __CreateParserInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__CreateParserInput) GetRepositoryName() string { return v.RepositoryName } - DisplayName string `json:"displayName"` +// GetName returns __CreateParserInput.Name, and is useful for accessing the field via an interface. +func (v *__CreateParserInput) GetName() string { return v.Name } - ViewPermissions []Permission `json:"viewPermissions"` +// GetScript returns __CreateParserInput.Script, and is useful for accessing the field via an interface. +func (v *__CreateParserInput) GetScript() string { return v.Script } - OrganizationPermissions []OrganizationPermission `json:"organizationPermissions"` +// GetTestCases returns __CreateParserInput.TestCases, and is useful for accessing the field via an interface. +func (v *__CreateParserInput) GetTestCases() []ParserTestCaseInput { return v.TestCases } - SystemPermissions []SystemPermission `json:"systemPermissions"` -} +// GetFieldsToTag returns __CreateParserInput.FieldsToTag, and is useful for accessing the field via an interface. +func (v *__CreateParserInput) GetFieldsToTag() []string { return v.FieldsToTag } -func (v *UpdateRoleUpdateRoleUpdateRoleMutationRole) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) +// GetFieldsToBeRemovedBeforeParsing returns __CreateParserInput.FieldsToBeRemovedBeforeParsing, and is useful for accessing the field via an interface. +func (v *__CreateParserInput) GetFieldsToBeRemovedBeforeParsing() []string { + return v.FieldsToBeRemovedBeforeParsing } -func (v *UpdateRoleUpdateRoleUpdateRoleMutationRole) __premarshalJSON() (*__premarshalUpdateRoleUpdateRoleUpdateRoleMutationRole, error) { - var retval __premarshalUpdateRoleUpdateRoleUpdateRoleMutationRole - - retval.Id = v.RoleDetails.Id - retval.DisplayName = v.RoleDetails.DisplayName - retval.ViewPermissions = v.RoleDetails.ViewPermissions - retval.OrganizationPermissions = v.RoleDetails.OrganizationPermissions - retval.SystemPermissions = v.RoleDetails.SystemPermissions - return &retval, nil +// GetAllowOverridingExistingParser returns __CreateParserInput.AllowOverridingExistingParser, and is useful for accessing the field via an interface. +func (v *__CreateParserInput) GetAllowOverridingExistingParser() bool { + return v.AllowOverridingExistingParser } -// UpdateS3ArchivingConfigurationResponse is returned by UpdateS3ArchivingConfiguration on success. -type UpdateS3ArchivingConfigurationResponse struct { - // Configures S3 archiving for a repository. E.g. bucket and region. - S3ConfigureArchiving UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType `json:"s3ConfigureArchiving"` +// __CreateRepositoryInput is used internally by genqlient +type __CreateRepositoryInput struct { + RepositoryName string `json:"RepositoryName"` } -// GetS3ConfigureArchiving returns UpdateS3ArchivingConfigurationResponse.S3ConfigureArchiving, and is useful for accessing the field via an interface. -func (v *UpdateS3ArchivingConfigurationResponse) GetS3ConfigureArchiving() UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType { - return v.S3ConfigureArchiving -} +// GetRepositoryName returns __CreateRepositoryInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__CreateRepositoryInput) GetRepositoryName() string { return v.RepositoryName } -// UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType includes the requested fields of the GraphQL type BooleanResultType. -type UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType struct { - Typename *string `json:"__typename"` +// __CreateScheduledSearchInput is used internally by genqlient +type __CreateScheduledSearchInput struct { + SearchDomainName string `json:"SearchDomainName"` + Name string `json:"Name"` + Description *string `json:"Description"` + QueryString string `json:"QueryString"` + QueryStart string `json:"QueryStart"` + QueryEnd string `json:"QueryEnd"` + Schedule string `json:"Schedule"` + TimeZone string `json:"TimeZone"` + BackfillLimit int `json:"BackfillLimit"` + Enabled bool `json:"Enabled"` + ActionIdsOrNames []string `json:"ActionIdsOrNames"` + RunAsUserID *string `json:"RunAsUserID"` + Labels []string `json:"Labels"` + QueryOwnershipType *QueryOwnershipType `json:"QueryOwnershipType"` } -// GetTypename returns UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType.Typename, and is useful for accessing the field via an interface. -func (v *UpdateS3ArchivingConfigurationS3ConfigureArchivingBooleanResultType) GetTypename() *string { - return v.Typename -} +// GetSearchDomainName returns __CreateScheduledSearchInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetSearchDomainName() string { return v.SearchDomainName } -// UpdateScheduledSearchResponse is returned by UpdateScheduledSearch on success. -type UpdateScheduledSearchResponse struct { - // Update a scheduled search. - UpdateScheduledSearch UpdateScheduledSearchUpdateScheduledSearch `json:"updateScheduledSearch"` -} +// GetName returns __CreateScheduledSearchInput.Name, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetName() string { return v.Name } -// GetUpdateScheduledSearch returns UpdateScheduledSearchResponse.UpdateScheduledSearch, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchResponse) GetUpdateScheduledSearch() UpdateScheduledSearchUpdateScheduledSearch { - return v.UpdateScheduledSearch -} +// GetDescription returns __CreateScheduledSearchInput.Description, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetDescription() *string { return v.Description } -// UpdateScheduledSearchUpdateScheduledSearch includes the requested fields of the GraphQL type ScheduledSearch. -// The GraphQL type's documentation follows. -// -// Information about a scheduled search -type UpdateScheduledSearchUpdateScheduledSearch struct { - ScheduledSearchDetails `json:"-"` -} +// GetQueryString returns __CreateScheduledSearchInput.QueryString, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetQueryString() string { return v.QueryString } -// GetId returns UpdateScheduledSearchUpdateScheduledSearch.Id, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetId() string { - return v.ScheduledSearchDetails.Id -} +// GetQueryStart returns __CreateScheduledSearchInput.QueryStart, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetQueryStart() string { return v.QueryStart } -// GetName returns UpdateScheduledSearchUpdateScheduledSearch.Name, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetName() string { - return v.ScheduledSearchDetails.Name -} +// GetQueryEnd returns __CreateScheduledSearchInput.QueryEnd, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetQueryEnd() string { return v.QueryEnd } -// GetDescription returns UpdateScheduledSearchUpdateScheduledSearch.Description, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetDescription() *string { - return v.ScheduledSearchDetails.Description -} +// GetSchedule returns __CreateScheduledSearchInput.Schedule, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetSchedule() string { return v.Schedule } -// GetQueryString returns UpdateScheduledSearchUpdateScheduledSearch.QueryString, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetQueryString() string { - return v.ScheduledSearchDetails.QueryString -} +// GetTimeZone returns __CreateScheduledSearchInput.TimeZone, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetTimeZone() string { return v.TimeZone } -// GetStart returns UpdateScheduledSearchUpdateScheduledSearch.Start, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetStart() string { - return v.ScheduledSearchDetails.Start -} +// GetBackfillLimit returns __CreateScheduledSearchInput.BackfillLimit, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetBackfillLimit() int { return v.BackfillLimit } -// GetEnd returns UpdateScheduledSearchUpdateScheduledSearch.End, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetEnd() string { - return v.ScheduledSearchDetails.End -} +// GetEnabled returns __CreateScheduledSearchInput.Enabled, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetEnabled() bool { return v.Enabled } -// GetTimeZone returns UpdateScheduledSearchUpdateScheduledSearch.TimeZone, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetTimeZone() string { - return v.ScheduledSearchDetails.TimeZone -} +// GetActionIdsOrNames returns __CreateScheduledSearchInput.ActionIdsOrNames, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetActionIdsOrNames() []string { return v.ActionIdsOrNames } -// GetSchedule returns UpdateScheduledSearchUpdateScheduledSearch.Schedule, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetSchedule() string { - return v.ScheduledSearchDetails.Schedule -} +// GetRunAsUserID returns __CreateScheduledSearchInput.RunAsUserID, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetRunAsUserID() *string { return v.RunAsUserID } -// GetBackfillLimit returns UpdateScheduledSearchUpdateScheduledSearch.BackfillLimit, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetBackfillLimit() int { - return v.ScheduledSearchDetails.BackfillLimit -} +// GetLabels returns __CreateScheduledSearchInput.Labels, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetLabels() []string { return v.Labels } -// GetEnabled returns UpdateScheduledSearchUpdateScheduledSearch.Enabled, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetEnabled() bool { - return v.ScheduledSearchDetails.Enabled +// GetQueryOwnershipType returns __CreateScheduledSearchInput.QueryOwnershipType, and is useful for accessing the field via an interface. +func (v *__CreateScheduledSearchInput) GetQueryOwnershipType() *QueryOwnershipType { + return v.QueryOwnershipType } -// GetActionsV2 returns UpdateScheduledSearchUpdateScheduledSearch.ActionsV2, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetActionsV2() []ScheduledSearchDetailsActionsV2Action { - return v.ScheduledSearchDetails.ActionsV2 +// __CreateSlackActionInput is used internally by genqlient +type __CreateSlackActionInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionName string `json:"ActionName"` + Fields []SlackFieldEntryInput `json:"Fields"` + Url string `json:"Url"` + UseProxy bool `json:"UseProxy"` } -// GetLabels returns UpdateScheduledSearchUpdateScheduledSearch.Labels, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetLabels() []string { - return v.ScheduledSearchDetails.Labels -} +// GetSearchDomainName returns __CreateSlackActionInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateSlackActionInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetQueryOwnership returns UpdateScheduledSearchUpdateScheduledSearch.QueryOwnership, and is useful for accessing the field via an interface. -func (v *UpdateScheduledSearchUpdateScheduledSearch) GetQueryOwnership() SharedQueryOwnershipType { - return v.ScheduledSearchDetails.QueryOwnership +// GetActionName returns __CreateSlackActionInput.ActionName, and is useful for accessing the field via an interface. +func (v *__CreateSlackActionInput) GetActionName() string { return v.ActionName } + +// GetFields returns __CreateSlackActionInput.Fields, and is useful for accessing the field via an interface. +func (v *__CreateSlackActionInput) GetFields() []SlackFieldEntryInput { return v.Fields } + +// GetUrl returns __CreateSlackActionInput.Url, and is useful for accessing the field via an interface. +func (v *__CreateSlackActionInput) GetUrl() string { return v.Url } + +// GetUseProxy returns __CreateSlackActionInput.UseProxy, and is useful for accessing the field via an interface. +func (v *__CreateSlackActionInput) GetUseProxy() bool { return v.UseProxy } + +// __CreateSlackPostMessageActionInput is used internally by genqlient +type __CreateSlackPostMessageActionInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionName string `json:"ActionName"` + ApiToken string `json:"ApiToken"` + Channels []string `json:"Channels"` + Fields []SlackFieldEntryInput `json:"Fields"` + UseProxy bool `json:"UseProxy"` } -func (v *UpdateScheduledSearchUpdateScheduledSearch) UnmarshalJSON(b []byte) error { +// GetSearchDomainName returns __CreateSlackPostMessageActionInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateSlackPostMessageActionInput) GetSearchDomainName() string { return v.SearchDomainName } - if string(b) == "null" { - return nil - } +// GetActionName returns __CreateSlackPostMessageActionInput.ActionName, and is useful for accessing the field via an interface. +func (v *__CreateSlackPostMessageActionInput) GetActionName() string { return v.ActionName } - var firstPass struct { - *UpdateScheduledSearchUpdateScheduledSearch - graphql.NoUnmarshalJSON - } - firstPass.UpdateScheduledSearchUpdateScheduledSearch = v +// GetApiToken returns __CreateSlackPostMessageActionInput.ApiToken, and is useful for accessing the field via an interface. +func (v *__CreateSlackPostMessageActionInput) GetApiToken() string { return v.ApiToken } - err := json.Unmarshal(b, &firstPass) - if err != nil { - return err - } +// GetChannels returns __CreateSlackPostMessageActionInput.Channels, and is useful for accessing the field via an interface. +func (v *__CreateSlackPostMessageActionInput) GetChannels() []string { return v.Channels } - err = json.Unmarshal( - b, &v.ScheduledSearchDetails) - if err != nil { - return err - } - return nil +// GetFields returns __CreateSlackPostMessageActionInput.Fields, and is useful for accessing the field via an interface. +func (v *__CreateSlackPostMessageActionInput) GetFields() []SlackFieldEntryInput { return v.Fields } + +// GetUseProxy returns __CreateSlackPostMessageActionInput.UseProxy, and is useful for accessing the field via an interface. +func (v *__CreateSlackPostMessageActionInput) GetUseProxy() bool { return v.UseProxy } + +// __CreateUploadFileActionInput is used internally by genqlient +type __CreateUploadFileActionInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionName string `json:"ActionName"` + FileName string `json:"FileName"` } -type __premarshalUpdateScheduledSearchUpdateScheduledSearch struct { - Id string `json:"id"` +// GetSearchDomainName returns __CreateUploadFileActionInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateUploadFileActionInput) GetSearchDomainName() string { return v.SearchDomainName } - Name string `json:"name"` +// GetActionName returns __CreateUploadFileActionInput.ActionName, and is useful for accessing the field via an interface. +func (v *__CreateUploadFileActionInput) GetActionName() string { return v.ActionName } - Description *string `json:"description"` +// GetFileName returns __CreateUploadFileActionInput.FileName, and is useful for accessing the field via an interface. +func (v *__CreateUploadFileActionInput) GetFileName() string { return v.FileName } - QueryString string `json:"queryString"` +// __CreateVictorOpsActionInput is used internally by genqlient +type __CreateVictorOpsActionInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionName string `json:"ActionName"` + MessageType string `json:"MessageType"` + NotifyUrl string `json:"NotifyUrl"` + UseProxy bool `json:"UseProxy"` +} - Start string `json:"start"` +// GetSearchDomainName returns __CreateVictorOpsActionInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateVictorOpsActionInput) GetSearchDomainName() string { return v.SearchDomainName } - End string `json:"end"` +// GetActionName returns __CreateVictorOpsActionInput.ActionName, and is useful for accessing the field via an interface. +func (v *__CreateVictorOpsActionInput) GetActionName() string { return v.ActionName } - TimeZone string `json:"timeZone"` +// GetMessageType returns __CreateVictorOpsActionInput.MessageType, and is useful for accessing the field via an interface. +func (v *__CreateVictorOpsActionInput) GetMessageType() string { return v.MessageType } - Schedule string `json:"schedule"` +// GetNotifyUrl returns __CreateVictorOpsActionInput.NotifyUrl, and is useful for accessing the field via an interface. +func (v *__CreateVictorOpsActionInput) GetNotifyUrl() string { return v.NotifyUrl } - BackfillLimit int `json:"backfillLimit"` +// GetUseProxy returns __CreateVictorOpsActionInput.UseProxy, and is useful for accessing the field via an interface. +func (v *__CreateVictorOpsActionInput) GetUseProxy() bool { return v.UseProxy } - Enabled bool `json:"enabled"` +// __CreateViewInput is used internally by genqlient +type __CreateViewInput struct { + ViewName string `json:"ViewName"` + Description *string `json:"Description"` + Connections []ViewConnectionInput `json:"Connections"` +} - ActionsV2 []json.RawMessage `json:"actionsV2"` +// GetViewName returns __CreateViewInput.ViewName, and is useful for accessing the field via an interface. +func (v *__CreateViewInput) GetViewName() string { return v.ViewName } - Labels []string `json:"labels"` +// GetDescription returns __CreateViewInput.Description, and is useful for accessing the field via an interface. +func (v *__CreateViewInput) GetDescription() *string { return v.Description } - QueryOwnership json.RawMessage `json:"queryOwnership"` -} +// GetConnections returns __CreateViewInput.Connections, and is useful for accessing the field via an interface. +func (v *__CreateViewInput) GetConnections() []ViewConnectionInput { return v.Connections } -func (v *UpdateScheduledSearchUpdateScheduledSearch) MarshalJSON() ([]byte, error) { - premarshaled, err := v.__premarshalJSON() - if err != nil { - return nil, err - } - return json.Marshal(premarshaled) +// __CreateWebhookActionInput is used internally by genqlient +type __CreateWebhookActionInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionName string `json:"ActionName"` + Url string `json:"Url"` + Method string `json:"Method"` + Headers []HttpHeaderEntryInput `json:"Headers"` + BodyTemplate string `json:"BodyTemplate"` + IgnoreSSL bool `json:"IgnoreSSL"` + UseProxy bool `json:"UseProxy"` } -func (v *UpdateScheduledSearchUpdateScheduledSearch) __premarshalJSON() (*__premarshalUpdateScheduledSearchUpdateScheduledSearch, error) { - var retval __premarshalUpdateScheduledSearchUpdateScheduledSearch +// GetSearchDomainName returns __CreateWebhookActionInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__CreateWebhookActionInput) GetSearchDomainName() string { return v.SearchDomainName } - retval.Id = v.ScheduledSearchDetails.Id - retval.Name = v.ScheduledSearchDetails.Name - retval.Description = v.ScheduledSearchDetails.Description - retval.QueryString = v.ScheduledSearchDetails.QueryString - retval.Start = v.ScheduledSearchDetails.Start - retval.End = v.ScheduledSearchDetails.End - retval.TimeZone = v.ScheduledSearchDetails.TimeZone - retval.Schedule = v.ScheduledSearchDetails.Schedule - retval.BackfillLimit = v.ScheduledSearchDetails.BackfillLimit - retval.Enabled = v.ScheduledSearchDetails.Enabled - { +// GetActionName returns __CreateWebhookActionInput.ActionName, and is useful for accessing the field via an interface. +func (v *__CreateWebhookActionInput) GetActionName() string { return v.ActionName } - dst := &retval.ActionsV2 - src := v.ScheduledSearchDetails.ActionsV2 - *dst = make( - []json.RawMessage, - len(src)) - for i, src := range src { - dst := &(*dst)[i] - var err error - *dst, err = __marshalScheduledSearchDetailsActionsV2Action( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal UpdateScheduledSearchUpdateScheduledSearch.ScheduledSearchDetails.ActionsV2: %w", err) - } - } - } - retval.Labels = v.ScheduledSearchDetails.Labels - { +// GetUrl returns __CreateWebhookActionInput.Url, and is useful for accessing the field via an interface. +func (v *__CreateWebhookActionInput) GetUrl() string { return v.Url } - dst := &retval.QueryOwnership - src := v.ScheduledSearchDetails.QueryOwnership - var err error - *dst, err = __marshalSharedQueryOwnershipType( - &src) - if err != nil { - return nil, fmt.Errorf( - "unable to marshal UpdateScheduledSearchUpdateScheduledSearch.ScheduledSearchDetails.QueryOwnership: %w", err) - } - } - return &retval, nil -} +// GetMethod returns __CreateWebhookActionInput.Method, and is useful for accessing the field via an interface. +func (v *__CreateWebhookActionInput) GetMethod() string { return v.Method } -// UpdateSlackActionResponse is returned by UpdateSlackAction on success. -type UpdateSlackActionResponse struct { - // Update a Slack action. - UpdateSlackAction UpdateSlackActionUpdateSlackAction `json:"updateSlackAction"` -} +// GetHeaders returns __CreateWebhookActionInput.Headers, and is useful for accessing the field via an interface. +func (v *__CreateWebhookActionInput) GetHeaders() []HttpHeaderEntryInput { return v.Headers } -// GetUpdateSlackAction returns UpdateSlackActionResponse.UpdateSlackAction, and is useful for accessing the field via an interface. -func (v *UpdateSlackActionResponse) GetUpdateSlackAction() UpdateSlackActionUpdateSlackAction { - return v.UpdateSlackAction -} +// GetBodyTemplate returns __CreateWebhookActionInput.BodyTemplate, and is useful for accessing the field via an interface. +func (v *__CreateWebhookActionInput) GetBodyTemplate() string { return v.BodyTemplate } -// UpdateSlackActionUpdateSlackAction includes the requested fields of the GraphQL type SlackAction. -// The GraphQL type's documentation follows. -// -// A Slack action -type UpdateSlackActionUpdateSlackAction struct { - // The id of the action. - Id string `json:"id"` - // The name of the action. - Name string `json:"name"` - // Fields to include within the Slack message. Can be templated with values from the result. - Fields []UpdateSlackActionUpdateSlackActionFieldsSlackFieldEntry `json:"fields"` - // Slack webhook url to send the request to. - Url string `json:"url"` - // Defines whether the action should use the configured proxy to make web requests. - UseProxy bool `json:"useProxy"` +// GetIgnoreSSL returns __CreateWebhookActionInput.IgnoreSSL, and is useful for accessing the field via an interface. +func (v *__CreateWebhookActionInput) GetIgnoreSSL() bool { return v.IgnoreSSL } + +// GetUseProxy returns __CreateWebhookActionInput.UseProxy, and is useful for accessing the field via an interface. +func (v *__CreateWebhookActionInput) GetUseProxy() bool { return v.UseProxy } + +// __DeleteActionByIDInput is used internally by genqlient +type __DeleteActionByIDInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionID string `json:"ActionID"` } -// GetId returns UpdateSlackActionUpdateSlackAction.Id, and is useful for accessing the field via an interface. -func (v *UpdateSlackActionUpdateSlackAction) GetId() string { return v.Id } +// GetSearchDomainName returns __DeleteActionByIDInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__DeleteActionByIDInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetName returns UpdateSlackActionUpdateSlackAction.Name, and is useful for accessing the field via an interface. -func (v *UpdateSlackActionUpdateSlackAction) GetName() string { return v.Name } +// GetActionID returns __DeleteActionByIDInput.ActionID, and is useful for accessing the field via an interface. +func (v *__DeleteActionByIDInput) GetActionID() string { return v.ActionID } -// GetFields returns UpdateSlackActionUpdateSlackAction.Fields, and is useful for accessing the field via an interface. -func (v *UpdateSlackActionUpdateSlackAction) GetFields() []UpdateSlackActionUpdateSlackActionFieldsSlackFieldEntry { - return v.Fields +// __DeleteAggregateAlertInput is used internally by genqlient +type __DeleteAggregateAlertInput struct { + SearchDomainName string `json:"SearchDomainName"` + AggregateAlertID string `json:"AggregateAlertID"` } -// GetUrl returns UpdateSlackActionUpdateSlackAction.Url, and is useful for accessing the field via an interface. -func (v *UpdateSlackActionUpdateSlackAction) GetUrl() string { return v.Url } +// GetSearchDomainName returns __DeleteAggregateAlertInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__DeleteAggregateAlertInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetUseProxy returns UpdateSlackActionUpdateSlackAction.UseProxy, and is useful for accessing the field via an interface. -func (v *UpdateSlackActionUpdateSlackAction) GetUseProxy() bool { return v.UseProxy } +// GetAggregateAlertID returns __DeleteAggregateAlertInput.AggregateAlertID, and is useful for accessing the field via an interface. +func (v *__DeleteAggregateAlertInput) GetAggregateAlertID() string { return v.AggregateAlertID } -// UpdateSlackActionUpdateSlackActionFieldsSlackFieldEntry includes the requested fields of the GraphQL type SlackFieldEntry. -// The GraphQL type's documentation follows. -// -// Field entry in a Slack message -type UpdateSlackActionUpdateSlackActionFieldsSlackFieldEntry struct { - // Value of a Slack field. - Value string `json:"value"` - // Key of a Slack field. - FieldName string `json:"fieldName"` +// __DeleteAlertInput is used internally by genqlient +type __DeleteAlertInput struct { + SearchDomainName string `json:"SearchDomainName"` + AlertID string `json:"AlertID"` } -// GetValue returns UpdateSlackActionUpdateSlackActionFieldsSlackFieldEntry.Value, and is useful for accessing the field via an interface. -func (v *UpdateSlackActionUpdateSlackActionFieldsSlackFieldEntry) GetValue() string { return v.Value } +// GetSearchDomainName returns __DeleteAlertInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__DeleteAlertInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetFieldName returns UpdateSlackActionUpdateSlackActionFieldsSlackFieldEntry.FieldName, and is useful for accessing the field via an interface. -func (v *UpdateSlackActionUpdateSlackActionFieldsSlackFieldEntry) GetFieldName() string { - return v.FieldName -} +// GetAlertID returns __DeleteAlertInput.AlertID, and is useful for accessing the field via an interface. +func (v *__DeleteAlertInput) GetAlertID() string { return v.AlertID } -// UpdateSlackPostMessageActionResponse is returned by UpdateSlackPostMessageAction on success. -type UpdateSlackPostMessageActionResponse struct { - // Update a post-message Slack action. - UpdateSlackPostMessageAction UpdateSlackPostMessageActionUpdateSlackPostMessageAction `json:"updateSlackPostMessageAction"` +// __DeleteFilterAlertInput is used internally by genqlient +type __DeleteFilterAlertInput struct { + SearchDomainName string `json:"SearchDomainName"` + FilterAlertID string `json:"FilterAlertID"` } -// GetUpdateSlackPostMessageAction returns UpdateSlackPostMessageActionResponse.UpdateSlackPostMessageAction, and is useful for accessing the field via an interface. -func (v *UpdateSlackPostMessageActionResponse) GetUpdateSlackPostMessageAction() UpdateSlackPostMessageActionUpdateSlackPostMessageAction { - return v.UpdateSlackPostMessageAction -} +// GetSearchDomainName returns __DeleteFilterAlertInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__DeleteFilterAlertInput) GetSearchDomainName() string { return v.SearchDomainName } -// UpdateSlackPostMessageActionUpdateSlackPostMessageAction includes the requested fields of the GraphQL type SlackPostMessageAction. -// The GraphQL type's documentation follows. -// -// A slack post-message action. -type UpdateSlackPostMessageActionUpdateSlackPostMessageAction struct { - // The id of the action. - Id string `json:"id"` - // The name of the action. - Name string `json:"name"` - // Api token to authenticate with Slack. - ApiToken string `json:"apiToken"` - // List of Slack channels to message. - Channels []string `json:"channels"` - // Fields to include within the Slack message. Can be templated with values from the result. - Fields []UpdateSlackPostMessageActionUpdateSlackPostMessageActionFieldsSlackFieldEntry `json:"fields"` - // Defines whether the action should use the configured proxy to make web requests. - UseProxy bool `json:"useProxy"` +// GetFilterAlertID returns __DeleteFilterAlertInput.FilterAlertID, and is useful for accessing the field via an interface. +func (v *__DeleteFilterAlertInput) GetFilterAlertID() string { return v.FilterAlertID } + +// __DeleteParserByIDInput is used internally by genqlient +type __DeleteParserByIDInput struct { + RepositoryName string `json:"RepositoryName"` + ParserID string `json:"ParserID"` } -// GetId returns UpdateSlackPostMessageActionUpdateSlackPostMessageAction.Id, and is useful for accessing the field via an interface. -func (v *UpdateSlackPostMessageActionUpdateSlackPostMessageAction) GetId() string { return v.Id } +// GetRepositoryName returns __DeleteParserByIDInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__DeleteParserByIDInput) GetRepositoryName() string { return v.RepositoryName } -// GetName returns UpdateSlackPostMessageActionUpdateSlackPostMessageAction.Name, and is useful for accessing the field via an interface. -func (v *UpdateSlackPostMessageActionUpdateSlackPostMessageAction) GetName() string { return v.Name } +// GetParserID returns __DeleteParserByIDInput.ParserID, and is useful for accessing the field via an interface. +func (v *__DeleteParserByIDInput) GetParserID() string { return v.ParserID } -// GetApiToken returns UpdateSlackPostMessageActionUpdateSlackPostMessageAction.ApiToken, and is useful for accessing the field via an interface. -func (v *UpdateSlackPostMessageActionUpdateSlackPostMessageAction) GetApiToken() string { - return v.ApiToken +// __DeleteScheduledSearchByIDInput is used internally by genqlient +type __DeleteScheduledSearchByIDInput struct { + SearchDomainName string `json:"SearchDomainName"` + ScheduledSearchID string `json:"ScheduledSearchID"` } -// GetChannels returns UpdateSlackPostMessageActionUpdateSlackPostMessageAction.Channels, and is useful for accessing the field via an interface. -func (v *UpdateSlackPostMessageActionUpdateSlackPostMessageAction) GetChannels() []string { - return v.Channels -} +// GetSearchDomainName returns __DeleteScheduledSearchByIDInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__DeleteScheduledSearchByIDInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetFields returns UpdateSlackPostMessageActionUpdateSlackPostMessageAction.Fields, and is useful for accessing the field via an interface. -func (v *UpdateSlackPostMessageActionUpdateSlackPostMessageAction) GetFields() []UpdateSlackPostMessageActionUpdateSlackPostMessageActionFieldsSlackFieldEntry { - return v.Fields -} +// GetScheduledSearchID returns __DeleteScheduledSearchByIDInput.ScheduledSearchID, and is useful for accessing the field via an interface. +func (v *__DeleteScheduledSearchByIDInput) GetScheduledSearchID() string { return v.ScheduledSearchID } -// GetUseProxy returns UpdateSlackPostMessageActionUpdateSlackPostMessageAction.UseProxy, and is useful for accessing the field via an interface. -func (v *UpdateSlackPostMessageActionUpdateSlackPostMessageAction) GetUseProxy() bool { - return v.UseProxy +// __DeleteSearchDomainInput is used internally by genqlient +type __DeleteSearchDomainInput struct { + SearchDomainName string `json:"SearchDomainName"` + DeleteMessage string `json:"DeleteMessage"` } -// UpdateSlackPostMessageActionUpdateSlackPostMessageActionFieldsSlackFieldEntry includes the requested fields of the GraphQL type SlackFieldEntry. -// The GraphQL type's documentation follows. -// -// Field entry in a Slack message -type UpdateSlackPostMessageActionUpdateSlackPostMessageActionFieldsSlackFieldEntry struct { - // Value of a Slack field. - Value string `json:"value"` - // Key of a Slack field. - FieldName string `json:"fieldName"` -} +// GetSearchDomainName returns __DeleteSearchDomainInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__DeleteSearchDomainInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetValue returns UpdateSlackPostMessageActionUpdateSlackPostMessageActionFieldsSlackFieldEntry.Value, and is useful for accessing the field via an interface. -func (v *UpdateSlackPostMessageActionUpdateSlackPostMessageActionFieldsSlackFieldEntry) GetValue() string { - return v.Value -} +// GetDeleteMessage returns __DeleteSearchDomainInput.DeleteMessage, and is useful for accessing the field via an interface. +func (v *__DeleteSearchDomainInput) GetDeleteMessage() string { return v.DeleteMessage } -// GetFieldName returns UpdateSlackPostMessageActionUpdateSlackPostMessageActionFieldsSlackFieldEntry.FieldName, and is useful for accessing the field via an interface. -func (v *UpdateSlackPostMessageActionUpdateSlackPostMessageActionFieldsSlackFieldEntry) GetFieldName() string { - return v.FieldName +// __DisableFeatureFlagForOrganizationInput is used internally by genqlient +type __DisableFeatureFlagForOrganizationInput struct { + Flag FeatureFlag `json:"Flag"` + OrganizationID string `json:"OrganizationID"` } -// UpdateStorageBasedRetentionResponse is returned by UpdateStorageBasedRetention on success. -type UpdateStorageBasedRetentionResponse struct { - // Update the retention policy of a repository. - UpdateRetention UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation `json:"updateRetention"` -} +// GetFlag returns __DisableFeatureFlagForOrganizationInput.Flag, and is useful for accessing the field via an interface. +func (v *__DisableFeatureFlagForOrganizationInput) GetFlag() FeatureFlag { return v.Flag } -// GetUpdateRetention returns UpdateStorageBasedRetentionResponse.UpdateRetention, and is useful for accessing the field via an interface. -func (v *UpdateStorageBasedRetentionResponse) GetUpdateRetention() UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation { - return v.UpdateRetention +// GetOrganizationID returns __DisableFeatureFlagForOrganizationInput.OrganizationID, and is useful for accessing the field via an interface. +func (v *__DisableFeatureFlagForOrganizationInput) GetOrganizationID() string { + return v.OrganizationID } -// UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation includes the requested fields of the GraphQL type UpdateRetentionMutation. -type UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation struct { - Typename *string `json:"__typename"` +// __DisableFeatureFlagForUserInput is used internally by genqlient +type __DisableFeatureFlagForUserInput struct { + Flag FeatureFlag `json:"Flag"` + UserID string `json:"UserID"` } -// GetTypename returns UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation.Typename, and is useful for accessing the field via an interface. -func (v *UpdateStorageBasedRetentionUpdateRetentionUpdateRetentionMutation) GetTypename() *string { - return v.Typename -} +// GetFlag returns __DisableFeatureFlagForUserInput.Flag, and is useful for accessing the field via an interface. +func (v *__DisableFeatureFlagForUserInput) GetFlag() FeatureFlag { return v.Flag } -// UpdateTimeBasedRetentionResponse is returned by UpdateTimeBasedRetention on success. -type UpdateTimeBasedRetentionResponse struct { - // Update the retention policy of a repository. - UpdateRetention UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation `json:"updateRetention"` -} +// GetUserID returns __DisableFeatureFlagForUserInput.UserID, and is useful for accessing the field via an interface. +func (v *__DisableFeatureFlagForUserInput) GetUserID() string { return v.UserID } -// GetUpdateRetention returns UpdateTimeBasedRetentionResponse.UpdateRetention, and is useful for accessing the field via an interface. -func (v *UpdateTimeBasedRetentionResponse) GetUpdateRetention() UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation { - return v.UpdateRetention +// __DisableFeatureFlagGloballyInput is used internally by genqlient +type __DisableFeatureFlagGloballyInput struct { + Flag FeatureFlag `json:"Flag"` } -// UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation includes the requested fields of the GraphQL type UpdateRetentionMutation. -type UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation struct { - Typename *string `json:"__typename"` -} +// GetFlag returns __DisableFeatureFlagGloballyInput.Flag, and is useful for accessing the field via an interface. +func (v *__DisableFeatureFlagGloballyInput) GetFlag() FeatureFlag { return v.Flag } -// GetTypename returns UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation.Typename, and is useful for accessing the field via an interface. -func (v *UpdateTimeBasedRetentionUpdateRetentionUpdateRetentionMutation) GetTypename() *string { - return v.Typename +// __DisableS3ArchivingInput is used internally by genqlient +type __DisableS3ArchivingInput struct { + RepositoryName string `json:"RepositoryName"` } -// UpdateUploadFileActionResponse is returned by UpdateUploadFileAction on success. -type UpdateUploadFileActionResponse struct { - // Update an upload file action. - UpdateUploadFileAction UpdateUploadFileActionUpdateUploadFileAction `json:"updateUploadFileAction"` -} +// GetRepositoryName returns __DisableS3ArchivingInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__DisableS3ArchivingInput) GetRepositoryName() string { return v.RepositoryName } -// GetUpdateUploadFileAction returns UpdateUploadFileActionResponse.UpdateUploadFileAction, and is useful for accessing the field via an interface. -func (v *UpdateUploadFileActionResponse) GetUpdateUploadFileAction() UpdateUploadFileActionUpdateUploadFileAction { - return v.UpdateUploadFileAction +// __EnableFeatureFlagForOrganizationInput is used internally by genqlient +type __EnableFeatureFlagForOrganizationInput struct { + Flag FeatureFlag `json:"Flag"` + OrganizationID string `json:"OrganizationID"` } -// UpdateUploadFileActionUpdateUploadFileAction includes the requested fields of the GraphQL type UploadFileAction. -// The GraphQL type's documentation follows. -// -// An upload file action. -type UpdateUploadFileActionUpdateUploadFileAction struct { - // The id of the action. - Id string `json:"id"` - // The name of the action. - Name string `json:"name"` - // File name for the uploaded file. - FileName string `json:"fileName"` -} +// GetFlag returns __EnableFeatureFlagForOrganizationInput.Flag, and is useful for accessing the field via an interface. +func (v *__EnableFeatureFlagForOrganizationInput) GetFlag() FeatureFlag { return v.Flag } -// GetId returns UpdateUploadFileActionUpdateUploadFileAction.Id, and is useful for accessing the field via an interface. -func (v *UpdateUploadFileActionUpdateUploadFileAction) GetId() string { return v.Id } +// GetOrganizationID returns __EnableFeatureFlagForOrganizationInput.OrganizationID, and is useful for accessing the field via an interface. +func (v *__EnableFeatureFlagForOrganizationInput) GetOrganizationID() string { return v.OrganizationID } -// GetName returns UpdateUploadFileActionUpdateUploadFileAction.Name, and is useful for accessing the field via an interface. -func (v *UpdateUploadFileActionUpdateUploadFileAction) GetName() string { return v.Name } +// __EnableFeatureFlagForUserInput is used internally by genqlient +type __EnableFeatureFlagForUserInput struct { + Flag FeatureFlag `json:"Flag"` + UserID string `json:"UserID"` +} -// GetFileName returns UpdateUploadFileActionUpdateUploadFileAction.FileName, and is useful for accessing the field via an interface. -func (v *UpdateUploadFileActionUpdateUploadFileAction) GetFileName() string { return v.FileName } +// GetFlag returns __EnableFeatureFlagForUserInput.Flag, and is useful for accessing the field via an interface. +func (v *__EnableFeatureFlagForUserInput) GetFlag() FeatureFlag { return v.Flag } -// UpdateUserResponse is returned by UpdateUser on success. -type UpdateUserResponse struct { - // Updates a user. Requires Root Permission. - UpdateUser UpdateUserUpdateUserUpdateUserMutation `json:"updateUser"` -} +// GetUserID returns __EnableFeatureFlagForUserInput.UserID, and is useful for accessing the field via an interface. +func (v *__EnableFeatureFlagForUserInput) GetUserID() string { return v.UserID } -// GetUpdateUser returns UpdateUserResponse.UpdateUser, and is useful for accessing the field via an interface. -func (v *UpdateUserResponse) GetUpdateUser() UpdateUserUpdateUserUpdateUserMutation { - return v.UpdateUser +// __EnableFeatureFlagGloballyInput is used internally by genqlient +type __EnableFeatureFlagGloballyInput struct { + Flag FeatureFlag `json:"Flag"` } -// UpdateUserUpdateUserUpdateUserMutation includes the requested fields of the GraphQL type UpdateUserMutation. -type UpdateUserUpdateUserUpdateUserMutation struct { - Typename *string `json:"__typename"` +// GetFlag returns __EnableFeatureFlagGloballyInput.Flag, and is useful for accessing the field via an interface. +func (v *__EnableFeatureFlagGloballyInput) GetFlag() FeatureFlag { return v.Flag } + +// __EnableS3ArchivingInput is used internally by genqlient +type __EnableS3ArchivingInput struct { + RepositoryName string `json:"RepositoryName"` } -// GetTypename returns UpdateUserUpdateUserUpdateUserMutation.Typename, and is useful for accessing the field via an interface. -func (v *UpdateUserUpdateUserUpdateUserMutation) GetTypename() *string { return v.Typename } +// GetRepositoryName returns __EnableS3ArchivingInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__EnableS3ArchivingInput) GetRepositoryName() string { return v.RepositoryName } -// UpdateVictorOpsActionResponse is returned by UpdateVictorOpsAction on success. -type UpdateVictorOpsActionResponse struct { - // Update a VictorOps action. - UpdateVictorOpsAction UpdateVictorOpsActionUpdateVictorOpsAction `json:"updateVictorOpsAction"` +// __GetActionByIDInput is used internally by genqlient +type __GetActionByIDInput struct { + SearchDomainName string `json:"SearchDomainName"` + ActionID string `json:"ActionID"` } -// GetUpdateVictorOpsAction returns UpdateVictorOpsActionResponse.UpdateVictorOpsAction, and is useful for accessing the field via an interface. -func (v *UpdateVictorOpsActionResponse) GetUpdateVictorOpsAction() UpdateVictorOpsActionUpdateVictorOpsAction { - return v.UpdateVictorOpsAction -} +// GetSearchDomainName returns __GetActionByIDInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__GetActionByIDInput) GetSearchDomainName() string { return v.SearchDomainName } -// UpdateVictorOpsActionUpdateVictorOpsAction includes the requested fields of the GraphQL type VictorOpsAction. -// The GraphQL type's documentation follows. -// -// A VictorOps action. -type UpdateVictorOpsActionUpdateVictorOpsAction struct { - // The id of the action. - Id string `json:"id"` - // The name of the action. - Name string `json:"name"` - // Type of the VictorOps message to make. - MessageType string `json:"messageType"` - // VictorOps webhook url to send the request to. - NotifyUrl string `json:"notifyUrl"` - // Defines whether the action should use the configured proxy to make web requests. - UseProxy bool `json:"useProxy"` +// GetActionID returns __GetActionByIDInput.ActionID, and is useful for accessing the field via an interface. +func (v *__GetActionByIDInput) GetActionID() string { return v.ActionID } + +// __GetAggregateAlertByIDInput is used internally by genqlient +type __GetAggregateAlertByIDInput struct { + SearchDomainName string `json:"SearchDomainName"` + AggregateAlertID string `json:"AggregateAlertID"` } -// GetId returns UpdateVictorOpsActionUpdateVictorOpsAction.Id, and is useful for accessing the field via an interface. -func (v *UpdateVictorOpsActionUpdateVictorOpsAction) GetId() string { return v.Id } +// GetSearchDomainName returns __GetAggregateAlertByIDInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__GetAggregateAlertByIDInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetName returns UpdateVictorOpsActionUpdateVictorOpsAction.Name, and is useful for accessing the field via an interface. -func (v *UpdateVictorOpsActionUpdateVictorOpsAction) GetName() string { return v.Name } +// GetAggregateAlertID returns __GetAggregateAlertByIDInput.AggregateAlertID, and is useful for accessing the field via an interface. +func (v *__GetAggregateAlertByIDInput) GetAggregateAlertID() string { return v.AggregateAlertID } -// GetMessageType returns UpdateVictorOpsActionUpdateVictorOpsAction.MessageType, and is useful for accessing the field via an interface. -func (v *UpdateVictorOpsActionUpdateVictorOpsAction) GetMessageType() string { return v.MessageType } +// __GetFilterAlertByIDInput is used internally by genqlient +type __GetFilterAlertByIDInput struct { + SearchDomainName string `json:"SearchDomainName"` + FilterAlertID string `json:"FilterAlertID"` +} -// GetNotifyUrl returns UpdateVictorOpsActionUpdateVictorOpsAction.NotifyUrl, and is useful for accessing the field via an interface. -func (v *UpdateVictorOpsActionUpdateVictorOpsAction) GetNotifyUrl() string { return v.NotifyUrl } +// GetSearchDomainName returns __GetFilterAlertByIDInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__GetFilterAlertByIDInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetUseProxy returns UpdateVictorOpsActionUpdateVictorOpsAction.UseProxy, and is useful for accessing the field via an interface. -func (v *UpdateVictorOpsActionUpdateVictorOpsAction) GetUseProxy() bool { return v.UseProxy } +// GetFilterAlertID returns __GetFilterAlertByIDInput.FilterAlertID, and is useful for accessing the field via an interface. +func (v *__GetFilterAlertByIDInput) GetFilterAlertID() string { return v.FilterAlertID } -// UpdateViewConnectionsResponse is returned by UpdateViewConnections on success. -type UpdateViewConnectionsResponse struct { - // Update a view. - UpdateView UpdateViewConnectionsUpdateView `json:"updateView"` +// __GetParserByIDInput is used internally by genqlient +type __GetParserByIDInput struct { + RepositoryName string `json:"RepositoryName"` + ParserID string `json:"ParserID"` } -// GetUpdateView returns UpdateViewConnectionsResponse.UpdateView, and is useful for accessing the field via an interface. -func (v *UpdateViewConnectionsResponse) GetUpdateView() UpdateViewConnectionsUpdateView { - return v.UpdateView -} +// GetRepositoryName returns __GetParserByIDInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__GetParserByIDInput) GetRepositoryName() string { return v.RepositoryName } -// UpdateViewConnectionsUpdateView includes the requested fields of the GraphQL type View. -// The GraphQL type's documentation follows. -// -// Represents information about a view, pulling data from one or several repositories. -type UpdateViewConnectionsUpdateView struct { - Name string `json:"name"` +// GetParserID returns __GetParserByIDInput.ParserID, and is useful for accessing the field via an interface. +func (v *__GetParserByIDInput) GetParserID() string { return v.ParserID } + +// __GetParserYAMLByNameInput is used internally by genqlient +type __GetParserYAMLByNameInput struct { + RepositoryName string `json:"RepositoryName"` + ParserName string `json:"ParserName"` } -// GetName returns UpdateViewConnectionsUpdateView.Name, and is useful for accessing the field via an interface. -func (v *UpdateViewConnectionsUpdateView) GetName() string { return v.Name } +// GetRepositoryName returns __GetParserYAMLByNameInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__GetParserYAMLByNameInput) GetRepositoryName() string { return v.RepositoryName } -// UpdateWebhookActionResponse is returned by UpdateWebhookAction on success. -type UpdateWebhookActionResponse struct { - // Update a webhook action. - UpdateWebhookAction UpdateWebhookActionUpdateWebhookAction `json:"updateWebhookAction"` -} +// GetParserName returns __GetParserYAMLByNameInput.ParserName, and is useful for accessing the field via an interface. +func (v *__GetParserYAMLByNameInput) GetParserName() string { return v.ParserName } -// GetUpdateWebhookAction returns UpdateWebhookActionResponse.UpdateWebhookAction, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionResponse) GetUpdateWebhookAction() UpdateWebhookActionUpdateWebhookAction { - return v.UpdateWebhookAction +// __GetRepositoryInput is used internally by genqlient +type __GetRepositoryInput struct { + RepositoryName string `json:"RepositoryName"` } -// UpdateWebhookActionUpdateWebhookAction includes the requested fields of the GraphQL type WebhookAction. -// The GraphQL type's documentation follows. -// -// A webhook action -type UpdateWebhookActionUpdateWebhookAction struct { - // The id of the action. - Id string `json:"id"` - // The name of the action. - Name string `json:"name"` - // Url to send the http(s) request to. - Url string `json:"url"` - // Method to use for the request. - Method string `json:"method"` - // Headers of the http(s) request. - Headers []UpdateWebhookActionUpdateWebhookActionHeadersHttpHeaderEntry `json:"headers"` - // Body of the http(s) request. Can be templated with values from the result. - BodyTemplate string `json:"bodyTemplate"` - // Flag indicating whether SSL should be ignored for the request. - IgnoreSSL bool `json:"ignoreSSL"` - // Defines whether the action should use the configured proxy to make web requests. - UseProxy bool `json:"useProxy"` +// GetRepositoryName returns __GetRepositoryInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__GetRepositoryInput) GetRepositoryName() string { return v.RepositoryName } + +// __GetRoleByIDInput is used internally by genqlient +type __GetRoleByIDInput struct { + RoleID string `json:"RoleID"` } -// GetId returns UpdateWebhookActionUpdateWebhookAction.Id, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookAction) GetId() string { return v.Id } +// GetRoleID returns __GetRoleByIDInput.RoleID, and is useful for accessing the field via an interface. +func (v *__GetRoleByIDInput) GetRoleID() string { return v.RoleID } -// GetName returns UpdateWebhookActionUpdateWebhookAction.Name, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookAction) GetName() string { return v.Name } +// __GetSearchDomainInput is used internally by genqlient +type __GetSearchDomainInput struct { + SearchDomainName string `json:"SearchDomainName"` +} -// GetUrl returns UpdateWebhookActionUpdateWebhookAction.Url, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookAction) GetUrl() string { return v.Url } +// GetSearchDomainName returns __GetSearchDomainInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__GetSearchDomainInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetMethod returns UpdateWebhookActionUpdateWebhookAction.Method, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookAction) GetMethod() string { return v.Method } +// __GetUsersByUsernameInput is used internally by genqlient +type __GetUsersByUsernameInput struct { + Username string `json:"Username"` +} -// GetHeaders returns UpdateWebhookActionUpdateWebhookAction.Headers, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookAction) GetHeaders() []UpdateWebhookActionUpdateWebhookActionHeadersHttpHeaderEntry { - return v.Headers +// GetUsername returns __GetUsersByUsernameInput.Username, and is useful for accessing the field via an interface. +func (v *__GetUsersByUsernameInput) GetUsername() string { return v.Username } + +// __LegacyCreateParserInput is used internally by genqlient +type __LegacyCreateParserInput struct { + RepositoryName string `json:"RepositoryName"` + Name string `json:"Name"` + TestData []string `json:"TestData"` + TagFields []string `json:"TagFields"` + SourceCode string `json:"SourceCode"` + Force bool `json:"Force"` } -// GetBodyTemplate returns UpdateWebhookActionUpdateWebhookAction.BodyTemplate, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookAction) GetBodyTemplate() string { return v.BodyTemplate } +// GetRepositoryName returns __LegacyCreateParserInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__LegacyCreateParserInput) GetRepositoryName() string { return v.RepositoryName } -// GetIgnoreSSL returns UpdateWebhookActionUpdateWebhookAction.IgnoreSSL, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookAction) GetIgnoreSSL() bool { return v.IgnoreSSL } +// GetName returns __LegacyCreateParserInput.Name, and is useful for accessing the field via an interface. +func (v *__LegacyCreateParserInput) GetName() string { return v.Name } -// GetUseProxy returns UpdateWebhookActionUpdateWebhookAction.UseProxy, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookAction) GetUseProxy() bool { return v.UseProxy } +// GetTestData returns __LegacyCreateParserInput.TestData, and is useful for accessing the field via an interface. +func (v *__LegacyCreateParserInput) GetTestData() []string { return v.TestData } -// UpdateWebhookActionUpdateWebhookActionHeadersHttpHeaderEntry includes the requested fields of the GraphQL type HttpHeaderEntry. -// The GraphQL type's documentation follows. -// -// A http request header. -type UpdateWebhookActionUpdateWebhookActionHeadersHttpHeaderEntry struct { - // Value of a http(s) header. - Value string `json:"value"` - // Key of a http(s) header. - Header string `json:"header"` -} +// GetTagFields returns __LegacyCreateParserInput.TagFields, and is useful for accessing the field via an interface. +func (v *__LegacyCreateParserInput) GetTagFields() []string { return v.TagFields } -// GetValue returns UpdateWebhookActionUpdateWebhookActionHeadersHttpHeaderEntry.Value, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookActionHeadersHttpHeaderEntry) GetValue() string { - return v.Value -} +// GetSourceCode returns __LegacyCreateParserInput.SourceCode, and is useful for accessing the field via an interface. +func (v *__LegacyCreateParserInput) GetSourceCode() string { return v.SourceCode } -// GetHeader returns UpdateWebhookActionUpdateWebhookActionHeadersHttpHeaderEntry.Header, and is useful for accessing the field via an interface. -func (v *UpdateWebhookActionUpdateWebhookActionHeadersHttpHeaderEntry) GetHeader() string { - return v.Header -} +// GetForce returns __LegacyCreateParserInput.Force, and is useful for accessing the field via an interface. +func (v *__LegacyCreateParserInput) GetForce() bool { return v.Force } -// UserDetails includes the GraphQL fields of User requested by the fragment UserDetails. -// The GraphQL type's documentation follows. -// -// A user profile. -type UserDetails struct { - Id string `json:"id"` - Username string `json:"username"` - FullName *string `json:"fullName"` - Email *string `json:"email"` - Company *string `json:"company"` - CountryCode *string `json:"countryCode"` - Picture *string `json:"picture"` - IsRoot bool `json:"isRoot"` - CreatedAt time.Time `json:"createdAt"` +// __LegacyDeleteParserByIDInput is used internally by genqlient +type __LegacyDeleteParserByIDInput struct { + RepositoryName string `json:"RepositoryName"` + ParserID string `json:"ParserID"` } -// GetId returns UserDetails.Id, and is useful for accessing the field via an interface. -func (v *UserDetails) GetId() string { return v.Id } +// GetRepositoryName returns __LegacyDeleteParserByIDInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__LegacyDeleteParserByIDInput) GetRepositoryName() string { return v.RepositoryName } -// GetUsername returns UserDetails.Username, and is useful for accessing the field via an interface. -func (v *UserDetails) GetUsername() string { return v.Username } +// GetParserID returns __LegacyDeleteParserByIDInput.ParserID, and is useful for accessing the field via an interface. +func (v *__LegacyDeleteParserByIDInput) GetParserID() string { return v.ParserID } -// GetFullName returns UserDetails.FullName, and is useful for accessing the field via an interface. -func (v *UserDetails) GetFullName() *string { return v.FullName } +// __LegacyGetParserInput is used internally by genqlient +type __LegacyGetParserInput struct { + RepositoryName string `json:"RepositoryName"` + ParserName string `json:"ParserName"` +} -// GetEmail returns UserDetails.Email, and is useful for accessing the field via an interface. -func (v *UserDetails) GetEmail() *string { return v.Email } +// GetRepositoryName returns __LegacyGetParserInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__LegacyGetParserInput) GetRepositoryName() string { return v.RepositoryName } -// GetCompany returns UserDetails.Company, and is useful for accessing the field via an interface. -func (v *UserDetails) GetCompany() *string { return v.Company } +// GetParserName returns __LegacyGetParserInput.ParserName, and is useful for accessing the field via an interface. +func (v *__LegacyGetParserInput) GetParserName() string { return v.ParserName } -// GetCountryCode returns UserDetails.CountryCode, and is useful for accessing the field via an interface. -func (v *UserDetails) GetCountryCode() *string { return v.CountryCode } +// __ListActionsInput is used internally by genqlient +type __ListActionsInput struct { + SearchDomainName string `json:"SearchDomainName"` +} -// GetPicture returns UserDetails.Picture, and is useful for accessing the field via an interface. -func (v *UserDetails) GetPicture() *string { return v.Picture } +// GetSearchDomainName returns __ListActionsInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__ListActionsInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetIsRoot returns UserDetails.IsRoot, and is useful for accessing the field via an interface. -func (v *UserDetails) GetIsRoot() bool { return v.IsRoot } +// __ListAggregateAlertsInput is used internally by genqlient +type __ListAggregateAlertsInput struct { + SearchDomainName string `json:"SearchDomainName"` +} -// GetCreatedAt returns UserDetails.CreatedAt, and is useful for accessing the field via an interface. -func (v *UserDetails) GetCreatedAt() time.Time { return v.CreatedAt } +// GetSearchDomainName returns __ListAggregateAlertsInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__ListAggregateAlertsInput) GetSearchDomainName() string { return v.SearchDomainName } -// The repositories this view will read from. -type ViewConnectionInput struct { - // The repositories this view will read from. - RepositoryName string `json:"repositoryName"` - // The repositories this view will read from. - Filter string `json:"filter"` - // The repositories this view will read from. - LanguageVersion *LanguageVersionEnum `json:"languageVersion"` +// __ListAlertsInput is used internally by genqlient +type __ListAlertsInput struct { + SearchDomainName string `json:"SearchDomainName"` } -// GetRepositoryName returns ViewConnectionInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *ViewConnectionInput) GetRepositoryName() string { return v.RepositoryName } +// GetSearchDomainName returns __ListAlertsInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__ListAlertsInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetFilter returns ViewConnectionInput.Filter, and is useful for accessing the field via an interface. -func (v *ViewConnectionInput) GetFilter() string { return v.Filter } +// __ListFilesInput is used internally by genqlient +type __ListFilesInput struct { + SearchDomainName string `json:"SearchDomainName"` +} -// GetLanguageVersion returns ViewConnectionInput.LanguageVersion, and is useful for accessing the field via an interface. -func (v *ViewConnectionInput) GetLanguageVersion() *LanguageVersionEnum { return v.LanguageVersion } +// GetSearchDomainName returns __ListFilesInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__ListFilesInput) GetSearchDomainName() string { return v.SearchDomainName } -// __AddIngestTokenInput is used internally by genqlient -type __AddIngestTokenInput struct { - RepositoryName string `json:"RepositoryName"` - Name string `json:"Name"` - ParserName *string `json:"ParserName"` +// __ListFilterAlertsInput is used internally by genqlient +type __ListFilterAlertsInput struct { + SearchDomainName string `json:"SearchDomainName"` } -// GetRepositoryName returns __AddIngestTokenInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__AddIngestTokenInput) GetRepositoryName() string { return v.RepositoryName } +// GetSearchDomainName returns __ListFilterAlertsInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__ListFilterAlertsInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetName returns __AddIngestTokenInput.Name, and is useful for accessing the field via an interface. -func (v *__AddIngestTokenInput) GetName() string { return v.Name } +// __ListIngestTokensInput is used internally by genqlient +type __ListIngestTokensInput struct { + RepositoryName string `json:"RepositoryName"` +} -// GetParserName returns __AddIngestTokenInput.ParserName, and is useful for accessing the field via an interface. -func (v *__AddIngestTokenInput) GetParserName() *string { return v.ParserName } +// GetRepositoryName returns __ListIngestTokensInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__ListIngestTokensInput) GetRepositoryName() string { return v.RepositoryName } -// __AddUserInput is used internally by genqlient -type __AddUserInput struct { - Username string `json:"Username"` - Company *string `json:"Company"` - IsRoot *bool `json:"IsRoot"` - FullName *string `json:"FullName"` - Picture *string `json:"Picture"` - Email *string `json:"Email"` - CountryCode *string `json:"CountryCode"` +// __ListInstalledPackagesInput is used internally by genqlient +type __ListInstalledPackagesInput struct { + SearchDomainName string `json:"SearchDomainName"` } -// GetUsername returns __AddUserInput.Username, and is useful for accessing the field via an interface. -func (v *__AddUserInput) GetUsername() string { return v.Username } +// GetSearchDomainName returns __ListInstalledPackagesInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__ListInstalledPackagesInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetCompany returns __AddUserInput.Company, and is useful for accessing the field via an interface. -func (v *__AddUserInput) GetCompany() *string { return v.Company } +// __ListParsersInput is used internally by genqlient +type __ListParsersInput struct { + RepositoryName string `json:"RepositoryName"` +} -// GetIsRoot returns __AddUserInput.IsRoot, and is useful for accessing the field via an interface. -func (v *__AddUserInput) GetIsRoot() *bool { return v.IsRoot } +// GetRepositoryName returns __ListParsersInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__ListParsersInput) GetRepositoryName() string { return v.RepositoryName } -// GetFullName returns __AddUserInput.FullName, and is useful for accessing the field via an interface. -func (v *__AddUserInput) GetFullName() *string { return v.FullName } +// __ListScheduledSearchesInput is used internally by genqlient +type __ListScheduledSearchesInput struct { + SearchDomainName string `json:"SearchDomainName"` +} -// GetPicture returns __AddUserInput.Picture, and is useful for accessing the field via an interface. -func (v *__AddUserInput) GetPicture() *string { return v.Picture } +// GetSearchDomainName returns __ListScheduledSearchesInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__ListScheduledSearchesInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetEmail returns __AddUserInput.Email, and is useful for accessing the field via an interface. -func (v *__AddUserInput) GetEmail() *string { return v.Email } +// __RemoveFileInput is used internally by genqlient +type __RemoveFileInput struct { + SearchDomainName string `json:"SearchDomainName"` + FileName string `json:"FileName"` +} -// GetCountryCode returns __AddUserInput.CountryCode, and is useful for accessing the field via an interface. -func (v *__AddUserInput) GetCountryCode() *string { return v.CountryCode } +// GetSearchDomainName returns __RemoveFileInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__RemoveFileInput) GetSearchDomainName() string { return v.SearchDomainName } -// __AddUserToGroupInput is used internally by genqlient -type __AddUserToGroupInput struct { - GroupID string `json:"GroupID"` - UserID string `json:"UserID"` +// GetFileName returns __RemoveFileInput.FileName, and is useful for accessing the field via an interface. +func (v *__RemoveFileInput) GetFileName() string { return v.FileName } + +// __RemoveIngestTokenInput is used internally by genqlient +type __RemoveIngestTokenInput struct { + RepositoryName string `json:"RepositoryName"` + Name string `json:"Name"` } -// GetGroupID returns __AddUserToGroupInput.GroupID, and is useful for accessing the field via an interface. -func (v *__AddUserToGroupInput) GetGroupID() string { return v.GroupID } +// GetRepositoryName returns __RemoveIngestTokenInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__RemoveIngestTokenInput) GetRepositoryName() string { return v.RepositoryName } -// GetUserID returns __AddUserToGroupInput.UserID, and is useful for accessing the field via an interface. -func (v *__AddUserToGroupInput) GetUserID() string { return v.UserID } +// GetName returns __RemoveIngestTokenInput.Name, and is useful for accessing the field via an interface. +func (v *__RemoveIngestTokenInput) GetName() string { return v.Name } -// __AssignParserToIngestTokenInput is used internally by genqlient -type __AssignParserToIngestTokenInput struct { - RepositoryName string `json:"RepositoryName"` - IngestTokenName string `json:"IngestTokenName"` - ParserName string `json:"ParserName"` +// __RemoveUserFromGroupInput is used internally by genqlient +type __RemoveUserFromGroupInput struct { + GroupID string `json:"GroupID"` + UserID string `json:"UserID"` } -// GetRepositoryName returns __AssignParserToIngestTokenInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__AssignParserToIngestTokenInput) GetRepositoryName() string { return v.RepositoryName } +// GetGroupID returns __RemoveUserFromGroupInput.GroupID, and is useful for accessing the field via an interface. +func (v *__RemoveUserFromGroupInput) GetGroupID() string { return v.GroupID } -// GetIngestTokenName returns __AssignParserToIngestTokenInput.IngestTokenName, and is useful for accessing the field via an interface. -func (v *__AssignParserToIngestTokenInput) GetIngestTokenName() string { return v.IngestTokenName } +// GetUserID returns __RemoveUserFromGroupInput.UserID, and is useful for accessing the field via an interface. +func (v *__RemoveUserFromGroupInput) GetUserID() string { return v.UserID } -// GetParserName returns __AssignParserToIngestTokenInput.ParserName, and is useful for accessing the field via an interface. -func (v *__AssignParserToIngestTokenInput) GetParserName() string { return v.ParserName } +// __RemoveUserInput is used internally by genqlient +type __RemoveUserInput struct { + Username string `json:"Username"` +} -// __CreateAggregateAlertInput is used internally by genqlient -type __CreateAggregateAlertInput struct { - SearchDomainName string `json:"SearchDomainName"` - Name string `json:"Name"` - Description *string `json:"Description"` - QueryString string `json:"QueryString"` - SearchIntervalSeconds int64 `json:"SearchIntervalSeconds"` - ActionIdsOrNames []string `json:"ActionIdsOrNames"` - Labels []string `json:"Labels"` - Enabled bool `json:"Enabled"` - RunAsUserID *string `json:"RunAsUserID"` - ThrottleField *string `json:"ThrottleField"` - ThrottleTimeSeconds int64 `json:"ThrottleTimeSeconds"` - TriggerMode TriggerMode `json:"TriggerMode"` - QueryTimestampMode QueryTimestampType `json:"QueryTimestampMode"` - QueryOwnershipType QueryOwnershipType `json:"QueryOwnershipType"` +// GetUsername returns __RemoveUserInput.Username, and is useful for accessing the field via an interface. +func (v *__RemoveUserInput) GetUsername() string { return v.Username } + +// __RotateTokenByIDInput is used internally by genqlient +type __RotateTokenByIDInput struct { + TokenID string `json:"TokenID"` } -// GetSearchDomainName returns __CreateAggregateAlertInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetSearchDomainName() string { return v.SearchDomainName } +// GetTokenID returns __RotateTokenByIDInput.TokenID, and is useful for accessing the field via an interface. +func (v *__RotateTokenByIDInput) GetTokenID() string { return v.TokenID } -// GetName returns __CreateAggregateAlertInput.Name, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetName() string { return v.Name } +// __SetAutomaticSearchingInput is used internally by genqlient +type __SetAutomaticSearchingInput struct { + SearchDomainName string `json:"SearchDomainName"` + AutomaticSearch bool `json:"AutomaticSearch"` +} -// GetDescription returns __CreateAggregateAlertInput.Description, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetDescription() *string { return v.Description } +// GetSearchDomainName returns __SetAutomaticSearchingInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__SetAutomaticSearchingInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetQueryString returns __CreateAggregateAlertInput.QueryString, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetQueryString() string { return v.QueryString } +// GetAutomaticSearch returns __SetAutomaticSearchingInput.AutomaticSearch, and is useful for accessing the field via an interface. +func (v *__SetAutomaticSearchingInput) GetAutomaticSearch() bool { return v.AutomaticSearch } -// GetSearchIntervalSeconds returns __CreateAggregateAlertInput.SearchIntervalSeconds, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetSearchIntervalSeconds() int64 { - return v.SearchIntervalSeconds +// __UnassignParserToIngestTokenInput is used internally by genqlient +type __UnassignParserToIngestTokenInput struct { + RepositoryName string `json:"RepositoryName"` + IngestTokenName string `json:"IngestTokenName"` } -// GetActionIdsOrNames returns __CreateAggregateAlertInput.ActionIdsOrNames, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetActionIdsOrNames() []string { return v.ActionIdsOrNames } +// GetRepositoryName returns __UnassignParserToIngestTokenInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__UnassignParserToIngestTokenInput) GetRepositoryName() string { return v.RepositoryName } -// GetLabels returns __CreateAggregateAlertInput.Labels, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetLabels() []string { return v.Labels } +// GetIngestTokenName returns __UnassignParserToIngestTokenInput.IngestTokenName, and is useful for accessing the field via an interface. +func (v *__UnassignParserToIngestTokenInput) GetIngestTokenName() string { return v.IngestTokenName } -// GetEnabled returns __CreateAggregateAlertInput.Enabled, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetEnabled() bool { return v.Enabled } +// __UninstallPackageInput is used internally by genqlient +type __UninstallPackageInput struct { + SearchDomainName string `json:"SearchDomainName"` + PackageID string `json:"PackageID"` +} -// GetRunAsUserID returns __CreateAggregateAlertInput.RunAsUserID, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetRunAsUserID() *string { return v.RunAsUserID } +// GetSearchDomainName returns __UninstallPackageInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__UninstallPackageInput) GetSearchDomainName() string { return v.SearchDomainName } -// GetThrottleField returns __CreateAggregateAlertInput.ThrottleField, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetThrottleField() *string { return v.ThrottleField } +// GetPackageID returns __UninstallPackageInput.PackageID, and is useful for accessing the field via an interface. +func (v *__UninstallPackageInput) GetPackageID() string { return v.PackageID } -// GetThrottleTimeSeconds returns __CreateAggregateAlertInput.ThrottleTimeSeconds, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetThrottleTimeSeconds() int64 { return v.ThrottleTimeSeconds } +// __UnregisterClusterNodeInput is used internally by genqlient +type __UnregisterClusterNodeInput struct { + NodeID int `json:"NodeID"` + Force bool `json:"Force"` +} -// GetTriggerMode returns __CreateAggregateAlertInput.TriggerMode, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetTriggerMode() TriggerMode { return v.TriggerMode } +// GetNodeID returns __UnregisterClusterNodeInput.NodeID, and is useful for accessing the field via an interface. +func (v *__UnregisterClusterNodeInput) GetNodeID() int { return v.NodeID } -// GetQueryTimestampMode returns __CreateAggregateAlertInput.QueryTimestampMode, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetQueryTimestampMode() QueryTimestampType { - return v.QueryTimestampMode -} +// GetForce returns __UnregisterClusterNodeInput.Force, and is useful for accessing the field via an interface. +func (v *__UnregisterClusterNodeInput) GetForce() bool { return v.Force } -// GetQueryOwnershipType returns __CreateAggregateAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. -func (v *__CreateAggregateAlertInput) GetQueryOwnershipType() QueryOwnershipType { - return v.QueryOwnershipType +// __UpdateDescriptionForSearchDomainInput is used internally by genqlient +type __UpdateDescriptionForSearchDomainInput struct { + SearchDomainName string `json:"SearchDomainName"` + NewDescription string `json:"NewDescription"` } -// __CreateAlertInput is used internally by genqlient -type __CreateAlertInput struct { - SearchDomainName string `json:"SearchDomainName"` - Name string `json:"Name"` - Description *string `json:"Description"` - QueryString string `json:"QueryString"` - QueryStart string `json:"QueryStart"` - ThrottleTimeMillis int64 `json:"ThrottleTimeMillis"` - Enabled *bool `json:"Enabled"` - Actions []string `json:"Actions"` - Labels []string `json:"Labels"` - RunAsUserID *string `json:"RunAsUserID"` - QueryOwnershipType *QueryOwnershipType `json:"QueryOwnershipType"` - ThrottleField *string `json:"ThrottleField"` +// GetSearchDomainName returns __UpdateDescriptionForSearchDomainInput.SearchDomainName, and is useful for accessing the field via an interface. +func (v *__UpdateDescriptionForSearchDomainInput) GetSearchDomainName() string { + return v.SearchDomainName } -// GetSearchDomainName returns __CreateAlertInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetSearchDomainName() string { return v.SearchDomainName } +// GetNewDescription returns __UpdateDescriptionForSearchDomainInput.NewDescription, and is useful for accessing the field via an interface. +func (v *__UpdateDescriptionForSearchDomainInput) GetNewDescription() string { return v.NewDescription } -// GetName returns __CreateAlertInput.Name, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetName() string { return v.Name } +// __UpdateIngestBasedRetentionInput is used internally by genqlient +type __UpdateIngestBasedRetentionInput struct { + RepositoryName string `json:"RepositoryName"` + IngestInGB *float64 `json:"IngestInGB"` +} -// GetDescription returns __CreateAlertInput.Description, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetDescription() *string { return v.Description } +// GetRepositoryName returns __UpdateIngestBasedRetentionInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__UpdateIngestBasedRetentionInput) GetRepositoryName() string { return v.RepositoryName } -// GetQueryString returns __CreateAlertInput.QueryString, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetQueryString() string { return v.QueryString } +// GetIngestInGB returns __UpdateIngestBasedRetentionInput.IngestInGB, and is useful for accessing the field via an interface. +func (v *__UpdateIngestBasedRetentionInput) GetIngestInGB() *float64 { return v.IngestInGB } -// GetQueryStart returns __CreateAlertInput.QueryStart, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetQueryStart() string { return v.QueryStart } +// __UpdateLicenseKeyInput is used internally by genqlient +type __UpdateLicenseKeyInput struct { + LicenseKey string `json:"LicenseKey"` +} -// GetThrottleTimeMillis returns __CreateAlertInput.ThrottleTimeMillis, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetThrottleTimeMillis() int64 { return v.ThrottleTimeMillis } +// GetLicenseKey returns __UpdateLicenseKeyInput.LicenseKey, and is useful for accessing the field via an interface. +func (v *__UpdateLicenseKeyInput) GetLicenseKey() string { return v.LicenseKey } -// GetEnabled returns __CreateAlertInput.Enabled, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetEnabled() *bool { return v.Enabled } +// __UpdateS3ArchivingConfigurationInput is used internally by genqlient +type __UpdateS3ArchivingConfigurationInput struct { + RepositoryName string `json:"RepositoryName"` + BucketName string `json:"BucketName"` + BucketRegion string `json:"BucketRegion"` + Format S3ArchivingFormat `json:"Format"` +} -// GetActions returns __CreateAlertInput.Actions, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetActions() []string { return v.Actions } +// GetRepositoryName returns __UpdateS3ArchivingConfigurationInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__UpdateS3ArchivingConfigurationInput) GetRepositoryName() string { return v.RepositoryName } -// GetLabels returns __CreateAlertInput.Labels, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetLabels() []string { return v.Labels } - -// GetRunAsUserID returns __CreateAlertInput.RunAsUserID, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetRunAsUserID() *string { return v.RunAsUserID } - -// GetQueryOwnershipType returns __CreateAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetQueryOwnershipType() *QueryOwnershipType { return v.QueryOwnershipType } - -// GetThrottleField returns __CreateAlertInput.ThrottleField, and is useful for accessing the field via an interface. -func (v *__CreateAlertInput) GetThrottleField() *string { return v.ThrottleField } - -// __CreateEmailActionInput is used internally by genqlient -type __CreateEmailActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionName string `json:"ActionName"` - Recipients []string `json:"Recipients"` - SubjectTemplate *string `json:"SubjectTemplate"` - BodyTemplate *string `json:"BodyTemplate"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __CreateEmailActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateEmailActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionName returns __CreateEmailActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__CreateEmailActionInput) GetActionName() string { return v.ActionName } - -// GetRecipients returns __CreateEmailActionInput.Recipients, and is useful for accessing the field via an interface. -func (v *__CreateEmailActionInput) GetRecipients() []string { return v.Recipients } - -// GetSubjectTemplate returns __CreateEmailActionInput.SubjectTemplate, and is useful for accessing the field via an interface. -func (v *__CreateEmailActionInput) GetSubjectTemplate() *string { return v.SubjectTemplate } - -// GetBodyTemplate returns __CreateEmailActionInput.BodyTemplate, and is useful for accessing the field via an interface. -func (v *__CreateEmailActionInput) GetBodyTemplate() *string { return v.BodyTemplate } - -// GetUseProxy returns __CreateEmailActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__CreateEmailActionInput) GetUseProxy() bool { return v.UseProxy } - -// __CreateFilterAlertInput is used internally by genqlient -type __CreateFilterAlertInput struct { - SearchDomainName string `json:"SearchDomainName"` - Name string `json:"Name"` - Description *string `json:"Description"` - QueryString string `json:"QueryString"` - ActionIdsOrNames []string `json:"ActionIdsOrNames"` - Labels []string `json:"Labels"` - Enabled bool `json:"Enabled"` - RunAsUserID *string `json:"RunAsUserID"` - ThrottleField *string `json:"ThrottleField"` - ThrottleTimeSeconds int64 `json:"ThrottleTimeSeconds"` - QueryOwnershipType QueryOwnershipType `json:"QueryOwnershipType"` -} - -// GetSearchDomainName returns __CreateFilterAlertInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetName returns __CreateFilterAlertInput.Name, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetName() string { return v.Name } - -// GetDescription returns __CreateFilterAlertInput.Description, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetDescription() *string { return v.Description } - -// GetQueryString returns __CreateFilterAlertInput.QueryString, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetQueryString() string { return v.QueryString } - -// GetActionIdsOrNames returns __CreateFilterAlertInput.ActionIdsOrNames, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetActionIdsOrNames() []string { return v.ActionIdsOrNames } - -// GetLabels returns __CreateFilterAlertInput.Labels, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetLabels() []string { return v.Labels } - -// GetEnabled returns __CreateFilterAlertInput.Enabled, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetEnabled() bool { return v.Enabled } - -// GetRunAsUserID returns __CreateFilterAlertInput.RunAsUserID, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetRunAsUserID() *string { return v.RunAsUserID } - -// GetThrottleField returns __CreateFilterAlertInput.ThrottleField, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetThrottleField() *string { return v.ThrottleField } - -// GetThrottleTimeSeconds returns __CreateFilterAlertInput.ThrottleTimeSeconds, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetThrottleTimeSeconds() int64 { return v.ThrottleTimeSeconds } - -// GetQueryOwnershipType returns __CreateFilterAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetQueryOwnershipType() QueryOwnershipType { - return v.QueryOwnershipType -} - -// __CreateHumioRepoActionInput is used internally by genqlient -type __CreateHumioRepoActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionName string `json:"ActionName"` - IngestToken string `json:"IngestToken"` -} - -// GetSearchDomainName returns __CreateHumioRepoActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateHumioRepoActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionName returns __CreateHumioRepoActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__CreateHumioRepoActionInput) GetActionName() string { return v.ActionName } - -// GetIngestToken returns __CreateHumioRepoActionInput.IngestToken, and is useful for accessing the field via an interface. -func (v *__CreateHumioRepoActionInput) GetIngestToken() string { return v.IngestToken } - -// __CreateOpsGenieActionInput is used internally by genqlient -type __CreateOpsGenieActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionName string `json:"ActionName"` - ApiUrl string `json:"ApiUrl"` - GenieKey string `json:"GenieKey"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __CreateOpsGenieActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateOpsGenieActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionName returns __CreateOpsGenieActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__CreateOpsGenieActionInput) GetActionName() string { return v.ActionName } - -// GetApiUrl returns __CreateOpsGenieActionInput.ApiUrl, and is useful for accessing the field via an interface. -func (v *__CreateOpsGenieActionInput) GetApiUrl() string { return v.ApiUrl } - -// GetGenieKey returns __CreateOpsGenieActionInput.GenieKey, and is useful for accessing the field via an interface. -func (v *__CreateOpsGenieActionInput) GetGenieKey() string { return v.GenieKey } - -// GetUseProxy returns __CreateOpsGenieActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__CreateOpsGenieActionInput) GetUseProxy() bool { return v.UseProxy } - -// __CreatePagerDutyActionInput is used internally by genqlient -type __CreatePagerDutyActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionName string `json:"ActionName"` - Severity string `json:"Severity"` - RoutingKey string `json:"RoutingKey"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __CreatePagerDutyActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreatePagerDutyActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionName returns __CreatePagerDutyActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__CreatePagerDutyActionInput) GetActionName() string { return v.ActionName } - -// GetSeverity returns __CreatePagerDutyActionInput.Severity, and is useful for accessing the field via an interface. -func (v *__CreatePagerDutyActionInput) GetSeverity() string { return v.Severity } - -// GetRoutingKey returns __CreatePagerDutyActionInput.RoutingKey, and is useful for accessing the field via an interface. -func (v *__CreatePagerDutyActionInput) GetRoutingKey() string { return v.RoutingKey } - -// GetUseProxy returns __CreatePagerDutyActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__CreatePagerDutyActionInput) GetUseProxy() bool { return v.UseProxy } - -// __CreateParserInput is used internally by genqlient -type __CreateParserInput struct { - RepositoryName string `json:"RepositoryName"` - Name string `json:"Name"` - Script string `json:"Script"` - TestCases []ParserTestCaseInput `json:"TestCases"` - FieldsToTag []string `json:"FieldsToTag"` - FieldsToBeRemovedBeforeParsing []string `json:"FieldsToBeRemovedBeforeParsing"` - AllowOverridingExistingParser bool `json:"AllowOverridingExistingParser"` -} - -// GetRepositoryName returns __CreateParserInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__CreateParserInput) GetRepositoryName() string { return v.RepositoryName } - -// GetName returns __CreateParserInput.Name, and is useful for accessing the field via an interface. -func (v *__CreateParserInput) GetName() string { return v.Name } - -// GetScript returns __CreateParserInput.Script, and is useful for accessing the field via an interface. -func (v *__CreateParserInput) GetScript() string { return v.Script } - -// GetTestCases returns __CreateParserInput.TestCases, and is useful for accessing the field via an interface. -func (v *__CreateParserInput) GetTestCases() []ParserTestCaseInput { return v.TestCases } - -// GetFieldsToTag returns __CreateParserInput.FieldsToTag, and is useful for accessing the field via an interface. -func (v *__CreateParserInput) GetFieldsToTag() []string { return v.FieldsToTag } - -// GetFieldsToBeRemovedBeforeParsing returns __CreateParserInput.FieldsToBeRemovedBeforeParsing, and is useful for accessing the field via an interface. -func (v *__CreateParserInput) GetFieldsToBeRemovedBeforeParsing() []string { - return v.FieldsToBeRemovedBeforeParsing -} - -// GetAllowOverridingExistingParser returns __CreateParserInput.AllowOverridingExistingParser, and is useful for accessing the field via an interface. -func (v *__CreateParserInput) GetAllowOverridingExistingParser() bool { - return v.AllowOverridingExistingParser -} - -// __CreateRepositoryInput is used internally by genqlient -type __CreateRepositoryInput struct { - RepositoryName string `json:"RepositoryName"` -} - -// GetRepositoryName returns __CreateRepositoryInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__CreateRepositoryInput) GetRepositoryName() string { return v.RepositoryName } - -// __CreateRoleInput is used internally by genqlient -type __CreateRoleInput struct { - RoleName string `json:"RoleName"` - ViewPermissions []Permission `json:"ViewPermissions"` - OrganizationPermissions []OrganizationPermission `json:"OrganizationPermissions"` - SystemPermissions []SystemPermission `json:"SystemPermissions"` -} - -// GetRoleName returns __CreateRoleInput.RoleName, and is useful for accessing the field via an interface. -func (v *__CreateRoleInput) GetRoleName() string { return v.RoleName } - -// GetViewPermissions returns __CreateRoleInput.ViewPermissions, and is useful for accessing the field via an interface. -func (v *__CreateRoleInput) GetViewPermissions() []Permission { return v.ViewPermissions } - -// GetOrganizationPermissions returns __CreateRoleInput.OrganizationPermissions, and is useful for accessing the field via an interface. -func (v *__CreateRoleInput) GetOrganizationPermissions() []OrganizationPermission { - return v.OrganizationPermissions -} - -// GetSystemPermissions returns __CreateRoleInput.SystemPermissions, and is useful for accessing the field via an interface. -func (v *__CreateRoleInput) GetSystemPermissions() []SystemPermission { return v.SystemPermissions } - -// __CreateScheduledSearchInput is used internally by genqlient -type __CreateScheduledSearchInput struct { - SearchDomainName string `json:"SearchDomainName"` - Name string `json:"Name"` - Description *string `json:"Description"` - QueryString string `json:"QueryString"` - QueryStart string `json:"QueryStart"` - QueryEnd string `json:"QueryEnd"` - Schedule string `json:"Schedule"` - TimeZone string `json:"TimeZone"` - BackfillLimit int `json:"BackfillLimit"` - Enabled bool `json:"Enabled"` - ActionIdsOrNames []string `json:"ActionIdsOrNames"` - RunAsUserID *string `json:"RunAsUserID"` - Labels []string `json:"Labels"` - QueryOwnershipType *QueryOwnershipType `json:"QueryOwnershipType"` -} - -// GetSearchDomainName returns __CreateScheduledSearchInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetName returns __CreateScheduledSearchInput.Name, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetName() string { return v.Name } - -// GetDescription returns __CreateScheduledSearchInput.Description, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetDescription() *string { return v.Description } - -// GetQueryString returns __CreateScheduledSearchInput.QueryString, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetQueryString() string { return v.QueryString } - -// GetQueryStart returns __CreateScheduledSearchInput.QueryStart, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetQueryStart() string { return v.QueryStart } - -// GetQueryEnd returns __CreateScheduledSearchInput.QueryEnd, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetQueryEnd() string { return v.QueryEnd } - -// GetSchedule returns __CreateScheduledSearchInput.Schedule, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetSchedule() string { return v.Schedule } - -// GetTimeZone returns __CreateScheduledSearchInput.TimeZone, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetTimeZone() string { return v.TimeZone } - -// GetBackfillLimit returns __CreateScheduledSearchInput.BackfillLimit, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetBackfillLimit() int { return v.BackfillLimit } - -// GetEnabled returns __CreateScheduledSearchInput.Enabled, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetEnabled() bool { return v.Enabled } - -// GetActionIdsOrNames returns __CreateScheduledSearchInput.ActionIdsOrNames, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetActionIdsOrNames() []string { return v.ActionIdsOrNames } - -// GetRunAsUserID returns __CreateScheduledSearchInput.RunAsUserID, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetRunAsUserID() *string { return v.RunAsUserID } - -// GetLabels returns __CreateScheduledSearchInput.Labels, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetLabels() []string { return v.Labels } - -// GetQueryOwnershipType returns __CreateScheduledSearchInput.QueryOwnershipType, and is useful for accessing the field via an interface. -func (v *__CreateScheduledSearchInput) GetQueryOwnershipType() *QueryOwnershipType { - return v.QueryOwnershipType -} - -// __CreateSlackActionInput is used internally by genqlient -type __CreateSlackActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionName string `json:"ActionName"` - Fields []SlackFieldEntryInput `json:"Fields"` - Url string `json:"Url"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __CreateSlackActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateSlackActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionName returns __CreateSlackActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__CreateSlackActionInput) GetActionName() string { return v.ActionName } - -// GetFields returns __CreateSlackActionInput.Fields, and is useful for accessing the field via an interface. -func (v *__CreateSlackActionInput) GetFields() []SlackFieldEntryInput { return v.Fields } - -// GetUrl returns __CreateSlackActionInput.Url, and is useful for accessing the field via an interface. -func (v *__CreateSlackActionInput) GetUrl() string { return v.Url } - -// GetUseProxy returns __CreateSlackActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__CreateSlackActionInput) GetUseProxy() bool { return v.UseProxy } - -// __CreateSlackPostMessageActionInput is used internally by genqlient -type __CreateSlackPostMessageActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionName string `json:"ActionName"` - ApiToken string `json:"ApiToken"` - Channels []string `json:"Channels"` - Fields []SlackFieldEntryInput `json:"Fields"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __CreateSlackPostMessageActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateSlackPostMessageActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionName returns __CreateSlackPostMessageActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__CreateSlackPostMessageActionInput) GetActionName() string { return v.ActionName } - -// GetApiToken returns __CreateSlackPostMessageActionInput.ApiToken, and is useful for accessing the field via an interface. -func (v *__CreateSlackPostMessageActionInput) GetApiToken() string { return v.ApiToken } - -// GetChannels returns __CreateSlackPostMessageActionInput.Channels, and is useful for accessing the field via an interface. -func (v *__CreateSlackPostMessageActionInput) GetChannels() []string { return v.Channels } - -// GetFields returns __CreateSlackPostMessageActionInput.Fields, and is useful for accessing the field via an interface. -func (v *__CreateSlackPostMessageActionInput) GetFields() []SlackFieldEntryInput { return v.Fields } - -// GetUseProxy returns __CreateSlackPostMessageActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__CreateSlackPostMessageActionInput) GetUseProxy() bool { return v.UseProxy } - -// __CreateUploadFileActionInput is used internally by genqlient -type __CreateUploadFileActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionName string `json:"ActionName"` - FileName string `json:"FileName"` -} - -// GetSearchDomainName returns __CreateUploadFileActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateUploadFileActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionName returns __CreateUploadFileActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__CreateUploadFileActionInput) GetActionName() string { return v.ActionName } - -// GetFileName returns __CreateUploadFileActionInput.FileName, and is useful for accessing the field via an interface. -func (v *__CreateUploadFileActionInput) GetFileName() string { return v.FileName } - -// __CreateVictorOpsActionInput is used internally by genqlient -type __CreateVictorOpsActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionName string `json:"ActionName"` - MessageType string `json:"MessageType"` - NotifyUrl string `json:"NotifyUrl"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __CreateVictorOpsActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateVictorOpsActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionName returns __CreateVictorOpsActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__CreateVictorOpsActionInput) GetActionName() string { return v.ActionName } - -// GetMessageType returns __CreateVictorOpsActionInput.MessageType, and is useful for accessing the field via an interface. -func (v *__CreateVictorOpsActionInput) GetMessageType() string { return v.MessageType } - -// GetNotifyUrl returns __CreateVictorOpsActionInput.NotifyUrl, and is useful for accessing the field via an interface. -func (v *__CreateVictorOpsActionInput) GetNotifyUrl() string { return v.NotifyUrl } - -// GetUseProxy returns __CreateVictorOpsActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__CreateVictorOpsActionInput) GetUseProxy() bool { return v.UseProxy } - -// __CreateViewInput is used internally by genqlient -type __CreateViewInput struct { - ViewName string `json:"ViewName"` - Description *string `json:"Description"` - Connections []ViewConnectionInput `json:"Connections"` -} - -// GetViewName returns __CreateViewInput.ViewName, and is useful for accessing the field via an interface. -func (v *__CreateViewInput) GetViewName() string { return v.ViewName } - -// GetDescription returns __CreateViewInput.Description, and is useful for accessing the field via an interface. -func (v *__CreateViewInput) GetDescription() *string { return v.Description } - -// GetConnections returns __CreateViewInput.Connections, and is useful for accessing the field via an interface. -func (v *__CreateViewInput) GetConnections() []ViewConnectionInput { return v.Connections } - -// __CreateWebhookActionInput is used internally by genqlient -type __CreateWebhookActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionName string `json:"ActionName"` - Url string `json:"Url"` - Method string `json:"Method"` - Headers []HttpHeaderEntryInput `json:"Headers"` - BodyTemplate string `json:"BodyTemplate"` - IgnoreSSL bool `json:"IgnoreSSL"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __CreateWebhookActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__CreateWebhookActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionName returns __CreateWebhookActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__CreateWebhookActionInput) GetActionName() string { return v.ActionName } - -// GetUrl returns __CreateWebhookActionInput.Url, and is useful for accessing the field via an interface. -func (v *__CreateWebhookActionInput) GetUrl() string { return v.Url } - -// GetMethod returns __CreateWebhookActionInput.Method, and is useful for accessing the field via an interface. -func (v *__CreateWebhookActionInput) GetMethod() string { return v.Method } - -// GetHeaders returns __CreateWebhookActionInput.Headers, and is useful for accessing the field via an interface. -func (v *__CreateWebhookActionInput) GetHeaders() []HttpHeaderEntryInput { return v.Headers } - -// GetBodyTemplate returns __CreateWebhookActionInput.BodyTemplate, and is useful for accessing the field via an interface. -func (v *__CreateWebhookActionInput) GetBodyTemplate() string { return v.BodyTemplate } - -// GetIgnoreSSL returns __CreateWebhookActionInput.IgnoreSSL, and is useful for accessing the field via an interface. -func (v *__CreateWebhookActionInput) GetIgnoreSSL() bool { return v.IgnoreSSL } - -// GetUseProxy returns __CreateWebhookActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__CreateWebhookActionInput) GetUseProxy() bool { return v.UseProxy } - -// __DeleteActionByIDInput is used internally by genqlient -type __DeleteActionByIDInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` -} - -// GetSearchDomainName returns __DeleteActionByIDInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__DeleteActionByIDInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __DeleteActionByIDInput.ActionID, and is useful for accessing the field via an interface. -func (v *__DeleteActionByIDInput) GetActionID() string { return v.ActionID } - -// __DeleteAggregateAlertInput is used internally by genqlient -type __DeleteAggregateAlertInput struct { - SearchDomainName string `json:"SearchDomainName"` - AggregateAlertID string `json:"AggregateAlertID"` -} - -// GetSearchDomainName returns __DeleteAggregateAlertInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__DeleteAggregateAlertInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetAggregateAlertID returns __DeleteAggregateAlertInput.AggregateAlertID, and is useful for accessing the field via an interface. -func (v *__DeleteAggregateAlertInput) GetAggregateAlertID() string { return v.AggregateAlertID } - -// __DeleteAlertInput is used internally by genqlient -type __DeleteAlertInput struct { - SearchDomainName string `json:"SearchDomainName"` - AlertID string `json:"AlertID"` -} - -// GetSearchDomainName returns __DeleteAlertInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__DeleteAlertInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetAlertID returns __DeleteAlertInput.AlertID, and is useful for accessing the field via an interface. -func (v *__DeleteAlertInput) GetAlertID() string { return v.AlertID } - -// __DeleteFilterAlertInput is used internally by genqlient -type __DeleteFilterAlertInput struct { - SearchDomainName string `json:"SearchDomainName"` - FilterAlertID string `json:"FilterAlertID"` -} - -// GetSearchDomainName returns __DeleteFilterAlertInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__DeleteFilterAlertInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetFilterAlertID returns __DeleteFilterAlertInput.FilterAlertID, and is useful for accessing the field via an interface. -func (v *__DeleteFilterAlertInput) GetFilterAlertID() string { return v.FilterAlertID } - -// __DeleteParserByIDInput is used internally by genqlient -type __DeleteParserByIDInput struct { - RepositoryName string `json:"RepositoryName"` - ParserID string `json:"ParserID"` -} - -// GetRepositoryName returns __DeleteParserByIDInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__DeleteParserByIDInput) GetRepositoryName() string { return v.RepositoryName } - -// GetParserID returns __DeleteParserByIDInput.ParserID, and is useful for accessing the field via an interface. -func (v *__DeleteParserByIDInput) GetParserID() string { return v.ParserID } - -// __DeleteScheduledSearchByIDInput is used internally by genqlient -type __DeleteScheduledSearchByIDInput struct { - SearchDomainName string `json:"SearchDomainName"` - ScheduledSearchID string `json:"ScheduledSearchID"` -} - -// GetSearchDomainName returns __DeleteScheduledSearchByIDInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__DeleteScheduledSearchByIDInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetScheduledSearchID returns __DeleteScheduledSearchByIDInput.ScheduledSearchID, and is useful for accessing the field via an interface. -func (v *__DeleteScheduledSearchByIDInput) GetScheduledSearchID() string { return v.ScheduledSearchID } - -// __DeleteSearchDomainInput is used internally by genqlient -type __DeleteSearchDomainInput struct { - SearchDomainName string `json:"SearchDomainName"` - DeleteMessage string `json:"DeleteMessage"` -} - -// GetSearchDomainName returns __DeleteSearchDomainInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__DeleteSearchDomainInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetDeleteMessage returns __DeleteSearchDomainInput.DeleteMessage, and is useful for accessing the field via an interface. -func (v *__DeleteSearchDomainInput) GetDeleteMessage() string { return v.DeleteMessage } - -// __DisableFeatureFlagForOrganizationInput is used internally by genqlient -type __DisableFeatureFlagForOrganizationInput struct { - Flag FeatureFlag `json:"Flag"` - OrganizationID string `json:"OrganizationID"` -} - -// GetFlag returns __DisableFeatureFlagForOrganizationInput.Flag, and is useful for accessing the field via an interface. -func (v *__DisableFeatureFlagForOrganizationInput) GetFlag() FeatureFlag { return v.Flag } - -// GetOrganizationID returns __DisableFeatureFlagForOrganizationInput.OrganizationID, and is useful for accessing the field via an interface. -func (v *__DisableFeatureFlagForOrganizationInput) GetOrganizationID() string { - return v.OrganizationID -} - -// __DisableFeatureFlagForUserInput is used internally by genqlient -type __DisableFeatureFlagForUserInput struct { - Flag FeatureFlag `json:"Flag"` - UserID string `json:"UserID"` -} - -// GetFlag returns __DisableFeatureFlagForUserInput.Flag, and is useful for accessing the field via an interface. -func (v *__DisableFeatureFlagForUserInput) GetFlag() FeatureFlag { return v.Flag } - -// GetUserID returns __DisableFeatureFlagForUserInput.UserID, and is useful for accessing the field via an interface. -func (v *__DisableFeatureFlagForUserInput) GetUserID() string { return v.UserID } - -// __DisableFeatureFlagGloballyInput is used internally by genqlient -type __DisableFeatureFlagGloballyInput struct { - Flag FeatureFlag `json:"Flag"` -} - -// GetFlag returns __DisableFeatureFlagGloballyInput.Flag, and is useful for accessing the field via an interface. -func (v *__DisableFeatureFlagGloballyInput) GetFlag() FeatureFlag { return v.Flag } - -// __DisableS3ArchivingInput is used internally by genqlient -type __DisableS3ArchivingInput struct { - RepositoryName string `json:"RepositoryName"` -} - -// GetRepositoryName returns __DisableS3ArchivingInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__DisableS3ArchivingInput) GetRepositoryName() string { return v.RepositoryName } - -// __EnableFeatureFlagForOrganizationInput is used internally by genqlient -type __EnableFeatureFlagForOrganizationInput struct { - Flag FeatureFlag `json:"Flag"` - OrganizationID string `json:"OrganizationID"` -} - -// GetFlag returns __EnableFeatureFlagForOrganizationInput.Flag, and is useful for accessing the field via an interface. -func (v *__EnableFeatureFlagForOrganizationInput) GetFlag() FeatureFlag { return v.Flag } - -// GetOrganizationID returns __EnableFeatureFlagForOrganizationInput.OrganizationID, and is useful for accessing the field via an interface. -func (v *__EnableFeatureFlagForOrganizationInput) GetOrganizationID() string { return v.OrganizationID } - -// __EnableFeatureFlagForUserInput is used internally by genqlient -type __EnableFeatureFlagForUserInput struct { - Flag FeatureFlag `json:"Flag"` - UserID string `json:"UserID"` -} - -// GetFlag returns __EnableFeatureFlagForUserInput.Flag, and is useful for accessing the field via an interface. -func (v *__EnableFeatureFlagForUserInput) GetFlag() FeatureFlag { return v.Flag } - -// GetUserID returns __EnableFeatureFlagForUserInput.UserID, and is useful for accessing the field via an interface. -func (v *__EnableFeatureFlagForUserInput) GetUserID() string { return v.UserID } - -// __EnableFeatureFlagGloballyInput is used internally by genqlient -type __EnableFeatureFlagGloballyInput struct { - Flag FeatureFlag `json:"Flag"` -} - -// GetFlag returns __EnableFeatureFlagGloballyInput.Flag, and is useful for accessing the field via an interface. -func (v *__EnableFeatureFlagGloballyInput) GetFlag() FeatureFlag { return v.Flag } - -// __EnableS3ArchivingInput is used internally by genqlient -type __EnableS3ArchivingInput struct { - RepositoryName string `json:"RepositoryName"` -} - -// GetRepositoryName returns __EnableS3ArchivingInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__EnableS3ArchivingInput) GetRepositoryName() string { return v.RepositoryName } - -// __GetActionByIDInput is used internally by genqlient -type __GetActionByIDInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` -} - -// GetSearchDomainName returns __GetActionByIDInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__GetActionByIDInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __GetActionByIDInput.ActionID, and is useful for accessing the field via an interface. -func (v *__GetActionByIDInput) GetActionID() string { return v.ActionID } - -// __GetAggregateAlertByIDInput is used internally by genqlient -type __GetAggregateAlertByIDInput struct { - SearchDomainName string `json:"SearchDomainName"` - AggregateAlertID string `json:"AggregateAlertID"` -} - -// GetSearchDomainName returns __GetAggregateAlertByIDInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__GetAggregateAlertByIDInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetAggregateAlertID returns __GetAggregateAlertByIDInput.AggregateAlertID, and is useful for accessing the field via an interface. -func (v *__GetAggregateAlertByIDInput) GetAggregateAlertID() string { return v.AggregateAlertID } - -// __GetFilterAlertByIDInput is used internally by genqlient -type __GetFilterAlertByIDInput struct { - SearchDomainName string `json:"SearchDomainName"` - FilterAlertID string `json:"FilterAlertID"` -} - -// GetSearchDomainName returns __GetFilterAlertByIDInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__GetFilterAlertByIDInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetFilterAlertID returns __GetFilterAlertByIDInput.FilterAlertID, and is useful for accessing the field via an interface. -func (v *__GetFilterAlertByIDInput) GetFilterAlertID() string { return v.FilterAlertID } - -// __GetParserByIDInput is used internally by genqlient -type __GetParserByIDInput struct { - RepositoryName string `json:"RepositoryName"` - ParserID string `json:"ParserID"` -} - -// GetRepositoryName returns __GetParserByIDInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__GetParserByIDInput) GetRepositoryName() string { return v.RepositoryName } - -// GetParserID returns __GetParserByIDInput.ParserID, and is useful for accessing the field via an interface. -func (v *__GetParserByIDInput) GetParserID() string { return v.ParserID } - -// __GetParserYAMLByNameInput is used internally by genqlient -type __GetParserYAMLByNameInput struct { - RepositoryName string `json:"RepositoryName"` - ParserName string `json:"ParserName"` -} - -// GetRepositoryName returns __GetParserYAMLByNameInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__GetParserYAMLByNameInput) GetRepositoryName() string { return v.RepositoryName } - -// GetParserName returns __GetParserYAMLByNameInput.ParserName, and is useful for accessing the field via an interface. -func (v *__GetParserYAMLByNameInput) GetParserName() string { return v.ParserName } - -// __GetRepositoryInput is used internally by genqlient -type __GetRepositoryInput struct { - RepositoryName string `json:"RepositoryName"` -} - -// GetRepositoryName returns __GetRepositoryInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__GetRepositoryInput) GetRepositoryName() string { return v.RepositoryName } - -// __GetRoleByIDInput is used internally by genqlient -type __GetRoleByIDInput struct { - RoleID string `json:"RoleID"` -} - -// GetRoleID returns __GetRoleByIDInput.RoleID, and is useful for accessing the field via an interface. -func (v *__GetRoleByIDInput) GetRoleID() string { return v.RoleID } - -// __GetScheduledSearchByIDInput is used internally by genqlient -type __GetScheduledSearchByIDInput struct { - SearchDomainName string `json:"SearchDomainName"` - ScheduledSearchID string `json:"ScheduledSearchID"` -} - -// GetSearchDomainName returns __GetScheduledSearchByIDInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__GetScheduledSearchByIDInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetScheduledSearchID returns __GetScheduledSearchByIDInput.ScheduledSearchID, and is useful for accessing the field via an interface. -func (v *__GetScheduledSearchByIDInput) GetScheduledSearchID() string { return v.ScheduledSearchID } - -// __GetSearchDomainInput is used internally by genqlient -type __GetSearchDomainInput struct { - SearchDomainName string `json:"SearchDomainName"` -} - -// GetSearchDomainName returns __GetSearchDomainInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__GetSearchDomainInput) GetSearchDomainName() string { return v.SearchDomainName } - -// __GetUsersByUsernameInput is used internally by genqlient -type __GetUsersByUsernameInput struct { - Username string `json:"Username"` -} - -// GetUsername returns __GetUsersByUsernameInput.Username, and is useful for accessing the field via an interface. -func (v *__GetUsersByUsernameInput) GetUsername() string { return v.Username } - -// __LegacyCreateParserInput is used internally by genqlient -type __LegacyCreateParserInput struct { - RepositoryName string `json:"RepositoryName"` - Name string `json:"Name"` - TestData []string `json:"TestData"` - TagFields []string `json:"TagFields"` - SourceCode string `json:"SourceCode"` - Force bool `json:"Force"` -} - -// GetRepositoryName returns __LegacyCreateParserInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__LegacyCreateParserInput) GetRepositoryName() string { return v.RepositoryName } - -// GetName returns __LegacyCreateParserInput.Name, and is useful for accessing the field via an interface. -func (v *__LegacyCreateParserInput) GetName() string { return v.Name } - -// GetTestData returns __LegacyCreateParserInput.TestData, and is useful for accessing the field via an interface. -func (v *__LegacyCreateParserInput) GetTestData() []string { return v.TestData } - -// GetTagFields returns __LegacyCreateParserInput.TagFields, and is useful for accessing the field via an interface. -func (v *__LegacyCreateParserInput) GetTagFields() []string { return v.TagFields } - -// GetSourceCode returns __LegacyCreateParserInput.SourceCode, and is useful for accessing the field via an interface. -func (v *__LegacyCreateParserInput) GetSourceCode() string { return v.SourceCode } - -// GetForce returns __LegacyCreateParserInput.Force, and is useful for accessing the field via an interface. -func (v *__LegacyCreateParserInput) GetForce() bool { return v.Force } - -// __LegacyDeleteParserByIDInput is used internally by genqlient -type __LegacyDeleteParserByIDInput struct { - RepositoryName string `json:"RepositoryName"` - ParserID string `json:"ParserID"` -} - -// GetRepositoryName returns __LegacyDeleteParserByIDInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__LegacyDeleteParserByIDInput) GetRepositoryName() string { return v.RepositoryName } - -// GetParserID returns __LegacyDeleteParserByIDInput.ParserID, and is useful for accessing the field via an interface. -func (v *__LegacyDeleteParserByIDInput) GetParserID() string { return v.ParserID } - -// __LegacyGetParserInput is used internally by genqlient -type __LegacyGetParserInput struct { - RepositoryName string `json:"RepositoryName"` - ParserName string `json:"ParserName"` -} - -// GetRepositoryName returns __LegacyGetParserInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__LegacyGetParserInput) GetRepositoryName() string { return v.RepositoryName } - -// GetParserName returns __LegacyGetParserInput.ParserName, and is useful for accessing the field via an interface. -func (v *__LegacyGetParserInput) GetParserName() string { return v.ParserName } - -// __ListActionsInput is used internally by genqlient -type __ListActionsInput struct { - SearchDomainName string `json:"SearchDomainName"` -} - -// GetSearchDomainName returns __ListActionsInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__ListActionsInput) GetSearchDomainName() string { return v.SearchDomainName } - -// __ListAggregateAlertsInput is used internally by genqlient -type __ListAggregateAlertsInput struct { - SearchDomainName string `json:"SearchDomainName"` -} - -// GetSearchDomainName returns __ListAggregateAlertsInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__ListAggregateAlertsInput) GetSearchDomainName() string { return v.SearchDomainName } - -// __ListAlertsInput is used internally by genqlient -type __ListAlertsInput struct { - SearchDomainName string `json:"SearchDomainName"` -} - -// GetSearchDomainName returns __ListAlertsInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__ListAlertsInput) GetSearchDomainName() string { return v.SearchDomainName } - -// __ListFilesInput is used internally by genqlient -type __ListFilesInput struct { - SearchDomainName string `json:"SearchDomainName"` -} - -// GetSearchDomainName returns __ListFilesInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__ListFilesInput) GetSearchDomainName() string { return v.SearchDomainName } - -// __ListFilterAlertsInput is used internally by genqlient -type __ListFilterAlertsInput struct { - SearchDomainName string `json:"SearchDomainName"` -} - -// GetSearchDomainName returns __ListFilterAlertsInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__ListFilterAlertsInput) GetSearchDomainName() string { return v.SearchDomainName } - -// __ListIngestTokensInput is used internally by genqlient -type __ListIngestTokensInput struct { - RepositoryName string `json:"RepositoryName"` -} - -// GetRepositoryName returns __ListIngestTokensInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__ListIngestTokensInput) GetRepositoryName() string { return v.RepositoryName } - -// __ListInstalledPackagesInput is used internally by genqlient -type __ListInstalledPackagesInput struct { - SearchDomainName string `json:"SearchDomainName"` -} - -// GetSearchDomainName returns __ListInstalledPackagesInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__ListInstalledPackagesInput) GetSearchDomainName() string { return v.SearchDomainName } - -// __ListParsersInput is used internally by genqlient -type __ListParsersInput struct { - RepositoryName string `json:"RepositoryName"` -} - -// GetRepositoryName returns __ListParsersInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__ListParsersInput) GetRepositoryName() string { return v.RepositoryName } - -// __ListScheduledSearchesInput is used internally by genqlient -type __ListScheduledSearchesInput struct { - SearchDomainName string `json:"SearchDomainName"` -} - -// GetSearchDomainName returns __ListScheduledSearchesInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__ListScheduledSearchesInput) GetSearchDomainName() string { return v.SearchDomainName } - -// __RemoveFileInput is used internally by genqlient -type __RemoveFileInput struct { - SearchDomainName string `json:"SearchDomainName"` - FileName string `json:"FileName"` -} - -// GetSearchDomainName returns __RemoveFileInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__RemoveFileInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetFileName returns __RemoveFileInput.FileName, and is useful for accessing the field via an interface. -func (v *__RemoveFileInput) GetFileName() string { return v.FileName } - -// __RemoveIngestTokenInput is used internally by genqlient -type __RemoveIngestTokenInput struct { - RepositoryName string `json:"RepositoryName"` - Name string `json:"Name"` -} - -// GetRepositoryName returns __RemoveIngestTokenInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__RemoveIngestTokenInput) GetRepositoryName() string { return v.RepositoryName } - -// GetName returns __RemoveIngestTokenInput.Name, and is useful for accessing the field via an interface. -func (v *__RemoveIngestTokenInput) GetName() string { return v.Name } - -// __RemoveRoleByIDInput is used internally by genqlient -type __RemoveRoleByIDInput struct { - RoleID string `json:"RoleID"` -} - -// GetRoleID returns __RemoveRoleByIDInput.RoleID, and is useful for accessing the field via an interface. -func (v *__RemoveRoleByIDInput) GetRoleID() string { return v.RoleID } - -// __RemoveUserFromGroupInput is used internally by genqlient -type __RemoveUserFromGroupInput struct { - GroupID string `json:"GroupID"` - UserID string `json:"UserID"` -} - -// GetGroupID returns __RemoveUserFromGroupInput.GroupID, and is useful for accessing the field via an interface. -func (v *__RemoveUserFromGroupInput) GetGroupID() string { return v.GroupID } - -// GetUserID returns __RemoveUserFromGroupInput.UserID, and is useful for accessing the field via an interface. -func (v *__RemoveUserFromGroupInput) GetUserID() string { return v.UserID } - -// __RemoveUserInput is used internally by genqlient -type __RemoveUserInput struct { - Username string `json:"Username"` -} - -// GetUsername returns __RemoveUserInput.Username, and is useful for accessing the field via an interface. -func (v *__RemoveUserInput) GetUsername() string { return v.Username } - -// __RotateTokenByIDInput is used internally by genqlient -type __RotateTokenByIDInput struct { - TokenID string `json:"TokenID"` -} - -// GetTokenID returns __RotateTokenByIDInput.TokenID, and is useful for accessing the field via an interface. -func (v *__RotateTokenByIDInput) GetTokenID() string { return v.TokenID } - -// __SetAutomaticSearchingInput is used internally by genqlient -type __SetAutomaticSearchingInput struct { - SearchDomainName string `json:"SearchDomainName"` - AutomaticSearch bool `json:"AutomaticSearch"` -} - -// GetSearchDomainName returns __SetAutomaticSearchingInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__SetAutomaticSearchingInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetAutomaticSearch returns __SetAutomaticSearchingInput.AutomaticSearch, and is useful for accessing the field via an interface. -func (v *__SetAutomaticSearchingInput) GetAutomaticSearch() bool { return v.AutomaticSearch } - -// __UnassignParserToIngestTokenInput is used internally by genqlient -type __UnassignParserToIngestTokenInput struct { - RepositoryName string `json:"RepositoryName"` - IngestTokenName string `json:"IngestTokenName"` -} - -// GetRepositoryName returns __UnassignParserToIngestTokenInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__UnassignParserToIngestTokenInput) GetRepositoryName() string { return v.RepositoryName } - -// GetIngestTokenName returns __UnassignParserToIngestTokenInput.IngestTokenName, and is useful for accessing the field via an interface. -func (v *__UnassignParserToIngestTokenInput) GetIngestTokenName() string { return v.IngestTokenName } - -// __UninstallPackageInput is used internally by genqlient -type __UninstallPackageInput struct { - SearchDomainName string `json:"SearchDomainName"` - PackageID string `json:"PackageID"` -} - -// GetSearchDomainName returns __UninstallPackageInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UninstallPackageInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetPackageID returns __UninstallPackageInput.PackageID, and is useful for accessing the field via an interface. -func (v *__UninstallPackageInput) GetPackageID() string { return v.PackageID } - -// __UnregisterClusterNodeInput is used internally by genqlient -type __UnregisterClusterNodeInput struct { - NodeID int `json:"NodeID"` - Force bool `json:"Force"` -} - -// GetNodeID returns __UnregisterClusterNodeInput.NodeID, and is useful for accessing the field via an interface. -func (v *__UnregisterClusterNodeInput) GetNodeID() int { return v.NodeID } - -// GetForce returns __UnregisterClusterNodeInput.Force, and is useful for accessing the field via an interface. -func (v *__UnregisterClusterNodeInput) GetForce() bool { return v.Force } - -// __UpdateAggregateAlertInput is used internally by genqlient -type __UpdateAggregateAlertInput struct { - SearchDomainName string `json:"SearchDomainName"` - ID string `json:"ID"` - Name string `json:"Name"` - Description *string `json:"Description"` - QueryString string `json:"QueryString"` - SearchIntervalSeconds int64 `json:"SearchIntervalSeconds"` - ActionIdsOrNames []string `json:"ActionIdsOrNames"` - Labels []string `json:"Labels"` - Enabled bool `json:"Enabled"` - RunAsUserID *string `json:"RunAsUserID"` - ThrottleField *string `json:"ThrottleField"` - ThrottleTimeSeconds int64 `json:"ThrottleTimeSeconds"` - TriggerMode TriggerMode `json:"TriggerMode"` - QueryTimestampMode QueryTimestampType `json:"QueryTimestampMode"` - QueryOwnershipType QueryOwnershipType `json:"QueryOwnershipType"` -} - -// GetSearchDomainName returns __UpdateAggregateAlertInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetID returns __UpdateAggregateAlertInput.ID, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetID() string { return v.ID } - -// GetName returns __UpdateAggregateAlertInput.Name, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetName() string { return v.Name } - -// GetDescription returns __UpdateAggregateAlertInput.Description, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetDescription() *string { return v.Description } - -// GetQueryString returns __UpdateAggregateAlertInput.QueryString, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetQueryString() string { return v.QueryString } - -// GetSearchIntervalSeconds returns __UpdateAggregateAlertInput.SearchIntervalSeconds, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetSearchIntervalSeconds() int64 { - return v.SearchIntervalSeconds -} - -// GetActionIdsOrNames returns __UpdateAggregateAlertInput.ActionIdsOrNames, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetActionIdsOrNames() []string { return v.ActionIdsOrNames } - -// GetLabels returns __UpdateAggregateAlertInput.Labels, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetLabels() []string { return v.Labels } - -// GetEnabled returns __UpdateAggregateAlertInput.Enabled, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetEnabled() bool { return v.Enabled } - -// GetRunAsUserID returns __UpdateAggregateAlertInput.RunAsUserID, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetRunAsUserID() *string { return v.RunAsUserID } - -// GetThrottleField returns __UpdateAggregateAlertInput.ThrottleField, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetThrottleField() *string { return v.ThrottleField } - -// GetThrottleTimeSeconds returns __UpdateAggregateAlertInput.ThrottleTimeSeconds, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetThrottleTimeSeconds() int64 { return v.ThrottleTimeSeconds } - -// GetTriggerMode returns __UpdateAggregateAlertInput.TriggerMode, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetTriggerMode() TriggerMode { return v.TriggerMode } - -// GetQueryTimestampMode returns __UpdateAggregateAlertInput.QueryTimestampMode, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetQueryTimestampMode() QueryTimestampType { - return v.QueryTimestampMode -} - -// GetQueryOwnershipType returns __UpdateAggregateAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. -func (v *__UpdateAggregateAlertInput) GetQueryOwnershipType() QueryOwnershipType { - return v.QueryOwnershipType -} - -// __UpdateAlertInput is used internally by genqlient -type __UpdateAlertInput struct { - SearchDomainName string `json:"SearchDomainName"` - AlertID string `json:"AlertID"` - Name string `json:"Name"` - Description *string `json:"Description"` - QueryString string `json:"QueryString"` - QueryStart string `json:"QueryStart"` - ThrottleTimeMillis int64 `json:"ThrottleTimeMillis"` - Enabled bool `json:"Enabled"` - Actions []string `json:"Actions"` - Labels []string `json:"Labels"` - RunAsUserID *string `json:"RunAsUserID"` - QueryOwnershipType *QueryOwnershipType `json:"QueryOwnershipType"` - ThrottleField *string `json:"ThrottleField"` -} - -// GetSearchDomainName returns __UpdateAlertInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetAlertID returns __UpdateAlertInput.AlertID, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetAlertID() string { return v.AlertID } - -// GetName returns __UpdateAlertInput.Name, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetName() string { return v.Name } - -// GetDescription returns __UpdateAlertInput.Description, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetDescription() *string { return v.Description } - -// GetQueryString returns __UpdateAlertInput.QueryString, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetQueryString() string { return v.QueryString } - -// GetQueryStart returns __UpdateAlertInput.QueryStart, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetQueryStart() string { return v.QueryStart } - -// GetThrottleTimeMillis returns __UpdateAlertInput.ThrottleTimeMillis, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetThrottleTimeMillis() int64 { return v.ThrottleTimeMillis } - -// GetEnabled returns __UpdateAlertInput.Enabled, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetEnabled() bool { return v.Enabled } - -// GetActions returns __UpdateAlertInput.Actions, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetActions() []string { return v.Actions } - -// GetLabels returns __UpdateAlertInput.Labels, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetLabels() []string { return v.Labels } - -// GetRunAsUserID returns __UpdateAlertInput.RunAsUserID, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetRunAsUserID() *string { return v.RunAsUserID } - -// GetQueryOwnershipType returns __UpdateAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetQueryOwnershipType() *QueryOwnershipType { return v.QueryOwnershipType } - -// GetThrottleField returns __UpdateAlertInput.ThrottleField, and is useful for accessing the field via an interface. -func (v *__UpdateAlertInput) GetThrottleField() *string { return v.ThrottleField } - -// __UpdateDescriptionForSearchDomainInput is used internally by genqlient -type __UpdateDescriptionForSearchDomainInput struct { - SearchDomainName string `json:"SearchDomainName"` - NewDescription string `json:"NewDescription"` -} - -// GetSearchDomainName returns __UpdateDescriptionForSearchDomainInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateDescriptionForSearchDomainInput) GetSearchDomainName() string { - return v.SearchDomainName -} - -// GetNewDescription returns __UpdateDescriptionForSearchDomainInput.NewDescription, and is useful for accessing the field via an interface. -func (v *__UpdateDescriptionForSearchDomainInput) GetNewDescription() string { return v.NewDescription } - -// __UpdateEmailActionInput is used internally by genqlient -type __UpdateEmailActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` - ActionName string `json:"ActionName"` - Recipients []string `json:"Recipients"` - SubjectTemplate *string `json:"SubjectTemplate"` - BodyTemplate *string `json:"BodyTemplate"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __UpdateEmailActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateEmailActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __UpdateEmailActionInput.ActionID, and is useful for accessing the field via an interface. -func (v *__UpdateEmailActionInput) GetActionID() string { return v.ActionID } - -// GetActionName returns __UpdateEmailActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__UpdateEmailActionInput) GetActionName() string { return v.ActionName } - -// GetRecipients returns __UpdateEmailActionInput.Recipients, and is useful for accessing the field via an interface. -func (v *__UpdateEmailActionInput) GetRecipients() []string { return v.Recipients } - -// GetSubjectTemplate returns __UpdateEmailActionInput.SubjectTemplate, and is useful for accessing the field via an interface. -func (v *__UpdateEmailActionInput) GetSubjectTemplate() *string { return v.SubjectTemplate } - -// GetBodyTemplate returns __UpdateEmailActionInput.BodyTemplate, and is useful for accessing the field via an interface. -func (v *__UpdateEmailActionInput) GetBodyTemplate() *string { return v.BodyTemplate } - -// GetUseProxy returns __UpdateEmailActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__UpdateEmailActionInput) GetUseProxy() bool { return v.UseProxy } - -// __UpdateFilterAlertInput is used internally by genqlient -type __UpdateFilterAlertInput struct { - SearchDomainName string `json:"SearchDomainName"` - ID string `json:"ID"` - Name string `json:"Name"` - Description *string `json:"Description"` - QueryString string `json:"QueryString"` - ActionIdsOrNames []string `json:"ActionIdsOrNames"` - Labels []string `json:"Labels"` - Enabled bool `json:"Enabled"` - RunAsUserID *string `json:"RunAsUserID"` - ThrottleField *string `json:"ThrottleField"` - ThrottleTimeSeconds int64 `json:"ThrottleTimeSeconds"` - QueryOwnershipType QueryOwnershipType `json:"QueryOwnershipType"` -} - -// GetSearchDomainName returns __UpdateFilterAlertInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetID returns __UpdateFilterAlertInput.ID, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetID() string { return v.ID } - -// GetName returns __UpdateFilterAlertInput.Name, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetName() string { return v.Name } - -// GetDescription returns __UpdateFilterAlertInput.Description, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetDescription() *string { return v.Description } - -// GetQueryString returns __UpdateFilterAlertInput.QueryString, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetQueryString() string { return v.QueryString } - -// GetActionIdsOrNames returns __UpdateFilterAlertInput.ActionIdsOrNames, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetActionIdsOrNames() []string { return v.ActionIdsOrNames } - -// GetLabels returns __UpdateFilterAlertInput.Labels, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetLabels() []string { return v.Labels } - -// GetEnabled returns __UpdateFilterAlertInput.Enabled, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetEnabled() bool { return v.Enabled } - -// GetRunAsUserID returns __UpdateFilterAlertInput.RunAsUserID, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetRunAsUserID() *string { return v.RunAsUserID } - -// GetThrottleField returns __UpdateFilterAlertInput.ThrottleField, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetThrottleField() *string { return v.ThrottleField } - -// GetThrottleTimeSeconds returns __UpdateFilterAlertInput.ThrottleTimeSeconds, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetThrottleTimeSeconds() int64 { return v.ThrottleTimeSeconds } - -// GetQueryOwnershipType returns __UpdateFilterAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. -func (v *__UpdateFilterAlertInput) GetQueryOwnershipType() QueryOwnershipType { - return v.QueryOwnershipType -} - -// __UpdateHumioRepoActionInput is used internally by genqlient -type __UpdateHumioRepoActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` - ActionName string `json:"ActionName"` - IngestToken string `json:"IngestToken"` -} - -// GetSearchDomainName returns __UpdateHumioRepoActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateHumioRepoActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __UpdateHumioRepoActionInput.ActionID, and is useful for accessing the field via an interface. -func (v *__UpdateHumioRepoActionInput) GetActionID() string { return v.ActionID } - -// GetActionName returns __UpdateHumioRepoActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__UpdateHumioRepoActionInput) GetActionName() string { return v.ActionName } - -// GetIngestToken returns __UpdateHumioRepoActionInput.IngestToken, and is useful for accessing the field via an interface. -func (v *__UpdateHumioRepoActionInput) GetIngestToken() string { return v.IngestToken } - -// __UpdateIngestBasedRetentionInput is used internally by genqlient -type __UpdateIngestBasedRetentionInput struct { - RepositoryName string `json:"RepositoryName"` - IngestInGB *float64 `json:"IngestInGB"` -} - -// GetRepositoryName returns __UpdateIngestBasedRetentionInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__UpdateIngestBasedRetentionInput) GetRepositoryName() string { return v.RepositoryName } - -// GetIngestInGB returns __UpdateIngestBasedRetentionInput.IngestInGB, and is useful for accessing the field via an interface. -func (v *__UpdateIngestBasedRetentionInput) GetIngestInGB() *float64 { return v.IngestInGB } - -// __UpdateLicenseKeyInput is used internally by genqlient -type __UpdateLicenseKeyInput struct { - LicenseKey string `json:"LicenseKey"` -} - -// GetLicenseKey returns __UpdateLicenseKeyInput.LicenseKey, and is useful for accessing the field via an interface. -func (v *__UpdateLicenseKeyInput) GetLicenseKey() string { return v.LicenseKey } - -// __UpdateOpsGenieActionInput is used internally by genqlient -type __UpdateOpsGenieActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` - ActionName string `json:"ActionName"` - ApiUrl string `json:"ApiUrl"` - GenieKey string `json:"GenieKey"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __UpdateOpsGenieActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateOpsGenieActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __UpdateOpsGenieActionInput.ActionID, and is useful for accessing the field via an interface. -func (v *__UpdateOpsGenieActionInput) GetActionID() string { return v.ActionID } - -// GetActionName returns __UpdateOpsGenieActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__UpdateOpsGenieActionInput) GetActionName() string { return v.ActionName } - -// GetApiUrl returns __UpdateOpsGenieActionInput.ApiUrl, and is useful for accessing the field via an interface. -func (v *__UpdateOpsGenieActionInput) GetApiUrl() string { return v.ApiUrl } - -// GetGenieKey returns __UpdateOpsGenieActionInput.GenieKey, and is useful for accessing the field via an interface. -func (v *__UpdateOpsGenieActionInput) GetGenieKey() string { return v.GenieKey } - -// GetUseProxy returns __UpdateOpsGenieActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__UpdateOpsGenieActionInput) GetUseProxy() bool { return v.UseProxy } - -// __UpdatePagerDutyActionInput is used internally by genqlient -type __UpdatePagerDutyActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` - ActionName string `json:"ActionName"` - Severity string `json:"Severity"` - RoutingKey string `json:"RoutingKey"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __UpdatePagerDutyActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdatePagerDutyActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __UpdatePagerDutyActionInput.ActionID, and is useful for accessing the field via an interface. -func (v *__UpdatePagerDutyActionInput) GetActionID() string { return v.ActionID } - -// GetActionName returns __UpdatePagerDutyActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__UpdatePagerDutyActionInput) GetActionName() string { return v.ActionName } - -// GetSeverity returns __UpdatePagerDutyActionInput.Severity, and is useful for accessing the field via an interface. -func (v *__UpdatePagerDutyActionInput) GetSeverity() string { return v.Severity } - -// GetRoutingKey returns __UpdatePagerDutyActionInput.RoutingKey, and is useful for accessing the field via an interface. -func (v *__UpdatePagerDutyActionInput) GetRoutingKey() string { return v.RoutingKey } - -// GetUseProxy returns __UpdatePagerDutyActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__UpdatePagerDutyActionInput) GetUseProxy() bool { return v.UseProxy } - -// __UpdateRoleInput is used internally by genqlient -type __UpdateRoleInput struct { - RoleID string `json:"RoleID"` - RoleName string `json:"RoleName"` - ViewPermissions []Permission `json:"ViewPermissions"` - OrganizationPermissions []OrganizationPermission `json:"OrganizationPermissions"` - SystemPermissions []SystemPermission `json:"SystemPermissions"` -} - -// GetRoleID returns __UpdateRoleInput.RoleID, and is useful for accessing the field via an interface. -func (v *__UpdateRoleInput) GetRoleID() string { return v.RoleID } - -// GetRoleName returns __UpdateRoleInput.RoleName, and is useful for accessing the field via an interface. -func (v *__UpdateRoleInput) GetRoleName() string { return v.RoleName } - -// GetViewPermissions returns __UpdateRoleInput.ViewPermissions, and is useful for accessing the field via an interface. -func (v *__UpdateRoleInput) GetViewPermissions() []Permission { return v.ViewPermissions } - -// GetOrganizationPermissions returns __UpdateRoleInput.OrganizationPermissions, and is useful for accessing the field via an interface. -func (v *__UpdateRoleInput) GetOrganizationPermissions() []OrganizationPermission { - return v.OrganizationPermissions -} - -// GetSystemPermissions returns __UpdateRoleInput.SystemPermissions, and is useful for accessing the field via an interface. -func (v *__UpdateRoleInput) GetSystemPermissions() []SystemPermission { return v.SystemPermissions } - -// __UpdateS3ArchivingConfigurationInput is used internally by genqlient -type __UpdateS3ArchivingConfigurationInput struct { - RepositoryName string `json:"RepositoryName"` - BucketName string `json:"BucketName"` - BucketRegion string `json:"BucketRegion"` - Format S3ArchivingFormat `json:"Format"` -} - -// GetRepositoryName returns __UpdateS3ArchivingConfigurationInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__UpdateS3ArchivingConfigurationInput) GetRepositoryName() string { return v.RepositoryName } - -// GetBucketName returns __UpdateS3ArchivingConfigurationInput.BucketName, and is useful for accessing the field via an interface. -func (v *__UpdateS3ArchivingConfigurationInput) GetBucketName() string { return v.BucketName } - -// GetBucketRegion returns __UpdateS3ArchivingConfigurationInput.BucketRegion, and is useful for accessing the field via an interface. -func (v *__UpdateS3ArchivingConfigurationInput) GetBucketRegion() string { return v.BucketRegion } - -// GetFormat returns __UpdateS3ArchivingConfigurationInput.Format, and is useful for accessing the field via an interface. -func (v *__UpdateS3ArchivingConfigurationInput) GetFormat() S3ArchivingFormat { return v.Format } - -// __UpdateScheduledSearchInput is used internally by genqlient -type __UpdateScheduledSearchInput struct { - SearchDomainName string `json:"SearchDomainName"` - ID string `json:"ID"` - Name string `json:"Name"` - Description *string `json:"Description"` - QueryString string `json:"QueryString"` - QueryStart string `json:"QueryStart"` - QueryEnd string `json:"QueryEnd"` - Schedule string `json:"Schedule"` - TimeZone string `json:"TimeZone"` - BackfillLimit int `json:"BackfillLimit"` - Enabled bool `json:"Enabled"` - ActionIdsOrNames []string `json:"ActionIdsOrNames"` - RunAsUserID string `json:"RunAsUserID"` - Labels []string `json:"Labels"` - QueryOwnershipType *QueryOwnershipType `json:"QueryOwnershipType"` -} - -// GetSearchDomainName returns __UpdateScheduledSearchInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetID returns __UpdateScheduledSearchInput.ID, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetID() string { return v.ID } - -// GetName returns __UpdateScheduledSearchInput.Name, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetName() string { return v.Name } - -// GetDescription returns __UpdateScheduledSearchInput.Description, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetDescription() *string { return v.Description } - -// GetQueryString returns __UpdateScheduledSearchInput.QueryString, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetQueryString() string { return v.QueryString } - -// GetQueryStart returns __UpdateScheduledSearchInput.QueryStart, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetQueryStart() string { return v.QueryStart } - -// GetQueryEnd returns __UpdateScheduledSearchInput.QueryEnd, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetQueryEnd() string { return v.QueryEnd } - -// GetSchedule returns __UpdateScheduledSearchInput.Schedule, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetSchedule() string { return v.Schedule } - -// GetTimeZone returns __UpdateScheduledSearchInput.TimeZone, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetTimeZone() string { return v.TimeZone } - -// GetBackfillLimit returns __UpdateScheduledSearchInput.BackfillLimit, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetBackfillLimit() int { return v.BackfillLimit } - -// GetEnabled returns __UpdateScheduledSearchInput.Enabled, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetEnabled() bool { return v.Enabled } - -// GetActionIdsOrNames returns __UpdateScheduledSearchInput.ActionIdsOrNames, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetActionIdsOrNames() []string { return v.ActionIdsOrNames } - -// GetRunAsUserID returns __UpdateScheduledSearchInput.RunAsUserID, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetRunAsUserID() string { return v.RunAsUserID } - -// GetLabels returns __UpdateScheduledSearchInput.Labels, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetLabels() []string { return v.Labels } - -// GetQueryOwnershipType returns __UpdateScheduledSearchInput.QueryOwnershipType, and is useful for accessing the field via an interface. -func (v *__UpdateScheduledSearchInput) GetQueryOwnershipType() *QueryOwnershipType { - return v.QueryOwnershipType -} - -// __UpdateSlackActionInput is used internally by genqlient -type __UpdateSlackActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` - ActionName string `json:"ActionName"` - Fields []SlackFieldEntryInput `json:"Fields"` - Url string `json:"Url"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __UpdateSlackActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateSlackActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __UpdateSlackActionInput.ActionID, and is useful for accessing the field via an interface. -func (v *__UpdateSlackActionInput) GetActionID() string { return v.ActionID } - -// GetActionName returns __UpdateSlackActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__UpdateSlackActionInput) GetActionName() string { return v.ActionName } - -// GetFields returns __UpdateSlackActionInput.Fields, and is useful for accessing the field via an interface. -func (v *__UpdateSlackActionInput) GetFields() []SlackFieldEntryInput { return v.Fields } - -// GetUrl returns __UpdateSlackActionInput.Url, and is useful for accessing the field via an interface. -func (v *__UpdateSlackActionInput) GetUrl() string { return v.Url } - -// GetUseProxy returns __UpdateSlackActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__UpdateSlackActionInput) GetUseProxy() bool { return v.UseProxy } - -// __UpdateSlackPostMessageActionInput is used internally by genqlient -type __UpdateSlackPostMessageActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` - ActionName string `json:"ActionName"` - ApiToken string `json:"ApiToken"` - Channels []string `json:"Channels"` - Fields []SlackFieldEntryInput `json:"Fields"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __UpdateSlackPostMessageActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateSlackPostMessageActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __UpdateSlackPostMessageActionInput.ActionID, and is useful for accessing the field via an interface. -func (v *__UpdateSlackPostMessageActionInput) GetActionID() string { return v.ActionID } - -// GetActionName returns __UpdateSlackPostMessageActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__UpdateSlackPostMessageActionInput) GetActionName() string { return v.ActionName } - -// GetApiToken returns __UpdateSlackPostMessageActionInput.ApiToken, and is useful for accessing the field via an interface. -func (v *__UpdateSlackPostMessageActionInput) GetApiToken() string { return v.ApiToken } - -// GetChannels returns __UpdateSlackPostMessageActionInput.Channels, and is useful for accessing the field via an interface. -func (v *__UpdateSlackPostMessageActionInput) GetChannels() []string { return v.Channels } - -// GetFields returns __UpdateSlackPostMessageActionInput.Fields, and is useful for accessing the field via an interface. -func (v *__UpdateSlackPostMessageActionInput) GetFields() []SlackFieldEntryInput { return v.Fields } - -// GetUseProxy returns __UpdateSlackPostMessageActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__UpdateSlackPostMessageActionInput) GetUseProxy() bool { return v.UseProxy } - -// __UpdateStorageBasedRetentionInput is used internally by genqlient -type __UpdateStorageBasedRetentionInput struct { - RepositoryName string `json:"RepositoryName"` - StorageInGB *float64 `json:"StorageInGB"` -} - -// GetRepositoryName returns __UpdateStorageBasedRetentionInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__UpdateStorageBasedRetentionInput) GetRepositoryName() string { return v.RepositoryName } - -// GetStorageInGB returns __UpdateStorageBasedRetentionInput.StorageInGB, and is useful for accessing the field via an interface. -func (v *__UpdateStorageBasedRetentionInput) GetStorageInGB() *float64 { return v.StorageInGB } - -// __UpdateTimeBasedRetentionInput is used internally by genqlient -type __UpdateTimeBasedRetentionInput struct { - RepositoryName string `json:"RepositoryName"` - RetentionInDays *float64 `json:"RetentionInDays"` -} - -// GetRepositoryName returns __UpdateTimeBasedRetentionInput.RepositoryName, and is useful for accessing the field via an interface. -func (v *__UpdateTimeBasedRetentionInput) GetRepositoryName() string { return v.RepositoryName } - -// GetRetentionInDays returns __UpdateTimeBasedRetentionInput.RetentionInDays, and is useful for accessing the field via an interface. -func (v *__UpdateTimeBasedRetentionInput) GetRetentionInDays() *float64 { return v.RetentionInDays } - -// __UpdateUploadFileActionInput is used internally by genqlient -type __UpdateUploadFileActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` - ActionName string `json:"ActionName"` - FileName string `json:"FileName"` -} - -// GetSearchDomainName returns __UpdateUploadFileActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateUploadFileActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __UpdateUploadFileActionInput.ActionID, and is useful for accessing the field via an interface. -func (v *__UpdateUploadFileActionInput) GetActionID() string { return v.ActionID } - -// GetActionName returns __UpdateUploadFileActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__UpdateUploadFileActionInput) GetActionName() string { return v.ActionName } - -// GetFileName returns __UpdateUploadFileActionInput.FileName, and is useful for accessing the field via an interface. -func (v *__UpdateUploadFileActionInput) GetFileName() string { return v.FileName } - -// __UpdateUserInput is used internally by genqlient -type __UpdateUserInput struct { - Username string `json:"Username"` - Company *string `json:"Company"` - IsRoot *bool `json:"IsRoot"` - FullName *string `json:"FullName"` - Picture *string `json:"Picture"` - Email *string `json:"Email"` - CountryCode *string `json:"CountryCode"` -} - -// GetUsername returns __UpdateUserInput.Username, and is useful for accessing the field via an interface. -func (v *__UpdateUserInput) GetUsername() string { return v.Username } - -// GetCompany returns __UpdateUserInput.Company, and is useful for accessing the field via an interface. -func (v *__UpdateUserInput) GetCompany() *string { return v.Company } - -// GetIsRoot returns __UpdateUserInput.IsRoot, and is useful for accessing the field via an interface. -func (v *__UpdateUserInput) GetIsRoot() *bool { return v.IsRoot } - -// GetFullName returns __UpdateUserInput.FullName, and is useful for accessing the field via an interface. -func (v *__UpdateUserInput) GetFullName() *string { return v.FullName } - -// GetPicture returns __UpdateUserInput.Picture, and is useful for accessing the field via an interface. -func (v *__UpdateUserInput) GetPicture() *string { return v.Picture } - -// GetEmail returns __UpdateUserInput.Email, and is useful for accessing the field via an interface. -func (v *__UpdateUserInput) GetEmail() *string { return v.Email } - -// GetCountryCode returns __UpdateUserInput.CountryCode, and is useful for accessing the field via an interface. -func (v *__UpdateUserInput) GetCountryCode() *string { return v.CountryCode } - -// __UpdateVictorOpsActionInput is used internally by genqlient -type __UpdateVictorOpsActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` - ActionName string `json:"ActionName"` - MessageType string `json:"MessageType"` - NotifyUrl string `json:"NotifyUrl"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __UpdateVictorOpsActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateVictorOpsActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __UpdateVictorOpsActionInput.ActionID, and is useful for accessing the field via an interface. -func (v *__UpdateVictorOpsActionInput) GetActionID() string { return v.ActionID } - -// GetActionName returns __UpdateVictorOpsActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__UpdateVictorOpsActionInput) GetActionName() string { return v.ActionName } - -// GetMessageType returns __UpdateVictorOpsActionInput.MessageType, and is useful for accessing the field via an interface. -func (v *__UpdateVictorOpsActionInput) GetMessageType() string { return v.MessageType } - -// GetNotifyUrl returns __UpdateVictorOpsActionInput.NotifyUrl, and is useful for accessing the field via an interface. -func (v *__UpdateVictorOpsActionInput) GetNotifyUrl() string { return v.NotifyUrl } - -// GetUseProxy returns __UpdateVictorOpsActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__UpdateVictorOpsActionInput) GetUseProxy() bool { return v.UseProxy } - -// __UpdateViewConnectionsInput is used internally by genqlient -type __UpdateViewConnectionsInput struct { - ViewName string `json:"ViewName"` - Connections []ViewConnectionInput `json:"Connections"` -} - -// GetViewName returns __UpdateViewConnectionsInput.ViewName, and is useful for accessing the field via an interface. -func (v *__UpdateViewConnectionsInput) GetViewName() string { return v.ViewName } - -// GetConnections returns __UpdateViewConnectionsInput.Connections, and is useful for accessing the field via an interface. -func (v *__UpdateViewConnectionsInput) GetConnections() []ViewConnectionInput { return v.Connections } - -// __UpdateWebhookActionInput is used internally by genqlient -type __UpdateWebhookActionInput struct { - SearchDomainName string `json:"SearchDomainName"` - ActionID string `json:"ActionID"` - ActionName string `json:"ActionName"` - Url string `json:"Url"` - Method string `json:"Method"` - Headers []HttpHeaderEntryInput `json:"Headers"` - BodyTemplate string `json:"BodyTemplate"` - IgnoreSSL bool `json:"IgnoreSSL"` - UseProxy bool `json:"UseProxy"` -} - -// GetSearchDomainName returns __UpdateWebhookActionInput.SearchDomainName, and is useful for accessing the field via an interface. -func (v *__UpdateWebhookActionInput) GetSearchDomainName() string { return v.SearchDomainName } - -// GetActionID returns __UpdateWebhookActionInput.ActionID, and is useful for accessing the field via an interface. -func (v *__UpdateWebhookActionInput) GetActionID() string { return v.ActionID } - -// GetActionName returns __UpdateWebhookActionInput.ActionName, and is useful for accessing the field via an interface. -func (v *__UpdateWebhookActionInput) GetActionName() string { return v.ActionName } - -// GetUrl returns __UpdateWebhookActionInput.Url, and is useful for accessing the field via an interface. -func (v *__UpdateWebhookActionInput) GetUrl() string { return v.Url } - -// GetMethod returns __UpdateWebhookActionInput.Method, and is useful for accessing the field via an interface. -func (v *__UpdateWebhookActionInput) GetMethod() string { return v.Method } - -// GetHeaders returns __UpdateWebhookActionInput.Headers, and is useful for accessing the field via an interface. -func (v *__UpdateWebhookActionInput) GetHeaders() []HttpHeaderEntryInput { return v.Headers } - -// GetBodyTemplate returns __UpdateWebhookActionInput.BodyTemplate, and is useful for accessing the field via an interface. -func (v *__UpdateWebhookActionInput) GetBodyTemplate() string { return v.BodyTemplate } - -// GetIgnoreSSL returns __UpdateWebhookActionInput.IgnoreSSL, and is useful for accessing the field via an interface. -func (v *__UpdateWebhookActionInput) GetIgnoreSSL() bool { return v.IgnoreSSL } - -// GetUseProxy returns __UpdateWebhookActionInput.UseProxy, and is useful for accessing the field via an interface. -func (v *__UpdateWebhookActionInput) GetUseProxy() bool { return v.UseProxy } - -// The query or mutation executed by AddIngestToken. -const AddIngestToken_Operation = ` -mutation AddIngestToken ($RepositoryName: String!, $Name: String!, $ParserName: String) { - addIngestTokenV3(input: {repositoryName:$RepositoryName,name:$Name,parser:$ParserName}) { - ... IngestTokenDetails - } -} -fragment IngestTokenDetails on IngestToken { - name - token - parser { - name - } -} -` - -func AddIngestToken( - ctx_ context.Context, - client_ graphql.Client, - RepositoryName string, - Name string, - ParserName *string, -) (*AddIngestTokenResponse, error) { - req_ := &graphql.Request{ - OpName: "AddIngestToken", - Query: AddIngestToken_Operation, - Variables: &__AddIngestTokenInput{ - RepositoryName: RepositoryName, - Name: Name, - ParserName: ParserName, - }, - } - var err_ error - - var data_ AddIngestTokenResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by AddUser. -const AddUser_Operation = ` -mutation AddUser ($Username: String!, $Company: String, $IsRoot: Boolean, $FullName: String, $Picture: String, $Email: String, $CountryCode: String) { - addUserV2(input: {username:$Username,company:$Company,isRoot:$IsRoot,fullName:$FullName,picture:$Picture,email:$Email,countryCode:$CountryCode}) { - __typename - ... on User { - ... UserDetails - } - } -} -fragment UserDetails on User { - id - username - fullName - email - company - countryCode - picture - isRoot - createdAt -} -` - -func AddUser( - ctx_ context.Context, - client_ graphql.Client, - Username string, - Company *string, - IsRoot *bool, - FullName *string, - Picture *string, - Email *string, - CountryCode *string, -) (*AddUserResponse, error) { - req_ := &graphql.Request{ - OpName: "AddUser", - Query: AddUser_Operation, - Variables: &__AddUserInput{ - Username: Username, - Company: Company, - IsRoot: IsRoot, - FullName: FullName, - Picture: Picture, - Email: Email, - CountryCode: CountryCode, - }, - } - var err_ error - - var data_ AddUserResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by AddUserToGroup. -const AddUserToGroup_Operation = ` -mutation AddUserToGroup ($GroupID: String!, $UserID: String!) { - addUsersToGroup(input: {groupId:$GroupID,users:[$UserID]}) { - __typename - } -} -` - -func AddUserToGroup( - ctx_ context.Context, - client_ graphql.Client, - GroupID string, - UserID string, -) (*AddUserToGroupResponse, error) { - req_ := &graphql.Request{ - OpName: "AddUserToGroup", - Query: AddUserToGroup_Operation, - Variables: &__AddUserToGroupInput{ - GroupID: GroupID, - UserID: UserID, - }, - } - var err_ error - - var data_ AddUserToGroupResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by AssignParserToIngestToken. -const AssignParserToIngestToken_Operation = ` -mutation AssignParserToIngestToken ($RepositoryName: String!, $IngestTokenName: String!, $ParserName: String!) { - assignParserToIngestTokenV2(input: {repositoryName:$RepositoryName,parser:$ParserName,tokenName:$IngestTokenName}) { - __typename - } -} -` - -func AssignParserToIngestToken( - ctx_ context.Context, - client_ graphql.Client, - RepositoryName string, - IngestTokenName string, - ParserName string, -) (*AssignParserToIngestTokenResponse, error) { - req_ := &graphql.Request{ - OpName: "AssignParserToIngestToken", - Query: AssignParserToIngestToken_Operation, - Variables: &__AssignParserToIngestTokenInput{ - RepositoryName: RepositoryName, - IngestTokenName: IngestTokenName, - ParserName: ParserName, - }, - } - var err_ error - - var data_ AssignParserToIngestTokenResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by CreateAggregateAlert. -const CreateAggregateAlert_Operation = ` -mutation CreateAggregateAlert ($SearchDomainName: RepoOrViewName!, $Name: String!, $Description: String, $QueryString: String!, $SearchIntervalSeconds: Long!, $ActionIdsOrNames: [String!]!, $Labels: [String!]!, $Enabled: Boolean!, $RunAsUserID: String, $ThrottleField: String, $ThrottleTimeSeconds: Long!, $TriggerMode: TriggerMode!, $QueryTimestampMode: QueryTimestampType!, $QueryOwnershipType: QueryOwnershipType!) { - createAggregateAlert(input: {viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,searchIntervalSeconds:$SearchIntervalSeconds,actionIdsOrNames:$ActionIdsOrNames,labels:$Labels,enabled:$Enabled,runAsUserId:$RunAsUserID,throttleField:$ThrottleField,throttleTimeSeconds:$ThrottleTimeSeconds,triggerMode:$TriggerMode,queryTimestampType:$QueryTimestampMode,queryOwnershipType:$QueryOwnershipType}) { - ... AggregateAlertDetails - } -} -fragment AggregateAlertDetails on AggregateAlert { - id - name - description - queryString - searchIntervalSeconds - throttleTimeSeconds - throttleField - actions { - __typename - name - } - labels - enabled - triggerMode - queryTimestampType - queryOwnership { - __typename - ... QueryOwnership - } -} -fragment QueryOwnership on QueryOwnership { - id -} -` - -func CreateAggregateAlert( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - Name string, - Description *string, - QueryString string, - SearchIntervalSeconds int64, - ActionIdsOrNames []string, - Labels []string, - Enabled bool, - RunAsUserID *string, - ThrottleField *string, - ThrottleTimeSeconds int64, - TriggerMode TriggerMode, - QueryTimestampMode QueryTimestampType, - QueryOwnershipType QueryOwnershipType, -) (*CreateAggregateAlertResponse, error) { - req_ := &graphql.Request{ - OpName: "CreateAggregateAlert", - Query: CreateAggregateAlert_Operation, - Variables: &__CreateAggregateAlertInput{ - SearchDomainName: SearchDomainName, - Name: Name, - Description: Description, - QueryString: QueryString, - SearchIntervalSeconds: SearchIntervalSeconds, - ActionIdsOrNames: ActionIdsOrNames, - Labels: Labels, - Enabled: Enabled, - RunAsUserID: RunAsUserID, - ThrottleField: ThrottleField, - ThrottleTimeSeconds: ThrottleTimeSeconds, - TriggerMode: TriggerMode, - QueryTimestampMode: QueryTimestampMode, - QueryOwnershipType: QueryOwnershipType, - }, - } - var err_ error - - var data_ CreateAggregateAlertResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by CreateAlert. -const CreateAlert_Operation = ` -mutation CreateAlert ($SearchDomainName: String!, $Name: String!, $Description: String, $QueryString: String!, $QueryStart: String!, $ThrottleTimeMillis: Long!, $Enabled: Boolean, $Actions: [String!]!, $Labels: [String!], $RunAsUserID: String, $QueryOwnershipType: QueryOwnershipType, $ThrottleField: String) { - createAlert(input: {viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,queryStart:$QueryStart,throttleTimeMillis:$ThrottleTimeMillis,enabled:$Enabled,actions:$Actions,labels:$Labels,runAsUserId:$RunAsUserID,queryOwnershipType:$QueryOwnershipType,throttleField:$ThrottleField}) { - ... AlertDetails - } -} -fragment AlertDetails on Alert { - id - name - queryString - queryStart - throttleField - timeOfLastTrigger - isStarred - description - throttleTimeMillis - enabled - actions - labels - lastError - queryOwnership { - __typename - ... QueryOwnership - } -} -fragment QueryOwnership on QueryOwnership { - id -} -` - -func CreateAlert( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - Name string, - Description *string, - QueryString string, - QueryStart string, - ThrottleTimeMillis int64, - Enabled *bool, - Actions []string, - Labels []string, - RunAsUserID *string, - QueryOwnershipType *QueryOwnershipType, - ThrottleField *string, -) (*CreateAlertResponse, error) { - req_ := &graphql.Request{ - OpName: "CreateAlert", - Query: CreateAlert_Operation, - Variables: &__CreateAlertInput{ - SearchDomainName: SearchDomainName, - Name: Name, - Description: Description, - QueryString: QueryString, - QueryStart: QueryStart, - ThrottleTimeMillis: ThrottleTimeMillis, - Enabled: Enabled, - Actions: Actions, - Labels: Labels, - RunAsUserID: RunAsUserID, - QueryOwnershipType: QueryOwnershipType, - ThrottleField: ThrottleField, - }, - } - var err_ error - - var data_ CreateAlertResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by CreateEmailAction. -const CreateEmailAction_Operation = ` -mutation CreateEmailAction ($SearchDomainName: String!, $ActionName: String!, $Recipients: [String!]!, $SubjectTemplate: String, $BodyTemplate: String, $UseProxy: Boolean!) { - createEmailAction(input: {viewName:$SearchDomainName,name:$ActionName,recipients:$Recipients,subjectTemplate:$SubjectTemplate,bodyTemplate:$BodyTemplate,useProxy:$UseProxy}) { - id - name - recipients - subjectTemplate - bodyTemplate - useProxy - } -} -` - -func CreateEmailAction( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - ActionName string, - Recipients []string, - SubjectTemplate *string, - BodyTemplate *string, - UseProxy bool, -) (*CreateEmailActionResponse, error) { - req_ := &graphql.Request{ - OpName: "CreateEmailAction", - Query: CreateEmailAction_Operation, - Variables: &__CreateEmailActionInput{ - SearchDomainName: SearchDomainName, - ActionName: ActionName, - Recipients: Recipients, - SubjectTemplate: SubjectTemplate, - BodyTemplate: BodyTemplate, - UseProxy: UseProxy, - }, - } - var err_ error - - var data_ CreateEmailActionResponse - resp_ := &graphql.Response{Data: &data_} +// GetBucketName returns __UpdateS3ArchivingConfigurationInput.BucketName, and is useful for accessing the field via an interface. +func (v *__UpdateS3ArchivingConfigurationInput) GetBucketName() string { return v.BucketName } - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) +// GetBucketRegion returns __UpdateS3ArchivingConfigurationInput.BucketRegion, and is useful for accessing the field via an interface. +func (v *__UpdateS3ArchivingConfigurationInput) GetBucketRegion() string { return v.BucketRegion } - return &data_, err_ -} +// GetFormat returns __UpdateS3ArchivingConfigurationInput.Format, and is useful for accessing the field via an interface. +func (v *__UpdateS3ArchivingConfigurationInput) GetFormat() S3ArchivingFormat { return v.Format } -// The query or mutation executed by CreateFilterAlert. -const CreateFilterAlert_Operation = ` -mutation CreateFilterAlert ($SearchDomainName: RepoOrViewName!, $Name: String!, $Description: String, $QueryString: String!, $ActionIdsOrNames: [String!]!, $Labels: [String!]!, $Enabled: Boolean!, $RunAsUserID: String, $ThrottleField: String, $ThrottleTimeSeconds: Long!, $QueryOwnershipType: QueryOwnershipType!) { - createFilterAlert(input: {viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,actionIdsOrNames:$ActionIdsOrNames,labels:$Labels,enabled:$Enabled,runAsUserId:$RunAsUserID,throttleField:$ThrottleField,throttleTimeSeconds:$ThrottleTimeSeconds,queryOwnershipType:$QueryOwnershipType}) { - ... FilterAlertDetails - } -} -fragment FilterAlertDetails on FilterAlert { - id - name - description - queryString - throttleTimeSeconds - throttleField - actions { - __typename - name - } - labels - enabled - queryOwnership { - __typename - ... QueryOwnership - } -} -fragment QueryOwnership on QueryOwnership { - id +// __UpdateStorageBasedRetentionInput is used internally by genqlient +type __UpdateStorageBasedRetentionInput struct { + RepositoryName string `json:"RepositoryName"` + StorageInGB *float64 `json:"StorageInGB"` } -` - -func CreateFilterAlert( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - Name string, - Description *string, - QueryString string, - ActionIdsOrNames []string, - Labels []string, - Enabled bool, - RunAsUserID *string, - ThrottleField *string, - ThrottleTimeSeconds int64, - QueryOwnershipType QueryOwnershipType, -) (*CreateFilterAlertResponse, error) { - req_ := &graphql.Request{ - OpName: "CreateFilterAlert", - Query: CreateFilterAlert_Operation, - Variables: &__CreateFilterAlertInput{ - SearchDomainName: SearchDomainName, - Name: Name, - Description: Description, - QueryString: QueryString, - ActionIdsOrNames: ActionIdsOrNames, - Labels: Labels, - Enabled: Enabled, - RunAsUserID: RunAsUserID, - ThrottleField: ThrottleField, - ThrottleTimeSeconds: ThrottleTimeSeconds, - QueryOwnershipType: QueryOwnershipType, - }, - } - var err_ error - - var data_ CreateFilterAlertResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - return &data_, err_ -} +// GetRepositoryName returns __UpdateStorageBasedRetentionInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__UpdateStorageBasedRetentionInput) GetRepositoryName() string { return v.RepositoryName } -// The query or mutation executed by CreateHumioRepoAction. -const CreateHumioRepoAction_Operation = ` -mutation CreateHumioRepoAction ($SearchDomainName: String!, $ActionName: String!, $IngestToken: String!) { - createHumioRepoAction(input: {viewName:$SearchDomainName,name:$ActionName,ingestToken:$IngestToken}) { - id - name - ingestToken - } -} -` +// GetStorageInGB returns __UpdateStorageBasedRetentionInput.StorageInGB, and is useful for accessing the field via an interface. +func (v *__UpdateStorageBasedRetentionInput) GetStorageInGB() *float64 { return v.StorageInGB } -func CreateHumioRepoAction( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - ActionName string, - IngestToken string, -) (*CreateHumioRepoActionResponse, error) { - req_ := &graphql.Request{ - OpName: "CreateHumioRepoAction", - Query: CreateHumioRepoAction_Operation, - Variables: &__CreateHumioRepoActionInput{ - SearchDomainName: SearchDomainName, - ActionName: ActionName, - IngestToken: IngestToken, - }, - } - var err_ error +// __UpdateTimeBasedRetentionInput is used internally by genqlient +type __UpdateTimeBasedRetentionInput struct { + RepositoryName string `json:"RepositoryName"` + RetentionInDays *float64 `json:"RetentionInDays"` +} - var data_ CreateHumioRepoActionResponse - resp_ := &graphql.Response{Data: &data_} +// GetRepositoryName returns __UpdateTimeBasedRetentionInput.RepositoryName, and is useful for accessing the field via an interface. +func (v *__UpdateTimeBasedRetentionInput) GetRepositoryName() string { return v.RepositoryName } - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) +// GetRetentionInDays returns __UpdateTimeBasedRetentionInput.RetentionInDays, and is useful for accessing the field via an interface. +func (v *__UpdateTimeBasedRetentionInput) GetRetentionInDays() *float64 { return v.RetentionInDays } - return &data_, err_ +// __UpdateUserInput is used internally by genqlient +type __UpdateUserInput struct { + Username string `json:"Username"` + Company *string `json:"Company"` + IsRoot *bool `json:"IsRoot"` + FullName *string `json:"FullName"` + Picture *string `json:"Picture"` + Email *string `json:"Email"` + CountryCode *string `json:"CountryCode"` } -// The query or mutation executed by CreateOpsGenieAction. -const CreateOpsGenieAction_Operation = ` -mutation CreateOpsGenieAction ($SearchDomainName: String!, $ActionName: String!, $ApiUrl: String!, $GenieKey: String!, $UseProxy: Boolean!) { - createOpsGenieAction(input: {viewName:$SearchDomainName,name:$ActionName,apiUrl:$ApiUrl,genieKey:$GenieKey,useProxy:$UseProxy}) { - id - name - apiUrl - genieKey - useProxy - } -} -` +// GetUsername returns __UpdateUserInput.Username, and is useful for accessing the field via an interface. +func (v *__UpdateUserInput) GetUsername() string { return v.Username } -func CreateOpsGenieAction( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - ActionName string, - ApiUrl string, - GenieKey string, - UseProxy bool, -) (*CreateOpsGenieActionResponse, error) { - req_ := &graphql.Request{ - OpName: "CreateOpsGenieAction", - Query: CreateOpsGenieAction_Operation, - Variables: &__CreateOpsGenieActionInput{ - SearchDomainName: SearchDomainName, - ActionName: ActionName, - ApiUrl: ApiUrl, - GenieKey: GenieKey, - UseProxy: UseProxy, - }, - } - var err_ error +// GetCompany returns __UpdateUserInput.Company, and is useful for accessing the field via an interface. +func (v *__UpdateUserInput) GetCompany() *string { return v.Company } - var data_ CreateOpsGenieActionResponse - resp_ := &graphql.Response{Data: &data_} +// GetIsRoot returns __UpdateUserInput.IsRoot, and is useful for accessing the field via an interface. +func (v *__UpdateUserInput) GetIsRoot() *bool { return v.IsRoot } - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) +// GetFullName returns __UpdateUserInput.FullName, and is useful for accessing the field via an interface. +func (v *__UpdateUserInput) GetFullName() *string { return v.FullName } - return &data_, err_ +// GetPicture returns __UpdateUserInput.Picture, and is useful for accessing the field via an interface. +func (v *__UpdateUserInput) GetPicture() *string { return v.Picture } + +// GetEmail returns __UpdateUserInput.Email, and is useful for accessing the field via an interface. +func (v *__UpdateUserInput) GetEmail() *string { return v.Email } + +// GetCountryCode returns __UpdateUserInput.CountryCode, and is useful for accessing the field via an interface. +func (v *__UpdateUserInput) GetCountryCode() *string { return v.CountryCode } + +// __UpdateViewConnectionsInput is used internally by genqlient +type __UpdateViewConnectionsInput struct { + ViewName string `json:"ViewName"` + Connections []ViewConnectionInput `json:"Connections"` } -// The query or mutation executed by CreatePagerDutyAction. -const CreatePagerDutyAction_Operation = ` -mutation CreatePagerDutyAction ($SearchDomainName: String!, $ActionName: String!, $Severity: String!, $RoutingKey: String!, $UseProxy: Boolean!) { - createPagerDutyAction(input: {viewName:$SearchDomainName,name:$ActionName,severity:$Severity,routingKey:$RoutingKey,useProxy:$UseProxy}) { - id +// GetViewName returns __UpdateViewConnectionsInput.ViewName, and is useful for accessing the field via an interface. +func (v *__UpdateViewConnectionsInput) GetViewName() string { return v.ViewName } + +// GetConnections returns __UpdateViewConnectionsInput.Connections, and is useful for accessing the field via an interface. +func (v *__UpdateViewConnectionsInput) GetConnections() []ViewConnectionInput { return v.Connections } + +// The query or mutation executed by AddIngestToken. +const AddIngestToken_Operation = ` +mutation AddIngestToken ($RepositoryName: String!, $Name: String!, $ParserName: String) { + addIngestTokenV3(input: {repositoryName:$RepositoryName,name:$Name,parser:$ParserName}) { + ... IngestTokenDetails + } +} +fragment IngestTokenDetails on IngestToken { + name + token + parser { name - severity - routingKey - useProxy } } ` -func CreatePagerDutyAction( +func AddIngestToken( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - ActionName string, - Severity string, - RoutingKey string, - UseProxy bool, -) (*CreatePagerDutyActionResponse, error) { + RepositoryName string, + Name string, + ParserName *string, +) (*AddIngestTokenResponse, error) { req_ := &graphql.Request{ - OpName: "CreatePagerDutyAction", - Query: CreatePagerDutyAction_Operation, - Variables: &__CreatePagerDutyActionInput{ - SearchDomainName: SearchDomainName, - ActionName: ActionName, - Severity: Severity, - RoutingKey: RoutingKey, - UseProxy: UseProxy, + OpName: "AddIngestToken", + Query: AddIngestToken_Operation, + Variables: &__AddIngestTokenInput{ + RepositoryName: RepositoryName, + Name: Name, + ParserName: ParserName, }, } var err_ error - var data_ CreatePagerDutyActionResponse + var data_ AddIngestTokenResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -17740,67 +14845,56 @@ func CreatePagerDutyAction( return &data_, err_ } -// The query or mutation executed by CreateParser. -const CreateParser_Operation = ` -mutation CreateParser ($RepositoryName: RepoOrViewName!, $Name: String!, $Script: String!, $TestCases: [ParserTestCaseInput!]!, $FieldsToTag: [String!]!, $FieldsToBeRemovedBeforeParsing: [String!]!, $AllowOverridingExistingParser: Boolean!) { - createParserV2(input: {name:$Name,script:$Script,testCases:$TestCases,repositoryName:$RepositoryName,fieldsToTag:$FieldsToTag,fieldsToBeRemovedBeforeParsing:$FieldsToBeRemovedBeforeParsing,allowOverwritingExistingParser:$AllowOverridingExistingParser}) { - ... ParserDetails +// The query or mutation executed by AddUser. +const AddUser_Operation = ` +mutation AddUser ($Username: String!, $Company: String, $IsRoot: Boolean, $FullName: String, $Picture: String, $Email: String, $CountryCode: String) { + addUserV2(input: {username:$Username,company:$Company,isRoot:$IsRoot,fullName:$FullName,picture:$Picture,email:$Email,countryCode:$CountryCode}) { + __typename + ... on User { + ... UserDetails + } } } -fragment ParserDetails on Parser { +fragment UserDetails on User { id - name - displayName - description - isBuiltIn - script - fieldsToTag - fieldsToBeRemovedBeforeParsing - testCases { - event { - rawString - } - outputAssertions { - assertions { - fieldsHaveValues { - fieldName - expectedValue - } - fieldsNotPresent - } - outputEventIndex - } - } + username + fullName + email + company + countryCode + picture + isRoot + createdAt } ` -func CreateParser( +func AddUser( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, - Name string, - Script string, - TestCases []ParserTestCaseInput, - FieldsToTag []string, - FieldsToBeRemovedBeforeParsing []string, - AllowOverridingExistingParser bool, -) (*CreateParserResponse, error) { + Username string, + Company *string, + IsRoot *bool, + FullName *string, + Picture *string, + Email *string, + CountryCode *string, +) (*AddUserResponse, error) { req_ := &graphql.Request{ - OpName: "CreateParser", - Query: CreateParser_Operation, - Variables: &__CreateParserInput{ - RepositoryName: RepositoryName, - Name: Name, - Script: Script, - TestCases: TestCases, - FieldsToTag: FieldsToTag, - FieldsToBeRemovedBeforeParsing: FieldsToBeRemovedBeforeParsing, - AllowOverridingExistingParser: AllowOverridingExistingParser, + OpName: "AddUser", + Query: AddUser_Operation, + Variables: &__AddUserInput{ + Username: Username, + Company: Company, + IsRoot: IsRoot, + FullName: FullName, + Picture: Picture, + Email: Email, + CountryCode: CountryCode, }, } var err_ error - var data_ CreateParserResponse + var data_ AddUserResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -17812,48 +14906,32 @@ func CreateParser( return &data_, err_ } -// The query or mutation executed by CreateRepository. -const CreateRepository_Operation = ` -mutation CreateRepository ($RepositoryName: String!) { - createRepository(name: $RepositoryName) { - repository { - ... RepositoryDetails - } - } -} -fragment RepositoryDetails on Repository { - id - name - description - timeBasedRetention - ingestSizeBasedRetention - storageSizeBasedRetention - compressedByteSize - automaticSearch - s3ArchivingConfiguration { - bucket - region - disabled - format +// The query or mutation executed by AddUserToGroup. +const AddUserToGroup_Operation = ` +mutation AddUserToGroup ($GroupID: String!, $UserID: String!) { + addUsersToGroup(input: {groupId:$GroupID,users:[$UserID]}) { + __typename } } ` -func CreateRepository( +func AddUserToGroup( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, -) (*CreateRepositoryResponse, error) { + GroupID string, + UserID string, +) (*AddUserToGroupResponse, error) { req_ := &graphql.Request{ - OpName: "CreateRepository", - Query: CreateRepository_Operation, - Variables: &__CreateRepositoryInput{ - RepositoryName: RepositoryName, + OpName: "AddUserToGroup", + Query: AddUserToGroup_Operation, + Variables: &__AddUserToGroupInput{ + GroupID: GroupID, + UserID: UserID, }, } var err_ error - var data_ CreateRepositoryResponse + var data_ AddUserToGroupResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -17865,45 +14943,34 @@ func CreateRepository( return &data_, err_ } -// The query or mutation executed by CreateRole. -const CreateRole_Operation = ` -mutation CreateRole ($RoleName: String!, $ViewPermissions: [Permission!]!, $OrganizationPermissions: [OrganizationPermission!], $SystemPermissions: [SystemPermission!]) { - createRole(input: {displayName:$RoleName,viewPermissions:$ViewPermissions,organizationPermissions:$OrganizationPermissions,systemPermissions:$SystemPermissions}) { - role { - ... RoleDetails - } +// The query or mutation executed by AssignParserToIngestToken. +const AssignParserToIngestToken_Operation = ` +mutation AssignParserToIngestToken ($RepositoryName: String!, $IngestTokenName: String!, $ParserName: String!) { + assignParserToIngestTokenV2(input: {repositoryName:$RepositoryName,parser:$ParserName,tokenName:$IngestTokenName}) { + __typename } } -fragment RoleDetails on Role { - id - displayName - viewPermissions - organizationPermissions - systemPermissions -} ` -func CreateRole( +func AssignParserToIngestToken( ctx_ context.Context, client_ graphql.Client, - RoleName string, - ViewPermissions []Permission, - OrganizationPermissions []OrganizationPermission, - SystemPermissions []SystemPermission, -) (*CreateRoleResponse, error) { + RepositoryName string, + IngestTokenName string, + ParserName string, +) (*AssignParserToIngestTokenResponse, error) { req_ := &graphql.Request{ - OpName: "CreateRole", - Query: CreateRole_Operation, - Variables: &__CreateRoleInput{ - RoleName: RoleName, - ViewPermissions: ViewPermissions, - OrganizationPermissions: OrganizationPermissions, - SystemPermissions: SystemPermissions, + OpName: "AssignParserToIngestToken", + Query: AssignParserToIngestToken_Operation, + Variables: &__AssignParserToIngestTokenInput{ + RepositoryName: RepositoryName, + IngestTokenName: IngestTokenName, + ParserName: ParserName, }, } var err_ error - var data_ CreateRoleResponse + var data_ AssignParserToIngestTokenResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -17915,29 +14982,29 @@ func CreateRole( return &data_, err_ } -// The query or mutation executed by CreateScheduledSearch. -const CreateScheduledSearch_Operation = ` -mutation CreateScheduledSearch ($SearchDomainName: String!, $Name: String!, $Description: String, $QueryString: String!, $QueryStart: String!, $QueryEnd: String!, $Schedule: String!, $TimeZone: String!, $BackfillLimit: Int!, $Enabled: Boolean!, $ActionIdsOrNames: [String!]!, $RunAsUserID: String, $Labels: [String!]!, $QueryOwnershipType: QueryOwnershipType) { - createScheduledSearch(input: {viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,queryStart:$QueryStart,queryEnd:$QueryEnd,schedule:$Schedule,timeZone:$TimeZone,backfillLimit:$BackfillLimit,enabled:$Enabled,actions:$ActionIdsOrNames,runAsUserId:$RunAsUserID,labels:$Labels,queryOwnershipType:$QueryOwnershipType}) { - ... ScheduledSearchDetails +// The query or mutation executed by CreateAggregateAlert. +const CreateAggregateAlert_Operation = ` +mutation CreateAggregateAlert ($SearchDomainName: RepoOrViewName!, $Name: String!, $Description: String, $QueryString: String!, $SearchIntervalSeconds: Long!, $ActionIdsOrNames: [String!]!, $Labels: [String!]!, $Enabled: Boolean!, $RunAsUserID: String, $ThrottleField: String, $ThrottleTimeSeconds: Long!, $TriggerMode: TriggerMode!, $QueryTimestampMode: QueryTimestampType!, $QueryOwnershipType: QueryOwnershipType!) { + createAggregateAlert(input: {viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,searchIntervalSeconds:$SearchIntervalSeconds,actionIdsOrNames:$ActionIdsOrNames,labels:$Labels,enabled:$Enabled,runAsUserId:$RunAsUserID,throttleField:$ThrottleField,throttleTimeSeconds:$ThrottleTimeSeconds,triggerMode:$TriggerMode,queryTimestampType:$QueryTimestampMode,queryOwnershipType:$QueryOwnershipType}) { + ... AggregateAlertDetails } } -fragment ScheduledSearchDetails on ScheduledSearch { +fragment AggregateAlertDetails on AggregateAlert { id name description queryString - start - end - timeZone - schedule - backfillLimit - enabled - actionsV2 { + searchIntervalSeconds + throttleTimeSeconds + throttleField + actions { __typename name } labels + enabled + triggerMode + queryTimestampType queryOwnership { __typename ... QueryOwnership @@ -17948,97 +15015,47 @@ fragment QueryOwnership on QueryOwnership { } ` -func CreateScheduledSearch( +func CreateAggregateAlert( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, Name string, Description *string, QueryString string, - QueryStart string, - QueryEnd string, - Schedule string, - TimeZone string, - BackfillLimit int, - Enabled bool, + SearchIntervalSeconds int64, ActionIdsOrNames []string, - RunAsUserID *string, Labels []string, - QueryOwnershipType *QueryOwnershipType, -) (*CreateScheduledSearchResponse, error) { - req_ := &graphql.Request{ - OpName: "CreateScheduledSearch", - Query: CreateScheduledSearch_Operation, - Variables: &__CreateScheduledSearchInput{ - SearchDomainName: SearchDomainName, - Name: Name, - Description: Description, - QueryString: QueryString, - QueryStart: QueryStart, - QueryEnd: QueryEnd, - Schedule: Schedule, - TimeZone: TimeZone, - BackfillLimit: BackfillLimit, - Enabled: Enabled, - ActionIdsOrNames: ActionIdsOrNames, - RunAsUserID: RunAsUserID, - Labels: Labels, - QueryOwnershipType: QueryOwnershipType, - }, - } - var err_ error - - var data_ CreateScheduledSearchResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by CreateSlackAction. -const CreateSlackAction_Operation = ` -mutation CreateSlackAction ($SearchDomainName: String!, $ActionName: String!, $Fields: [SlackFieldEntryInput!]!, $Url: String!, $UseProxy: Boolean!) { - createSlackAction(input: {viewName:$SearchDomainName,name:$ActionName,fields:$Fields,url:$Url,useProxy:$UseProxy}) { - id - name - fields { - value - fieldName - } - url - useProxy - } -} -` - -func CreateSlackAction( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - ActionName string, - Fields []SlackFieldEntryInput, - Url string, - UseProxy bool, -) (*CreateSlackActionResponse, error) { + Enabled bool, + RunAsUserID *string, + ThrottleField *string, + ThrottleTimeSeconds int64, + TriggerMode TriggerMode, + QueryTimestampMode QueryTimestampType, + QueryOwnershipType QueryOwnershipType, +) (*CreateAggregateAlertResponse, error) { req_ := &graphql.Request{ - OpName: "CreateSlackAction", - Query: CreateSlackAction_Operation, - Variables: &__CreateSlackActionInput{ - SearchDomainName: SearchDomainName, - ActionName: ActionName, - Fields: Fields, - Url: Url, - UseProxy: UseProxy, + OpName: "CreateAggregateAlert", + Query: CreateAggregateAlert_Operation, + Variables: &__CreateAggregateAlertInput{ + SearchDomainName: SearchDomainName, + Name: Name, + Description: Description, + QueryString: QueryString, + SearchIntervalSeconds: SearchIntervalSeconds, + ActionIdsOrNames: ActionIdsOrNames, + Labels: Labels, + Enabled: Enabled, + RunAsUserID: RunAsUserID, + ThrottleField: ThrottleField, + ThrottleTimeSeconds: ThrottleTimeSeconds, + TriggerMode: TriggerMode, + QueryTimestampMode: QueryTimestampMode, + QueryOwnershipType: QueryOwnershipType, }, } var err_ error - var data_ CreateSlackActionResponse + var data_ CreateAggregateAlertResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18050,89 +15067,74 @@ func CreateSlackAction( return &data_, err_ } -// The query or mutation executed by CreateSlackPostMessageAction. -const CreateSlackPostMessageAction_Operation = ` -mutation CreateSlackPostMessageAction ($SearchDomainName: String!, $ActionName: String!, $ApiToken: String!, $Channels: [String!]!, $Fields: [SlackFieldEntryInput!]!, $UseProxy: Boolean!) { - createSlackPostMessageAction(input: {viewName:$SearchDomainName,name:$ActionName,apiToken:$ApiToken,channels:$Channels,fields:$Fields,useProxy:$UseProxy}) { - id - name - apiToken - channels - fields { - value - fieldName - } - useProxy +// The query or mutation executed by CreateAlert. +const CreateAlert_Operation = ` +mutation CreateAlert ($SearchDomainName: String!, $Name: String!, $Description: String, $QueryString: String!, $QueryStart: String!, $ThrottleTimeMillis: Long!, $Enabled: Boolean, $Actions: [String!]!, $Labels: [String!], $RunAsUserID: String, $QueryOwnershipType: QueryOwnershipType, $ThrottleField: String) { + createAlert(input: {viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,queryStart:$QueryStart,throttleTimeMillis:$ThrottleTimeMillis,enabled:$Enabled,actions:$Actions,labels:$Labels,runAsUserId:$RunAsUserID,queryOwnershipType:$QueryOwnershipType,throttleField:$ThrottleField}) { + ... AlertDetails } } -` - -func CreateSlackPostMessageAction( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - ActionName string, - ApiToken string, - Channels []string, - Fields []SlackFieldEntryInput, - UseProxy bool, -) (*CreateSlackPostMessageActionResponse, error) { - req_ := &graphql.Request{ - OpName: "CreateSlackPostMessageAction", - Query: CreateSlackPostMessageAction_Operation, - Variables: &__CreateSlackPostMessageActionInput{ - SearchDomainName: SearchDomainName, - ActionName: ActionName, - ApiToken: ApiToken, - Channels: Channels, - Fields: Fields, - UseProxy: UseProxy, - }, +fragment AlertDetails on Alert { + id + name + queryString + queryStart + throttleField + timeOfLastTrigger + isStarred + description + throttleTimeMillis + enabled + actions + labels + lastError + queryOwnership { + __typename + ... QueryOwnership } - var err_ error - - var data_ CreateSlackPostMessageActionResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ } - -// The query or mutation executed by CreateUploadFileAction. -const CreateUploadFileAction_Operation = ` -mutation CreateUploadFileAction ($SearchDomainName: String!, $ActionName: String!, $FileName: String!) { - createUploadFileAction(input: {viewName:$SearchDomainName,name:$ActionName,fileName:$FileName}) { - id - name - fileName - } +fragment QueryOwnership on QueryOwnership { + id } ` -func CreateUploadFileAction( +func CreateAlert( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - ActionName string, - FileName string, -) (*CreateUploadFileActionResponse, error) { + Name string, + Description *string, + QueryString string, + QueryStart string, + ThrottleTimeMillis int64, + Enabled *bool, + Actions []string, + Labels []string, + RunAsUserID *string, + QueryOwnershipType *QueryOwnershipType, + ThrottleField *string, +) (*CreateAlertResponse, error) { req_ := &graphql.Request{ - OpName: "CreateUploadFileAction", - Query: CreateUploadFileAction_Operation, - Variables: &__CreateUploadFileActionInput{ - SearchDomainName: SearchDomainName, - ActionName: ActionName, - FileName: FileName, + OpName: "CreateAlert", + Query: CreateAlert_Operation, + Variables: &__CreateAlertInput{ + SearchDomainName: SearchDomainName, + Name: Name, + Description: Description, + QueryString: QueryString, + QueryStart: QueryStart, + ThrottleTimeMillis: ThrottleTimeMillis, + Enabled: Enabled, + Actions: Actions, + Labels: Labels, + RunAsUserID: RunAsUserID, + QueryOwnershipType: QueryOwnershipType, + ThrottleField: ThrottleField, }, } var err_ error - var data_ CreateUploadFileActionResponse + var data_ CreateAlertResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18144,42 +15146,45 @@ func CreateUploadFileAction( return &data_, err_ } -// The query or mutation executed by CreateVictorOpsAction. -const CreateVictorOpsAction_Operation = ` -mutation CreateVictorOpsAction ($SearchDomainName: String!, $ActionName: String!, $MessageType: String!, $NotifyUrl: String!, $UseProxy: Boolean!) { - createVictorOpsAction(input: {viewName:$SearchDomainName,name:$ActionName,messageType:$MessageType,notifyUrl:$NotifyUrl,useProxy:$UseProxy}) { +// The query or mutation executed by CreateEmailAction. +const CreateEmailAction_Operation = ` +mutation CreateEmailAction ($SearchDomainName: String!, $ActionName: String!, $Recipients: [String!]!, $SubjectTemplate: String, $BodyTemplate: String, $UseProxy: Boolean!) { + createEmailAction(input: {viewName:$SearchDomainName,name:$ActionName,recipients:$Recipients,subjectTemplate:$SubjectTemplate,bodyTemplate:$BodyTemplate,useProxy:$UseProxy}) { id name - messageType - notifyUrl + recipients + subjectTemplate + bodyTemplate useProxy } } ` -func CreateVictorOpsAction( +func CreateEmailAction( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, ActionName string, - MessageType string, - NotifyUrl string, + Recipients []string, + SubjectTemplate *string, + BodyTemplate *string, UseProxy bool, -) (*CreateVictorOpsActionResponse, error) { +) (*CreateEmailActionResponse, error) { req_ := &graphql.Request{ - OpName: "CreateVictorOpsAction", - Query: CreateVictorOpsAction_Operation, - Variables: &__CreateVictorOpsActionInput{ + OpName: "CreateEmailAction", + Query: CreateEmailAction_Operation, + Variables: &__CreateEmailActionInput{ SearchDomainName: SearchDomainName, ActionName: ActionName, - MessageType: MessageType, - NotifyUrl: NotifyUrl, + Recipients: Recipients, + SubjectTemplate: SubjectTemplate, + BodyTemplate: BodyTemplate, UseProxy: UseProxy, }, } var err_ error - var data_ CreateVictorOpsActionResponse + var data_ CreateEmailActionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18191,34 +15196,71 @@ func CreateVictorOpsAction( return &data_, err_ } -// The query or mutation executed by CreateView. -const CreateView_Operation = ` -mutation CreateView ($ViewName: String!, $Description: String, $Connections: [ViewConnectionInput!]) { - createView(name: $ViewName, description: $Description, connections: $Connections) { +// The query or mutation executed by CreateFilterAlert. +const CreateFilterAlert_Operation = ` +mutation CreateFilterAlert ($SearchDomainName: RepoOrViewName!, $Name: String!, $Description: String, $QueryString: String!, $ActionIdsOrNames: [String!]!, $Labels: [String!]!, $Enabled: Boolean!, $RunAsUserID: String, $ThrottleField: String, $ThrottleTimeSeconds: Long!, $QueryOwnershipType: QueryOwnershipType!) { + createFilterAlert(input: {viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,actionIdsOrNames:$ActionIdsOrNames,labels:$Labels,enabled:$Enabled,runAsUserId:$RunAsUserID,throttleField:$ThrottleField,throttleTimeSeconds:$ThrottleTimeSeconds,queryOwnershipType:$QueryOwnershipType}) { + ... FilterAlertDetails + } +} +fragment FilterAlertDetails on FilterAlert { + id + name + description + queryString + throttleTimeSeconds + throttleField + actions { + __typename + name + } + labels + enabled + queryOwnership { __typename + ... QueryOwnership } } +fragment QueryOwnership on QueryOwnership { + id +} ` -func CreateView( +func CreateFilterAlert( ctx_ context.Context, client_ graphql.Client, - ViewName string, + SearchDomainName string, + Name string, Description *string, - Connections []ViewConnectionInput, -) (*CreateViewResponse, error) { + QueryString string, + ActionIdsOrNames []string, + Labels []string, + Enabled bool, + RunAsUserID *string, + ThrottleField *string, + ThrottleTimeSeconds int64, + QueryOwnershipType QueryOwnershipType, +) (*CreateFilterAlertResponse, error) { req_ := &graphql.Request{ - OpName: "CreateView", - Query: CreateView_Operation, - Variables: &__CreateViewInput{ - ViewName: ViewName, - Description: Description, - Connections: Connections, + OpName: "CreateFilterAlert", + Query: CreateFilterAlert_Operation, + Variables: &__CreateFilterAlertInput{ + SearchDomainName: SearchDomainName, + Name: Name, + Description: Description, + QueryString: QueryString, + ActionIdsOrNames: ActionIdsOrNames, + Labels: Labels, + Enabled: Enabled, + RunAsUserID: RunAsUserID, + ThrottleField: ThrottleField, + ThrottleTimeSeconds: ThrottleTimeSeconds, + QueryOwnershipType: QueryOwnershipType, }, } var err_ error - var data_ CreateViewResponse + var data_ CreateFilterAlertResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18230,54 +15272,36 @@ func CreateView( return &data_, err_ } -// The query or mutation executed by CreateWebhookAction. -const CreateWebhookAction_Operation = ` -mutation CreateWebhookAction ($SearchDomainName: String!, $ActionName: String!, $Url: String!, $Method: String!, $Headers: [HttpHeaderEntryInput!]!, $BodyTemplate: String!, $IgnoreSSL: Boolean!, $UseProxy: Boolean!) { - createWebhookAction(input: {viewName:$SearchDomainName,name:$ActionName,url:$Url,method:$Method,headers:$Headers,bodyTemplate:$BodyTemplate,ignoreSSL:$IgnoreSSL,useProxy:$UseProxy}) { +// The query or mutation executed by CreateHumioRepoAction. +const CreateHumioRepoAction_Operation = ` +mutation CreateHumioRepoAction ($SearchDomainName: String!, $ActionName: String!, $IngestToken: String!) { + createHumioRepoAction(input: {viewName:$SearchDomainName,name:$ActionName,ingestToken:$IngestToken}) { id name - url - method - headers { - value - header - } - bodyTemplate - ignoreSSL - useProxy + ingestToken } } ` -func CreateWebhookAction( +func CreateHumioRepoAction( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, ActionName string, - Url string, - Method string, - Headers []HttpHeaderEntryInput, - BodyTemplate string, - IgnoreSSL bool, - UseProxy bool, -) (*CreateWebhookActionResponse, error) { + IngestToken string, +) (*CreateHumioRepoActionResponse, error) { req_ := &graphql.Request{ - OpName: "CreateWebhookAction", - Query: CreateWebhookAction_Operation, - Variables: &__CreateWebhookActionInput{ + OpName: "CreateHumioRepoAction", + Query: CreateHumioRepoAction_Operation, + Variables: &__CreateHumioRepoActionInput{ SearchDomainName: SearchDomainName, ActionName: ActionName, - Url: Url, - Method: Method, - Headers: Headers, - BodyTemplate: BodyTemplate, - IgnoreSSL: IgnoreSSL, - UseProxy: UseProxy, + IngestToken: IngestToken, }, } var err_ error - var data_ CreateWebhookActionResponse + var data_ CreateHumioRepoActionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18289,65 +15313,42 @@ func CreateWebhookAction( return &data_, err_ } -// The query or mutation executed by DeleteActionByID. -const DeleteActionByID_Operation = ` -mutation DeleteActionByID ($SearchDomainName: String!, $ActionID: String!) { - deleteAction(input: {viewName:$SearchDomainName,id:$ActionID}) -} -` - -func DeleteActionByID( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - ActionID string, -) (*DeleteActionByIDResponse, error) { - req_ := &graphql.Request{ - OpName: "DeleteActionByID", - Query: DeleteActionByID_Operation, - Variables: &__DeleteActionByIDInput{ - SearchDomainName: SearchDomainName, - ActionID: ActionID, - }, +// The query or mutation executed by CreateOpsGenieAction. +const CreateOpsGenieAction_Operation = ` +mutation CreateOpsGenieAction ($SearchDomainName: String!, $ActionName: String!, $ApiUrl: String!, $GenieKey: String!, $UseProxy: Boolean!) { + createOpsGenieAction(input: {viewName:$SearchDomainName,name:$ActionName,apiUrl:$ApiUrl,genieKey:$GenieKey,useProxy:$UseProxy}) { + id + name + apiUrl + genieKey + useProxy } - var err_ error - - var data_ DeleteActionByIDResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by DeleteAggregateAlert. -const DeleteAggregateAlert_Operation = ` -mutation DeleteAggregateAlert ($SearchDomainName: RepoOrViewName!, $AggregateAlertID: String!) { - deleteAggregateAlert(input: {id:$AggregateAlertID,viewName:$SearchDomainName}) } ` -func DeleteAggregateAlert( +func CreateOpsGenieAction( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - AggregateAlertID string, -) (*DeleteAggregateAlertResponse, error) { + ActionName string, + ApiUrl string, + GenieKey string, + UseProxy bool, +) (*CreateOpsGenieActionResponse, error) { req_ := &graphql.Request{ - OpName: "DeleteAggregateAlert", - Query: DeleteAggregateAlert_Operation, - Variables: &__DeleteAggregateAlertInput{ + OpName: "CreateOpsGenieAction", + Query: CreateOpsGenieAction_Operation, + Variables: &__CreateOpsGenieActionInput{ SearchDomainName: SearchDomainName, - AggregateAlertID: AggregateAlertID, + ActionName: ActionName, + ApiUrl: ApiUrl, + GenieKey: GenieKey, + UseProxy: UseProxy, }, } var err_ error - var data_ DeleteAggregateAlertResponse + var data_ CreateOpsGenieActionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18359,30 +15360,42 @@ func DeleteAggregateAlert( return &data_, err_ } -// The query or mutation executed by DeleteAlert. -const DeleteAlert_Operation = ` -mutation DeleteAlert ($SearchDomainName: String!, $AlertID: String!) { - deleteAlert(input: {viewName:$SearchDomainName,id:$AlertID}) +// The query or mutation executed by CreatePagerDutyAction. +const CreatePagerDutyAction_Operation = ` +mutation CreatePagerDutyAction ($SearchDomainName: String!, $ActionName: String!, $Severity: String!, $RoutingKey: String!, $UseProxy: Boolean!) { + createPagerDutyAction(input: {viewName:$SearchDomainName,name:$ActionName,severity:$Severity,routingKey:$RoutingKey,useProxy:$UseProxy}) { + id + name + severity + routingKey + useProxy + } } ` -func DeleteAlert( +func CreatePagerDutyAction( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - AlertID string, -) (*DeleteAlertResponse, error) { + ActionName string, + Severity string, + RoutingKey string, + UseProxy bool, +) (*CreatePagerDutyActionResponse, error) { req_ := &graphql.Request{ - OpName: "DeleteAlert", - Query: DeleteAlert_Operation, - Variables: &__DeleteAlertInput{ + OpName: "CreatePagerDutyAction", + Query: CreatePagerDutyAction_Operation, + Variables: &__CreatePagerDutyActionInput{ SearchDomainName: SearchDomainName, - AlertID: AlertID, + ActionName: ActionName, + Severity: Severity, + RoutingKey: RoutingKey, + UseProxy: UseProxy, }, } var err_ error - var data_ DeleteAlertResponse + var data_ CreatePagerDutyActionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18394,30 +15407,67 @@ func DeleteAlert( return &data_, err_ } -// The query or mutation executed by DeleteFilterAlert. -const DeleteFilterAlert_Operation = ` -mutation DeleteFilterAlert ($SearchDomainName: RepoOrViewName!, $FilterAlertID: String!) { - deleteFilterAlert(input: {id:$FilterAlertID,viewName:$SearchDomainName}) +// The query or mutation executed by CreateParser. +const CreateParser_Operation = ` +mutation CreateParser ($RepositoryName: RepoOrViewName!, $Name: String!, $Script: String!, $TestCases: [ParserTestCaseInput!]!, $FieldsToTag: [String!]!, $FieldsToBeRemovedBeforeParsing: [String!]!, $AllowOverridingExistingParser: Boolean!) { + createParserV2(input: {name:$Name,script:$Script,testCases:$TestCases,repositoryName:$RepositoryName,fieldsToTag:$FieldsToTag,fieldsToBeRemovedBeforeParsing:$FieldsToBeRemovedBeforeParsing,allowOverwritingExistingParser:$AllowOverridingExistingParser}) { + ... ParserDetails + } +} +fragment ParserDetails on Parser { + id + name + displayName + description + isBuiltIn + script + fieldsToTag + fieldsToBeRemovedBeforeParsing + testCases { + event { + rawString + } + outputAssertions { + assertions { + fieldsHaveValues { + fieldName + expectedValue + } + fieldsNotPresent + } + outputEventIndex + } + } } ` -func DeleteFilterAlert( +func CreateParser( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - FilterAlertID string, -) (*DeleteFilterAlertResponse, error) { + RepositoryName string, + Name string, + Script string, + TestCases []ParserTestCaseInput, + FieldsToTag []string, + FieldsToBeRemovedBeforeParsing []string, + AllowOverridingExistingParser bool, +) (*CreateParserResponse, error) { req_ := &graphql.Request{ - OpName: "DeleteFilterAlert", - Query: DeleteFilterAlert_Operation, - Variables: &__DeleteFilterAlertInput{ - SearchDomainName: SearchDomainName, - FilterAlertID: FilterAlertID, + OpName: "CreateParser", + Query: CreateParser_Operation, + Variables: &__CreateParserInput{ + RepositoryName: RepositoryName, + Name: Name, + Script: Script, + TestCases: TestCases, + FieldsToTag: FieldsToTag, + FieldsToBeRemovedBeforeParsing: FieldsToBeRemovedBeforeParsing, + AllowOverridingExistingParser: AllowOverridingExistingParser, }, } var err_ error - var data_ DeleteFilterAlertResponse + var data_ CreateParserResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18429,32 +15479,48 @@ func DeleteFilterAlert( return &data_, err_ } -// The query or mutation executed by DeleteParserByID. -const DeleteParserByID_Operation = ` -mutation DeleteParserByID ($RepositoryName: RepoOrViewName!, $ParserID: String!) { - deleteParser(input: {repositoryName:$RepositoryName,id:$ParserID}) { - __typename +// The query or mutation executed by CreateRepository. +const CreateRepository_Operation = ` +mutation CreateRepository ($RepositoryName: String!) { + createRepository(name: $RepositoryName) { + repository { + ... RepositoryDetails + } + } +} +fragment RepositoryDetails on Repository { + id + name + description + timeBasedRetention + ingestSizeBasedRetention + storageSizeBasedRetention + compressedByteSize + automaticSearch + s3ArchivingConfiguration { + bucket + region + disabled + format } } ` -func DeleteParserByID( +func CreateRepository( ctx_ context.Context, client_ graphql.Client, RepositoryName string, - ParserID string, -) (*DeleteParserByIDResponse, error) { +) (*CreateRepositoryResponse, error) { req_ := &graphql.Request{ - OpName: "DeleteParserByID", - Query: DeleteParserByID_Operation, - Variables: &__DeleteParserByIDInput{ + OpName: "CreateRepository", + Query: CreateRepository_Operation, + Variables: &__CreateRepositoryInput{ RepositoryName: RepositoryName, - ParserID: ParserID, }, } var err_ error - var data_ DeleteParserByIDResponse + var data_ CreateRepositoryResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18466,30 +15532,80 @@ func DeleteParserByID( return &data_, err_ } -// The query or mutation executed by DeleteScheduledSearchByID. -const DeleteScheduledSearchByID_Operation = ` -mutation DeleteScheduledSearchByID ($SearchDomainName: String!, $ScheduledSearchID: String!) { - deleteScheduledSearch(input: {viewName:$SearchDomainName,id:$ScheduledSearchID}) +// The query or mutation executed by CreateScheduledSearch. +const CreateScheduledSearch_Operation = ` +mutation CreateScheduledSearch ($SearchDomainName: String!, $Name: String!, $Description: String, $QueryString: String!, $QueryStart: String!, $QueryEnd: String!, $Schedule: String!, $TimeZone: String!, $BackfillLimit: Int!, $Enabled: Boolean!, $ActionIdsOrNames: [String!]!, $RunAsUserID: String, $Labels: [String!]!, $QueryOwnershipType: QueryOwnershipType) { + createScheduledSearch(input: {viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,queryStart:$QueryStart,queryEnd:$QueryEnd,schedule:$Schedule,timeZone:$TimeZone,backfillLimit:$BackfillLimit,enabled:$Enabled,actions:$ActionIdsOrNames,runAsUserId:$RunAsUserID,labels:$Labels,queryOwnershipType:$QueryOwnershipType}) { + ... ScheduledSearchDetails + } +} +fragment ScheduledSearchDetails on ScheduledSearch { + id + name + description + queryString + start + end + timeZone + schedule + backfillLimit + enabled + actionsV2 { + __typename + name + } + labels + queryOwnership { + __typename + ... QueryOwnership + } +} +fragment QueryOwnership on QueryOwnership { + id } ` -func DeleteScheduledSearchByID( +func CreateScheduledSearch( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - ScheduledSearchID string, -) (*DeleteScheduledSearchByIDResponse, error) { + Name string, + Description *string, + QueryString string, + QueryStart string, + QueryEnd string, + Schedule string, + TimeZone string, + BackfillLimit int, + Enabled bool, + ActionIdsOrNames []string, + RunAsUserID *string, + Labels []string, + QueryOwnershipType *QueryOwnershipType, +) (*CreateScheduledSearchResponse, error) { req_ := &graphql.Request{ - OpName: "DeleteScheduledSearchByID", - Query: DeleteScheduledSearchByID_Operation, - Variables: &__DeleteScheduledSearchByIDInput{ - SearchDomainName: SearchDomainName, - ScheduledSearchID: ScheduledSearchID, + OpName: "CreateScheduledSearch", + Query: CreateScheduledSearch_Operation, + Variables: &__CreateScheduledSearchInput{ + SearchDomainName: SearchDomainName, + Name: Name, + Description: Description, + QueryString: QueryString, + QueryStart: QueryStart, + QueryEnd: QueryEnd, + Schedule: Schedule, + TimeZone: TimeZone, + BackfillLimit: BackfillLimit, + Enabled: Enabled, + ActionIdsOrNames: ActionIdsOrNames, + RunAsUserID: RunAsUserID, + Labels: Labels, + QueryOwnershipType: QueryOwnershipType, }, } var err_ error - var data_ DeleteScheduledSearchByIDResponse + var data_ CreateScheduledSearchResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18501,32 +15617,45 @@ func DeleteScheduledSearchByID( return &data_, err_ } -// The query or mutation executed by DeleteSearchDomain. -const DeleteSearchDomain_Operation = ` -mutation DeleteSearchDomain ($SearchDomainName: String!, $DeleteMessage: String!) { - deleteSearchDomain(name: $SearchDomainName, deleteMessage: $DeleteMessage) { - __typename +// The query or mutation executed by CreateSlackAction. +const CreateSlackAction_Operation = ` +mutation CreateSlackAction ($SearchDomainName: String!, $ActionName: String!, $Fields: [SlackFieldEntryInput!]!, $Url: String!, $UseProxy: Boolean!) { + createSlackAction(input: {viewName:$SearchDomainName,name:$ActionName,fields:$Fields,url:$Url,useProxy:$UseProxy}) { + id + name + fields { + value + fieldName + } + url + useProxy } } ` -func DeleteSearchDomain( +func CreateSlackAction( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - DeleteMessage string, -) (*DeleteSearchDomainResponse, error) { + ActionName string, + Fields []SlackFieldEntryInput, + Url string, + UseProxy bool, +) (*CreateSlackActionResponse, error) { req_ := &graphql.Request{ - OpName: "DeleteSearchDomain", - Query: DeleteSearchDomain_Operation, - Variables: &__DeleteSearchDomainInput{ + OpName: "CreateSlackAction", + Query: CreateSlackAction_Operation, + Variables: &__CreateSlackActionInput{ SearchDomainName: SearchDomainName, - DeleteMessage: DeleteMessage, + ActionName: ActionName, + Fields: Fields, + Url: Url, + UseProxy: UseProxy, }, } var err_ error - var data_ DeleteSearchDomainResponse + var data_ CreateSlackActionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18538,30 +15667,48 @@ func DeleteSearchDomain( return &data_, err_ } -// The query or mutation executed by DisableFeatureFlagForOrganization. -const DisableFeatureFlagForOrganization_Operation = ` -mutation DisableFeatureFlagForOrganization ($Flag: FeatureFlag!, $OrganizationID: String!) { - disableFeatureForOrg(feature: $Flag, orgId: $OrganizationID) +// The query or mutation executed by CreateSlackPostMessageAction. +const CreateSlackPostMessageAction_Operation = ` +mutation CreateSlackPostMessageAction ($SearchDomainName: String!, $ActionName: String!, $ApiToken: String!, $Channels: [String!]!, $Fields: [SlackFieldEntryInput!]!, $UseProxy: Boolean!) { + createSlackPostMessageAction(input: {viewName:$SearchDomainName,name:$ActionName,apiToken:$ApiToken,channels:$Channels,fields:$Fields,useProxy:$UseProxy}) { + id + name + apiToken + channels + fields { + value + fieldName + } + useProxy + } } ` -func DisableFeatureFlagForOrganization( +func CreateSlackPostMessageAction( ctx_ context.Context, client_ graphql.Client, - Flag FeatureFlag, - OrganizationID string, -) (*DisableFeatureFlagForOrganizationResponse, error) { + SearchDomainName string, + ActionName string, + ApiToken string, + Channels []string, + Fields []SlackFieldEntryInput, + UseProxy bool, +) (*CreateSlackPostMessageActionResponse, error) { req_ := &graphql.Request{ - OpName: "DisableFeatureFlagForOrganization", - Query: DisableFeatureFlagForOrganization_Operation, - Variables: &__DisableFeatureFlagForOrganizationInput{ - Flag: Flag, - OrganizationID: OrganizationID, + OpName: "CreateSlackPostMessageAction", + Query: CreateSlackPostMessageAction_Operation, + Variables: &__CreateSlackPostMessageActionInput{ + SearchDomainName: SearchDomainName, + ActionName: ActionName, + ApiToken: ApiToken, + Channels: Channels, + Fields: Fields, + UseProxy: UseProxy, }, } var err_ error - var data_ DisableFeatureFlagForOrganizationResponse + var data_ CreateSlackPostMessageActionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18573,30 +15720,36 @@ func DisableFeatureFlagForOrganization( return &data_, err_ } -// The query or mutation executed by DisableFeatureFlagForUser. -const DisableFeatureFlagForUser_Operation = ` -mutation DisableFeatureFlagForUser ($Flag: FeatureFlag!, $UserID: String!) { - disableFeatureForUser(feature: $Flag, userId: $UserID) +// The query or mutation executed by CreateUploadFileAction. +const CreateUploadFileAction_Operation = ` +mutation CreateUploadFileAction ($SearchDomainName: String!, $ActionName: String!, $FileName: String!) { + createUploadFileAction(input: {viewName:$SearchDomainName,name:$ActionName,fileName:$FileName}) { + id + name + fileName + } } ` -func DisableFeatureFlagForUser( +func CreateUploadFileAction( ctx_ context.Context, client_ graphql.Client, - Flag FeatureFlag, - UserID string, -) (*DisableFeatureFlagForUserResponse, error) { + SearchDomainName string, + ActionName string, + FileName string, +) (*CreateUploadFileActionResponse, error) { req_ := &graphql.Request{ - OpName: "DisableFeatureFlagForUser", - Query: DisableFeatureFlagForUser_Operation, - Variables: &__DisableFeatureFlagForUserInput{ - Flag: Flag, - UserID: UserID, + OpName: "CreateUploadFileAction", + Query: CreateUploadFileAction_Operation, + Variables: &__CreateUploadFileActionInput{ + SearchDomainName: SearchDomainName, + ActionName: ActionName, + FileName: FileName, }, } var err_ error - var data_ DisableFeatureFlagForUserResponse + var data_ CreateUploadFileActionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18608,28 +15761,42 @@ func DisableFeatureFlagForUser( return &data_, err_ } -// The query or mutation executed by DisableFeatureFlagGlobally. -const DisableFeatureFlagGlobally_Operation = ` -mutation DisableFeatureFlagGlobally ($Flag: FeatureFlag!) { - disableFeature(feature: $Flag) +// The query or mutation executed by CreateVictorOpsAction. +const CreateVictorOpsAction_Operation = ` +mutation CreateVictorOpsAction ($SearchDomainName: String!, $ActionName: String!, $MessageType: String!, $NotifyUrl: String!, $UseProxy: Boolean!) { + createVictorOpsAction(input: {viewName:$SearchDomainName,name:$ActionName,messageType:$MessageType,notifyUrl:$NotifyUrl,useProxy:$UseProxy}) { + id + name + messageType + notifyUrl + useProxy + } } ` -func DisableFeatureFlagGlobally( +func CreateVictorOpsAction( ctx_ context.Context, client_ graphql.Client, - Flag FeatureFlag, -) (*DisableFeatureFlagGloballyResponse, error) { + SearchDomainName string, + ActionName string, + MessageType string, + NotifyUrl string, + UseProxy bool, +) (*CreateVictorOpsActionResponse, error) { req_ := &graphql.Request{ - OpName: "DisableFeatureFlagGlobally", - Query: DisableFeatureFlagGlobally_Operation, - Variables: &__DisableFeatureFlagGloballyInput{ - Flag: Flag, + OpName: "CreateVictorOpsAction", + Query: CreateVictorOpsAction_Operation, + Variables: &__CreateVictorOpsActionInput{ + SearchDomainName: SearchDomainName, + ActionName: ActionName, + MessageType: MessageType, + NotifyUrl: NotifyUrl, + UseProxy: UseProxy, }, } var err_ error - var data_ DisableFeatureFlagGloballyResponse + var data_ CreateVictorOpsActionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18641,30 +15808,34 @@ func DisableFeatureFlagGlobally( return &data_, err_ } -// The query or mutation executed by DisableS3Archiving. -const DisableS3Archiving_Operation = ` -mutation DisableS3Archiving ($RepositoryName: String!) { - s3DisableArchiving(repositoryName: $RepositoryName) { +// The query or mutation executed by CreateView. +const CreateView_Operation = ` +mutation CreateView ($ViewName: String!, $Description: String, $Connections: [ViewConnectionInput!]) { + createView(name: $ViewName, description: $Description, connections: $Connections) { __typename } } ` -func DisableS3Archiving( +func CreateView( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, -) (*DisableS3ArchivingResponse, error) { + ViewName string, + Description *string, + Connections []ViewConnectionInput, +) (*CreateViewResponse, error) { req_ := &graphql.Request{ - OpName: "DisableS3Archiving", - Query: DisableS3Archiving_Operation, - Variables: &__DisableS3ArchivingInput{ - RepositoryName: RepositoryName, + OpName: "CreateView", + Query: CreateView_Operation, + Variables: &__CreateViewInput{ + ViewName: ViewName, + Description: Description, + Connections: Connections, }, } var err_ error - var data_ DisableS3ArchivingResponse + var data_ CreateViewResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18676,30 +15847,54 @@ func DisableS3Archiving( return &data_, err_ } -// The query or mutation executed by EnableFeatureFlagForOrganization. -const EnableFeatureFlagForOrganization_Operation = ` -mutation EnableFeatureFlagForOrganization ($Flag: FeatureFlag!, $OrganizationID: String!) { - enableFeatureForOrg(feature: $Flag, orgId: $OrganizationID) +// The query or mutation executed by CreateWebhookAction. +const CreateWebhookAction_Operation = ` +mutation CreateWebhookAction ($SearchDomainName: String!, $ActionName: String!, $Url: String!, $Method: String!, $Headers: [HttpHeaderEntryInput!]!, $BodyTemplate: String!, $IgnoreSSL: Boolean!, $UseProxy: Boolean!) { + createWebhookAction(input: {viewName:$SearchDomainName,name:$ActionName,url:$Url,method:$Method,headers:$Headers,bodyTemplate:$BodyTemplate,ignoreSSL:$IgnoreSSL,useProxy:$UseProxy}) { + id + name + url + method + headers { + value + header + } + bodyTemplate + ignoreSSL + useProxy + } } ` -func EnableFeatureFlagForOrganization( +func CreateWebhookAction( ctx_ context.Context, client_ graphql.Client, - Flag FeatureFlag, - OrganizationID string, -) (*EnableFeatureFlagForOrganizationResponse, error) { + SearchDomainName string, + ActionName string, + Url string, + Method string, + Headers []HttpHeaderEntryInput, + BodyTemplate string, + IgnoreSSL bool, + UseProxy bool, +) (*CreateWebhookActionResponse, error) { req_ := &graphql.Request{ - OpName: "EnableFeatureFlagForOrganization", - Query: EnableFeatureFlagForOrganization_Operation, - Variables: &__EnableFeatureFlagForOrganizationInput{ - Flag: Flag, - OrganizationID: OrganizationID, + OpName: "CreateWebhookAction", + Query: CreateWebhookAction_Operation, + Variables: &__CreateWebhookActionInput{ + SearchDomainName: SearchDomainName, + ActionName: ActionName, + Url: Url, + Method: Method, + Headers: Headers, + BodyTemplate: BodyTemplate, + IgnoreSSL: IgnoreSSL, + UseProxy: UseProxy, }, } var err_ error - var data_ EnableFeatureFlagForOrganizationResponse + var data_ CreateWebhookActionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18711,30 +15906,30 @@ func EnableFeatureFlagForOrganization( return &data_, err_ } -// The query or mutation executed by EnableFeatureFlagForUser. -const EnableFeatureFlagForUser_Operation = ` -mutation EnableFeatureFlagForUser ($Flag: FeatureFlag!, $UserID: String!) { - enableFeatureForUser(feature: $Flag, userId: $UserID) +// The query or mutation executed by DeleteActionByID. +const DeleteActionByID_Operation = ` +mutation DeleteActionByID ($SearchDomainName: String!, $ActionID: String!) { + deleteAction(input: {viewName:$SearchDomainName,id:$ActionID}) } ` -func EnableFeatureFlagForUser( +func DeleteActionByID( ctx_ context.Context, client_ graphql.Client, - Flag FeatureFlag, - UserID string, -) (*EnableFeatureFlagForUserResponse, error) { + SearchDomainName string, + ActionID string, +) (*DeleteActionByIDResponse, error) { req_ := &graphql.Request{ - OpName: "EnableFeatureFlagForUser", - Query: EnableFeatureFlagForUser_Operation, - Variables: &__EnableFeatureFlagForUserInput{ - Flag: Flag, - UserID: UserID, + OpName: "DeleteActionByID", + Query: DeleteActionByID_Operation, + Variables: &__DeleteActionByIDInput{ + SearchDomainName: SearchDomainName, + ActionID: ActionID, }, } var err_ error - var data_ EnableFeatureFlagForUserResponse + var data_ DeleteActionByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18746,28 +15941,30 @@ func EnableFeatureFlagForUser( return &data_, err_ } -// The query or mutation executed by EnableFeatureFlagGlobally. -const EnableFeatureFlagGlobally_Operation = ` -mutation EnableFeatureFlagGlobally ($Flag: FeatureFlag!) { - enableFeature(feature: $Flag) +// The query or mutation executed by DeleteAggregateAlert. +const DeleteAggregateAlert_Operation = ` +mutation DeleteAggregateAlert ($SearchDomainName: RepoOrViewName!, $AggregateAlertID: String!) { + deleteAggregateAlert(input: {id:$AggregateAlertID,viewName:$SearchDomainName}) } ` -func EnableFeatureFlagGlobally( +func DeleteAggregateAlert( ctx_ context.Context, client_ graphql.Client, - Flag FeatureFlag, -) (*EnableFeatureFlagGloballyResponse, error) { + SearchDomainName string, + AggregateAlertID string, +) (*DeleteAggregateAlertResponse, error) { req_ := &graphql.Request{ - OpName: "EnableFeatureFlagGlobally", - Query: EnableFeatureFlagGlobally_Operation, - Variables: &__EnableFeatureFlagGloballyInput{ - Flag: Flag, + OpName: "DeleteAggregateAlert", + Query: DeleteAggregateAlert_Operation, + Variables: &__DeleteAggregateAlertInput{ + SearchDomainName: SearchDomainName, + AggregateAlertID: AggregateAlertID, }, } var err_ error - var data_ EnableFeatureFlagGloballyResponse + var data_ DeleteAggregateAlertResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18779,30 +15976,30 @@ func EnableFeatureFlagGlobally( return &data_, err_ } -// The query or mutation executed by EnableS3Archiving. -const EnableS3Archiving_Operation = ` -mutation EnableS3Archiving ($RepositoryName: String!) { - s3EnableArchiving(repositoryName: $RepositoryName) { - __typename - } +// The query or mutation executed by DeleteAlert. +const DeleteAlert_Operation = ` +mutation DeleteAlert ($SearchDomainName: String!, $AlertID: String!) { + deleteAlert(input: {viewName:$SearchDomainName,id:$AlertID}) } ` -func EnableS3Archiving( +func DeleteAlert( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, -) (*EnableS3ArchivingResponse, error) { + SearchDomainName string, + AlertID string, +) (*DeleteAlertResponse, error) { req_ := &graphql.Request{ - OpName: "EnableS3Archiving", - Query: EnableS3Archiving_Operation, - Variables: &__EnableS3ArchivingInput{ - RepositoryName: RepositoryName, + OpName: "DeleteAlert", + Query: DeleteAlert_Operation, + Variables: &__DeleteAlertInput{ + SearchDomainName: SearchDomainName, + AlertID: AlertID, }, } var err_ error - var data_ EnableS3ArchivingResponse + var data_ DeleteAlertResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18814,95 +16011,30 @@ func EnableS3Archiving( return &data_, err_ } -// The query or mutation executed by GetActionByID. -const GetActionByID_Operation = ` -query GetActionByID ($SearchDomainName: String!, $ActionID: String!) { - searchDomain(name: $SearchDomainName) { - __typename - action(id: $ActionID) { - __typename - ... ActionDetails - } - } -} -fragment ActionDetails on Action { - id - name - ... on EmailAction { - recipients - subjectTemplate - emailBodyTemplate: bodyTemplate - useProxy - } - ... on HumioRepoAction { - ingestToken - } - ... on OpsGenieAction { - apiUrl - genieKey - useProxy - } - ... on PagerDutyAction { - severity - routingKey - useProxy - } - ... on SlackAction { - url - fields { - fieldName - value - } - useProxy - } - ... on SlackPostMessageAction { - apiToken - channels - fields { - fieldName - value - } - useProxy - } - ... on VictorOpsAction { - messageType - notifyUrl - useProxy - } - ... on UploadFileAction { - fileName - } - ... on WebhookAction { - method - url - headers { - header - value - } - WebhookBodyTemplate: bodyTemplate - ignoreSSL - useProxy - } +// The query or mutation executed by DeleteFilterAlert. +const DeleteFilterAlert_Operation = ` +mutation DeleteFilterAlert ($SearchDomainName: RepoOrViewName!, $FilterAlertID: String!) { + deleteFilterAlert(input: {id:$FilterAlertID,viewName:$SearchDomainName}) } ` -func GetActionByID( +func DeleteFilterAlert( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - ActionID string, -) (*GetActionByIDResponse, error) { + FilterAlertID string, +) (*DeleteFilterAlertResponse, error) { req_ := &graphql.Request{ - OpName: "GetActionByID", - Query: GetActionByID_Operation, - Variables: &__GetActionByIDInput{ + OpName: "DeleteFilterAlert", + Query: DeleteFilterAlert_Operation, + Variables: &__DeleteFilterAlertInput{ SearchDomainName: SearchDomainName, - ActionID: ActionID, + FilterAlertID: FilterAlertID, }, } var err_ error - var data_ GetActionByIDResponse + var data_ DeleteFilterAlertResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18914,59 +16046,32 @@ func GetActionByID( return &data_, err_ } -// The query or mutation executed by GetAggregateAlertByID. -const GetAggregateAlertByID_Operation = ` -query GetAggregateAlertByID ($SearchDomainName: String!, $AggregateAlertID: String!) { - searchDomain(name: $SearchDomainName) { - __typename - aggregateAlert(id: $AggregateAlertID) { - ... AggregateAlertDetails - } - } -} -fragment AggregateAlertDetails on AggregateAlert { - id - name - description - queryString - searchIntervalSeconds - throttleTimeSeconds - throttleField - actions { - __typename - name - } - labels - enabled - triggerMode - queryTimestampType - queryOwnership { +// The query or mutation executed by DeleteParserByID. +const DeleteParserByID_Operation = ` +mutation DeleteParserByID ($RepositoryName: RepoOrViewName!, $ParserID: String!) { + deleteParser(input: {repositoryName:$RepositoryName,id:$ParserID}) { __typename - ... QueryOwnership } } -fragment QueryOwnership on QueryOwnership { - id -} ` -func GetAggregateAlertByID( +func DeleteParserByID( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - AggregateAlertID string, -) (*GetAggregateAlertByIDResponse, error) { + RepositoryName string, + ParserID string, +) (*DeleteParserByIDResponse, error) { req_ := &graphql.Request{ - OpName: "GetAggregateAlertByID", - Query: GetAggregateAlertByID_Operation, - Variables: &__GetAggregateAlertByIDInput{ - SearchDomainName: SearchDomainName, - AggregateAlertID: AggregateAlertID, + OpName: "DeleteParserByID", + Query: DeleteParserByID_Operation, + Variables: &__DeleteParserByIDInput{ + RepositoryName: RepositoryName, + ParserID: ParserID, }, } var err_ error - var data_ GetAggregateAlertByIDResponse + var data_ DeleteParserByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -18978,64 +16083,30 @@ func GetAggregateAlertByID( return &data_, err_ } -// The query or mutation executed by GetCluster. -const GetCluster_Operation = ` -query GetCluster { - cluster { - ... ClusterNode - clusterInfoAgeSeconds - underReplicatedSegmentSize - overReplicatedSegmentSize - missingSegmentSize - properlyReplicatedSegmentSize - targetUnderReplicatedSegmentSize - targetOverReplicatedSegmentSize - targetMissingSegmentSize - targetProperlyReplicatedSegmentSize - ingestPartitions { - id - nodeIds - } - } -} -fragment ClusterNode on Cluster { - nodes { - id - name - uri - uuid - clusterInfoAgeSeconds - inboundSegmentSize - outboundSegmentSize - canBeSafelyUnregistered - currentSize - primarySize - secondarySize - totalSizeOfPrimary - totalSizeOfSecondary - freeOnPrimary - freeOnSecondary - wipSize - targetSize - solitarySegmentSize - isAvailable - lastHeartbeat - zone - } +// The query or mutation executed by DeleteScheduledSearchByID. +const DeleteScheduledSearchByID_Operation = ` +mutation DeleteScheduledSearchByID ($SearchDomainName: String!, $ScheduledSearchID: String!) { + deleteScheduledSearch(input: {viewName:$SearchDomainName,id:$ScheduledSearchID}) } ` -func GetCluster( +func DeleteScheduledSearchByID( ctx_ context.Context, client_ graphql.Client, -) (*GetClusterResponse, error) { + SearchDomainName string, + ScheduledSearchID string, +) (*DeleteScheduledSearchByIDResponse, error) { req_ := &graphql.Request{ - OpName: "GetCluster", - Query: GetCluster_Operation, + OpName: "DeleteScheduledSearchByID", + Query: DeleteScheduledSearchByID_Operation, + Variables: &__DeleteScheduledSearchByIDInput{ + SearchDomainName: SearchDomainName, + ScheduledSearchID: ScheduledSearchID, + }, } var err_ error - var data_ GetClusterResponse + var data_ DeleteScheduledSearchByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19047,56 +16118,32 @@ func GetCluster( return &data_, err_ } -// The query or mutation executed by GetFilterAlertByID. -const GetFilterAlertByID_Operation = ` -query GetFilterAlertByID ($SearchDomainName: String!, $FilterAlertID: String!) { - searchDomain(name: $SearchDomainName) { - __typename - filterAlert(id: $FilterAlertID) { - ... FilterAlertDetails - } - } -} -fragment FilterAlertDetails on FilterAlert { - id - name - description - queryString - throttleTimeSeconds - throttleField - actions { - __typename - name - } - labels - enabled - queryOwnership { +// The query or mutation executed by DeleteSearchDomain. +const DeleteSearchDomain_Operation = ` +mutation DeleteSearchDomain ($SearchDomainName: String!, $DeleteMessage: String!) { + deleteSearchDomain(name: $SearchDomainName, deleteMessage: $DeleteMessage) { __typename - ... QueryOwnership } } -fragment QueryOwnership on QueryOwnership { - id -} ` -func GetFilterAlertByID( +func DeleteSearchDomain( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - FilterAlertID string, -) (*GetFilterAlertByIDResponse, error) { + DeleteMessage string, +) (*DeleteSearchDomainResponse, error) { req_ := &graphql.Request{ - OpName: "GetFilterAlertByID", - Query: GetFilterAlertByID_Operation, - Variables: &__GetFilterAlertByIDInput{ + OpName: "DeleteSearchDomain", + Query: DeleteSearchDomain_Operation, + Variables: &__DeleteSearchDomainInput{ SearchDomainName: SearchDomainName, - FilterAlertID: FilterAlertID, + DeleteMessage: DeleteMessage, }, } var err_ error - var data_ GetFilterAlertByIDResponse + var data_ DeleteSearchDomainResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19108,33 +16155,30 @@ func GetFilterAlertByID( return &data_, err_ } -// The query or mutation executed by GetLicense. -const GetLicense_Operation = ` -query GetLicense { - installedLicense { - __typename - expiresAt - issuedAt - ... on OnPremLicense { - uid - owner - maxUsers - } - } +// The query or mutation executed by DisableFeatureFlagForOrganization. +const DisableFeatureFlagForOrganization_Operation = ` +mutation DisableFeatureFlagForOrganization ($Flag: FeatureFlag!, $OrganizationID: String!) { + disableFeatureForOrg(feature: $Flag, orgId: $OrganizationID) } ` -func GetLicense( +func DisableFeatureFlagForOrganization( ctx_ context.Context, client_ graphql.Client, -) (*GetLicenseResponse, error) { + Flag FeatureFlag, + OrganizationID string, +) (*DisableFeatureFlagForOrganizationResponse, error) { req_ := &graphql.Request{ - OpName: "GetLicense", - Query: GetLicense_Operation, + OpName: "DisableFeatureFlagForOrganization", + Query: DisableFeatureFlagForOrganization_Operation, + Variables: &__DisableFeatureFlagForOrganizationInput{ + Flag: Flag, + OrganizationID: OrganizationID, + }, } var err_ error - var data_ GetLicenseResponse + var data_ DisableFeatureFlagForOrganizationResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19146,59 +16190,30 @@ func GetLicense( return &data_, err_ } -// The query or mutation executed by GetParserByID. -const GetParserByID_Operation = ` -query GetParserByID ($RepositoryName: String!, $ParserID: String!) { - repository(name: $RepositoryName) { - parser(id: $ParserID) { - ... ParserDetails - } - } -} -fragment ParserDetails on Parser { - id - name - displayName - description - isBuiltIn - script - fieldsToTag - fieldsToBeRemovedBeforeParsing - testCases { - event { - rawString - } - outputAssertions { - assertions { - fieldsHaveValues { - fieldName - expectedValue - } - fieldsNotPresent - } - outputEventIndex - } - } +// The query or mutation executed by DisableFeatureFlagForUser. +const DisableFeatureFlagForUser_Operation = ` +mutation DisableFeatureFlagForUser ($Flag: FeatureFlag!, $UserID: String!) { + disableFeatureForUser(feature: $Flag, userId: $UserID) } ` -func GetParserByID( +func DisableFeatureFlagForUser( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, - ParserID string, -) (*GetParserByIDResponse, error) { + Flag FeatureFlag, + UserID string, +) (*DisableFeatureFlagForUserResponse, error) { req_ := &graphql.Request{ - OpName: "GetParserByID", - Query: GetParserByID_Operation, - Variables: &__GetParserByIDInput{ - RepositoryName: RepositoryName, - ParserID: ParserID, + OpName: "DisableFeatureFlagForUser", + Query: DisableFeatureFlagForUser_Operation, + Variables: &__DisableFeatureFlagForUserInput{ + Flag: Flag, + UserID: UserID, }, } var err_ error - var data_ GetParserByIDResponse + var data_ DisableFeatureFlagForUserResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19210,35 +16225,28 @@ func GetParserByID( return &data_, err_ } -// The query or mutation executed by GetParserYAMLByName. -const GetParserYAMLByName_Operation = ` -query GetParserYAMLByName ($RepositoryName: String!, $ParserName: String!) { - repository(name: $RepositoryName) { - parser(name: $ParserName) { - name - yamlTemplate - } - } +// The query or mutation executed by DisableFeatureFlagGlobally. +const DisableFeatureFlagGlobally_Operation = ` +mutation DisableFeatureFlagGlobally ($Flag: FeatureFlag!) { + disableFeature(feature: $Flag) } ` -func GetParserYAMLByName( +func DisableFeatureFlagGlobally( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, - ParserName string, -) (*GetParserYAMLByNameResponse, error) { + Flag FeatureFlag, +) (*DisableFeatureFlagGloballyResponse, error) { req_ := &graphql.Request{ - OpName: "GetParserYAMLByName", - Query: GetParserYAMLByName_Operation, - Variables: &__GetParserYAMLByNameInput{ - RepositoryName: RepositoryName, - ParserName: ParserName, + OpName: "DisableFeatureFlagGlobally", + Query: DisableFeatureFlagGlobally_Operation, + Variables: &__DisableFeatureFlagGloballyInput{ + Flag: Flag, }, } var err_ error - var data_ GetParserYAMLByNameResponse + var data_ DisableFeatureFlagGloballyResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19250,46 +16258,30 @@ func GetParserYAMLByName( return &data_, err_ } -// The query or mutation executed by GetRepository. -const GetRepository_Operation = ` -query GetRepository ($RepositoryName: String!) { - repository(name: $RepositoryName) { - ... RepositoryDetails - } -} -fragment RepositoryDetails on Repository { - id - name - description - timeBasedRetention - ingestSizeBasedRetention - storageSizeBasedRetention - compressedByteSize - automaticSearch - s3ArchivingConfiguration { - bucket - region - disabled - format +// The query or mutation executed by DisableS3Archiving. +const DisableS3Archiving_Operation = ` +mutation DisableS3Archiving ($RepositoryName: String!) { + s3DisableArchiving(repositoryName: $RepositoryName) { + __typename } } ` -func GetRepository( +func DisableS3Archiving( ctx_ context.Context, client_ graphql.Client, RepositoryName string, -) (*GetRepositoryResponse, error) { +) (*DisableS3ArchivingResponse, error) { req_ := &graphql.Request{ - OpName: "GetRepository", - Query: GetRepository_Operation, - Variables: &__GetRepositoryInput{ + OpName: "DisableS3Archiving", + Query: DisableS3Archiving_Operation, + Variables: &__DisableS3ArchivingInput{ RepositoryName: RepositoryName, }, } var err_ error - var data_ GetRepositoryResponse + var data_ DisableS3ArchivingResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19301,37 +16293,30 @@ func GetRepository( return &data_, err_ } -// The query or mutation executed by GetRoleByID. -const GetRoleByID_Operation = ` -query GetRoleByID ($RoleID: String!) { - role(roleId: $RoleID) { - ... RoleDetails - } -} -fragment RoleDetails on Role { - id - displayName - viewPermissions - organizationPermissions - systemPermissions +// The query or mutation executed by EnableFeatureFlagForOrganization. +const EnableFeatureFlagForOrganization_Operation = ` +mutation EnableFeatureFlagForOrganization ($Flag: FeatureFlag!, $OrganizationID: String!) { + enableFeatureForOrg(feature: $Flag, orgId: $OrganizationID) } ` -func GetRoleByID( +func EnableFeatureFlagForOrganization( ctx_ context.Context, client_ graphql.Client, - RoleID string, -) (*GetRoleByIDResponse, error) { + Flag FeatureFlag, + OrganizationID string, +) (*EnableFeatureFlagForOrganizationResponse, error) { req_ := &graphql.Request{ - OpName: "GetRoleByID", - Query: GetRoleByID_Operation, - Variables: &__GetRoleByIDInput{ - RoleID: RoleID, + OpName: "EnableFeatureFlagForOrganization", + Query: EnableFeatureFlagForOrganization_Operation, + Variables: &__EnableFeatureFlagForOrganizationInput{ + Flag: Flag, + OrganizationID: OrganizationID, }, } var err_ error - var data_ GetRoleByIDResponse + var data_ EnableFeatureFlagForOrganizationResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19343,59 +16328,30 @@ func GetRoleByID( return &data_, err_ } -// The query or mutation executed by GetScheduledSearchByID. -const GetScheduledSearchByID_Operation = ` -query GetScheduledSearchByID ($SearchDomainName: String!, $ScheduledSearchID: String!) { - searchDomain(name: $SearchDomainName) { - __typename - scheduledSearch(id: $ScheduledSearchID) { - ... ScheduledSearchDetails - } - } -} -fragment ScheduledSearchDetails on ScheduledSearch { - id - name - description - queryString - start - end - timeZone - schedule - backfillLimit - enabled - actionsV2 { - __typename - name - } - labels - queryOwnership { - __typename - ... QueryOwnership - } -} -fragment QueryOwnership on QueryOwnership { - id +// The query or mutation executed by EnableFeatureFlagForUser. +const EnableFeatureFlagForUser_Operation = ` +mutation EnableFeatureFlagForUser ($Flag: FeatureFlag!, $UserID: String!) { + enableFeatureForUser(feature: $Flag, userId: $UserID) } ` -func GetScheduledSearchByID( +func EnableFeatureFlagForUser( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - ScheduledSearchID string, -) (*GetScheduledSearchByIDResponse, error) { - req_ := &graphql.Request{ - OpName: "GetScheduledSearchByID", - Query: GetScheduledSearchByID_Operation, - Variables: &__GetScheduledSearchByIDInput{ - SearchDomainName: SearchDomainName, - ScheduledSearchID: ScheduledSearchID, + Flag FeatureFlag, + UserID string, +) (*EnableFeatureFlagForUserResponse, error) { + req_ := &graphql.Request{ + OpName: "EnableFeatureFlagForUser", + Query: EnableFeatureFlagForUser_Operation, + Variables: &__EnableFeatureFlagForUserInput{ + Flag: Flag, + UserID: UserID, }, } var err_ error - var data_ GetScheduledSearchByIDResponse + var data_ EnableFeatureFlagForUserResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19407,42 +16363,28 @@ func GetScheduledSearchByID( return &data_, err_ } -// The query or mutation executed by GetSearchDomain. -const GetSearchDomain_Operation = ` -query GetSearchDomain ($SearchDomainName: String!) { - searchDomain(name: $SearchDomainName) { - id - name - description - automaticSearch - ... on View { - connections { - repository { - name - } - filter - } - } - __typename - } +// The query or mutation executed by EnableFeatureFlagGlobally. +const EnableFeatureFlagGlobally_Operation = ` +mutation EnableFeatureFlagGlobally ($Flag: FeatureFlag!) { + enableFeature(feature: $Flag) } ` -func GetSearchDomain( +func EnableFeatureFlagGlobally( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, -) (*GetSearchDomainResponse, error) { + Flag FeatureFlag, +) (*EnableFeatureFlagGloballyResponse, error) { req_ := &graphql.Request{ - OpName: "GetSearchDomain", - Query: GetSearchDomain_Operation, - Variables: &__GetSearchDomainInput{ - SearchDomainName: SearchDomainName, + OpName: "EnableFeatureFlagGlobally", + Query: EnableFeatureFlagGlobally_Operation, + Variables: &__EnableFeatureFlagGloballyInput{ + Flag: Flag, }, } var err_ error - var data_ GetSearchDomainResponse + var data_ EnableFeatureFlagGloballyResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19454,28 +16396,30 @@ func GetSearchDomain( return &data_, err_ } -// The query or mutation executed by GetSupportedFeatureFlags. -const GetSupportedFeatureFlags_Operation = ` -query GetSupportedFeatureFlags { - featureFlags(includeExperimentalFeatures: true) { - flag - experimental - description +// The query or mutation executed by EnableS3Archiving. +const EnableS3Archiving_Operation = ` +mutation EnableS3Archiving ($RepositoryName: String!) { + s3EnableArchiving(repositoryName: $RepositoryName) { + __typename } } ` -func GetSupportedFeatureFlags( +func EnableS3Archiving( ctx_ context.Context, client_ graphql.Client, -) (*GetSupportedFeatureFlagsResponse, error) { + RepositoryName string, +) (*EnableS3ArchivingResponse, error) { req_ := &graphql.Request{ - OpName: "GetSupportedFeatureFlags", - Query: GetSupportedFeatureFlags_Operation, + OpName: "EnableS3Archiving", + Query: EnableS3Archiving_Operation, + Variables: &__EnableS3ArchivingInput{ + RepositoryName: RepositoryName, + }, } var err_ error - var data_ GetSupportedFeatureFlagsResponse + var data_ EnableS3ArchivingResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19487,26 +16431,95 @@ func GetSupportedFeatureFlags( return &data_, err_ } -// The query or mutation executed by GetUsername. -const GetUsername_Operation = ` -query GetUsername { - viewer { - username +// The query or mutation executed by GetActionByID. +const GetActionByID_Operation = ` +query GetActionByID ($SearchDomainName: String!, $ActionID: String!) { + searchDomain(name: $SearchDomainName) { + __typename + action(id: $ActionID) { + __typename + ... ActionDetails + } + } +} +fragment ActionDetails on Action { + id + name + ... on EmailAction { + recipients + subjectTemplate + emailBodyTemplate: bodyTemplate + useProxy + } + ... on HumioRepoAction { + ingestToken + } + ... on OpsGenieAction { + apiUrl + genieKey + useProxy + } + ... on PagerDutyAction { + severity + routingKey + useProxy + } + ... on SlackAction { + url + fields { + fieldName + value + } + useProxy + } + ... on SlackPostMessageAction { + apiToken + channels + fields { + fieldName + value + } + useProxy + } + ... on VictorOpsAction { + messageType + notifyUrl + useProxy + } + ... on UploadFileAction { + fileName + } + ... on WebhookAction { + method + url + headers { + header + value + } + WebhookBodyTemplate: bodyTemplate + ignoreSSL + useProxy } } ` -func GetUsername( +func GetActionByID( ctx_ context.Context, client_ graphql.Client, -) (*GetUsernameResponse, error) { + SearchDomainName string, + ActionID string, +) (*GetActionByIDResponse, error) { req_ := &graphql.Request{ - OpName: "GetUsername", - Query: GetUsername_Operation, + OpName: "GetActionByID", + Query: GetActionByID_Operation, + Variables: &__GetActionByIDInput{ + SearchDomainName: SearchDomainName, + ActionID: ActionID, + }, } var err_ error - var data_ GetUsernameResponse + var data_ GetActionByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19518,41 +16531,59 @@ func GetUsername( return &data_, err_ } -// The query or mutation executed by GetUsersByUsername. -const GetUsersByUsername_Operation = ` -query GetUsersByUsername ($Username: String!) { - users(search: $Username) { - ... UserDetails +// The query or mutation executed by GetAggregateAlertByID. +const GetAggregateAlertByID_Operation = ` +query GetAggregateAlertByID ($SearchDomainName: String!, $AggregateAlertID: String!) { + searchDomain(name: $SearchDomainName) { + __typename + aggregateAlert(id: $AggregateAlertID) { + ... AggregateAlertDetails + } } } -fragment UserDetails on User { +fragment AggregateAlertDetails on AggregateAlert { + id + name + description + queryString + searchIntervalSeconds + throttleTimeSeconds + throttleField + actions { + __typename + name + } + labels + enabled + triggerMode + queryTimestampType + queryOwnership { + __typename + ... QueryOwnership + } +} +fragment QueryOwnership on QueryOwnership { id - username - fullName - email - company - countryCode - picture - isRoot - createdAt } ` -func GetUsersByUsername( +func GetAggregateAlertByID( ctx_ context.Context, client_ graphql.Client, - Username string, -) (*GetUsersByUsernameResponse, error) { + SearchDomainName string, + AggregateAlertID string, +) (*GetAggregateAlertByIDResponse, error) { req_ := &graphql.Request{ - OpName: "GetUsersByUsername", - Query: GetUsersByUsername_Operation, - Variables: &__GetUsersByUsernameInput{ - Username: Username, + OpName: "GetAggregateAlertByID", + Query: GetAggregateAlertByID_Operation, + Variables: &__GetAggregateAlertByIDInput{ + SearchDomainName: SearchDomainName, + AggregateAlertID: AggregateAlertID, }, } var err_ error - var data_ GetUsersByUsernameResponse + var data_ GetAggregateAlertByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19561,70 +16592,67 @@ func GetUsersByUsername( resp_, ) - return &data_, err_ -} - -// The query or mutation executed by LegacyCreateParser. -const LegacyCreateParser_Operation = ` -mutation LegacyCreateParser ($RepositoryName: String!, $Name: String!, $TestData: [String!]!, $TagFields: [String!]!, $SourceCode: String!, $Force: Boolean!) { - createParser(input: {name:$Name,repositoryName:$RepositoryName,testData:$TestData,tagFields:$TagFields,sourceCode:$SourceCode,force:$Force}) { - parser { - ... ParserDetails - } - } -} -fragment ParserDetails on Parser { - id - name - displayName - description - isBuiltIn - script - fieldsToTag - fieldsToBeRemovedBeforeParsing - testCases { - event { - rawString - } - outputAssertions { - assertions { - fieldsHaveValues { - fieldName - expectedValue - } - fieldsNotPresent - } - outputEventIndex + return &data_, err_ +} + +// The query or mutation executed by GetCluster. +const GetCluster_Operation = ` +query GetCluster { + cluster { + ... ClusterNode + clusterInfoAgeSeconds + underReplicatedSegmentSize + overReplicatedSegmentSize + missingSegmentSize + properlyReplicatedSegmentSize + targetUnderReplicatedSegmentSize + targetOverReplicatedSegmentSize + targetMissingSegmentSize + targetProperlyReplicatedSegmentSize + ingestPartitions { + id + nodeIds } } } +fragment ClusterNode on Cluster { + nodes { + id + name + uri + uuid + clusterInfoAgeSeconds + inboundSegmentSize + outboundSegmentSize + canBeSafelyUnregistered + currentSize + primarySize + secondarySize + totalSizeOfPrimary + totalSizeOfSecondary + freeOnPrimary + freeOnSecondary + wipSize + targetSize + solitarySegmentSize + isAvailable + lastHeartbeat + zone + } +} ` -func LegacyCreateParser( +func GetCluster( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, - Name string, - TestData []string, - TagFields []string, - SourceCode string, - Force bool, -) (*LegacyCreateParserResponse, error) { +) (*GetClusterResponse, error) { req_ := &graphql.Request{ - OpName: "LegacyCreateParser", - Query: LegacyCreateParser_Operation, - Variables: &__LegacyCreateParserInput{ - RepositoryName: RepositoryName, - Name: Name, - TestData: TestData, - TagFields: TagFields, - SourceCode: SourceCode, - Force: Force, - }, + OpName: "GetCluster", + Query: GetCluster_Operation, } var err_ error - var data_ LegacyCreateParserResponse + var data_ GetClusterResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19636,32 +16664,56 @@ func LegacyCreateParser( return &data_, err_ } -// The query or mutation executed by LegacyDeleteParserByID. -const LegacyDeleteParserByID_Operation = ` -mutation LegacyDeleteParserByID ($RepositoryName: String!, $ParserID: String!) { - removeParser(input: {repositoryName:$RepositoryName,id:$ParserID}) { +// The query or mutation executed by GetFilterAlertByID. +const GetFilterAlertByID_Operation = ` +query GetFilterAlertByID ($SearchDomainName: String!, $FilterAlertID: String!) { + searchDomain(name: $SearchDomainName) { + __typename + filterAlert(id: $FilterAlertID) { + ... FilterAlertDetails + } + } +} +fragment FilterAlertDetails on FilterAlert { + id + name + description + queryString + throttleTimeSeconds + throttleField + actions { + __typename + name + } + labels + enabled + queryOwnership { __typename + ... QueryOwnership } } +fragment QueryOwnership on QueryOwnership { + id +} ` -func LegacyDeleteParserByID( +func GetFilterAlertByID( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, - ParserID string, -) (*LegacyDeleteParserByIDResponse, error) { + SearchDomainName string, + FilterAlertID string, +) (*GetFilterAlertByIDResponse, error) { req_ := &graphql.Request{ - OpName: "LegacyDeleteParserByID", - Query: LegacyDeleteParserByID_Operation, - Variables: &__LegacyDeleteParserByIDInput{ - RepositoryName: RepositoryName, - ParserID: ParserID, + OpName: "GetFilterAlertByID", + Query: GetFilterAlertByID_Operation, + Variables: &__GetFilterAlertByIDInput{ + SearchDomainName: SearchDomainName, + FilterAlertID: FilterAlertID, }, } var err_ error - var data_ LegacyDeleteParserByIDResponse + var data_ GetFilterAlertByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19673,38 +16725,33 @@ func LegacyDeleteParserByID( return &data_, err_ } -// The query or mutation executed by LegacyGetParser. -const LegacyGetParser_Operation = ` -query LegacyGetParser ($RepositoryName: String!, $ParserName: String!) { - repository(name: $RepositoryName) { - parser(name: $ParserName) { - id - name - sourceCode - testData - tagFields +// The query or mutation executed by GetLicense. +const GetLicense_Operation = ` +query GetLicense { + installedLicense { + __typename + expiresAt + issuedAt + ... on OnPremLicense { + uid + owner + maxUsers } } } ` -func LegacyGetParser( +func GetLicense( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, - ParserName string, -) (*LegacyGetParserResponse, error) { +) (*GetLicenseResponse, error) { req_ := &graphql.Request{ - OpName: "LegacyGetParser", - Query: LegacyGetParser_Operation, - Variables: &__LegacyGetParserInput{ - RepositoryName: RepositoryName, - ParserName: ParserName, - }, + OpName: "GetLicense", + Query: GetLicense_Operation, } var err_ error - var data_ LegacyGetParserResponse + var data_ GetLicenseResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19716,93 +16763,59 @@ func LegacyGetParser( return &data_, err_ } -// The query or mutation executed by ListActions. -const ListActions_Operation = ` -query ListActions ($SearchDomainName: String!) { - searchDomain(name: $SearchDomainName) { - __typename - actions { - __typename - ... ActionDetails +// The query or mutation executed by GetParserByID. +const GetParserByID_Operation = ` +query GetParserByID ($RepositoryName: String!, $ParserID: String!) { + repository(name: $RepositoryName) { + parser(id: $ParserID) { + ... ParserDetails } } } -fragment ActionDetails on Action { +fragment ParserDetails on Parser { id name - ... on EmailAction { - recipients - subjectTemplate - emailBodyTemplate: bodyTemplate - useProxy - } - ... on HumioRepoAction { - ingestToken - } - ... on OpsGenieAction { - apiUrl - genieKey - useProxy - } - ... on PagerDutyAction { - severity - routingKey - useProxy - } - ... on SlackAction { - url - fields { - fieldName - value - } - useProxy - } - ... on SlackPostMessageAction { - apiToken - channels - fields { - fieldName - value + displayName + description + isBuiltIn + script + fieldsToTag + fieldsToBeRemovedBeforeParsing + testCases { + event { + rawString } - useProxy - } - ... on VictorOpsAction { - messageType - notifyUrl - useProxy - } - ... on UploadFileAction { - fileName - } - ... on WebhookAction { - method - url - headers { - header - value + outputAssertions { + assertions { + fieldsHaveValues { + fieldName + expectedValue + } + fieldsNotPresent + } + outputEventIndex } - WebhookBodyTemplate: bodyTemplate - ignoreSSL - useProxy } } ` -func ListActions( +func GetParserByID( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, -) (*ListActionsResponse, error) { - req_ := &graphql.Request{ - OpName: "ListActions", - Query: ListActions_Operation, - Variables: &__ListActionsInput{ - SearchDomainName: SearchDomainName, + RepositoryName string, + ParserID string, +) (*GetParserByIDResponse, error) { + req_ := &graphql.Request{ + OpName: "GetParserByID", + Query: GetParserByID_Operation, + Variables: &__GetParserByIDInput{ + RepositoryName: RepositoryName, + ParserID: ParserID, }, } var err_ error - var data_ ListActionsResponse + var data_ GetParserByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19814,57 +16827,35 @@ func ListActions( return &data_, err_ } -// The query or mutation executed by ListAggregateAlerts. -const ListAggregateAlerts_Operation = ` -query ListAggregateAlerts ($SearchDomainName: String!) { - searchDomain(name: $SearchDomainName) { - __typename - aggregateAlerts { - ... AggregateAlertDetails +// The query or mutation executed by GetParserYAMLByName. +const GetParserYAMLByName_Operation = ` +query GetParserYAMLByName ($RepositoryName: String!, $ParserName: String!) { + repository(name: $RepositoryName) { + parser(name: $ParserName) { + name + yamlTemplate } } } -fragment AggregateAlertDetails on AggregateAlert { - id - name - description - queryString - searchIntervalSeconds - throttleTimeSeconds - throttleField - actions { - __typename - name - } - labels - enabled - triggerMode - queryTimestampType - queryOwnership { - __typename - ... QueryOwnership - } -} -fragment QueryOwnership on QueryOwnership { - id -} ` -func ListAggregateAlerts( +func GetParserYAMLByName( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, -) (*ListAggregateAlertsResponse, error) { + RepositoryName string, + ParserName string, +) (*GetParserYAMLByNameResponse, error) { req_ := &graphql.Request{ - OpName: "ListAggregateAlerts", - Query: ListAggregateAlerts_Operation, - Variables: &__ListAggregateAlertsInput{ - SearchDomainName: SearchDomainName, + OpName: "GetParserYAMLByName", + Query: GetParserYAMLByName_Operation, + Variables: &__GetParserYAMLByNameInput{ + RepositoryName: RepositoryName, + ParserName: ParserName, }, } var err_ error - var data_ ListAggregateAlertsResponse + var data_ GetParserYAMLByNameResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19876,55 +16867,46 @@ func ListAggregateAlerts( return &data_, err_ } -// The query or mutation executed by ListAlerts. -const ListAlerts_Operation = ` -query ListAlerts ($SearchDomainName: String!) { - searchDomain(name: $SearchDomainName) { - __typename - alerts { - ... AlertDetails - } +// The query or mutation executed by GetRepository. +const GetRepository_Operation = ` +query GetRepository ($RepositoryName: String!) { + repository(name: $RepositoryName) { + ... RepositoryDetails } } -fragment AlertDetails on Alert { +fragment RepositoryDetails on Repository { id name - queryString - queryStart - throttleField - timeOfLastTrigger - isStarred description - throttleTimeMillis - enabled - actions - labels - lastError - queryOwnership { - __typename - ... QueryOwnership + timeBasedRetention + ingestSizeBasedRetention + storageSizeBasedRetention + compressedByteSize + automaticSearch + s3ArchivingConfiguration { + bucket + region + disabled + format } } -fragment QueryOwnership on QueryOwnership { - id -} ` -func ListAlerts( +func GetRepository( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, -) (*ListAlertsResponse, error) { + RepositoryName string, +) (*GetRepositoryResponse, error) { req_ := &graphql.Request{ - OpName: "ListAlerts", - Query: ListAlerts_Operation, - Variables: &__ListAlertsInput{ - SearchDomainName: SearchDomainName, + OpName: "GetRepository", + Query: GetRepository_Operation, + Variables: &__GetRepositoryInput{ + RepositoryName: RepositoryName, }, } var err_ error - var data_ ListAlertsResponse + var data_ GetRepositoryResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19936,51 +16918,37 @@ func ListAlerts( return &data_, err_ } -// The query or mutation executed by ListClusterNodes. -const ListClusterNodes_Operation = ` -query ListClusterNodes { - cluster { - ... ClusterNode +// The query or mutation executed by GetRoleByID. +const GetRoleByID_Operation = ` +query GetRoleByID ($RoleID: String!) { + role(roleId: $RoleID) { + ... RoleDetails } } -fragment ClusterNode on Cluster { - nodes { - id - name - uri - uuid - clusterInfoAgeSeconds - inboundSegmentSize - outboundSegmentSize - canBeSafelyUnregistered - currentSize - primarySize - secondarySize - totalSizeOfPrimary - totalSizeOfSecondary - freeOnPrimary - freeOnSecondary - wipSize - targetSize - solitarySegmentSize - isAvailable - lastHeartbeat - zone - } +fragment RoleDetails on Role { + id + displayName + viewPermissions + organizationPermissions + systemPermissions } ` -func ListClusterNodes( +func GetRoleByID( ctx_ context.Context, client_ graphql.Client, -) (*ListClusterNodesResponse, error) { + RoleID string, +) (*GetRoleByIDResponse, error) { req_ := &graphql.Request{ - OpName: "ListClusterNodes", - Query: ListClusterNodes_Operation, + OpName: "GetRoleByID", + Query: GetRoleByID_Operation, + Variables: &__GetRoleByIDInput{ + RoleID: RoleID, + }, } var err_ error - var data_ ListClusterNodesResponse + var data_ GetRoleByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -19992,36 +16960,42 @@ func ListClusterNodes( return &data_, err_ } -// The query or mutation executed by ListFiles. -const ListFiles_Operation = ` -query ListFiles ($SearchDomainName: String!) { +// The query or mutation executed by GetSearchDomain. +const GetSearchDomain_Operation = ` +query GetSearchDomain ($SearchDomainName: String!) { searchDomain(name: $SearchDomainName) { - __typename - files { - contentHash - nameAndPath { - name + id + name + description + automaticSearch + ... on View { + connections { + repository { + name + } + filter } } + __typename } } ` -func ListFiles( +func GetSearchDomain( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, -) (*ListFilesResponse, error) { +) (*GetSearchDomainResponse, error) { req_ := &graphql.Request{ - OpName: "ListFiles", - Query: ListFiles_Operation, - Variables: &__ListFilesInput{ + OpName: "GetSearchDomain", + Query: GetSearchDomain_Operation, + Variables: &__GetSearchDomainInput{ SearchDomainName: SearchDomainName, }, } var err_ error - var data_ ListFilesResponse + var data_ GetSearchDomainResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20033,54 +17007,59 @@ func ListFiles( return &data_, err_ } -// The query or mutation executed by ListFilterAlerts. -const ListFilterAlerts_Operation = ` -query ListFilterAlerts ($SearchDomainName: String!) { - searchDomain(name: $SearchDomainName) { - __typename - filterAlerts { - ... FilterAlertDetails - } +// The query or mutation executed by GetSupportedFeatureFlags. +const GetSupportedFeatureFlags_Operation = ` +query GetSupportedFeatureFlags { + featureFlags(includeExperimentalFeatures: true) { + flag + experimental + description } } -fragment FilterAlertDetails on FilterAlert { - id - name - description - queryString - throttleTimeSeconds - throttleField - actions { - __typename - name - } - labels - enabled - queryOwnership { - __typename - ... QueryOwnership +` + +func GetSupportedFeatureFlags( + ctx_ context.Context, + client_ graphql.Client, +) (*GetSupportedFeatureFlagsResponse, error) { + req_ := &graphql.Request{ + OpName: "GetSupportedFeatureFlags", + Query: GetSupportedFeatureFlags_Operation, } + var err_ error + + var data_ GetSupportedFeatureFlagsResponse + resp_ := &graphql.Response{Data: &data_} + + err_ = client_.MakeRequest( + ctx_, + req_, + resp_, + ) + + return &data_, err_ } -fragment QueryOwnership on QueryOwnership { - id + +// The query or mutation executed by GetUsername. +const GetUsername_Operation = ` +query GetUsername { + viewer { + username + } } ` -func ListFilterAlerts( +func GetUsername( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, -) (*ListFilterAlertsResponse, error) { +) (*GetUsernameResponse, error) { req_ := &graphql.Request{ - OpName: "ListFilterAlerts", - Query: ListFilterAlerts_Operation, - Variables: &__ListFilterAlertsInput{ - SearchDomainName: SearchDomainName, - }, + OpName: "GetUsername", + Query: GetUsername_Operation, } var err_ error - var data_ ListFilterAlertsResponse + var data_ GetUsernameResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20092,29 +17071,41 @@ func ListFilterAlerts( return &data_, err_ } -// The query or mutation executed by ListGroups. -const ListGroups_Operation = ` -query ListGroups { - groupsPage(pageNumber: 1, pageSize: 2147483647) { - page { - id - displayName - } +// The query or mutation executed by GetUsersByUsername. +const GetUsersByUsername_Operation = ` +query GetUsersByUsername ($Username: String!) { + users(search: $Username) { + ... UserDetails } } +fragment UserDetails on User { + id + username + fullName + email + company + countryCode + picture + isRoot + createdAt +} ` -func ListGroups( +func GetUsersByUsername( ctx_ context.Context, client_ graphql.Client, -) (*ListGroupsResponse, error) { + Username string, +) (*GetUsersByUsernameResponse, error) { req_ := &graphql.Request{ - OpName: "ListGroups", - Query: ListGroups_Operation, + OpName: "GetUsersByUsername", + Query: GetUsersByUsername_Operation, + Variables: &__GetUsersByUsernameInput{ + Username: Username, + }, } var err_ error - var data_ ListGroupsResponse + var data_ GetUsersByUsernameResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20126,39 +17117,67 @@ func ListGroups( return &data_, err_ } -// The query or mutation executed by ListIngestTokens. -const ListIngestTokens_Operation = ` -query ListIngestTokens ($RepositoryName: String!) { - repository(name: $RepositoryName) { - ingestTokens { - ... IngestTokenDetails +// The query or mutation executed by LegacyCreateParser. +const LegacyCreateParser_Operation = ` +mutation LegacyCreateParser ($RepositoryName: String!, $Name: String!, $TestData: [String!]!, $TagFields: [String!]!, $SourceCode: String!, $Force: Boolean!) { + createParser(input: {name:$Name,repositoryName:$RepositoryName,testData:$TestData,tagFields:$TagFields,sourceCode:$SourceCode,force:$Force}) { + parser { + ... ParserDetails } } } -fragment IngestTokenDetails on IngestToken { +fragment ParserDetails on Parser { + id name - token - parser { - name + displayName + description + isBuiltIn + script + fieldsToTag + fieldsToBeRemovedBeforeParsing + testCases { + event { + rawString + } + outputAssertions { + assertions { + fieldsHaveValues { + fieldName + expectedValue + } + fieldsNotPresent + } + outputEventIndex + } } } ` -func ListIngestTokens( +func LegacyCreateParser( ctx_ context.Context, client_ graphql.Client, RepositoryName string, -) (*ListIngestTokensResponse, error) { + Name string, + TestData []string, + TagFields []string, + SourceCode string, + Force bool, +) (*LegacyCreateParserResponse, error) { req_ := &graphql.Request{ - OpName: "ListIngestTokens", - Query: ListIngestTokens_Operation, - Variables: &__ListIngestTokensInput{ + OpName: "LegacyCreateParser", + Query: LegacyCreateParser_Operation, + Variables: &__LegacyCreateParserInput{ RepositoryName: RepositoryName, + Name: Name, + TestData: TestData, + TagFields: TagFields, + SourceCode: SourceCode, + Force: Force, }, } var err_ error - var data_ ListIngestTokensResponse + var data_ LegacyCreateParserResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20170,43 +17189,32 @@ func ListIngestTokens( return &data_, err_ } -// The query or mutation executed by ListInstalledPackages. -const ListInstalledPackages_Operation = ` -query ListInstalledPackages ($SearchDomainName: String!) { - searchDomain(name: $SearchDomainName) { +// The query or mutation executed by LegacyDeleteParserByID. +const LegacyDeleteParserByID_Operation = ` +mutation LegacyDeleteParserByID ($RepositoryName: String!, $ParserID: String!) { + removeParser(input: {repositoryName:$RepositoryName,id:$ParserID}) { __typename - installedPackages { - id - installedBy { - username - timestamp - } - updatedBy { - username - timestamp - } - source - availableUpdate - } } } ` -func ListInstalledPackages( +func LegacyDeleteParserByID( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, -) (*ListInstalledPackagesResponse, error) { + RepositoryName string, + ParserID string, +) (*LegacyDeleteParserByIDResponse, error) { req_ := &graphql.Request{ - OpName: "ListInstalledPackages", - Query: ListInstalledPackages_Operation, - Variables: &__ListInstalledPackagesInput{ - SearchDomainName: SearchDomainName, + OpName: "LegacyDeleteParserByID", + Query: LegacyDeleteParserByID_Operation, + Variables: &__LegacyDeleteParserByIDInput{ + RepositoryName: RepositoryName, + ParserID: ParserID, }, } var err_ error - var data_ ListInstalledPackagesResponse + var data_ LegacyDeleteParserByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20218,34 +17226,38 @@ func ListInstalledPackages( return &data_, err_ } -// The query or mutation executed by ListParsers. -const ListParsers_Operation = ` -query ListParsers ($RepositoryName: String!) { +// The query or mutation executed by LegacyGetParser. +const LegacyGetParser_Operation = ` +query LegacyGetParser ($RepositoryName: String!, $ParserName: String!) { repository(name: $RepositoryName) { - parsers { + parser(name: $ParserName) { id name - isBuiltIn + sourceCode + testData + tagFields } } } ` -func ListParsers( +func LegacyGetParser( ctx_ context.Context, client_ graphql.Client, RepositoryName string, -) (*ListParsersResponse, error) { + ParserName string, +) (*LegacyGetParserResponse, error) { req_ := &graphql.Request{ - OpName: "ListParsers", - Query: ListParsers_Operation, - Variables: &__ListParsersInput{ + OpName: "LegacyGetParser", + Query: LegacyGetParser_Operation, + Variables: &__LegacyGetParserInput{ RepositoryName: RepositoryName, + ParserName: ParserName, }, } var err_ error - var data_ ListParsersResponse + var data_ LegacyGetParserResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20257,66 +17269,93 @@ func ListParsers( return &data_, err_ } -// The query or mutation executed by ListRepositories. -const ListRepositories_Operation = ` -query ListRepositories { - repositories { - id - name - compressedByteSize +// The query or mutation executed by ListActions. +const ListActions_Operation = ` +query ListActions ($SearchDomainName: String!) { + searchDomain(name: $SearchDomainName) { + __typename + actions { + __typename + ... ActionDetails + } } } -` - -func ListRepositories( - ctx_ context.Context, - client_ graphql.Client, -) (*ListRepositoriesResponse, error) { - req_ := &graphql.Request{ - OpName: "ListRepositories", - Query: ListRepositories_Operation, +fragment ActionDetails on Action { + id + name + ... on EmailAction { + recipients + subjectTemplate + emailBodyTemplate: bodyTemplate + useProxy + } + ... on HumioRepoAction { + ingestToken + } + ... on OpsGenieAction { + apiUrl + genieKey + useProxy + } + ... on PagerDutyAction { + severity + routingKey + useProxy + } + ... on SlackAction { + url + fields { + fieldName + value + } + useProxy + } + ... on SlackPostMessageAction { + apiToken + channels + fields { + fieldName + value + } + useProxy + } + ... on VictorOpsAction { + messageType + notifyUrl + useProxy } - var err_ error - - var data_ ListRepositoriesResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by ListRoles. -const ListRoles_Operation = ` -query ListRoles { - roles { - ... RoleDetails + ... on UploadFileAction { + fileName + } + ... on WebhookAction { + method + url + headers { + header + value + } + WebhookBodyTemplate: bodyTemplate + ignoreSSL + useProxy } -} -fragment RoleDetails on Role { - id - displayName - viewPermissions - organizationPermissions - systemPermissions } ` -func ListRoles( +func ListActions( ctx_ context.Context, client_ graphql.Client, -) (*ListRolesResponse, error) { + SearchDomainName string, +) (*ListActionsResponse, error) { req_ := &graphql.Request{ - OpName: "ListRoles", - Query: ListRoles_Operation, + OpName: "ListActions", + Query: ListActions_Operation, + Variables: &__ListActionsInput{ + SearchDomainName: SearchDomainName, + }, } var err_ error - var data_ ListRolesResponse + var data_ ListActionsResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20328,32 +17367,32 @@ func ListRoles( return &data_, err_ } -// The query or mutation executed by ListScheduledSearches. -const ListScheduledSearches_Operation = ` -query ListScheduledSearches ($SearchDomainName: String!) { +// The query or mutation executed by ListAggregateAlerts. +const ListAggregateAlerts_Operation = ` +query ListAggregateAlerts ($SearchDomainName: String!) { searchDomain(name: $SearchDomainName) { __typename - scheduledSearches { - ... ScheduledSearchDetails + aggregateAlerts { + ... AggregateAlertDetails } } } -fragment ScheduledSearchDetails on ScheduledSearch { +fragment AggregateAlertDetails on AggregateAlert { id name description queryString - start - end - timeZone - schedule - backfillLimit - enabled - actionsV2 { + searchIntervalSeconds + throttleTimeSeconds + throttleField + actions { __typename name } labels + enabled + triggerMode + queryTimestampType queryOwnership { __typename ... QueryOwnership @@ -20364,21 +17403,21 @@ fragment QueryOwnership on QueryOwnership { } ` -func ListScheduledSearches( +func ListAggregateAlerts( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, -) (*ListScheduledSearchesResponse, error) { +) (*ListAggregateAlertsResponse, error) { req_ := &graphql.Request{ - OpName: "ListScheduledSearches", - Query: ListScheduledSearches_Operation, - Variables: &__ListScheduledSearchesInput{ + OpName: "ListAggregateAlerts", + Query: ListAggregateAlerts_Operation, + Variables: &__ListAggregateAlertsInput{ SearchDomainName: SearchDomainName, }, } var err_ error - var data_ ListScheduledSearchesResponse + var data_ ListAggregateAlertsResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20390,107 +17429,55 @@ func ListScheduledSearches( return &data_, err_ } -// The query or mutation executed by ListSearchDomains. -const ListSearchDomains_Operation = ` -query ListSearchDomains { - searchDomains { +// The query or mutation executed by ListAlerts. +const ListAlerts_Operation = ` +query ListAlerts ($SearchDomainName: String!) { + searchDomain(name: $SearchDomainName) { __typename - name - automaticSearch - } -} -` - -func ListSearchDomains( - ctx_ context.Context, - client_ graphql.Client, -) (*ListSearchDomainsResponse, error) { - req_ := &graphql.Request{ - OpName: "ListSearchDomains", - Query: ListSearchDomains_Operation, - } - var err_ error - - var data_ ListSearchDomainsResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by ListUsers. -const ListUsers_Operation = ` -query ListUsers { - users { - ... UserDetails + alerts { + ... AlertDetails + } } } -fragment UserDetails on User { +fragment AlertDetails on Alert { id - username - fullName - email - company - countryCode - picture - isRoot - createdAt -} -` - -func ListUsers( - ctx_ context.Context, - client_ graphql.Client, -) (*ListUsersResponse, error) { - req_ := &graphql.Request{ - OpName: "ListUsers", - Query: ListUsers_Operation, - } - var err_ error - - var data_ ListUsersResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - -// The query or mutation executed by RemoveFile. -const RemoveFile_Operation = ` -mutation RemoveFile ($SearchDomainName: String!, $FileName: String!) { - removeFile(name: $SearchDomainName, fileName: $FileName) { + name + queryString + queryStart + throttleField + timeOfLastTrigger + isStarred + description + throttleTimeMillis + enabled + actions + labels + lastError + queryOwnership { __typename + ... QueryOwnership } } +fragment QueryOwnership on QueryOwnership { + id +} ` -func RemoveFile( +func ListAlerts( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - FileName string, -) (*RemoveFileResponse, error) { +) (*ListAlertsResponse, error) { req_ := &graphql.Request{ - OpName: "RemoveFile", - Query: RemoveFile_Operation, - Variables: &__RemoveFileInput{ + OpName: "ListAlerts", + Query: ListAlerts_Operation, + Variables: &__ListAlertsInput{ SearchDomainName: SearchDomainName, - FileName: FileName, }, } var err_ error - var data_ RemoveFileResponse + var data_ ListAlertsResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20502,32 +17489,51 @@ func RemoveFile( return &data_, err_ } -// The query or mutation executed by RemoveIngestToken. -const RemoveIngestToken_Operation = ` -mutation RemoveIngestToken ($RepositoryName: String!, $Name: String!) { - removeIngestToken(repositoryName: $RepositoryName, name: $Name) { - __typename +// The query or mutation executed by ListClusterNodes. +const ListClusterNodes_Operation = ` +query ListClusterNodes { + cluster { + ... ClusterNode + } +} +fragment ClusterNode on Cluster { + nodes { + id + name + uri + uuid + clusterInfoAgeSeconds + inboundSegmentSize + outboundSegmentSize + canBeSafelyUnregistered + currentSize + primarySize + secondarySize + totalSizeOfPrimary + totalSizeOfSecondary + freeOnPrimary + freeOnSecondary + wipSize + targetSize + solitarySegmentSize + isAvailable + lastHeartbeat + zone } } ` -func RemoveIngestToken( - ctx_ context.Context, - client_ graphql.Client, - RepositoryName string, - Name string, -) (*RemoveIngestTokenResponse, error) { - req_ := &graphql.Request{ - OpName: "RemoveIngestToken", - Query: RemoveIngestToken_Operation, - Variables: &__RemoveIngestTokenInput{ - RepositoryName: RepositoryName, - Name: Name, - }, +func ListClusterNodes( + ctx_ context.Context, + client_ graphql.Client, +) (*ListClusterNodesResponse, error) { + req_ := &graphql.Request{ + OpName: "ListClusterNodes", + Query: ListClusterNodes_Operation, } var err_ error - var data_ RemoveIngestTokenResponse + var data_ ListClusterNodesResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20539,30 +17545,36 @@ func RemoveIngestToken( return &data_, err_ } -// The query or mutation executed by RemoveRoleByID. -const RemoveRoleByID_Operation = ` -mutation RemoveRoleByID ($RoleID: String!) { - removeRole(roleId: $RoleID) { +// The query or mutation executed by ListFiles. +const ListFiles_Operation = ` +query ListFiles ($SearchDomainName: String!) { + searchDomain(name: $SearchDomainName) { __typename + files { + contentHash + nameAndPath { + name + } + } } } ` -func RemoveRoleByID( +func ListFiles( ctx_ context.Context, client_ graphql.Client, - RoleID string, -) (*RemoveRoleByIDResponse, error) { + SearchDomainName string, +) (*ListFilesResponse, error) { req_ := &graphql.Request{ - OpName: "RemoveRoleByID", - Query: RemoveRoleByID_Operation, - Variables: &__RemoveRoleByIDInput{ - RoleID: RoleID, + OpName: "ListFiles", + Query: ListFiles_Operation, + Variables: &__ListFilesInput{ + SearchDomainName: SearchDomainName, }, } var err_ error - var data_ RemoveRoleByIDResponse + var data_ ListFilesResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20574,43 +17586,54 @@ func RemoveRoleByID( return &data_, err_ } -// The query or mutation executed by RemoveUser. -const RemoveUser_Operation = ` -mutation RemoveUser ($Username: String!) { - removeUser(input: {username:$Username}) { - user { - ... UserDetails +// The query or mutation executed by ListFilterAlerts. +const ListFilterAlerts_Operation = ` +query ListFilterAlerts ($SearchDomainName: String!) { + searchDomain(name: $SearchDomainName) { + __typename + filterAlerts { + ... FilterAlertDetails } } } -fragment UserDetails on User { +fragment FilterAlertDetails on FilterAlert { + id + name + description + queryString + throttleTimeSeconds + throttleField + actions { + __typename + name + } + labels + enabled + queryOwnership { + __typename + ... QueryOwnership + } +} +fragment QueryOwnership on QueryOwnership { id - username - fullName - email - company - countryCode - picture - isRoot - createdAt } ` -func RemoveUser( +func ListFilterAlerts( ctx_ context.Context, client_ graphql.Client, - Username string, -) (*RemoveUserResponse, error) { + SearchDomainName string, +) (*ListFilterAlertsResponse, error) { req_ := &graphql.Request{ - OpName: "RemoveUser", - Query: RemoveUser_Operation, - Variables: &__RemoveUserInput{ - Username: Username, + OpName: "ListFilterAlerts", + Query: ListFilterAlerts_Operation, + Variables: &__ListFilterAlertsInput{ + SearchDomainName: SearchDomainName, }, } var err_ error - var data_ RemoveUserResponse + var data_ ListFilterAlertsResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20622,32 +17645,29 @@ func RemoveUser( return &data_, err_ } -// The query or mutation executed by RemoveUserFromGroup. -const RemoveUserFromGroup_Operation = ` -mutation RemoveUserFromGroup ($GroupID: String!, $UserID: String!) { - removeUsersFromGroup(input: {groupId:$GroupID,users:[$UserID]}) { - __typename +// The query or mutation executed by ListGroups. +const ListGroups_Operation = ` +query ListGroups { + groupsPage(pageNumber: 1, pageSize: 2147483647) { + page { + id + displayName + } } } ` -func RemoveUserFromGroup( +func ListGroups( ctx_ context.Context, client_ graphql.Client, - GroupID string, - UserID string, -) (*RemoveUserFromGroupResponse, error) { +) (*ListGroupsResponse, error) { req_ := &graphql.Request{ - OpName: "RemoveUserFromGroup", - Query: RemoveUserFromGroup_Operation, - Variables: &__RemoveUserFromGroupInput{ - GroupID: GroupID, - UserID: UserID, - }, + OpName: "ListGroups", + Query: ListGroups_Operation, } var err_ error - var data_ RemoveUserFromGroupResponse + var data_ ListGroupsResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20659,28 +17679,39 @@ func RemoveUserFromGroup( return &data_, err_ } -// The query or mutation executed by RotateTokenByID. -const RotateTokenByID_Operation = ` -mutation RotateTokenByID ($TokenID: String!) { - rotateToken(input: {id:$TokenID}) +// The query or mutation executed by ListIngestTokens. +const ListIngestTokens_Operation = ` +query ListIngestTokens ($RepositoryName: String!) { + repository(name: $RepositoryName) { + ingestTokens { + ... IngestTokenDetails + } + } +} +fragment IngestTokenDetails on IngestToken { + name + token + parser { + name + } } ` -func RotateTokenByID( +func ListIngestTokens( ctx_ context.Context, client_ graphql.Client, - TokenID string, -) (*RotateTokenByIDResponse, error) { + RepositoryName string, +) (*ListIngestTokensResponse, error) { req_ := &graphql.Request{ - OpName: "RotateTokenByID", - Query: RotateTokenByID_Operation, - Variables: &__RotateTokenByIDInput{ - TokenID: TokenID, + OpName: "ListIngestTokens", + Query: ListIngestTokens_Operation, + Variables: &__ListIngestTokensInput{ + RepositoryName: RepositoryName, }, } var err_ error - var data_ RotateTokenByIDResponse + var data_ ListIngestTokensResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20692,32 +17723,43 @@ func RotateTokenByID( return &data_, err_ } -// The query or mutation executed by SetAutomaticSearching. -const SetAutomaticSearching_Operation = ` -mutation SetAutomaticSearching ($SearchDomainName: String!, $AutomaticSearch: Boolean!) { - setAutomaticSearching(name: $SearchDomainName, automaticSearch: $AutomaticSearch) { +// The query or mutation executed by ListInstalledPackages. +const ListInstalledPackages_Operation = ` +query ListInstalledPackages ($SearchDomainName: String!) { + searchDomain(name: $SearchDomainName) { __typename + installedPackages { + id + installedBy { + username + timestamp + } + updatedBy { + username + timestamp + } + source + availableUpdate + } } } ` -func SetAutomaticSearching( +func ListInstalledPackages( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - AutomaticSearch bool, -) (*SetAutomaticSearchingResponse, error) { +) (*ListInstalledPackagesResponse, error) { req_ := &graphql.Request{ - OpName: "SetAutomaticSearching", - Query: SetAutomaticSearching_Operation, - Variables: &__SetAutomaticSearchingInput{ + OpName: "ListInstalledPackages", + Query: ListInstalledPackages_Operation, + Variables: &__ListInstalledPackagesInput{ SearchDomainName: SearchDomainName, - AutomaticSearch: AutomaticSearch, }, } var err_ error - var data_ SetAutomaticSearchingResponse + var data_ ListInstalledPackagesResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20729,32 +17771,34 @@ func SetAutomaticSearching( return &data_, err_ } -// The query or mutation executed by UnassignParserToIngestToken. -const UnassignParserToIngestToken_Operation = ` -mutation UnassignParserToIngestToken ($RepositoryName: String!, $IngestTokenName: String!) { - unassignIngestToken(repositoryName: $RepositoryName, tokenName: $IngestTokenName) { - __typename +// The query or mutation executed by ListParsers. +const ListParsers_Operation = ` +query ListParsers ($RepositoryName: String!) { + repository(name: $RepositoryName) { + parsers { + id + name + isBuiltIn + } } } ` -func UnassignParserToIngestToken( +func ListParsers( ctx_ context.Context, client_ graphql.Client, RepositoryName string, - IngestTokenName string, -) (*UnassignParserToIngestTokenResponse, error) { +) (*ListParsersResponse, error) { req_ := &graphql.Request{ - OpName: "UnassignParserToIngestToken", - Query: UnassignParserToIngestToken_Operation, - Variables: &__UnassignParserToIngestTokenInput{ - RepositoryName: RepositoryName, - IngestTokenName: IngestTokenName, + OpName: "ListParsers", + Query: ListParsers_Operation, + Variables: &__ListParsersInput{ + RepositoryName: RepositoryName, }, } var err_ error - var data_ UnassignParserToIngestTokenResponse + var data_ ListParsersResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20766,32 +17810,28 @@ func UnassignParserToIngestToken( return &data_, err_ } -// The query or mutation executed by UninstallPackage. -const UninstallPackage_Operation = ` -mutation UninstallPackage ($SearchDomainName: String!, $PackageID: UnversionedPackageSpecifier!) { - uninstallPackage(viewName: $SearchDomainName, packageId: $PackageID) { - __typename +// The query or mutation executed by ListRepositories. +const ListRepositories_Operation = ` +query ListRepositories { + repositories { + id + name + compressedByteSize } } ` -func UninstallPackage( +func ListRepositories( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - PackageID string, -) (*UninstallPackageResponse, error) { +) (*ListRepositoriesResponse, error) { req_ := &graphql.Request{ - OpName: "UninstallPackage", - Query: UninstallPackage_Operation, - Variables: &__UninstallPackageInput{ - SearchDomainName: SearchDomainName, - PackageID: PackageID, - }, + OpName: "ListRepositories", + Query: ListRepositories_Operation, } var err_ error - var data_ UninstallPackageResponse + var data_ ListRepositoriesResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20803,32 +17843,33 @@ func UninstallPackage( return &data_, err_ } -// The query or mutation executed by UnregisterClusterNode. -const UnregisterClusterNode_Operation = ` -mutation UnregisterClusterNode ($NodeID: Int!, $Force: Boolean!) { - clusterUnregisterNode(nodeID: $NodeID, force: $Force) { - __typename +// The query or mutation executed by ListRoles. +const ListRoles_Operation = ` +query ListRoles { + roles { + ... RoleDetails } } +fragment RoleDetails on Role { + id + displayName + viewPermissions + organizationPermissions + systemPermissions +} ` -func UnregisterClusterNode( +func ListRoles( ctx_ context.Context, client_ graphql.Client, - NodeID int, - Force bool, -) (*UnregisterClusterNodeResponse, error) { +) (*ListRolesResponse, error) { req_ := &graphql.Request{ - OpName: "UnregisterClusterNode", - Query: UnregisterClusterNode_Operation, - Variables: &__UnregisterClusterNodeInput{ - NodeID: NodeID, - Force: Force, - }, + OpName: "ListRoles", + Query: ListRoles_Operation, } var err_ error - var data_ UnregisterClusterNodeResponse + var data_ ListRolesResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20840,29 +17881,32 @@ func UnregisterClusterNode( return &data_, err_ } -// The query or mutation executed by UpdateAggregateAlert. -const UpdateAggregateAlert_Operation = ` -mutation UpdateAggregateAlert ($SearchDomainName: RepoOrViewName!, $ID: String!, $Name: String!, $Description: String, $QueryString: String!, $SearchIntervalSeconds: Long!, $ActionIdsOrNames: [String!]!, $Labels: [String!]!, $Enabled: Boolean!, $RunAsUserID: String, $ThrottleField: String, $ThrottleTimeSeconds: Long!, $TriggerMode: TriggerMode!, $QueryTimestampMode: QueryTimestampType!, $QueryOwnershipType: QueryOwnershipType!) { - updateAggregateAlert(input: {viewName:$SearchDomainName,id:$ID,name:$Name,description:$Description,queryString:$QueryString,searchIntervalSeconds:$SearchIntervalSeconds,actionIdsOrNames:$ActionIdsOrNames,labels:$Labels,enabled:$Enabled,runAsUserId:$RunAsUserID,throttleField:$ThrottleField,throttleTimeSeconds:$ThrottleTimeSeconds,triggerMode:$TriggerMode,queryTimestampType:$QueryTimestampMode,queryOwnershipType:$QueryOwnershipType}) { - ... AggregateAlertDetails +// The query or mutation executed by ListScheduledSearches. +const ListScheduledSearches_Operation = ` +query ListScheduledSearches ($SearchDomainName: String!) { + searchDomain(name: $SearchDomainName) { + __typename + scheduledSearches { + ... ScheduledSearchDetails + } } } -fragment AggregateAlertDetails on AggregateAlert { +fragment ScheduledSearchDetails on ScheduledSearch { id name description queryString - searchIntervalSeconds - throttleTimeSeconds - throttleField - actions { + start + end + timeZone + schedule + backfillLimit + enabled + actionsV2 { __typename name } labels - enabled - triggerMode - queryTimestampType queryOwnership { __typename ... QueryOwnership @@ -20873,49 +17917,21 @@ fragment QueryOwnership on QueryOwnership { } ` -func UpdateAggregateAlert( +func ListScheduledSearches( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - ID string, - Name string, - Description *string, - QueryString string, - SearchIntervalSeconds int64, - ActionIdsOrNames []string, - Labels []string, - Enabled bool, - RunAsUserID *string, - ThrottleField *string, - ThrottleTimeSeconds int64, - TriggerMode TriggerMode, - QueryTimestampMode QueryTimestampType, - QueryOwnershipType QueryOwnershipType, -) (*UpdateAggregateAlertResponse, error) { +) (*ListScheduledSearchesResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateAggregateAlert", - Query: UpdateAggregateAlert_Operation, - Variables: &__UpdateAggregateAlertInput{ - SearchDomainName: SearchDomainName, - ID: ID, - Name: Name, - Description: Description, - QueryString: QueryString, - SearchIntervalSeconds: SearchIntervalSeconds, - ActionIdsOrNames: ActionIdsOrNames, - Labels: Labels, - Enabled: Enabled, - RunAsUserID: RunAsUserID, - ThrottleField: ThrottleField, - ThrottleTimeSeconds: ThrottleTimeSeconds, - TriggerMode: TriggerMode, - QueryTimestampMode: QueryTimestampMode, - QueryOwnershipType: QueryOwnershipType, + OpName: "ListScheduledSearches", + Query: ListScheduledSearches_Operation, + Variables: &__ListScheduledSearchesInput{ + SearchDomainName: SearchDomainName, }, } var err_ error - var data_ UpdateAggregateAlertResponse + var data_ ListScheduledSearchesResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -20927,76 +17943,28 @@ func UpdateAggregateAlert( return &data_, err_ } -// The query or mutation executed by UpdateAlert. -const UpdateAlert_Operation = ` -mutation UpdateAlert ($SearchDomainName: String!, $AlertID: String!, $Name: String!, $Description: String, $QueryString: String!, $QueryStart: String!, $ThrottleTimeMillis: Long!, $Enabled: Boolean!, $Actions: [String!]!, $Labels: [String!]!, $RunAsUserID: String, $QueryOwnershipType: QueryOwnershipType, $ThrottleField: String) { - updateAlert(input: {id:$AlertID,viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,queryStart:$QueryStart,throttleTimeMillis:$ThrottleTimeMillis,enabled:$Enabled,actions:$Actions,labels:$Labels,runAsUserId:$RunAsUserID,queryOwnershipType:$QueryOwnershipType,throttleField:$ThrottleField}) { - ... AlertDetails - } -} -fragment AlertDetails on Alert { - id - name - queryString - queryStart - throttleField - timeOfLastTrigger - isStarred - description - throttleTimeMillis - enabled - actions - labels - lastError - queryOwnership { +// The query or mutation executed by ListSearchDomains. +const ListSearchDomains_Operation = ` +query ListSearchDomains { + searchDomains { __typename - ... QueryOwnership + name + automaticSearch } } -fragment QueryOwnership on QueryOwnership { - id -} ` -func UpdateAlert( +func ListSearchDomains( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - AlertID string, - Name string, - Description *string, - QueryString string, - QueryStart string, - ThrottleTimeMillis int64, - Enabled bool, - Actions []string, - Labels []string, - RunAsUserID *string, - QueryOwnershipType *QueryOwnershipType, - ThrottleField *string, -) (*UpdateAlertResponse, error) { +) (*ListSearchDomainsResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateAlert", - Query: UpdateAlert_Operation, - Variables: &__UpdateAlertInput{ - SearchDomainName: SearchDomainName, - AlertID: AlertID, - Name: Name, - Description: Description, - QueryString: QueryString, - QueryStart: QueryStart, - ThrottleTimeMillis: ThrottleTimeMillis, - Enabled: Enabled, - Actions: Actions, - Labels: Labels, - RunAsUserID: RunAsUserID, - QueryOwnershipType: QueryOwnershipType, - ThrottleField: ThrottleField, - }, + OpName: "ListSearchDomains", + Query: ListSearchDomains_Operation, } var err_ error - var data_ UpdateAlertResponse + var data_ ListSearchDomainsResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21008,32 +17976,37 @@ func UpdateAlert( return &data_, err_ } -// The query or mutation executed by UpdateDescriptionForSearchDomain. -const UpdateDescriptionForSearchDomain_Operation = ` -mutation UpdateDescriptionForSearchDomain ($SearchDomainName: String!, $NewDescription: String!) { - updateDescriptionForSearchDomain(name: $SearchDomainName, newDescription: $NewDescription) { - __typename +// The query or mutation executed by ListUsers. +const ListUsers_Operation = ` +query ListUsers { + users { + ... UserDetails } } +fragment UserDetails on User { + id + username + fullName + email + company + countryCode + picture + isRoot + createdAt +} ` -func UpdateDescriptionForSearchDomain( +func ListUsers( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - NewDescription string, -) (*UpdateDescriptionForSearchDomainResponse, error) { +) (*ListUsersResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateDescriptionForSearchDomain", - Query: UpdateDescriptionForSearchDomain_Operation, - Variables: &__UpdateDescriptionForSearchDomainInput{ - SearchDomainName: SearchDomainName, - NewDescription: NewDescription, - }, + OpName: "ListUsers", + Query: ListUsers_Operation, } var err_ error - var data_ UpdateDescriptionForSearchDomainResponse + var data_ ListUsersResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21045,47 +18018,32 @@ func UpdateDescriptionForSearchDomain( return &data_, err_ } -// The query or mutation executed by UpdateEmailAction. -const UpdateEmailAction_Operation = ` -mutation UpdateEmailAction ($SearchDomainName: String!, $ActionID: String!, $ActionName: String!, $Recipients: [String!]!, $SubjectTemplate: String, $BodyTemplate: String, $UseProxy: Boolean!) { - updateEmailAction(input: {viewName:$SearchDomainName,id:$ActionID,name:$ActionName,recipients:$Recipients,subjectTemplate:$SubjectTemplate,bodyTemplate:$BodyTemplate,useProxy:$UseProxy}) { - id - name - recipients - subjectTemplate - bodyTemplate - useProxy +// The query or mutation executed by RemoveFile. +const RemoveFile_Operation = ` +mutation RemoveFile ($SearchDomainName: String!, $FileName: String!) { + removeFile(name: $SearchDomainName, fileName: $FileName) { + __typename } } ` -func UpdateEmailAction( +func RemoveFile( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - ActionID string, - ActionName string, - Recipients []string, - SubjectTemplate *string, - BodyTemplate *string, - UseProxy bool, -) (*UpdateEmailActionResponse, error) { + FileName string, +) (*RemoveFileResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateEmailAction", - Query: UpdateEmailAction_Operation, - Variables: &__UpdateEmailActionInput{ + OpName: "RemoveFile", + Query: RemoveFile_Operation, + Variables: &__RemoveFileInput{ SearchDomainName: SearchDomainName, - ActionID: ActionID, - ActionName: ActionName, - Recipients: Recipients, - SubjectTemplate: SubjectTemplate, - BodyTemplate: BodyTemplate, - UseProxy: UseProxy, + FileName: FileName, }, } var err_ error - var data_ UpdateEmailActionResponse + var data_ RemoveFileResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21097,73 +18055,32 @@ func UpdateEmailAction( return &data_, err_ } -// The query or mutation executed by UpdateFilterAlert. -const UpdateFilterAlert_Operation = ` -mutation UpdateFilterAlert ($SearchDomainName: RepoOrViewName!, $ID: String!, $Name: String!, $Description: String, $QueryString: String!, $ActionIdsOrNames: [String!]!, $Labels: [String!]!, $Enabled: Boolean!, $RunAsUserID: String, $ThrottleField: String, $ThrottleTimeSeconds: Long!, $QueryOwnershipType: QueryOwnershipType!) { - updateFilterAlert(input: {viewName:$SearchDomainName,id:$ID,name:$Name,description:$Description,queryString:$QueryString,actionIdsOrNames:$ActionIdsOrNames,labels:$Labels,enabled:$Enabled,runAsUserId:$RunAsUserID,throttleField:$ThrottleField,throttleTimeSeconds:$ThrottleTimeSeconds,queryOwnershipType:$QueryOwnershipType}) { - ... FilterAlertDetails - } -} -fragment FilterAlertDetails on FilterAlert { - id - name - description - queryString - throttleTimeSeconds - throttleField - actions { - __typename - name - } - labels - enabled - queryOwnership { +// The query or mutation executed by RemoveIngestToken. +const RemoveIngestToken_Operation = ` +mutation RemoveIngestToken ($RepositoryName: String!, $Name: String!) { + removeIngestToken(repositoryName: $RepositoryName, name: $Name) { __typename - ... QueryOwnership } } -fragment QueryOwnership on QueryOwnership { - id -} ` -func UpdateFilterAlert( +func RemoveIngestToken( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - ID string, - Name string, - Description *string, - QueryString string, - ActionIdsOrNames []string, - Labels []string, - Enabled bool, - RunAsUserID *string, - ThrottleField *string, - ThrottleTimeSeconds int64, - QueryOwnershipType QueryOwnershipType, -) (*UpdateFilterAlertResponse, error) { - req_ := &graphql.Request{ - OpName: "UpdateFilterAlert", - Query: UpdateFilterAlert_Operation, - Variables: &__UpdateFilterAlertInput{ - SearchDomainName: SearchDomainName, - ID: ID, - Name: Name, - Description: Description, - QueryString: QueryString, - ActionIdsOrNames: ActionIdsOrNames, - Labels: Labels, - Enabled: Enabled, - RunAsUserID: RunAsUserID, - ThrottleField: ThrottleField, - ThrottleTimeSeconds: ThrottleTimeSeconds, - QueryOwnershipType: QueryOwnershipType, + RepositoryName string, + Name string, +) (*RemoveIngestTokenResponse, error) { + req_ := &graphql.Request{ + OpName: "RemoveIngestToken", + Query: RemoveIngestToken_Operation, + Variables: &__RemoveIngestTokenInput{ + RepositoryName: RepositoryName, + Name: Name, }, } var err_ error - var data_ UpdateFilterAlertResponse + var data_ RemoveIngestTokenResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21175,38 +18092,43 @@ func UpdateFilterAlert( return &data_, err_ } -// The query or mutation executed by UpdateHumioRepoAction. -const UpdateHumioRepoAction_Operation = ` -mutation UpdateHumioRepoAction ($SearchDomainName: String!, $ActionID: String!, $ActionName: String!, $IngestToken: String!) { - updateHumioRepoAction(input: {viewName:$SearchDomainName,id:$ActionID,name:$ActionName,ingestToken:$IngestToken}) { - id - name - ingestToken +// The query or mutation executed by RemoveUser. +const RemoveUser_Operation = ` +mutation RemoveUser ($Username: String!) { + removeUser(input: {username:$Username}) { + user { + ... UserDetails + } } } +fragment UserDetails on User { + id + username + fullName + email + company + countryCode + picture + isRoot + createdAt +} ` -func UpdateHumioRepoAction( +func RemoveUser( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - ActionID string, - ActionName string, - IngestToken string, -) (*UpdateHumioRepoActionResponse, error) { + Username string, +) (*RemoveUserResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateHumioRepoAction", - Query: UpdateHumioRepoAction_Operation, - Variables: &__UpdateHumioRepoActionInput{ - SearchDomainName: SearchDomainName, - ActionID: ActionID, - ActionName: ActionName, - IngestToken: IngestToken, + OpName: "RemoveUser", + Query: RemoveUser_Operation, + Variables: &__RemoveUserInput{ + Username: Username, }, } var err_ error - var data_ UpdateHumioRepoActionResponse + var data_ RemoveUserResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21218,32 +18140,32 @@ func UpdateHumioRepoAction( return &data_, err_ } -// The query or mutation executed by UpdateIngestBasedRetention. -const UpdateIngestBasedRetention_Operation = ` -mutation UpdateIngestBasedRetention ($RepositoryName: String!, $IngestInGB: Float) { - updateRetention(repositoryName: $RepositoryName, ingestSizeBasedRetention: $IngestInGB) { +// The query or mutation executed by RemoveUserFromGroup. +const RemoveUserFromGroup_Operation = ` +mutation RemoveUserFromGroup ($GroupID: String!, $UserID: String!) { + removeUsersFromGroup(input: {groupId:$GroupID,users:[$UserID]}) { __typename } } ` -func UpdateIngestBasedRetention( +func RemoveUserFromGroup( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, - IngestInGB *float64, -) (*UpdateIngestBasedRetentionResponse, error) { + GroupID string, + UserID string, +) (*RemoveUserFromGroupResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateIngestBasedRetention", - Query: UpdateIngestBasedRetention_Operation, - Variables: &__UpdateIngestBasedRetentionInput{ - RepositoryName: RepositoryName, - IngestInGB: IngestInGB, + OpName: "RemoveUserFromGroup", + Query: RemoveUserFromGroup_Operation, + Variables: &__RemoveUserFromGroupInput{ + GroupID: GroupID, + UserID: UserID, }, } var err_ error - var data_ UpdateIngestBasedRetentionResponse + var data_ RemoveUserFromGroupResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21255,30 +18177,28 @@ func UpdateIngestBasedRetention( return &data_, err_ } -// The query or mutation executed by UpdateLicenseKey. -const UpdateLicenseKey_Operation = ` -mutation UpdateLicenseKey ($LicenseKey: String!) { - updateLicenseKey(license: $LicenseKey) { - __typename - } +// The query or mutation executed by RotateTokenByID. +const RotateTokenByID_Operation = ` +mutation RotateTokenByID ($TokenID: String!) { + rotateToken(input: {id:$TokenID}) } ` -func UpdateLicenseKey( +func RotateTokenByID( ctx_ context.Context, client_ graphql.Client, - LicenseKey string, -) (*UpdateLicenseKeyResponse, error) { + TokenID string, +) (*RotateTokenByIDResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateLicenseKey", - Query: UpdateLicenseKey_Operation, - Variables: &__UpdateLicenseKeyInput{ - LicenseKey: LicenseKey, + OpName: "RotateTokenByID", + Query: RotateTokenByID_Operation, + Variables: &__RotateTokenByIDInput{ + TokenID: TokenID, }, } var err_ error - var data_ UpdateLicenseKeyResponse + var data_ RotateTokenByIDResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21290,44 +18210,32 @@ func UpdateLicenseKey( return &data_, err_ } -// The query or mutation executed by UpdateOpsGenieAction. -const UpdateOpsGenieAction_Operation = ` -mutation UpdateOpsGenieAction ($SearchDomainName: String!, $ActionID: String!, $ActionName: String!, $ApiUrl: String!, $GenieKey: String!, $UseProxy: Boolean!) { - updateOpsGenieAction(input: {viewName:$SearchDomainName,id:$ActionID,name:$ActionName,apiUrl:$ApiUrl,genieKey:$GenieKey,useProxy:$UseProxy}) { - id - name - apiUrl - genieKey - useProxy +// The query or mutation executed by SetAutomaticSearching. +const SetAutomaticSearching_Operation = ` +mutation SetAutomaticSearching ($SearchDomainName: String!, $AutomaticSearch: Boolean!) { + setAutomaticSearching(name: $SearchDomainName, automaticSearch: $AutomaticSearch) { + __typename } } ` -func UpdateOpsGenieAction( +func SetAutomaticSearching( ctx_ context.Context, client_ graphql.Client, SearchDomainName string, - ActionID string, - ActionName string, - ApiUrl string, - GenieKey string, - UseProxy bool, -) (*UpdateOpsGenieActionResponse, error) { + AutomaticSearch bool, +) (*SetAutomaticSearchingResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateOpsGenieAction", - Query: UpdateOpsGenieAction_Operation, - Variables: &__UpdateOpsGenieActionInput{ + OpName: "SetAutomaticSearching", + Query: SetAutomaticSearching_Operation, + Variables: &__SetAutomaticSearchingInput{ SearchDomainName: SearchDomainName, - ActionID: ActionID, - ActionName: ActionName, - ApiUrl: ApiUrl, - GenieKey: GenieKey, - UseProxy: UseProxy, + AutomaticSearch: AutomaticSearch, }, } var err_ error - var data_ UpdateOpsGenieActionResponse + var data_ SetAutomaticSearchingResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21339,44 +18247,32 @@ func UpdateOpsGenieAction( return &data_, err_ } -// The query or mutation executed by UpdatePagerDutyAction. -const UpdatePagerDutyAction_Operation = ` -mutation UpdatePagerDutyAction ($SearchDomainName: String!, $ActionID: String!, $ActionName: String!, $Severity: String!, $RoutingKey: String!, $UseProxy: Boolean!) { - updatePagerDutyAction(input: {viewName:$SearchDomainName,id:$ActionID,name:$ActionName,severity:$Severity,routingKey:$RoutingKey,useProxy:$UseProxy}) { - id - name - severity - routingKey - useProxy +// The query or mutation executed by UnassignParserToIngestToken. +const UnassignParserToIngestToken_Operation = ` +mutation UnassignParserToIngestToken ($RepositoryName: String!, $IngestTokenName: String!) { + unassignIngestToken(repositoryName: $RepositoryName, tokenName: $IngestTokenName) { + __typename } } ` -func UpdatePagerDutyAction( +func UnassignParserToIngestToken( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - ActionID string, - ActionName string, - Severity string, - RoutingKey string, - UseProxy bool, -) (*UpdatePagerDutyActionResponse, error) { + RepositoryName string, + IngestTokenName string, +) (*UnassignParserToIngestTokenResponse, error) { req_ := &graphql.Request{ - OpName: "UpdatePagerDutyAction", - Query: UpdatePagerDutyAction_Operation, - Variables: &__UpdatePagerDutyActionInput{ - SearchDomainName: SearchDomainName, - ActionID: ActionID, - ActionName: ActionName, - Severity: Severity, - RoutingKey: RoutingKey, - UseProxy: UseProxy, + OpName: "UnassignParserToIngestToken", + Query: UnassignParserToIngestToken_Operation, + Variables: &__UnassignParserToIngestTokenInput{ + RepositoryName: RepositoryName, + IngestTokenName: IngestTokenName, }, } var err_ error - var data_ UpdatePagerDutyActionResponse + var data_ UnassignParserToIngestTokenResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21388,47 +18284,32 @@ func UpdatePagerDutyAction( return &data_, err_ } -// The query or mutation executed by UpdateRole. -const UpdateRole_Operation = ` -mutation UpdateRole ($RoleID: String!, $RoleName: String!, $ViewPermissions: [Permission!]!, $OrganizationPermissions: [OrganizationPermission!], $SystemPermissions: [SystemPermission!]) { - updateRole(input: {roleId:$RoleID,displayName:$RoleName,viewPermissions:$ViewPermissions,organizationPermissions:$OrganizationPermissions,systemPermissions:$SystemPermissions}) { - role { - ... RoleDetails - } +// The query or mutation executed by UninstallPackage. +const UninstallPackage_Operation = ` +mutation UninstallPackage ($SearchDomainName: String!, $PackageID: UnversionedPackageSpecifier!) { + uninstallPackage(viewName: $SearchDomainName, packageId: $PackageID) { + __typename } } -fragment RoleDetails on Role { - id - displayName - viewPermissions - organizationPermissions - systemPermissions -} ` -func UpdateRole( +func UninstallPackage( ctx_ context.Context, client_ graphql.Client, - RoleID string, - RoleName string, - ViewPermissions []Permission, - OrganizationPermissions []OrganizationPermission, - SystemPermissions []SystemPermission, -) (*UpdateRoleResponse, error) { + SearchDomainName string, + PackageID string, +) (*UninstallPackageResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateRole", - Query: UpdateRole_Operation, - Variables: &__UpdateRoleInput{ - RoleID: RoleID, - RoleName: RoleName, - ViewPermissions: ViewPermissions, - OrganizationPermissions: OrganizationPermissions, - SystemPermissions: SystemPermissions, + OpName: "UninstallPackage", + Query: UninstallPackage_Operation, + Variables: &__UninstallPackageInput{ + SearchDomainName: SearchDomainName, + PackageID: PackageID, }, } var err_ error - var data_ UpdateRoleResponse + var data_ UninstallPackageResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21440,36 +18321,32 @@ func UpdateRole( return &data_, err_ } -// The query or mutation executed by UpdateS3ArchivingConfiguration. -const UpdateS3ArchivingConfiguration_Operation = ` -mutation UpdateS3ArchivingConfiguration ($RepositoryName: String!, $BucketName: String!, $BucketRegion: String!, $Format: S3ArchivingFormat!) { - s3ConfigureArchiving(repositoryName: $RepositoryName, bucket: $BucketName, region: $BucketRegion, format: $Format) { +// The query or mutation executed by UnregisterClusterNode. +const UnregisterClusterNode_Operation = ` +mutation UnregisterClusterNode ($NodeID: Int!, $Force: Boolean!) { + clusterUnregisterNode(nodeID: $NodeID, force: $Force) { __typename } } ` -func UpdateS3ArchivingConfiguration( +func UnregisterClusterNode( ctx_ context.Context, client_ graphql.Client, - RepositoryName string, - BucketName string, - BucketRegion string, - Format S3ArchivingFormat, -) (*UpdateS3ArchivingConfigurationResponse, error) { + NodeID int, + Force bool, +) (*UnregisterClusterNodeResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateS3ArchivingConfiguration", - Query: UpdateS3ArchivingConfiguration_Operation, - Variables: &__UpdateS3ArchivingConfigurationInput{ - RepositoryName: RepositoryName, - BucketName: BucketName, - BucketRegion: BucketRegion, - Format: Format, + OpName: "UnregisterClusterNode", + Query: UnregisterClusterNode_Operation, + Variables: &__UnregisterClusterNodeInput{ + NodeID: NodeID, + Force: Force, }, } var err_ error - var data_ UpdateS3ArchivingConfigurationResponse + var data_ UnregisterClusterNodeResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21481,82 +18358,69 @@ func UpdateS3ArchivingConfiguration( return &data_, err_ } -// The query or mutation executed by UpdateScheduledSearch. -const UpdateScheduledSearch_Operation = ` -mutation UpdateScheduledSearch ($SearchDomainName: String!, $ID: String!, $Name: String!, $Description: String, $QueryString: String!, $QueryStart: String!, $QueryEnd: String!, $Schedule: String!, $TimeZone: String!, $BackfillLimit: Int!, $Enabled: Boolean!, $ActionIdsOrNames: [String!]!, $RunAsUserID: String!, $Labels: [String!]!, $QueryOwnershipType: QueryOwnershipType) { - updateScheduledSearch(input: {viewName:$SearchDomainName,id:$ID,name:$Name,description:$Description,queryString:$QueryString,queryStart:$QueryStart,queryEnd:$QueryEnd,schedule:$Schedule,timeZone:$TimeZone,backfillLimit:$BackfillLimit,enabled:$Enabled,actions:$ActionIdsOrNames,runAsUserId:$RunAsUserID,labels:$Labels,queryOwnershipType:$QueryOwnershipType}) { - ... ScheduledSearchDetails - } -} -fragment ScheduledSearchDetails on ScheduledSearch { - id - name - description - queryString - start - end - timeZone - schedule - backfillLimit - enabled - actionsV2 { +// The query or mutation executed by UpdateDescriptionForSearchDomain. +const UpdateDescriptionForSearchDomain_Operation = ` +mutation UpdateDescriptionForSearchDomain ($SearchDomainName: String!, $NewDescription: String!) { + updateDescriptionForSearchDomain(name: $SearchDomainName, newDescription: $NewDescription) { __typename - name } - labels - queryOwnership { - __typename - ... QueryOwnership +} +` + +func UpdateDescriptionForSearchDomain( + ctx_ context.Context, + client_ graphql.Client, + SearchDomainName string, + NewDescription string, +) (*UpdateDescriptionForSearchDomainResponse, error) { + req_ := &graphql.Request{ + OpName: "UpdateDescriptionForSearchDomain", + Query: UpdateDescriptionForSearchDomain_Operation, + Variables: &__UpdateDescriptionForSearchDomainInput{ + SearchDomainName: SearchDomainName, + NewDescription: NewDescription, + }, } + var err_ error + + var data_ UpdateDescriptionForSearchDomainResponse + resp_ := &graphql.Response{Data: &data_} + + err_ = client_.MakeRequest( + ctx_, + req_, + resp_, + ) + + return &data_, err_ } -fragment QueryOwnership on QueryOwnership { - id + +// The query or mutation executed by UpdateIngestBasedRetention. +const UpdateIngestBasedRetention_Operation = ` +mutation UpdateIngestBasedRetention ($RepositoryName: String!, $IngestInGB: Float) { + updateRetention(repositoryName: $RepositoryName, ingestSizeBasedRetention: $IngestInGB) { + __typename + } } ` -func UpdateScheduledSearch( +func UpdateIngestBasedRetention( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - ID string, - Name string, - Description *string, - QueryString string, - QueryStart string, - QueryEnd string, - Schedule string, - TimeZone string, - BackfillLimit int, - Enabled bool, - ActionIdsOrNames []string, - RunAsUserID string, - Labels []string, - QueryOwnershipType *QueryOwnershipType, -) (*UpdateScheduledSearchResponse, error) { + RepositoryName string, + IngestInGB *float64, +) (*UpdateIngestBasedRetentionResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateScheduledSearch", - Query: UpdateScheduledSearch_Operation, - Variables: &__UpdateScheduledSearchInput{ - SearchDomainName: SearchDomainName, - ID: ID, - Name: Name, - Description: Description, - QueryString: QueryString, - QueryStart: QueryStart, - QueryEnd: QueryEnd, - Schedule: Schedule, - TimeZone: TimeZone, - BackfillLimit: BackfillLimit, - Enabled: Enabled, - ActionIdsOrNames: ActionIdsOrNames, - RunAsUserID: RunAsUserID, - Labels: Labels, - QueryOwnershipType: QueryOwnershipType, + OpName: "UpdateIngestBasedRetention", + Query: UpdateIngestBasedRetention_Operation, + Variables: &__UpdateIngestBasedRetentionInput{ + RepositoryName: RepositoryName, + IngestInGB: IngestInGB, }, } var err_ error - var data_ UpdateScheduledSearchResponse + var data_ UpdateIngestBasedRetentionResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21568,47 +18432,30 @@ func UpdateScheduledSearch( return &data_, err_ } -// The query or mutation executed by UpdateSlackAction. -const UpdateSlackAction_Operation = ` -mutation UpdateSlackAction ($SearchDomainName: String!, $ActionID: String!, $ActionName: String!, $Fields: [SlackFieldEntryInput!]!, $Url: String!, $UseProxy: Boolean!) { - updateSlackAction(input: {viewName:$SearchDomainName,id:$ActionID,name:$ActionName,fields:$Fields,url:$Url,useProxy:$UseProxy}) { - id - name - fields { - value - fieldName - } - url - useProxy +// The query or mutation executed by UpdateLicenseKey. +const UpdateLicenseKey_Operation = ` +mutation UpdateLicenseKey ($LicenseKey: String!) { + updateLicenseKey(license: $LicenseKey) { + __typename } } ` -func UpdateSlackAction( +func UpdateLicenseKey( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - ActionID string, - ActionName string, - Fields []SlackFieldEntryInput, - Url string, - UseProxy bool, -) (*UpdateSlackActionResponse, error) { + LicenseKey string, +) (*UpdateLicenseKeyResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateSlackAction", - Query: UpdateSlackAction_Operation, - Variables: &__UpdateSlackActionInput{ - SearchDomainName: SearchDomainName, - ActionID: ActionID, - ActionName: ActionName, - Fields: Fields, - Url: Url, - UseProxy: UseProxy, + OpName: "UpdateLicenseKey", + Query: UpdateLicenseKey_Operation, + Variables: &__UpdateLicenseKeyInput{ + LicenseKey: LicenseKey, }, } var err_ error - var data_ UpdateSlackActionResponse + var data_ UpdateLicenseKeyResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21620,50 +18467,36 @@ func UpdateSlackAction( return &data_, err_ } -// The query or mutation executed by UpdateSlackPostMessageAction. -const UpdateSlackPostMessageAction_Operation = ` -mutation UpdateSlackPostMessageAction ($SearchDomainName: String!, $ActionID: String!, $ActionName: String!, $ApiToken: String!, $Channels: [String!]!, $Fields: [SlackFieldEntryInput!]!, $UseProxy: Boolean!) { - updateSlackPostMessageAction(input: {viewName:$SearchDomainName,id:$ActionID,name:$ActionName,apiToken:$ApiToken,channels:$Channels,fields:$Fields,useProxy:$UseProxy}) { - id - name - apiToken - channels - fields { - value - fieldName - } - useProxy +// The query or mutation executed by UpdateS3ArchivingConfiguration. +const UpdateS3ArchivingConfiguration_Operation = ` +mutation UpdateS3ArchivingConfiguration ($RepositoryName: String!, $BucketName: String!, $BucketRegion: String!, $Format: S3ArchivingFormat!) { + s3ConfigureArchiving(repositoryName: $RepositoryName, bucket: $BucketName, region: $BucketRegion, format: $Format) { + __typename } } ` -func UpdateSlackPostMessageAction( +func UpdateS3ArchivingConfiguration( ctx_ context.Context, client_ graphql.Client, - SearchDomainName string, - ActionID string, - ActionName string, - ApiToken string, - Channels []string, - Fields []SlackFieldEntryInput, - UseProxy bool, -) (*UpdateSlackPostMessageActionResponse, error) { + RepositoryName string, + BucketName string, + BucketRegion string, + Format S3ArchivingFormat, +) (*UpdateS3ArchivingConfigurationResponse, error) { req_ := &graphql.Request{ - OpName: "UpdateSlackPostMessageAction", - Query: UpdateSlackPostMessageAction_Operation, - Variables: &__UpdateSlackPostMessageActionInput{ - SearchDomainName: SearchDomainName, - ActionID: ActionID, - ActionName: ActionName, - ApiToken: ApiToken, - Channels: Channels, - Fields: Fields, - UseProxy: UseProxy, + OpName: "UpdateS3ArchivingConfiguration", + Query: UpdateS3ArchivingConfiguration_Operation, + Variables: &__UpdateS3ArchivingConfigurationInput{ + RepositoryName: RepositoryName, + BucketName: BucketName, + BucketRegion: BucketRegion, + Format: Format, }, } var err_ error - var data_ UpdateSlackPostMessageActionResponse + var data_ UpdateS3ArchivingConfigurationResponse resp_ := &graphql.Response{Data: &data_} err_ = client_.MakeRequest( @@ -21749,49 +18582,6 @@ func UpdateTimeBasedRetention( return &data_, err_ } -// The query or mutation executed by UpdateUploadFileAction. -const UpdateUploadFileAction_Operation = ` -mutation UpdateUploadFileAction ($SearchDomainName: String!, $ActionID: String!, $ActionName: String!, $FileName: String!) { - updateUploadFileAction(input: {viewName:$SearchDomainName,id:$ActionID,name:$ActionName,fileName:$FileName}) { - id - name - fileName - } -} -` - -func UpdateUploadFileAction( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - ActionID string, - ActionName string, - FileName string, -) (*UpdateUploadFileActionResponse, error) { - req_ := &graphql.Request{ - OpName: "UpdateUploadFileAction", - Query: UpdateUploadFileAction_Operation, - Variables: &__UpdateUploadFileActionInput{ - SearchDomainName: SearchDomainName, - ActionID: ActionID, - ActionName: ActionName, - FileName: FileName, - }, - } - var err_ error - - var data_ UpdateUploadFileActionResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - // The query or mutation executed by UpdateUser. const UpdateUser_Operation = ` mutation UpdateUser ($Username: String!, $Company: String, $IsRoot: Boolean, $FullName: String, $Picture: String, $Email: String, $CountryCode: String) { @@ -21839,55 +18629,6 @@ func UpdateUser( return &data_, err_ } -// The query or mutation executed by UpdateVictorOpsAction. -const UpdateVictorOpsAction_Operation = ` -mutation UpdateVictorOpsAction ($SearchDomainName: String!, $ActionID: String!, $ActionName: String!, $MessageType: String!, $NotifyUrl: String!, $UseProxy: Boolean!) { - updateVictorOpsAction(input: {viewName:$SearchDomainName,id:$ActionID,name:$ActionName,messageType:$MessageType,notifyUrl:$NotifyUrl,useProxy:$UseProxy}) { - id - name - messageType - notifyUrl - useProxy - } -} -` - -func UpdateVictorOpsAction( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - ActionID string, - ActionName string, - MessageType string, - NotifyUrl string, - UseProxy bool, -) (*UpdateVictorOpsActionResponse, error) { - req_ := &graphql.Request{ - OpName: "UpdateVictorOpsAction", - Query: UpdateVictorOpsAction_Operation, - Variables: &__UpdateVictorOpsActionInput{ - SearchDomainName: SearchDomainName, - ActionID: ActionID, - ActionName: ActionName, - MessageType: MessageType, - NotifyUrl: NotifyUrl, - UseProxy: UseProxy, - }, - } - var err_ error - - var data_ UpdateVictorOpsActionResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -} - // The query or mutation executed by UpdateViewConnections. const UpdateViewConnections_Operation = ` mutation UpdateViewConnections ($ViewName: String!, $Connections: [ViewConnectionInput!]!) { @@ -21924,64 +18665,3 @@ func UpdateViewConnections( return &data_, err_ } - -// The query or mutation executed by UpdateWebhookAction. -const UpdateWebhookAction_Operation = ` -mutation UpdateWebhookAction ($SearchDomainName: String!, $ActionID: String!, $ActionName: String!, $Url: String!, $Method: String!, $Headers: [HttpHeaderEntryInput!]!, $BodyTemplate: String!, $IgnoreSSL: Boolean!, $UseProxy: Boolean!) { - updateWebhookAction(input: {viewName:$SearchDomainName,id:$ActionID,name:$ActionName,url:$Url,method:$Method,headers:$Headers,bodyTemplate:$BodyTemplate,ignoreSSL:$IgnoreSSL,useProxy:$UseProxy}) { - id - name - url - method - headers { - value - header - } - bodyTemplate - ignoreSSL - useProxy - } -} -` - -func UpdateWebhookAction( - ctx_ context.Context, - client_ graphql.Client, - SearchDomainName string, - ActionID string, - ActionName string, - Url string, - Method string, - Headers []HttpHeaderEntryInput, - BodyTemplate string, - IgnoreSSL bool, - UseProxy bool, -) (*UpdateWebhookActionResponse, error) { - req_ := &graphql.Request{ - OpName: "UpdateWebhookAction", - Query: UpdateWebhookAction_Operation, - Variables: &__UpdateWebhookActionInput{ - SearchDomainName: SearchDomainName, - ActionID: ActionID, - ActionName: ActionName, - Url: Url, - Method: Method, - Headers: Headers, - BodyTemplate: BodyTemplate, - IgnoreSSL: IgnoreSSL, - UseProxy: UseProxy, - }, - } - var err_ error - - var data_ UpdateWebhookActionResponse - resp_ := &graphql.Response{Data: &data_} - - err_ = client_.MakeRequest( - ctx_, - req_, - resp_, - ) - - return &data_, err_ -}