diff --git a/CHANGELOG.md b/CHANGELOG.md index c4b532b35..28f73a622 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - Add support for `unenrollment_timeout` in `elasticstack_fleet_agent_policy` ([#1169](https://github.com/elastic/terraform-provider-elasticstack/issues/1169)) - Handle default value for `allow_restricted_indices` in `elasticstack_elasticsearch_security_api_key` ([#1315](https://github.com/elastic/terraform-provider-elasticstack/pull/1315)) - Fixed `nil` reference in kibana synthetics API client in case of response errors ([#1320](https://github.com/elastic/terraform-provider-elasticstack/pull/1320)) +- Add support for `agent_policy_ids` in `elasticstack_fleet_integration_policy` ([#1131](https://github.com/elastic/terraform-provider-elasticstack/pull/1311)) ## [0.11.17] - 2025-07-21 diff --git a/docs/resources/fleet_integration_policy.md b/docs/resources/fleet_integration_policy.md index f8cd606a8..573459340 100644 --- a/docs/resources/fleet_integration_policy.md +++ b/docs/resources/fleet_integration_policy.md @@ -90,7 +90,6 @@ resource "elasticstack_fleet_integration_policy" "sample" { ### Required -- `agent_policy_id` (String) ID of the agent policy. - `integration_name` (String) The name of the integration package. - `integration_version` (String) The version of the integration package. - `name` (String) The name of the integration policy. @@ -98,6 +97,8 @@ resource "elasticstack_fleet_integration_policy" "sample" { ### Optional +- `agent_policy_id` (String) ID of the agent policy. +- `agent_policy_ids` (List of String) List of agent policy IDs. - `description` (String) The description of the integration policy. - `enabled` (Boolean) Enable the integration policy. - `force` (Boolean) Force operations, such as creation and deletion, to occur. diff --git a/generated/kbapi/kibana.gen.go b/generated/kbapi/kibana.gen.go index 500ac2ba1..5031ad980 100644 --- a/generated/kbapi/kibana.gen.go +++ b/generated/kbapi/kibana.gen.go @@ -411,6 +411,42 @@ const ( ANONYMIZATIONFIELDNOTMODIFIED SecurityAIAssistantAPIAnonymizationFieldsBulkActionSkipReason = "ANONYMIZATION_FIELD_NOT_MODIFIED" ) +// Defines values for SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhen. +const ( + SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhenOnActionGroupChange SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhen = "onActionGroupChange" + SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhenOnActiveAlert SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhen = "onActiveAlert" + SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhenOnThrottleInterval SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhen = "onThrottleInterval" +) + +// Defines values for SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatus. +const ( + SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatusActive SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatus = "active" + SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatusError SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatus = "error" + SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatusOk SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatus = "ok" + SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatusUnknown SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatus = "unknown" + SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatusWarning SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatus = "warning" +) + +// Defines values for SecurityAIAssistantAPIAttackDiscoveryFindSortField. +const ( + SecurityAIAssistantAPIAttackDiscoveryFindSortFieldTimestamp SecurityAIAssistantAPIAttackDiscoveryFindSortField = "@timestamp" +) + +// Defines values for SecurityAIAssistantAPIAttackDiscoveryGenerationStatus. +const ( + SecurityAIAssistantAPIAttackDiscoveryGenerationStatusCanceled SecurityAIAssistantAPIAttackDiscoveryGenerationStatus = "canceled" + SecurityAIAssistantAPIAttackDiscoveryGenerationStatusDismissed SecurityAIAssistantAPIAttackDiscoveryGenerationStatus = "dismissed" + SecurityAIAssistantAPIAttackDiscoveryGenerationStatusFailed SecurityAIAssistantAPIAttackDiscoveryGenerationStatus = "failed" + SecurityAIAssistantAPIAttackDiscoveryGenerationStatusStarted SecurityAIAssistantAPIAttackDiscoveryGenerationStatus = "started" + SecurityAIAssistantAPIAttackDiscoveryGenerationStatusSucceeded SecurityAIAssistantAPIAttackDiscoveryGenerationStatus = "succeeded" +) + +// Defines values for SecurityAIAssistantAPIAttackDiscoveryGenerationConfigSubAction. +const ( + InvokeAI SecurityAIAssistantAPIAttackDiscoveryGenerationConfigSubAction = "invokeAI" + InvokeStream SecurityAIAssistantAPIAttackDiscoveryGenerationConfigSubAction = "invokeStream" +) + // Defines values for SecurityAIAssistantAPIChatMessageRole. const ( SecurityAIAssistantAPIChatMessageRoleAssistant SecurityAIAssistantAPIChatMessageRole = "assistant" @@ -579,12 +615,11 @@ const ( SecurityAIAssistantAPISortOrderDesc SecurityAIAssistantAPISortOrder = "desc" ) -// Defines values for SecurityDetectionsAPIAlertStatus. +// Defines values for SecurityDetectionsAPIAlertStatusExceptClosed. const ( - SecurityDetectionsAPIAlertStatusAcknowledged SecurityDetectionsAPIAlertStatus = "acknowledged" - SecurityDetectionsAPIAlertStatusClosed SecurityDetectionsAPIAlertStatus = "closed" - SecurityDetectionsAPIAlertStatusInProgress SecurityDetectionsAPIAlertStatus = "in-progress" - SecurityDetectionsAPIAlertStatusOpen SecurityDetectionsAPIAlertStatus = "open" + SecurityDetectionsAPIAlertStatusExceptClosedAcknowledged SecurityDetectionsAPIAlertStatusExceptClosed = "acknowledged" + SecurityDetectionsAPIAlertStatusExceptClosedInProgress SecurityDetectionsAPIAlertStatusExceptClosed = "in-progress" + SecurityDetectionsAPIAlertStatusExceptClosedOpen SecurityDetectionsAPIAlertStatusExceptClosed = "open" ) // Defines values for SecurityDetectionsAPIAlertSuppressionDurationUnit. @@ -716,6 +751,22 @@ const ( Run SecurityDetectionsAPIBulkManualRuleRunAction = "run" ) +// Defines values for SecurityDetectionsAPICloseAlertsByIdsStatus. +const ( + SecurityDetectionsAPICloseAlertsByIdsStatusClosed SecurityDetectionsAPICloseAlertsByIdsStatus = "closed" +) + +// Defines values for SecurityDetectionsAPICloseAlertsByQueryConflicts. +const ( + SecurityDetectionsAPICloseAlertsByQueryConflictsAbort SecurityDetectionsAPICloseAlertsByQueryConflicts = "abort" + SecurityDetectionsAPICloseAlertsByQueryConflictsProceed SecurityDetectionsAPICloseAlertsByQueryConflicts = "proceed" +) + +// Defines values for SecurityDetectionsAPICloseAlertsByQueryStatus. +const ( + SecurityDetectionsAPICloseAlertsByQueryStatusClosed SecurityDetectionsAPICloseAlertsByQueryStatus = "closed" +) + // Defines values for SecurityDetectionsAPIDefaultParamsCommand. const ( SecurityDetectionsAPIDefaultParamsCommandIsolate SecurityDetectionsAPIDefaultParamsCommand = "isolate" @@ -1009,6 +1060,16 @@ const ( SecurityDetectionsAPIQueryRuleUpdatePropsTypeQuery SecurityDetectionsAPIQueryRuleUpdatePropsType = "query" ) +// Defines values for SecurityDetectionsAPIReasonEnum. +const ( + SecurityDetectionsAPIReasonEnumAutomatedClosure SecurityDetectionsAPIReasonEnum = "automated_closure" + SecurityDetectionsAPIReasonEnumBenignPositive SecurityDetectionsAPIReasonEnum = "benign_positive" + SecurityDetectionsAPIReasonEnumDuplicate SecurityDetectionsAPIReasonEnum = "duplicate" + SecurityDetectionsAPIReasonEnumFalsePositive SecurityDetectionsAPIReasonEnum = "false_positive" + SecurityDetectionsAPIReasonEnumOther SecurityDetectionsAPIReasonEnum = "other" + SecurityDetectionsAPIReasonEnumTruePositive SecurityDetectionsAPIReasonEnum = "true_positive" +) + // Defines values for SecurityDetectionsAPIRiskScoreMappingOperator. const ( SecurityDetectionsAPIRiskScoreMappingOperatorEquals SecurityDetectionsAPIRiskScoreMappingOperator = "equals" @@ -1095,10 +1156,10 @@ const ( SecurityDetectionsAPISavedQueryRuleUpdatePropsTypeSavedQuery SecurityDetectionsAPISavedQueryRuleUpdatePropsType = "saved_query" ) -// Defines values for SecurityDetectionsAPISetAlertsStatusByQueryConflicts. +// Defines values for SecurityDetectionsAPISetAlertsStatusByQueryBaseConflicts. const ( - Abort SecurityDetectionsAPISetAlertsStatusByQueryConflicts = "abort" - Proceed SecurityDetectionsAPISetAlertsStatusByQueryConflicts = "proceed" + SecurityDetectionsAPISetAlertsStatusByQueryBaseConflictsAbort SecurityDetectionsAPISetAlertsStatusByQueryBaseConflicts = "abort" + SecurityDetectionsAPISetAlertsStatusByQueryBaseConflictsProceed SecurityDetectionsAPISetAlertsStatusByQueryBaseConflicts = "proceed" ) // Defines values for SecurityDetectionsAPISeverity. @@ -1378,9 +1439,11 @@ const ( // Defines values for SecurityEntityAnalyticsAPIEngineComponentResource. const ( SecurityEntityAnalyticsAPIEngineComponentResourceComponentTemplate SecurityEntityAnalyticsAPIEngineComponentResource = "component_template" + SecurityEntityAnalyticsAPIEngineComponentResourceDataStream SecurityEntityAnalyticsAPIEngineComponentResource = "data_stream" SecurityEntityAnalyticsAPIEngineComponentResourceEnrichPolicy SecurityEntityAnalyticsAPIEngineComponentResource = "enrich_policy" SecurityEntityAnalyticsAPIEngineComponentResourceEntityDefinition SecurityEntityAnalyticsAPIEngineComponentResource = "entity_definition" SecurityEntityAnalyticsAPIEngineComponentResourceEntityEngine SecurityEntityAnalyticsAPIEngineComponentResource = "entity_engine" + SecurityEntityAnalyticsAPIEngineComponentResourceIlmPolicy SecurityEntityAnalyticsAPIEngineComponentResource = "ilm_policy" SecurityEntityAnalyticsAPIEngineComponentResourceIndex SecurityEntityAnalyticsAPIEngineComponentResource = "index" SecurityEntityAnalyticsAPIEngineComponentResourceIndexTemplate SecurityEntityAnalyticsAPIEngineComponentResource = "index_template" SecurityEntityAnalyticsAPIEngineComponentResourceIngestPipeline SecurityEntityAnalyticsAPIEngineComponentResource = "ingest_pipeline" @@ -1775,7 +1838,7 @@ const ( // Defines values for GenaiOpenaiOtherConfigApiProvider. const ( - Other GenaiOpenaiOtherConfigApiProvider = "Other" + GenaiOpenaiOtherConfigApiProviderOther GenaiOpenaiOtherConfigApiProvider = "Other" ) // Defines values for GenaiOpenaiOtherConfigVerificationMode. @@ -2079,9 +2142,9 @@ const ( // Defines values for PackageListItemInstallationInfoInstallStatus. const ( - PackageListItemInstallationInfoInstallStatusInstallFailed PackageListItemInstallationInfoInstallStatus = "install_failed" - PackageListItemInstallationInfoInstallStatusInstalled PackageListItemInstallationInfoInstallStatus = "installed" - PackageListItemInstallationInfoInstallStatusInstalling PackageListItemInstallationInfoInstallStatus = "installing" + InstallFailed PackageListItemInstallationInfoInstallStatus = "install_failed" + Installed PackageListItemInstallationInfoInstallStatus = "installed" + Installing PackageListItemInstallationInfoInstallStatus = "installing" ) // Defines values for PackageListItemInstallationInfoInstalledEsType. @@ -2115,9 +2178,9 @@ const ( // Defines values for PackageListItemInstallationInfoVerificationStatus. const ( - PackageListItemInstallationInfoVerificationStatusUnknown PackageListItemInstallationInfoVerificationStatus = "unknown" - PackageListItemInstallationInfoVerificationStatusUnverified PackageListItemInstallationInfoVerificationStatus = "unverified" - PackageListItemInstallationInfoVerificationStatusVerified PackageListItemInstallationInfoVerificationStatus = "verified" + Unknown PackageListItemInstallationInfoVerificationStatus = "unknown" + Unverified PackageListItemInstallationInfoVerificationStatus = "unverified" + Verified PackageListItemInstallationInfoVerificationStatus = "verified" ) // Defines values for PackageListItemOwnerType. @@ -2819,6 +2882,13 @@ const ( CasesStatusOpen CasesStatus = "open" ) +// Defines values for PostAgentBuilderToolsJSONBodyType. +const ( + PostAgentBuilderToolsJSONBodyTypeEsql PostAgentBuilderToolsJSONBodyType = "esql" + PostAgentBuilderToolsJSONBodyTypeIndexSearch PostAgentBuilderToolsJSONBodyType = "index_search" + PostAgentBuilderToolsJSONBodyTypeWorkflow PostAgentBuilderToolsJSONBodyType = "workflow" +) + // Defines values for PostAlertingRuleIdJSONBodyActionsAlertsFilterQueryFiltersStateStore. const ( PostAlertingRuleIdJSONBodyActionsAlertsFilterQueryFiltersStateStoreAppState PostAlertingRuleIdJSONBodyActionsAlertsFilterQueryFiltersStateStore = "appState" @@ -2876,9 +2946,9 @@ const ( // Defines values for PutAlertingRuleIdJSONBodyNotifyWhen. const ( - OnActionGroupChange PutAlertingRuleIdJSONBodyNotifyWhen = "onActionGroupChange" - OnActiveAlert PutAlertingRuleIdJSONBodyNotifyWhen = "onActiveAlert" - OnThrottleInterval PutAlertingRuleIdJSONBodyNotifyWhen = "onThrottleInterval" + PutAlertingRuleIdJSONBodyNotifyWhenOnActionGroupChange PutAlertingRuleIdJSONBodyNotifyWhen = "onActionGroupChange" + PutAlertingRuleIdJSONBodyNotifyWhenOnActiveAlert PutAlertingRuleIdJSONBodyNotifyWhen = "onActiveAlert" + PutAlertingRuleIdJSONBodyNotifyWhenOnThrottleInterval PutAlertingRuleIdJSONBodyNotifyWhen = "onThrottleInterval" ) // Defines values for GetAlertingRulesFindParamsDefaultSearchOperator. @@ -2975,10 +3045,10 @@ const ( // Defines values for FindAssetCriticalityRecordsParamsSortField. const ( - CriticalityLevel FindAssetCriticalityRecordsParamsSortField = "criticality_level" - IdField FindAssetCriticalityRecordsParamsSortField = "id_field" - IdValue FindAssetCriticalityRecordsParamsSortField = "id_value" - Timestamp FindAssetCriticalityRecordsParamsSortField = "@timestamp" + FindAssetCriticalityRecordsParamsSortFieldCriticalityLevel FindAssetCriticalityRecordsParamsSortField = "criticality_level" + FindAssetCriticalityRecordsParamsSortFieldIdField FindAssetCriticalityRecordsParamsSortField = "id_field" + FindAssetCriticalityRecordsParamsSortFieldIdValue FindAssetCriticalityRecordsParamsSortField = "id_value" + FindAssetCriticalityRecordsParamsSortFieldTimestamp FindAssetCriticalityRecordsParamsSortField = "@timestamp" ) // Defines values for FindAssetCriticalityRecordsParamsSortDirection. @@ -2987,6 +3057,32 @@ const ( FindAssetCriticalityRecordsParamsSortDirectionDesc FindAssetCriticalityRecordsParamsSortDirection = "desc" ) +// Defines values for PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatus. +const ( + PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatusAcknowledged PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatus = "acknowledged" + PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatusClosed PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatus = "closed" + PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatusOpen PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatus = "open" +) + +// Defines values for PostAttackDiscoveryBulkJSONBodyUpdateVisibility. +const ( + NotShared PostAttackDiscoveryBulkJSONBodyUpdateVisibility = "not_shared" + Shared PostAttackDiscoveryBulkJSONBodyUpdateVisibility = "shared" +) + +// Defines values for AttackDiscoveryFindParamsStatus. +const ( + AttackDiscoveryFindParamsStatusAcknowledged AttackDiscoveryFindParamsStatus = "acknowledged" + AttackDiscoveryFindParamsStatusClosed AttackDiscoveryFindParamsStatus = "closed" + AttackDiscoveryFindParamsStatusOpen AttackDiscoveryFindParamsStatus = "open" +) + +// Defines values for FindAttackDiscoverySchedulesParamsSortDirection. +const ( + FindAttackDiscoverySchedulesParamsSortDirectionAsc FindAttackDiscoverySchedulesParamsSortDirection = "asc" + FindAttackDiscoverySchedulesParamsSortDirectionDesc FindAttackDiscoverySchedulesParamsSortDirection = "desc" +) + // Defines values for FindCasesDefaultSpaceParamsSeverity. const ( FindCasesDefaultSpaceParamsSeverityCritical FindCasesDefaultSpaceParamsSeverity = "critical" @@ -3087,7 +3183,7 @@ const ( // Defines values for RulePreviewJSONBody7Type. const ( - Esql RulePreviewJSONBody7Type = "esql" + RulePreviewJSONBody7TypeEsql RulePreviewJSONBody7Type = "esql" ) // Defines values for FindEndpointListItemsParamsSortOrder. @@ -3212,6 +3308,13 @@ const ( PostFleetAgentsAgentidRequestDiagnosticsJSONBodyAdditionalMetricsCPU PostFleetAgentsAgentidRequestDiagnosticsJSONBodyAdditionalMetrics = "CPU" ) +// Defines values for PostFleetCloudConnectorsJSONBodyCloudProvider. +const ( + Aws PostFleetCloudConnectorsJSONBodyCloudProvider = "aws" + Azure PostFleetCloudConnectorsJSONBodyCloudProvider = "azure" + Gcp PostFleetCloudConnectorsJSONBodyCloudProvider = "gcp" +) + // Defines values for PostFleetEpmCustomIntegrationsJSONBodyDatasetsType. const ( PostFleetEpmCustomIntegrationsJSONBodyDatasetsTypeLogs PostFleetEpmCustomIntegrationsJSONBodyDatasetsType = "logs" @@ -3348,6 +3451,14 @@ const ( ImportListItemsParamsRefreshWaitFor ImportListItemsParamsRefresh = "wait_for" ) +// Defines values for GetMaintenanceWindowFindParamsStatus. +const ( + Archived GetMaintenanceWindowFindParamsStatus = "archived" + Finished GetMaintenanceWindowFindParamsStatus = "finished" + Running GetMaintenanceWindowFindParamsStatus = "running" + Upcoming GetMaintenanceWindowFindParamsStatus = "upcoming" +) + // Defines values for PostSecurityRoleQueryJSONBodySortDirection. const ( PostSecurityRoleQueryJSONBodySortDirectionAsc PostSecurityRoleQueryJSONBodySortDirection = "asc" @@ -3423,6 +3534,11 @@ const ( PutStreamsNameJSONBody00StreamIngestProcessingSteps06ActionManualIngestPipeline PutStreamsNameJSONBody00StreamIngestProcessingSteps06Action = "manual_ingest_pipeline" ) +// Defines values for PutStreamsNameJSONBody00StreamIngestSettingsIndexRefreshIntervalValue1. +const ( + PutStreamsNameJSONBody00StreamIngestSettingsIndexRefreshIntervalValue1Minus1 PutStreamsNameJSONBody00StreamIngestSettingsIndexRefreshIntervalValue1 = -1 +) + // Defines values for PutStreamsNameJSONBody01StreamIngestProcessingSteps00Action. const ( PutStreamsNameJSONBody01StreamIngestProcessingSteps00ActionGrok PutStreamsNameJSONBody01StreamIngestProcessingSteps00Action = "grok" @@ -3458,6 +3574,11 @@ const ( PutStreamsNameJSONBody01StreamIngestProcessingSteps06ActionManualIngestPipeline PutStreamsNameJSONBody01StreamIngestProcessingSteps06Action = "manual_ingest_pipeline" ) +// Defines values for PutStreamsNameJSONBody01StreamIngestSettingsIndexRefreshIntervalValue1. +const ( + PutStreamsNameJSONBody01StreamIngestSettingsIndexRefreshIntervalValue1Minus1 PutStreamsNameJSONBody01StreamIngestSettingsIndexRefreshIntervalValue1 = -1 +) + // Defines values for PostStreamsNameForkJSONBodyStatus. const ( PostStreamsNameForkJSONBodyStatusDisabled PostStreamsNameForkJSONBodyStatus = "disabled" @@ -3499,6 +3620,11 @@ const ( PutStreamsNameIngestJSONBodyIngest0ProcessingSteps06ActionManualIngestPipeline PutStreamsNameIngestJSONBodyIngest0ProcessingSteps06Action = "manual_ingest_pipeline" ) +// Defines values for PutStreamsNameIngestJSONBodyIngest0SettingsIndexRefreshIntervalValue1. +const ( + PutStreamsNameIngestJSONBodyIngest0SettingsIndexRefreshIntervalValue1Minus1 PutStreamsNameIngestJSONBodyIngest0SettingsIndexRefreshIntervalValue1 = -1 +) + // Defines values for PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatus. const ( PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatusDisabled PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatus = "disabled" @@ -3540,6 +3666,11 @@ const ( PutStreamsNameIngestJSONBodyIngest1ProcessingSteps06ActionManualIngestPipeline PutStreamsNameIngestJSONBodyIngest1ProcessingSteps06Action = "manual_ingest_pipeline" ) +// Defines values for PutStreamsNameIngestJSONBodyIngest1SettingsIndexRefreshIntervalValue1. +const ( + PutStreamsNameIngestJSONBodyIngest1SettingsIndexRefreshIntervalValue1Minus1 PutStreamsNameIngestJSONBodyIngest1SettingsIndexRefreshIntervalValue1 = -1 +) + // Defines values for GetSyntheticMonitorsParamsMonitorTypes0. const ( GetSyntheticMonitorsParamsMonitorTypes0Browser GetSyntheticMonitorsParamsMonitorTypes0 = "browser" @@ -3596,8 +3727,8 @@ const ( // Defines values for FindSlosOpParamsSortDirection. const ( - Asc FindSlosOpParamsSortDirection = "asc" - Desc FindSlosOpParamsSortDirection = "desc" + FindSlosOpParamsSortDirectionAsc FindSlosOpParamsSortDirection = "asc" + FindSlosOpParamsSortDirectionDesc FindSlosOpParamsSortDirection = "desc" ) // APMUI400Response defines model for APM_UI_400_response. @@ -6871,6 +7002,325 @@ type SecurityAIAssistantAPIApiConfig struct { Provider *SecurityAIAssistantAPIProvider `json:"provider,omitempty"` } +// SecurityAIAssistantAPIAttackDiscoveryApiAlert An attack discovery that's also an alert (Public API with snake_case) +type SecurityAIAssistantAPIAttackDiscoveryApiAlert struct { + // AlertIds The alert IDs that the attack discovery is based on + AlertIds []string `json:"alert_ids"` + + // AlertRuleUuid The optional kibana.alert.rule.uuid of the rule that generated this attack discovery (not applicable to ad hock runs) + AlertRuleUuid *string `json:"alert_rule_uuid,omitempty"` + + // AlertStart The optional time the attack discovery alert was created + AlertStart *string `json:"alert_start,omitempty"` + + // AlertUpdatedAt The optional time the attack discovery alert was last updated + AlertUpdatedAt *string `json:"alert_updated_at,omitempty"` + + // AlertUpdatedByUserId The optional id of the user who last updated the attack discovery alert + AlertUpdatedByUserId *string `json:"alert_updated_by_user_id,omitempty"` + + // AlertUpdatedByUserName The optional username of the user who updated the attack discovery alert + AlertUpdatedByUserName *string `json:"alert_updated_by_user_name,omitempty"` + + // AlertWorkflowStatus The optional kibana.alert.workflow_status of this attack discovery + AlertWorkflowStatus *string `json:"alert_workflow_status,omitempty"` + + // AlertWorkflowStatusUpdatedAt The optional time the attack discovery alert workflow status was last updated + AlertWorkflowStatusUpdatedAt *string `json:"alert_workflow_status_updated_at,omitempty"` + + // ConnectorId The ID of the connector that generated the attack discovery + ConnectorId string `json:"connector_id"` + + // ConnectorName The (human readable) name of the connector that generated the attack discovery + ConnectorName string `json:"connector_name"` + + // DetailsMarkdown Details of the attack with bulleted markdown that always uses special syntax for field names and values from the source data. + DetailsMarkdown string `json:"details_markdown"` + + // EntitySummaryMarkdown An optional, short (no more than a sentence) summary of the attack discovery featuring only the host.name and user.name fields (when they are applicable), using the same syntax + EntitySummaryMarkdown *string `json:"entity_summary_markdown,omitempty"` + + // GenerationUuid The generation ID of the run that created the attack discovery + GenerationUuid string `json:"generation_uuid"` + + // Id The unique ID of the attack discovery + Id string `json:"id"` + + // MitreAttackTactics An optional array of MITRE ATT&CK tactic for the attack discovery + MitreAttackTactics *[]string `json:"mitre_attack_tactics,omitempty"` + + // Replacements Replacements object used to anonymize/deanonymize messages + Replacements *SecurityAIAssistantAPIReplacements `json:"replacements,omitempty"` + + // RiskScore The optional, (but typically populated after generation) risk score of the alert + RiskScore *int `json:"risk_score,omitempty"` + + // SummaryMarkdown A markdown summary of attack discovery, using the same syntax + SummaryMarkdown string `json:"summary_markdown"` + + // Timestamp A string that represents a timestamp in ISO 8601 format and does not contain only whitespace characters. + Timestamp SecurityAIAssistantAPINonEmptyTimestamp `json:"timestamp"` + + // Title A title for the attack discovery, in plain text + Title string `json:"title"` + + // UserId The optional id of the user who generated the attack discovery + UserId *string `json:"user_id,omitempty"` + + // UserName The optional username of the user who generated the attack discovery, (not applicable to attack discoveries generated by rules) + UserName *string `json:"user_name,omitempty"` + + // Users The optional array of users who may view the attack discovery. When empty, (or not present), all users may view the attack discovery. + Users *[]SecurityAIAssistantAPIUser `json:"users,omitempty"` +} + +// SecurityAIAssistantAPIAttackDiscoveryApiSchedule An attack discovery schedule +type SecurityAIAssistantAPIAttackDiscoveryApiSchedule struct { + // Actions The attack discovery schedule actions + Actions []SecurityAIAssistantAPIAttackDiscoveryApiScheduleAction `json:"actions"` + + // CreatedAt The date the schedule was created + CreatedAt time.Time `json:"created_at"` + + // CreatedBy The name of the user that created the schedule + CreatedBy string `json:"created_by"` + + // Enabled Indicates whether the schedule is enabled + Enabled bool `json:"enabled"` + + // Id UUID of attack discovery schedule + Id string `json:"id"` + + // LastExecution An attack discovery schedule execution information + LastExecution *SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecution `json:"last_execution,omitempty"` + + // Name The name of the schedule + Name string `json:"name"` + + // Params An attack discovery schedule params + Params SecurityAIAssistantAPIAttackDiscoveryApiScheduleParams `json:"params"` + Schedule SecurityAIAssistantAPIIntervalApiSchedule `json:"schedule"` + + // UpdatedAt The date the schedule was updated + UpdatedAt time.Time `json:"updated_at"` + + // UpdatedBy The name of the user that updated the schedule + UpdatedBy string `json:"updated_by"` +} + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleAction defines model for Security_AI_Assistant_API_AttackDiscoveryApiScheduleAction. +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleAction struct { + // ActionTypeId The action type used for sending notifications. + ActionTypeId string `json:"action_type_id"` + AlertsFilter *SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionAlertsFilter `json:"alerts_filter,omitempty"` + + // Frequency The action frequency defines when the action runs (for example, only on schedule execution or at specific time intervals). + Frequency *SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionFrequency `json:"frequency,omitempty"` + + // Group Groups actions by use cases. Use `default` for alert notifications. + Group *SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionGroup `json:"group,omitempty"` + + // Id The connector ID. + Id SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionId `json:"id"` + + // Params Object containing the allowed connector fields, which varies according to the connector type. + Params SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionParams `json:"params"` + + // Uuid A string that does not contain only whitespace characters. + Uuid *SecurityAIAssistantAPINonEmptyString `json:"uuid,omitempty"` +} + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionAlertsFilter defines model for Security_AI_Assistant_API_AttackDiscoveryApiScheduleActionAlertsFilter. +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionAlertsFilter map[string]interface{} + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionFrequency The action frequency defines when the action runs (for example, only on schedule execution or at specific time intervals). +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionFrequency struct { + // NotifyWhen The condition for throttling the notification: `onActionGroupChange`, `onActiveAlert`, or `onThrottleInterval` + NotifyWhen SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhen `json:"notify_when"` + + // Summary Action summary indicates whether we will send a summary notification about all the generate alerts or notification per individual alert + Summary bool `json:"summary"` + + // Throttle Defines how often schedule actions are taken. Time interval in seconds, minutes, hours, or days. + Throttle SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionThrottle `json:"throttle"` +} + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionGroup Groups actions by use cases. Use `default` for alert notifications. +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionGroup = string + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionId The connector ID. +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionId = string + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhen The condition for throttling the notification: `onActionGroupChange`, `onActiveAlert`, or `onThrottleInterval` +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionNotifyWhen string + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionParams Object containing the allowed connector fields, which varies according to the connector type. +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionParams map[string]interface{} + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionThrottle Defines how often schedule actions are taken. Time interval in seconds, minutes, hours, or days. +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleActionThrottle = string + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleCreateProps An attack discovery schedule create properties +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleCreateProps struct { + // Actions The attack discovery schedule actions + Actions *[]SecurityAIAssistantAPIAttackDiscoveryApiScheduleAction `json:"actions,omitempty"` + + // Enabled Indicates whether the schedule is enabled + Enabled *bool `json:"enabled,omitempty"` + + // Name The name of the schedule + Name string `json:"name"` + + // Params An attack discovery schedule params + Params SecurityAIAssistantAPIAttackDiscoveryApiScheduleParams `json:"params"` + Schedule SecurityAIAssistantAPIIntervalApiSchedule `json:"schedule"` +} + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecution An attack discovery schedule execution information +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecution struct { + // Date Date of the execution + Date time.Time `json:"date"` + + // Duration Duration of the execution + Duration *float32 `json:"duration,omitempty"` + Message *string `json:"message,omitempty"` + + // Status An attack discovery schedule execution status + Status SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatus `json:"status"` +} + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatus An attack discovery schedule execution status +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleExecutionStatus string + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleParams An attack discovery schedule params +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleParams struct { + // AlertsIndexPattern The index pattern to get alerts from + AlertsIndexPattern string `json:"alerts_index_pattern"` + + // ApiConfig LLM API configuration. + ApiConfig struct { + // ActionTypeId Action type ID + ActionTypeId string `json:"actionTypeId"` + + // ConnectorId Connector ID + ConnectorId string `json:"connectorId"` + + // DefaultSystemPromptId Default system prompt ID + DefaultSystemPromptId *string `json:"defaultSystemPromptId,omitempty"` + + // Model Model + Model *string `json:"model,omitempty"` + + // Name The name of the connector + Name string `json:"name"` + + // Provider Provider + Provider *SecurityAIAssistantAPIProvider `json:"provider,omitempty"` + } `json:"api_config"` + CombinedFilter *map[string]interface{} `json:"combined_filter,omitempty"` + End *string `json:"end,omitempty"` + + // Filters The filter array used to define the conditions for when alerts are selected as an attack discovery context. Defaults to an empty array. + Filters *SecurityAIAssistantAPIFilters `json:"filters,omitempty"` + + // Query An query condition to filter alerts + Query *SecurityAIAssistantAPIQuery `json:"query,omitempty"` + Size float32 `json:"size"` + Start *string `json:"start,omitempty"` +} + +// SecurityAIAssistantAPIAttackDiscoveryApiScheduleUpdateProps An attack discovery schedule update properties +type SecurityAIAssistantAPIAttackDiscoveryApiScheduleUpdateProps struct { + // Actions The attack discovery schedule actions + Actions []SecurityAIAssistantAPIAttackDiscoveryApiScheduleAction `json:"actions"` + + // Name The name of the schedule + Name string `json:"name"` + + // Params An attack discovery schedule params + Params SecurityAIAssistantAPIAttackDiscoveryApiScheduleParams `json:"params"` + Schedule SecurityAIAssistantAPIIntervalApiSchedule `json:"schedule"` +} + +// SecurityAIAssistantAPIAttackDiscoveryFindSortField Allowed field names to sort Attack discovery results by. Clients should only pass one of the listed values. +type SecurityAIAssistantAPIAttackDiscoveryFindSortField string + +// SecurityAIAssistantAPIAttackDiscoveryGeneration defines model for Security_AI_Assistant_API_AttackDiscoveryGeneration. +type SecurityAIAssistantAPIAttackDiscoveryGeneration struct { + // AlertsContextCount The number of alerts sent as context (max kibana.alert.rule.execution.metrics.alert_counts.active) to the LLM for the generation + AlertsContextCount *float32 `json:"alerts_context_count,omitempty"` + + // ConnectorId The connector id (event.dataset) for this generation + ConnectorId string `json:"connector_id"` + + // ConnectorStats Stats applicable to the connector for this generation + ConnectorStats *struct { + // AverageSuccessfulDurationNanoseconds The average duration (avg event.duration) in nanoseconds of successful generations for the same connector id, for the current user + AverageSuccessfulDurationNanoseconds *float32 `json:"average_successful_duration_nanoseconds,omitempty"` + + // SuccessfulGenerations The number of successful generations for the same connector id, for the current user + SuccessfulGenerations *float32 `json:"successful_generations,omitempty"` + } `json:"connector_stats,omitempty"` + + // Discoveries The number of new Attack discovery alerts (max kibana.alert.rule.execution.metrics.alert_counts.new) for this generation + Discoveries float32 `json:"discoveries"` + + // End When generation ended (max event.end) + End *string `json:"end,omitempty"` + + // ExecutionUuid The unique identifier (kibana.alert.rule.execution.uuid) for the generation + ExecutionUuid string `json:"execution_uuid"` + + // LoadingMessage Generation loading message (kibana.alert.rule.execution.status) + LoadingMessage string `json:"loading_message"` + + // Reason Reason for failed generations (event.reason) + Reason *string `json:"reason,omitempty"` + + // Start When generation started (min event.start) + Start string `json:"start"` + + // Status The status of the attack discovery generation + Status SecurityAIAssistantAPIAttackDiscoveryGenerationStatus `json:"status"` +} + +// SecurityAIAssistantAPIAttackDiscoveryGenerationStatus The status of the attack discovery generation +type SecurityAIAssistantAPIAttackDiscoveryGenerationStatus string + +// SecurityAIAssistantAPIAttackDiscoveryGenerationConfig defines model for Security_AI_Assistant_API_AttackDiscoveryGenerationConfig. +type SecurityAIAssistantAPIAttackDiscoveryGenerationConfig struct { + AlertsIndexPattern string `json:"alertsIndexPattern"` + AnonymizationFields []SecurityAIAssistantAPIAnonymizationFieldResponse `json:"anonymizationFields"` + ApiConfig SecurityAIAssistantAPIApiConfig `json:"apiConfig"` + ConnectorName *string `json:"connectorName,omitempty"` + End *string `json:"end,omitempty"` + Filter *map[string]interface{} `json:"filter,omitempty"` + LangSmithApiKey *string `json:"langSmithApiKey,omitempty"` + LangSmithProject *string `json:"langSmithProject,omitempty"` + Model *string `json:"model,omitempty"` + + // Replacements Replacements object used to anonymize/deanonymize messages + Replacements *SecurityAIAssistantAPIReplacements `json:"replacements,omitempty"` + Size float32 `json:"size"` + Start *string `json:"start,omitempty"` + SubAction SecurityAIAssistantAPIAttackDiscoveryGenerationConfigSubAction `json:"subAction"` +} + +// SecurityAIAssistantAPIAttackDiscoveryGenerationConfigSubAction defines model for SecurityAIAssistantAPIAttackDiscoveryGenerationConfig.SubAction. +type SecurityAIAssistantAPIAttackDiscoveryGenerationConfigSubAction string + +// SecurityAIAssistantAPIAttackDiscoveryGenericError Generic error response for Attack discovery schedule operations +type SecurityAIAssistantAPIAttackDiscoveryGenericError struct { + // Error Error type + Error *string `json:"error,omitempty"` + + // Message Human-readable error message describing what went wrong + Message *string `json:"message,omitempty"` + + // StatusCode HTTP status code + StatusCode *float32 `json:"status_code,omitempty"` +} + // SecurityAIAssistantAPIBaseContentReference The basis of a content reference type SecurityAIAssistantAPIBaseContentReference struct { // Id Id of the content reference @@ -7248,6 +7698,9 @@ type SecurityAIAssistantAPIEsqlContentReference struct { // SecurityAIAssistantAPIEsqlContentReferenceType defines model for SecurityAIAssistantAPIEsqlContentReference.Type. type SecurityAIAssistantAPIEsqlContentReferenceType string +// SecurityAIAssistantAPIFilters The filter array used to define the conditions for when alerts are selected as an attack discovery context. Defaults to an empty array. +type SecurityAIAssistantAPIFilters = []interface{} + // SecurityAIAssistantAPIFindAnonymizationFieldsSortField defines model for Security_AI_Assistant_API_FindAnonymizationFieldsSortField. type SecurityAIAssistantAPIFindAnonymizationFieldsSortField string @@ -7480,6 +7933,12 @@ type SecurityAIAssistantAPIInputSchema = []struct { FieldType string `json:"fieldType"` } +// SecurityAIAssistantAPIIntervalApiSchedule defines model for Security_AI_Assistant_API_IntervalApiSchedule. +type SecurityAIAssistantAPIIntervalApiSchedule struct { + // Interval The schedule interval + Interval string `json:"interval"` +} + // SecurityAIAssistantAPIKnowledgeBaseEntryBulkActionSkipReason Reason why a Knowledge Base Entry was skipped during the bulk action. type SecurityAIAssistantAPIKnowledgeBaseEntryBulkActionSkipReason string @@ -7888,6 +8347,23 @@ type SecurityAIAssistantAPIPromptsBulkCrudActionResults struct { // SecurityAIAssistantAPIProvider Provider type SecurityAIAssistantAPIProvider string +// SecurityAIAssistantAPIQuery An query condition to filter alerts +type SecurityAIAssistantAPIQuery struct { + Language string `json:"language"` + Query SecurityAIAssistantAPIQuery_Query `json:"query"` +} + +// SecurityAIAssistantAPIQueryQuery0 defines model for . +type SecurityAIAssistantAPIQueryQuery0 = string + +// SecurityAIAssistantAPIQueryQuery1 defines model for . +type SecurityAIAssistantAPIQueryQuery1 map[string]interface{} + +// SecurityAIAssistantAPIQuery_Query defines model for SecurityAIAssistantAPIQuery.Query. +type SecurityAIAssistantAPIQuery_Query struct { + union json.RawMessage +} + // SecurityAIAssistantAPIReader defines model for Security_AI_Assistant_API_Reader. type SecurityAIAssistantAPIReader map[string]interface{} @@ -7974,8 +8450,8 @@ type SecurityDetectionsAPIAlertAssignees struct { // SecurityDetectionsAPIAlertIds A list of alerts `id`s. type SecurityDetectionsAPIAlertIds = []string -// SecurityDetectionsAPIAlertStatus The status of an alert, which can be `open`, `acknowledged`, `in-progress`, or `closed`. -type SecurityDetectionsAPIAlertStatus string +// SecurityDetectionsAPIAlertStatusExceptClosed The status of an alert, which can be `open`, `acknowledged`, `in-progress`, or `closed`. +type SecurityDetectionsAPIAlertStatusExceptClosed string // SecurityDetectionsAPIAlertSuppression Defines alert suppression configuration. type SecurityDetectionsAPIAlertSuppression struct { @@ -8480,6 +8956,35 @@ type SecurityDetectionsAPIBulkManualRuleRun struct { // SecurityDetectionsAPIBulkManualRuleRunAction defines model for SecurityDetectionsAPIBulkManualRuleRun.Action. type SecurityDetectionsAPIBulkManualRuleRunAction string +// SecurityDetectionsAPICloseAlertsByIds defines model for Security_Detections_API_CloseAlertsByIds. +type SecurityDetectionsAPICloseAlertsByIds struct { + // Reason The reason for closing the alerts + Reason *SecurityDetectionsAPIReasonEnum `json:"reason,omitempty"` + + // SignalIds List of alert ids. Use field `_id` on alert document or `kibana.alert.uuid`. Note: signals are a deprecated term for alerts. + SignalIds []string `json:"signal_ids"` + Status SecurityDetectionsAPICloseAlertsByIdsStatus `json:"status"` +} + +// SecurityDetectionsAPICloseAlertsByIdsStatus defines model for SecurityDetectionsAPICloseAlertsByIds.Status. +type SecurityDetectionsAPICloseAlertsByIdsStatus string + +// SecurityDetectionsAPICloseAlertsByQuery defines model for Security_Detections_API_CloseAlertsByQuery. +type SecurityDetectionsAPICloseAlertsByQuery struct { + Conflicts *SecurityDetectionsAPICloseAlertsByQueryConflicts `json:"conflicts,omitempty"` + Query map[string]interface{} `json:"query"` + + // Reason The reason for closing the alerts + Reason *SecurityDetectionsAPIReasonEnum `json:"reason,omitempty"` + Status SecurityDetectionsAPICloseAlertsByQueryStatus `json:"status"` +} + +// SecurityDetectionsAPICloseAlertsByQueryConflicts defines model for SecurityDetectionsAPICloseAlertsByQuery.Conflicts. +type SecurityDetectionsAPICloseAlertsByQueryConflicts string + +// SecurityDetectionsAPICloseAlertsByQueryStatus defines model for SecurityDetectionsAPICloseAlertsByQuery.Status. +type SecurityDetectionsAPICloseAlertsByQueryStatus string + // SecurityDetectionsAPIConcurrentSearches defines model for Security_Detections_API_ConcurrentSearches. type SecurityDetectionsAPIConcurrentSearches = int @@ -10061,8 +10566,23 @@ type SecurityDetectionsAPIEventCategoryOverride = string // SecurityDetectionsAPIExceptionListType The exception type type SecurityDetectionsAPIExceptionListType string +// SecurityDetectionsAPIExternalRuleCustomizedFields An array of customized field names — that is, fields that the user has modified from their base value. Defaults to an empty array. +type SecurityDetectionsAPIExternalRuleCustomizedFields = []struct { + // FieldName Name of a user-modified field in the rule object. + FieldName string `json:"field_name"` +} + +// SecurityDetectionsAPIExternalRuleHasBaseVersion Determines whether an external/prebuilt rule has its original, unmodified version present when the calculation of its customization status is performed (`rule_source.is_customized` and `rule_source.customized_fields`). +type SecurityDetectionsAPIExternalRuleHasBaseVersion = bool + // SecurityDetectionsAPIExternalRuleSource Type of rule source for externally sourced rules, i.e. rules that have an external source, such as the Elastic Prebuilt rules repo. type SecurityDetectionsAPIExternalRuleSource struct { + // CustomizedFields An array of customized field names — that is, fields that the user has modified from their base value. Defaults to an empty array. + CustomizedFields SecurityDetectionsAPIExternalRuleCustomizedFields `json:"customized_fields"` + + // HasBaseVersion Determines whether an external/prebuilt rule has its original, unmodified version present when the calculation of its customization status is performed (`rule_source.is_customized` and `rule_source.customized_fields`). + HasBaseVersion SecurityDetectionsAPIExternalRuleHasBaseVersion `json:"has_base_version"` + // IsCustomized Determines whether an external/prebuilt rule has been customized by the user (i.e. any of its fields have been modified and diverged from the base value). IsCustomized SecurityDetectionsAPIIsExternalRuleCustomized `json:"is_customized"` Type SecurityDetectionsAPIExternalRuleSourceType `json:"type"` @@ -12648,6 +13168,9 @@ type SecurityDetectionsAPIQueryRuleUpdateProps struct { // SecurityDetectionsAPIQueryRuleUpdatePropsType Rule type type SecurityDetectionsAPIQueryRuleUpdatePropsType string +// SecurityDetectionsAPIReasonEnum The reason for closing the alerts +type SecurityDetectionsAPIReasonEnum string + // SecurityDetectionsAPIRelatedIntegration Related integration is a potential dependency of a rule. It's assumed that if the user installs // one of the related integrations of a rule, the rule might start to work properly because it will // have source events (generated by this integration) potentially matching the rule's query. @@ -13981,24 +14504,34 @@ type SecurityDetectionsAPISetAlertTags struct { // SecurityDetectionsAPISetAlertsStatusByIds defines model for Security_Detections_API_SetAlertsStatusByIds. type SecurityDetectionsAPISetAlertsStatusByIds struct { + union json.RawMessage +} + +// SecurityDetectionsAPISetAlertsStatusByIdsBase defines model for Security_Detections_API_SetAlertsStatusByIdsBase. +type SecurityDetectionsAPISetAlertsStatusByIdsBase struct { // SignalIds List of alert ids. Use field `_id` on alert document or `kibana.alert.uuid`. Note: signals are a deprecated term for alerts. SignalIds []string `json:"signal_ids"` // Status The status of an alert, which can be `open`, `acknowledged`, `in-progress`, or `closed`. - Status SecurityDetectionsAPIAlertStatus `json:"status"` + Status SecurityDetectionsAPIAlertStatusExceptClosed `json:"status"` } // SecurityDetectionsAPISetAlertsStatusByQuery defines model for Security_Detections_API_SetAlertsStatusByQuery. type SecurityDetectionsAPISetAlertsStatusByQuery struct { - Conflicts *SecurityDetectionsAPISetAlertsStatusByQueryConflicts `json:"conflicts,omitempty"` - Query map[string]interface{} `json:"query"` + union json.RawMessage +} + +// SecurityDetectionsAPISetAlertsStatusByQueryBase defines model for Security_Detections_API_SetAlertsStatusByQueryBase. +type SecurityDetectionsAPISetAlertsStatusByQueryBase struct { + Conflicts *SecurityDetectionsAPISetAlertsStatusByQueryBaseConflicts `json:"conflicts,omitempty"` + Query map[string]interface{} `json:"query"` // Status The status of an alert, which can be `open`, `acknowledged`, `in-progress`, or `closed`. - Status SecurityDetectionsAPIAlertStatus `json:"status"` + Status SecurityDetectionsAPIAlertStatusExceptClosed `json:"status"` } -// SecurityDetectionsAPISetAlertsStatusByQueryConflicts defines model for SecurityDetectionsAPISetAlertsStatusByQuery.Conflicts. -type SecurityDetectionsAPISetAlertsStatusByQueryConflicts string +// SecurityDetectionsAPISetAlertsStatusByQueryBaseConflicts defines model for SecurityDetectionsAPISetAlertsStatusByQueryBase.Conflicts. +type SecurityDetectionsAPISetAlertsStatusByQueryBaseConflicts string // SecurityDetectionsAPISetupGuide Populates the rule’s setup guide with instructions on rule prerequisites such as required integrations, configuration steps, and anything else needed for the rule to work correctly. type SecurityDetectionsAPISetupGuide = string @@ -16387,6 +16920,28 @@ type SecurityEndpointManagementAPIAgentIds1 = string // SecurityEndpointManagementAPIAgentTypes List of agent types to retrieve. Defaults to `endpoint`. type SecurityEndpointManagementAPIAgentTypes string +// SecurityEndpointManagementAPICancelRouteRequestBody defines model for Security_Endpoint_Management_API_CancelRouteRequestBody. +type SecurityEndpointManagementAPICancelRouteRequestBody struct { + // AgentType List of agent types to retrieve. Defaults to `endpoint`. + AgentType *SecurityEndpointManagementAPIAgentTypes `json:"agent_type,omitempty"` + + // AlertIds If this action is associated with any alerts, they can be specified here. The action will be logged in any cases associated with the specified alerts. + AlertIds *[]string `json:"alert_ids,omitempty"` + + // CaseIds The IDs of cases where the action taken will be logged. + CaseIds *[]string `json:"case_ids,omitempty"` + + // Comment Optional comment + Comment *SecurityEndpointManagementAPIComment `json:"comment,omitempty"` + + // EndpointIds List of endpoint IDs (cannot contain empty strings) + EndpointIds SecurityEndpointManagementAPIEndpointIds `json:"endpoint_ids"` + Parameters struct { + // Id ID of the response action to cancel + Id string `json:"id"` + } `json:"parameters"` +} + // SecurityEndpointManagementAPICloudFileScriptParameters defines model for Security_Endpoint_Management_API_CloudFileScriptParameters. type SecurityEndpointManagementAPICloudFileScriptParameters struct { // CloudFile Script name in cloud storage. @@ -16565,6 +17120,15 @@ type SecurityEndpointManagementAPIKillProcessRouteResponse = map[string]interfac // SecurityEndpointManagementAPIKuery A KQL string. type SecurityEndpointManagementAPIKuery = string +// SecurityEndpointManagementAPIMDERunScriptParameters Parameters for Run Script response action against Microsoft Defender Endpoint agent type. +type SecurityEndpointManagementAPIMDERunScriptParameters struct { + // Args Optional command line arguments for the script. + Args *string `json:"args,omitempty"` + + // ScriptName The name of the script to execute from the cloud storage. + ScriptName string `json:"scriptName"` +} + // SecurityEndpointManagementAPIMetadataListResponse defines model for Security_Endpoint_Management_API_MetadataListResponse. type SecurityEndpointManagementAPIMetadataListResponse = map[string]interface{} @@ -16869,6 +17433,21 @@ type SecurityEndpointManagementAPIWithOutputs0 = []string // SecurityEndpointManagementAPIWithOutputs1 defines model for . type SecurityEndpointManagementAPIWithOutputs1 = string +// SecurityEntityAnalyticsAPIAsset defines model for Security_Entity_Analytics_API_Asset. +type SecurityEntityAnalyticsAPIAsset struct { + BusinessUnit *string `json:"business_unit,omitempty"` + + // Criticality The criticality level of the asset. + Criticality *SecurityEntityAnalyticsAPIAssetCriticalityLevel `json:"criticality,omitempty"` + Environment *string `json:"environment,omitempty"` + Id *string `json:"id,omitempty"` + Model *string `json:"model,omitempty"` + Name *string `json:"name,omitempty"` + Owner *string `json:"owner,omitempty"` + SerialNumber *string `json:"serial_number,omitempty"` + Vendor *string `json:"vendor,omitempty"` +} + // SecurityEntityAnalyticsAPIAssetCriticalityBulkUploadErrorItem defines model for Security_Entity_Analytics_API_AssetCriticalityBulkUploadErrorItem. type SecurityEntityAnalyticsAPIAssetCriticalityBulkUploadErrorItem struct { Index int `json:"index"` @@ -17081,6 +17660,51 @@ type SecurityEntityAnalyticsAPIEntityAnalyticsPrivileges struct { } `json:"privileges"` } +// SecurityEntityAnalyticsAPIEntityField defines model for Security_Entity_Analytics_API_EntityField. +type SecurityEntityAnalyticsAPIEntityField struct { + EngineMetadata *SecurityEntityAnalyticsAPIEngineMetadata `json:"EngineMetadata,omitempty"` + Attributes *struct { + Asset *bool `json:"asset,omitempty"` + Managed *bool `json:"managed,omitempty"` + MfaEnabled *bool `json:"mfa_enabled,omitempty"` + Privileged *bool `json:"privileged,omitempty"` + } `json:"attributes,omitempty"` + Behaviors *struct { + BruteForceVictim *bool `json:"brute_force_victim,omitempty"` + NewCountryLogin *bool `json:"new_country_login,omitempty"` + UsedUsbDevice *bool `json:"used_usb_device,omitempty"` + } `json:"behaviors,omitempty"` + Id string `json:"id"` + Lifecycle *struct { + FirstSeen *time.Time `json:"first_seen,omitempty"` + LastActivity *time.Time `json:"last_activity,omitempty"` + } `json:"lifecycle,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *struct { + AccessedFrequentlyBy *[]string `json:"accessed_frequently_by,omitempty"` + AccessesFrequently *[]string `json:"accesses_frequently,omitempty"` + CommunicatesWith *[]string `json:"communicates_with,omitempty"` + DependentOf *[]string `json:"dependent_of,omitempty"` + DependsOn *[]string `json:"depends_on,omitempty"` + OwnedBy *[]string `json:"owned_by,omitempty"` + Owns *[]string `json:"owns,omitempty"` + SupervisedBy *[]string `json:"supervised_by,omitempty"` + Supervises *[]string `json:"supervises,omitempty"` + } `json:"relationships,omitempty"` + Risk *struct { + CalculatedLevel *SecurityEntityAnalyticsAPIEntityRiskLevels `json:"calculated_level,omitempty"` + + // CalculatedScore The raw numeric value of the given entity's risk score. + CalculatedScore *float64 `json:"calculated_score,omitempty"` + + // CalculatedScoreNorm The normalized numeric value of the given entity's risk score. Useful for comparing with other entities. + CalculatedScoreNorm *float64 `json:"calculated_score_norm,omitempty"` + } `json:"risk,omitempty"` + Source *string `json:"source,omitempty"` + SubType *string `json:"sub_type,omitempty"` + Type *string `json:"type,omitempty"` +} + // SecurityEntityAnalyticsAPIEntityRiskLevels defines model for Security_Entity_Analytics_API_EntityRiskLevels. type SecurityEntityAnalyticsAPIEntityRiskLevels string @@ -17124,40 +17748,23 @@ type SecurityEntityAnalyticsAPIEntityType string // SecurityEntityAnalyticsAPIGenericEntity defines model for Security_Entity_Analytics_API_GenericEntity. type SecurityEntityAnalyticsAPIGenericEntity struct { - Timestamp *time.Time `json:"@timestamp,omitempty"` - Asset *struct { - // Criticality The criticality level of the asset. - Criticality SecurityEntityAnalyticsAPIAssetCriticalityLevel `json:"criticality"` - } `json:"asset,omitempty"` - Entity struct { - EngineMetadata *SecurityEntityAnalyticsAPIEngineMetadata `json:"EngineMetadata,omitempty"` - Category *string `json:"category,omitempty"` - Id string `json:"id"` - Name string `json:"name"` - Source *string `json:"source,omitempty"` - Type string `json:"type"` - } `json:"entity"` + Timestamp *time.Time `json:"@timestamp,omitempty"` + Asset *SecurityEntityAnalyticsAPIAsset `json:"asset,omitempty"` + Entity SecurityEntityAnalyticsAPIEntityField `json:"entity"` } // SecurityEntityAnalyticsAPIHostEntity defines model for Security_Entity_Analytics_API_HostEntity. type SecurityEntityAnalyticsAPIHostEntity struct { - Timestamp *time.Time `json:"@timestamp,omitempty"` - Asset *struct { - // Criticality The criticality level of the asset. - Criticality SecurityEntityAnalyticsAPIAssetCriticalityLevel `json:"criticality"` - } `json:"asset,omitempty"` - Entity struct { - EngineMetadata *SecurityEntityAnalyticsAPIEngineMetadata `json:"EngineMetadata,omitempty"` - Name string `json:"name"` - Source string `json:"source"` - Type string `json:"type"` - } `json:"entity"` - Event *struct { + Timestamp *time.Time `json:"@timestamp,omitempty"` + Asset *SecurityEntityAnalyticsAPIAsset `json:"asset,omitempty"` + Entity SecurityEntityAnalyticsAPIEntityField `json:"entity"` + Event *struct { Ingested *time.Time `json:"ingested,omitempty"` } `json:"event,omitempty"` - Host struct { + Host *struct { Architecture *[]string `json:"architecture,omitempty"` Domain *[]string `json:"domain,omitempty"` + Entity *SecurityEntityAnalyticsAPIEntityField `json:"entity,omitempty"` Hostname *[]string `json:"hostname,omitempty"` Id *[]string `json:"id,omitempty"` Ip *[]string `json:"ip,omitempty"` @@ -17165,7 +17772,7 @@ type SecurityEntityAnalyticsAPIHostEntity struct { Name string `json:"name"` Risk *SecurityEntityAnalyticsAPIEntityRiskScoreRecord `json:"risk,omitempty"` Type *[]string `json:"type,omitempty"` - } `json:"host"` + } `json:"host,omitempty"` } // SecurityEntityAnalyticsAPIIdField defines model for Security_Entity_Analytics_API_IdField. @@ -17190,11 +17797,7 @@ type SecurityEntityAnalyticsAPIMetadata = SecurityEntityAnalyticsAPITransformSta type SecurityEntityAnalyticsAPIMonitoredUserDoc struct { Timestamp *time.Time `json:"@timestamp,omitempty"` EntityAnalyticsMonitoring *struct { - Labels *[]struct { - Field *string `json:"field,omitempty"` - Source *string `json:"source,omitempty"` - Value *string `json:"value,omitempty"` - } `json:"labels,omitempty"` + Labels *[]SecurityEntityAnalyticsAPIMonitoringLabel `json:"labels,omitempty"` } `json:"entity_analytics_monitoring,omitempty"` Event *struct { Ingested *time.Time `json:"ingested,omitempty"` @@ -17205,6 +17808,31 @@ type SecurityEntityAnalyticsAPIMonitoredUserDoc struct { SourceIntegrations *[]string `json:"source_integrations,omitempty"` Sources *[]interface{} `json:"sources,omitempty"` } `json:"labels,omitempty"` + User *struct { + Entity *struct { + Attributes *struct { + // Privileged Indicates if the user is privileged. + Privileged *bool `json:"Privileged,omitempty"` + } `json:"attributes,omitempty"` + } `json:"entity,omitempty"` + + // IsPrivileged Indicates if the user is privileged. + IsPrivileged *bool `json:"is_privileged,omitempty"` + Name *string `json:"name,omitempty"` + } `json:"user,omitempty"` +} + +// SecurityEntityAnalyticsAPIMonitoredUserUpdateDoc defines model for Security_Entity_Analytics_API_MonitoredUserUpdateDoc. +type SecurityEntityAnalyticsAPIMonitoredUserUpdateDoc struct { + EntityAnalyticsMonitoring *struct { + Labels *[]SecurityEntityAnalyticsAPIMonitoringLabel `json:"labels,omitempty"` + } `json:"entity_analytics_monitoring,omitempty"` + Id *string `json:"id,omitempty"` + Labels *struct { + SourceIds *[]string `json:"source_ids,omitempty"` + SourceIntegrations *[]string `json:"source_integrations,omitempty"` + Sources *[]interface{} `json:"sources,omitempty"` + } `json:"labels,omitempty"` User *struct { // IsPrivileged Indicates if the user is privileged. IsPrivileged *bool `json:"is_privileged,omitempty"` @@ -17214,10 +17842,23 @@ type SecurityEntityAnalyticsAPIMonitoredUserDoc struct { // SecurityEntityAnalyticsAPIMonitoringEngineDescriptor defines model for Security_Entity_Analytics_API_MonitoringEngineDescriptor. type SecurityEntityAnalyticsAPIMonitoringEngineDescriptor struct { + Error *struct { + // Message Error message typically only present if the engine is in error state + Message *string `json:"message,omitempty"` + } `json:"error,omitempty"` + + // Status The status of the Privilege Monitoring Engine Status SecurityEntityAnalyticsAPIPrivilegeMonitoringEngineStatus `json:"status"` } -// SecurityEntityAnalyticsAPIPrivilegeMonitoringEngineStatus defines model for Security_Entity_Analytics_API_PrivilegeMonitoringEngineStatus. +// SecurityEntityAnalyticsAPIMonitoringLabel defines model for Security_Entity_Analytics_API_MonitoringLabel. +type SecurityEntityAnalyticsAPIMonitoringLabel struct { + Field string `json:"field"` + Source string `json:"source"` + Value string `json:"value"` +} + +// SecurityEntityAnalyticsAPIPrivilegeMonitoringEngineStatus The status of the Privilege Monitoring Engine type SecurityEntityAnalyticsAPIPrivilegeMonitoringEngineStatus string // SecurityEntityAnalyticsAPIPrivmonUserCsvUploadErrorItem defines model for Security_Entity_Analytics_API_PrivmonUserCsvUploadErrorItem. @@ -17269,24 +17910,17 @@ type SecurityEntityAnalyticsAPIRiskScoreInput struct { // SecurityEntityAnalyticsAPIServiceEntity defines model for Security_Entity_Analytics_API_ServiceEntity. type SecurityEntityAnalyticsAPIServiceEntity struct { - Timestamp *time.Time `json:"@timestamp,omitempty"` - Asset *struct { - // Criticality The criticality level of the asset. - Criticality SecurityEntityAnalyticsAPIAssetCriticalityLevel `json:"criticality"` - } `json:"asset,omitempty"` - Entity struct { - EngineMetadata *SecurityEntityAnalyticsAPIEngineMetadata `json:"EngineMetadata,omitempty"` - Name string `json:"name"` - Source string `json:"source"` - Type string `json:"type"` - } `json:"entity"` - Event *struct { + Timestamp *time.Time `json:"@timestamp,omitempty"` + Asset *SecurityEntityAnalyticsAPIAsset `json:"asset,omitempty"` + Entity SecurityEntityAnalyticsAPIEntityField `json:"entity"` + Event *struct { Ingested *time.Time `json:"ingested,omitempty"` } `json:"event,omitempty"` - Service struct { - Name string `json:"name"` - Risk *SecurityEntityAnalyticsAPIEntityRiskScoreRecord `json:"risk,omitempty"` - } `json:"service"` + Service *struct { + Entity *SecurityEntityAnalyticsAPIEntityField `json:"entity,omitempty"` + Name string `json:"name"` + Risk *SecurityEntityAnalyticsAPIEntityRiskScoreRecord `json:"risk,omitempty"` + } `json:"service,omitempty"` } // SecurityEntityAnalyticsAPIStoreStatus defines model for Security_Entity_Analytics_API_StoreStatus. @@ -17321,21 +17955,13 @@ type SecurityEntityAnalyticsAPITransformStatsMetadata struct { // SecurityEntityAnalyticsAPIUserEntity defines model for Security_Entity_Analytics_API_UserEntity. type SecurityEntityAnalyticsAPIUserEntity struct { - Timestamp *time.Time `json:"@timestamp,omitempty"` - Asset *struct { - // Criticality The criticality level of the asset. - Criticality SecurityEntityAnalyticsAPIAssetCriticalityLevel `json:"criticality"` - } `json:"asset,omitempty"` - Entity struct { - EngineMetadata *SecurityEntityAnalyticsAPIEngineMetadata `json:"EngineMetadata,omitempty"` - Name string `json:"name"` - Source string `json:"source"` - Type string `json:"type"` - } `json:"entity"` - Event *struct { + Timestamp *time.Time `json:"@timestamp,omitempty"` + Asset *SecurityEntityAnalyticsAPIAsset `json:"asset,omitempty"` + Entity SecurityEntityAnalyticsAPIEntityField `json:"entity"` + Event *struct { Ingested *time.Time `json:"ingested,omitempty"` } `json:"event,omitempty"` - User struct { + User *struct { Domain *[]string `json:"domain,omitempty"` Email *[]string `json:"email,omitempty"` FullName *[]string `json:"full_name,omitempty"` @@ -17344,7 +17970,7 @@ type SecurityEntityAnalyticsAPIUserEntity struct { Name string `json:"name"` Risk *SecurityEntityAnalyticsAPIEntityRiskScoreRecord `json:"risk,omitempty"` Roles *[]string `json:"roles,omitempty"` - } `json:"user"` + } `json:"user,omitempty"` } // SecurityEntityAnalyticsAPIUserName defines model for Security_Entity_Analytics_API_UserName. @@ -19925,6 +20551,7 @@ type AgentPolicy struct { DataOutputId *string `json:"data_output_id,omitempty"` Description *string `json:"description,omitempty"` DownloadSourceId *string `json:"download_source_id,omitempty"` + FipsAgents *float32 `json:"fips_agents,omitempty"` FleetServerHostId *string `json:"fleet_server_host_id,omitempty"` // GlobalDataTags User defined data tags that are added to all of the inputs. The values can be strings or numbers. @@ -20002,8 +20629,11 @@ type AgentPolicyPackagePolicies1 = []struct { // AdditionalDatastreamsPermissions Additional datastream permissions, that will be added to the agent policy. AdditionalDatastreamsPermissions *[]string `json:"additional_datastreams_permissions,omitempty"` Agents *float32 `json:"agents,omitempty"` - CreatedAt string `json:"created_at"` - CreatedBy string `json:"created_by"` + + // CloudConnectorId ID of the cloud connector associated with this package policy. + CloudConnectorId *string `json:"cloud_connector_id,omitempty"` + CreatedAt string `json:"created_at"` + CreatedBy string `json:"created_by"` // Description Package policy description Description *string `json:"description,omitempty"` @@ -20034,6 +20664,7 @@ type AgentPolicyPackagePolicies1 = []struct { Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -20055,11 +20686,14 @@ type AgentPolicyPackagePolicies1 = []struct { SpaceIds *[]string `json:"spaceIds,omitempty"` // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. - SupportsAgentless *bool `json:"supports_agentless,omitempty"` - UpdatedAt string `json:"updated_at"` - UpdatedBy string `json:"updated_by"` - Vars *AgentPolicy_PackagePolicies_1_Vars `json:"vars,omitempty"` - Version *string `json:"version,omitempty"` + SupportsAgentless *bool `json:"supports_agentless,omitempty"` + + // SupportsCloudConnector Indicates whether the package policy supports cloud connectors. + SupportsCloudConnector *bool `json:"supports_cloud_connector,omitempty"` + UpdatedAt string `json:"updated_at"` + UpdatedBy string `json:"updated_by"` + Vars *AgentPolicy_PackagePolicies_1_Vars `json:"vars,omitempty"` + Version *string `json:"version,omitempty"` } // AgentPolicy_PackagePolicies_1_Elasticsearch_Privileges defines model for AgentPolicy.PackagePolicies.1.Elasticsearch.Privileges. @@ -20756,7 +21390,8 @@ type NewOutputElasticsearchPreset string // NewOutputElasticsearchSecretsSslKey0 defines model for . type NewOutputElasticsearchSecretsSslKey0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // NewOutputElasticsearchSecretsSslKey1 defines model for . @@ -20817,14 +21452,13 @@ type NewOutputKafka struct { Key NewOutputKafka_Secrets_Ssl_Key `json:"key"` } `json:"ssl,omitempty"` } `json:"secrets,omitempty"` - Shipper *NewOutputShipper `json:"shipper,omitempty"` - Ssl *NewOutputSsl `json:"ssl,omitempty"` - Timeout *float32 `json:"timeout,omitempty"` - Topic *string `json:"topic,omitempty"` - Type NewOutputKafkaType `json:"type"` - Username *string `json:"username,omitempty"` - Version *string `json:"version,omitempty"` - WriteToLogsStreams *bool `json:"write_to_logs_streams,omitempty"` + Shipper *NewOutputShipper `json:"shipper,omitempty"` + Ssl *NewOutputSsl `json:"ssl,omitempty"` + Timeout *float32 `json:"timeout,omitempty"` + Topic *string `json:"topic,omitempty"` + Type NewOutputKafkaType `json:"type"` + Username *string `json:"username,omitempty"` + Version *string `json:"version,omitempty"` } // NewOutputKafkaAuthType defines model for NewOutputKafka.AuthType. @@ -20844,7 +21478,8 @@ type NewOutputKafkaSaslMechanism string // NewOutputKafkaSecretsPassword0 defines model for . type NewOutputKafkaSecretsPassword0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // NewOutputKafkaSecretsPassword1 defines model for . @@ -20857,7 +21492,8 @@ type NewOutputKafka_Secrets_Password struct { // NewOutputKafkaSecretsSslKey0 defines model for . type NewOutputKafkaSecretsSslKey0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // NewOutputKafkaSecretsSslKey1 defines model for . @@ -20890,15 +21526,15 @@ type NewOutputLogstash struct { Key *NewOutputLogstash_Secrets_Ssl_Key `json:"key,omitempty"` } `json:"ssl,omitempty"` } `json:"secrets,omitempty"` - Shipper *NewOutputShipper `json:"shipper,omitempty"` - Ssl *NewOutputSsl `json:"ssl,omitempty"` - Type NewOutputLogstashType `json:"type"` - WriteToLogsStreams *bool `json:"write_to_logs_streams,omitempty"` + Shipper *NewOutputShipper `json:"shipper,omitempty"` + Ssl *NewOutputSsl `json:"ssl,omitempty"` + Type NewOutputLogstashType `json:"type"` } // NewOutputLogstashSecretsSslKey0 defines model for . type NewOutputLogstashSecretsSslKey0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // NewOutputLogstashSecretsSslKey1 defines model for . @@ -20949,7 +21585,8 @@ type NewOutputRemoteElasticsearchPreset string // NewOutputRemoteElasticsearchSecretsServiceToken0 defines model for . type NewOutputRemoteElasticsearchSecretsServiceToken0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // NewOutputRemoteElasticsearchSecretsServiceToken1 defines model for . @@ -20962,7 +21599,8 @@ type NewOutputRemoteElasticsearch_Secrets_ServiceToken struct { // NewOutputRemoteElasticsearchSecretsSslKey0 defines model for . type NewOutputRemoteElasticsearchSecretsSslKey0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // NewOutputRemoteElasticsearchSecretsSslKey1 defines model for . @@ -21046,6 +21684,7 @@ type OutputElasticsearchPreset string // OutputElasticsearchSecretsSslKey0 defines model for . type OutputElasticsearchSecretsSslKey0 struct { + Hash *string `json:"hash,omitempty"` Id string `json:"id"` AdditionalProperties map[string]interface{} `json:"-"` } @@ -21110,7 +21749,6 @@ type OutputKafka struct { Type OutputKafkaType `json:"type"` Username *string `json:"username,omitempty"` Version *string `json:"version,omitempty"` - WriteToLogsStreams *bool `json:"write_to_logs_streams,omitempty"` AdditionalProperties map[string]interface{} `json:"-"` } @@ -21163,6 +21801,7 @@ type OutputKafka_Sasl struct { // OutputKafkaSecretsPassword0 defines model for . type OutputKafkaSecretsPassword0 struct { + Hash *string `json:"hash,omitempty"` Id string `json:"id"` AdditionalProperties map[string]interface{} `json:"-"` } @@ -21177,6 +21816,7 @@ type OutputKafka_Secrets_Password struct { // OutputKafkaSecretsSslKey0 defines model for . type OutputKafkaSecretsSslKey0 struct { + Hash *string `json:"hash,omitempty"` Id string `json:"id"` AdditionalProperties map[string]interface{} `json:"-"` } @@ -21223,12 +21863,12 @@ type OutputLogstash struct { Shipper *OutputShipper `json:"shipper,omitempty"` Ssl *OutputSsl `json:"ssl,omitempty"` Type OutputLogstashType `json:"type"` - WriteToLogsStreams *bool `json:"write_to_logs_streams,omitempty"` AdditionalProperties map[string]interface{} `json:"-"` } // OutputLogstashSecretsSslKey0 defines model for . type OutputLogstashSecretsSslKey0 struct { + Hash *string `json:"hash,omitempty"` Id string `json:"id"` AdditionalProperties map[string]interface{} `json:"-"` } @@ -21289,6 +21929,7 @@ type OutputRemoteElasticsearchPreset string // OutputRemoteElasticsearchSecretsServiceToken0 defines model for . type OutputRemoteElasticsearchSecretsServiceToken0 struct { + Hash *string `json:"hash,omitempty"` Id string `json:"id"` AdditionalProperties map[string]interface{} `json:"-"` } @@ -21303,6 +21944,7 @@ type OutputRemoteElasticsearch_Secrets_ServiceToken struct { // OutputRemoteElasticsearchSecretsSslKey0 defines model for . type OutputRemoteElasticsearchSecretsSslKey0 struct { + Hash *string `json:"hash,omitempty"` Id string `json:"id"` AdditionalProperties map[string]interface{} `json:"-"` } @@ -21479,6 +22121,7 @@ type PackageInfo_InstallationInfo_AdditionalSpacesInstalledKibana_Type struct { // PackageInfo_InstallationInfo_AdditionalSpacesInstalledKibana_Item defines model for PackageInfo.InstallationInfo.AdditionalSpacesInstalledKibana.Item. type PackageInfo_InstallationInfo_AdditionalSpacesInstalledKibana_Item struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type PackageInfo_InstallationInfo_AdditionalSpacesInstalledKibana_Type `json:"type"` @@ -21532,6 +22175,7 @@ type PackageInfo_InstallationInfo_InstalledKibana_Type struct { // PackageInfo_InstallationInfo_InstalledKibana_Item defines model for PackageInfo.InstallationInfo.InstalledKibana.Item. type PackageInfo_InstallationInfo_InstalledKibana_Item struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type PackageInfo_InstallationInfo_InstalledKibana_Type `json:"type"` @@ -21581,6 +22225,7 @@ type PackageInfo_InstallationInfo struct { Name string `json:"name"` Namespaces *[]string `json:"namespaces,omitempty"` PreviousVersion *string `json:"previous_version,omitempty"` + RolledBack *bool `json:"rolled_back,omitempty"` Type string `json:"type"` UpdatedAt *string `json:"updated_at,omitempty"` VerificationKeyId *string `json:"verification_key_id,omitempty"` @@ -21719,6 +22364,7 @@ type PackageListItem_InstallationInfo_AdditionalSpacesInstalledKibana_Type struc // PackageListItem_InstallationInfo_AdditionalSpacesInstalledKibana_Item defines model for PackageListItem.InstallationInfo.AdditionalSpacesInstalledKibana.Item. type PackageListItem_InstallationInfo_AdditionalSpacesInstalledKibana_Item struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type PackageListItem_InstallationInfo_AdditionalSpacesInstalledKibana_Type `json:"type"` @@ -21772,6 +22418,7 @@ type PackageListItem_InstallationInfo_InstalledKibana_Type struct { // PackageListItem_InstallationInfo_InstalledKibana_Item defines model for PackageListItem.InstallationInfo.InstalledKibana.Item. type PackageListItem_InstallationInfo_InstalledKibana_Item struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type PackageListItem_InstallationInfo_InstalledKibana_Type `json:"type"` @@ -21821,6 +22468,7 @@ type PackageListItem_InstallationInfo struct { Name string `json:"name"` Namespaces *[]string `json:"namespaces,omitempty"` PreviousVersion *string `json:"previous_version,omitempty"` + RolledBack *bool `json:"rolled_back,omitempty"` Type string `json:"type"` UpdatedAt *string `json:"updated_at,omitempty"` VerificationKeyId *string `json:"verification_key_id,omitempty"` @@ -21870,8 +22518,11 @@ type PackagePolicy struct { // AdditionalDatastreamsPermissions Additional datastream permissions, that will be added to the agent policy. AdditionalDatastreamsPermissions *[]string `json:"additional_datastreams_permissions,omitempty"` Agents *float32 `json:"agents,omitempty"` - CreatedAt string `json:"created_at"` - CreatedBy string `json:"created_by"` + + // CloudConnectorId ID of the cloud connector associated with this package policy. + CloudConnectorId *string `json:"cloud_connector_id,omitempty"` + CreatedAt string `json:"created_at"` + CreatedBy string `json:"created_by"` // Description Package policy description Description *string `json:"description,omitempty"` @@ -21904,6 +22555,7 @@ type PackagePolicy struct { Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -21923,11 +22575,14 @@ type PackagePolicy struct { SpaceIds *[]string `json:"spaceIds,omitempty"` // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. - SupportsAgentless *bool `json:"supports_agentless,omitempty"` - UpdatedAt string `json:"updated_at"` - UpdatedBy string `json:"updated_by"` - Vars *map[string]interface{} `json:"vars,omitempty"` - Version *string `json:"version,omitempty"` + SupportsAgentless *bool `json:"supports_agentless,omitempty"` + + // SupportsCloudConnector Indicates whether the package policy supports cloud connectors. + SupportsCloudConnector *bool `json:"supports_cloud_connector,omitempty"` + UpdatedAt string `json:"updated_at"` + UpdatedBy string `json:"updated_by"` + Vars *map[string]interface{} `json:"vars,omitempty"` + Version *string `json:"version,omitempty"` } // PackagePolicy_Elasticsearch_Privileges defines model for PackagePolicy.Elasticsearch.Privileges. @@ -22009,6 +22664,7 @@ type PackagePolicyRequestPackage struct { Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -23378,21 +24034,38 @@ type ServerHost struct { ProxyId *string `json:"proxy_id,omitempty"` Secrets *struct { Ssl *struct { - EsKey *ServerHost_Secrets_Ssl_EsKey `json:"es_key,omitempty"` - Key *ServerHost_Secrets_Ssl_Key `json:"key,omitempty"` + AgentKey *ServerHost_Secrets_Ssl_AgentKey `json:"agent_key,omitempty"` + EsKey *ServerHost_Secrets_Ssl_EsKey `json:"es_key,omitempty"` + Key *ServerHost_Secrets_Ssl_Key `json:"key,omitempty"` } `json:"ssl,omitempty"` } `json:"secrets,omitempty"` Ssl *struct { - Certificate *string `json:"certificate,omitempty"` - CertificateAuthorities *[]string `json:"certificate_authorities,omitempty"` - ClientAuth *ServerHostSslClientAuth `json:"client_auth,omitempty"` - EsCertificate *string `json:"es_certificate,omitempty"` - EsCertificateAuthorities *[]string `json:"es_certificate_authorities,omitempty"` - EsKey *string `json:"es_key,omitempty"` - Key *string `json:"key,omitempty"` + AgentCertificate *string `json:"agent_certificate,omitempty"` + AgentCertificateAuthorities *[]string `json:"agent_certificate_authorities,omitempty"` + AgentKey *string `json:"agent_key,omitempty"` + Certificate *string `json:"certificate,omitempty"` + CertificateAuthorities *[]string `json:"certificate_authorities,omitempty"` + ClientAuth *ServerHostSslClientAuth `json:"client_auth,omitempty"` + EsCertificate *string `json:"es_certificate,omitempty"` + EsCertificateAuthorities *[]string `json:"es_certificate_authorities,omitempty"` + EsKey *string `json:"es_key,omitempty"` + Key *string `json:"key,omitempty"` } `json:"ssl,omitempty"` } +// ServerHostSecretsSslAgentKey0 defines model for . +type ServerHostSecretsSslAgentKey0 struct { + Id string `json:"id"` +} + +// ServerHostSecretsSslAgentKey1 defines model for . +type ServerHostSecretsSslAgentKey1 = string + +// ServerHost_Secrets_Ssl_AgentKey defines model for ServerHost.Secrets.Ssl.AgentKey. +type ServerHost_Secrets_Ssl_AgentKey struct { + union json.RawMessage +} + // ServerHostSecretsSslEsKey0 defines model for . type ServerHostSecretsSslEsKey0 struct { Id string `json:"id"` @@ -23748,7 +24421,8 @@ type UpdateOutputElasticsearchPreset string // UpdateOutputElasticsearchSecretsSslKey0 defines model for . type UpdateOutputElasticsearchSecretsSslKey0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // UpdateOutputElasticsearchSecretsSslKey1 defines model for . @@ -23808,14 +24482,13 @@ type UpdateOutputKafka struct { Key UpdateOutputKafka_Secrets_Ssl_Key `json:"key"` } `json:"ssl,omitempty"` } `json:"secrets,omitempty"` - Shipper *UpdateOutputShipper `json:"shipper,omitempty"` - Ssl *UpdateOutputSsl `json:"ssl,omitempty"` - Timeout *float32 `json:"timeout,omitempty"` - Topic *string `json:"topic,omitempty"` - Type *UpdateOutputKafkaType `json:"type,omitempty"` - Username *string `json:"username,omitempty"` - Version *string `json:"version,omitempty"` - WriteToLogsStreams *bool `json:"write_to_logs_streams,omitempty"` + Shipper *UpdateOutputShipper `json:"shipper,omitempty"` + Ssl *UpdateOutputSsl `json:"ssl,omitempty"` + Timeout *float32 `json:"timeout,omitempty"` + Topic *string `json:"topic,omitempty"` + Type *UpdateOutputKafkaType `json:"type,omitempty"` + Username *string `json:"username,omitempty"` + Version *string `json:"version,omitempty"` } // UpdateOutputKafkaAuthType defines model for UpdateOutputKafka.AuthType. @@ -23835,7 +24508,8 @@ type UpdateOutputKafkaSaslMechanism string // UpdateOutputKafkaSecretsPassword0 defines model for . type UpdateOutputKafkaSecretsPassword0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // UpdateOutputKafkaSecretsPassword1 defines model for . @@ -23848,7 +24522,8 @@ type UpdateOutputKafka_Secrets_Password struct { // UpdateOutputKafkaSecretsSslKey0 defines model for . type UpdateOutputKafkaSecretsSslKey0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // UpdateOutputKafkaSecretsSslKey1 defines model for . @@ -23880,15 +24555,15 @@ type UpdateOutputLogstash struct { Key *UpdateOutputLogstash_Secrets_Ssl_Key `json:"key,omitempty"` } `json:"ssl,omitempty"` } `json:"secrets,omitempty"` - Shipper *UpdateOutputShipper `json:"shipper,omitempty"` - Ssl *UpdateOutputSsl `json:"ssl,omitempty"` - Type *UpdateOutputLogstashType `json:"type,omitempty"` - WriteToLogsStreams *bool `json:"write_to_logs_streams,omitempty"` + Shipper *UpdateOutputShipper `json:"shipper,omitempty"` + Ssl *UpdateOutputSsl `json:"ssl,omitempty"` + Type *UpdateOutputLogstashType `json:"type,omitempty"` } // UpdateOutputLogstashSecretsSslKey0 defines model for . type UpdateOutputLogstashSecretsSslKey0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // UpdateOutputLogstashSecretsSslKey1 defines model for . @@ -23938,7 +24613,8 @@ type UpdateOutputRemoteElasticsearchPreset string // UpdateOutputRemoteElasticsearchSecretsServiceToken0 defines model for . type UpdateOutputRemoteElasticsearchSecretsServiceToken0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // UpdateOutputRemoteElasticsearchSecretsServiceToken1 defines model for . @@ -23951,7 +24627,8 @@ type UpdateOutputRemoteElasticsearch_Secrets_ServiceToken struct { // UpdateOutputRemoteElasticsearchSecretsSslKey0 defines model for . type UpdateOutputRemoteElasticsearchSecretsSslKey0 struct { - Id string `json:"id"` + Hash *string `json:"hash,omitempty"` + Id string `json:"id"` } // UpdateOutputRemoteElasticsearchSecretsSslKey1 defines model for . @@ -24195,6 +24872,164 @@ type GetActionsConnectorTypesParams struct { FeatureId *string `form:"feature_id,omitempty" json:"feature_id,omitempty"` } +// PostAgentBuilderA2aAgentidJSONBody defines parameters for PostAgentBuilderA2aAgentid. +type PostAgentBuilderA2aAgentidJSONBody = interface{} + +// PostAgentBuilderAgentsJSONBody defines parameters for PostAgentBuilderAgents. +type PostAgentBuilderAgentsJSONBody struct { + // AvatarColor Optional hex color code for the agent avatar. + AvatarColor *string `json:"avatar_color,omitempty"` + + // AvatarSymbol Optional symbol/initials for the agent avatar. + AvatarSymbol *string `json:"avatar_symbol,omitempty"` + + // Configuration Configuration settings for the agent. + Configuration struct { + // Instructions Optional system instructions that define the agent behavior. + Instructions *string `json:"instructions,omitempty"` + Tools []struct { + // ToolIds Array of tool IDs that the agent can use. + ToolIds []string `json:"tool_ids"` + } `json:"tools"` + } `json:"configuration"` + + // Description Description of what the agent does. + Description string `json:"description"` + + // Id Unique identifier for the agent. + Id string `json:"id"` + + // Labels Optional labels for categorizing and organizing agents. + Labels *[]string `json:"labels,omitempty"` + + // Name Display name for the agent. + Name string `json:"name"` +} + +// PutAgentBuilderAgentsIdJSONBody defines parameters for PutAgentBuilderAgentsId. +type PutAgentBuilderAgentsIdJSONBody struct { + // AvatarColor Updated hex color code for the agent avatar. + AvatarColor *string `json:"avatar_color,omitempty"` + + // AvatarSymbol Updated symbol/initials for the agent avatar. + AvatarSymbol *string `json:"avatar_symbol,omitempty"` + + // Configuration Updated configuration settings for the agent. + Configuration *struct { + // Instructions Updated system instructions that define the agent behavior. + Instructions *string `json:"instructions,omitempty"` + Tools *[]struct { + // ToolIds Array of tool IDs that the agent can use. + ToolIds []string `json:"tool_ids"` + } `json:"tools,omitempty"` + } `json:"configuration,omitempty"` + + // Description Updated description of what the agent does. + Description *string `json:"description,omitempty"` + + // Labels Updated labels for categorizing and organizing agents. + Labels *[]string `json:"labels,omitempty"` + + // Name Updated display name for the agent. + Name *string `json:"name,omitempty"` +} + +// GetAgentBuilderConversationsParams defines parameters for GetAgentBuilderConversations. +type GetAgentBuilderConversationsParams struct { + // AgentId Optional agent ID to filter conversations by a specific agent. + AgentId *string `form:"agent_id,omitempty" json:"agent_id,omitempty"` +} + +// PostAgentBuilderConverseJSONBody defines parameters for PostAgentBuilderConverse. +type PostAgentBuilderConverseJSONBody struct { + // AgentId The ID of the agent to chat with. Defaults to the default Elastic AI agent. + AgentId *string `json:"agent_id,omitempty"` + + // Capabilities Controls agent capabilities during conversation. Currently supports visualization rendering for tabular tool results. + Capabilities *struct { + // Visualizations When true, allows the agent to render tabular data from tool results as interactive visualizations using custom XML elements in responses. + Visualizations *bool `json:"visualizations,omitempty"` + } `json:"capabilities,omitempty"` + + // ConnectorId Optional connector ID for the agent to use for external integrations. + ConnectorId *string `json:"connector_id,omitempty"` + + // ConversationId Optional existing conversation ID to continue a previous conversation. + ConversationId *string `json:"conversation_id,omitempty"` + + // Input The user input message to send to the agent. + Input string `json:"input"` +} + +// PostAgentBuilderConverseAsyncJSONBody defines parameters for PostAgentBuilderConverseAsync. +type PostAgentBuilderConverseAsyncJSONBody struct { + // AgentId The ID of the agent to chat with. Defaults to the default Elastic AI agent. + AgentId *string `json:"agent_id,omitempty"` + + // Capabilities Controls agent capabilities during conversation. Currently supports visualization rendering for tabular tool results. + Capabilities *struct { + // Visualizations When true, allows the agent to render tabular data from tool results as interactive visualizations using custom XML elements in responses. + Visualizations *bool `json:"visualizations,omitempty"` + } `json:"capabilities,omitempty"` + + // ConnectorId Optional connector ID for the agent to use for external integrations. + ConnectorId *string `json:"connector_id,omitempty"` + + // ConversationId Optional existing conversation ID to continue a previous conversation. + ConversationId *string `json:"conversation_id,omitempty"` + + // Input The user input message to send to the agent. + Input string `json:"input"` +} + +// PostAgentBuilderMcpJSONBody defines parameters for PostAgentBuilderMcp. +type PostAgentBuilderMcpJSONBody = interface{} + +// PostAgentBuilderToolsJSONBody defines parameters for PostAgentBuilderTools. +type PostAgentBuilderToolsJSONBody struct { + // Configuration Tool-specific configuration parameters. See examples for details. + Configuration map[string]interface{} `json:"configuration"` + + // Description Description of what the tool does. + Description *string `json:"description,omitempty"` + + // Id Unique identifier for the tool. + Id string `json:"id"` + + // Tags Optional tags for categorizing and organizing tools. + Tags *[]string `json:"tags,omitempty"` + + // Type The type of tool to create (e.g., esql, index_search). + Type PostAgentBuilderToolsJSONBodyType `json:"type"` +} + +// PostAgentBuilderToolsJSONBodyType defines parameters for PostAgentBuilderTools. +type PostAgentBuilderToolsJSONBodyType string + +// PostAgentBuilderToolsExecuteJSONBody defines parameters for PostAgentBuilderToolsExecute. +type PostAgentBuilderToolsExecuteJSONBody struct { + // ConnectorId Optional connector ID for tools that require external integrations. + ConnectorId *string `json:"connector_id,omitempty"` + + // ToolId The ID of the tool to execute. + ToolId string `json:"tool_id"` + + // ToolParams Parameters to pass to the tool execution. See examples for details + ToolParams map[string]interface{} `json:"tool_params"` +} + +// PutAgentBuilderToolsToolidJSONBody defines parameters for PutAgentBuilderToolsToolid. +type PutAgentBuilderToolsToolidJSONBody struct { + // Configuration Updated tool-specific configuration parameters. See examples for details. + Configuration *map[string]interface{} `json:"configuration,omitempty"` + + // Description Updated description of what the tool does. + Description *string `json:"description,omitempty"` + + // Tags Updated tags for categorizing and organizing tools. + Tags *[]string `json:"tags,omitempty"` +} + // PostAlertingRuleIdJSONBody defines parameters for PostAlertingRuleId. type PostAlertingRuleIdJSONBody struct { Actions *[]struct { @@ -24793,6 +25628,123 @@ type FindAssetCriticalityRecordsParamsSortField string // FindAssetCriticalityRecordsParamsSortDirection defines parameters for FindAssetCriticalityRecords. type FindAssetCriticalityRecordsParamsSortDirection string +// PostAttackDiscoveryBulkJSONBody defines parameters for PostAttackDiscoveryBulk. +type PostAttackDiscoveryBulkJSONBody struct { + // Update Configuration object containing all parameters for the bulk update operation + Update struct { + // EnableFieldRendering Enables a markdown syntax used to render pivot fields, for example `{{ user.name james }}`. When disabled, the same example would be rendered as `james`. This is primarily used for Attack discovery views within Kibana. Defaults to `false`. + EnableFieldRendering *bool `json:"enable_field_rendering,omitempty"` + + // Ids Array of Attack discovery IDs to update + Ids []string `json:"ids"` + + // KibanaAlertWorkflowStatus When provided, update the kibana.alert.workflow_status of the attack discovery alerts + KibanaAlertWorkflowStatus *PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatus `json:"kibana_alert_workflow_status,omitempty"` + + // Visibility When provided, update the visibility of the alert, as determined by the kibana.alert.attack_discovery.users field + Visibility *PostAttackDiscoveryBulkJSONBodyUpdateVisibility `json:"visibility,omitempty"` + + // WithReplacements When true, returns the updated Attack discoveries with text replacements applied to the detailsMarkdown, entitySummaryMarkdown, summaryMarkdown, and title fields. This substitutes anonymized values with human-readable equivalents. Defaults to `true`. + WithReplacements *bool `json:"with_replacements,omitempty"` + } `json:"update"` +} + +// PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatus defines parameters for PostAttackDiscoveryBulk. +type PostAttackDiscoveryBulkJSONBodyUpdateKibanaAlertWorkflowStatus string + +// PostAttackDiscoveryBulkJSONBodyUpdateVisibility defines parameters for PostAttackDiscoveryBulk. +type PostAttackDiscoveryBulkJSONBodyUpdateVisibility string + +// AttackDiscoveryFindParams defines parameters for AttackDiscoveryFind. +type AttackDiscoveryFindParams struct { + // AlertIds Filter results to Attack discoveries that include any of the provided alert IDs + AlertIds *[]string `form:"alert_ids,omitempty" json:"alert_ids,omitempty"` + + // ConnectorNames Filter results to Attack discoveries created by any of the provided human readable connector names. Note that values must match the human readable `connector_name` property of an Attack discovery, e.g. "GPT-5 Chat", which are distinct from `connector_id` values used to generate Attack discoveries. + ConnectorNames *[]string `form:"connector_names,omitempty" json:"connector_names,omitempty"` + + // EnableFieldRendering Enables a markdown syntax used to render pivot fields, for example `{{ user.name james }}`. When disabled, the same example would be rendered as `james`. This is primarily used for Attack discovery views within Kibana. Defaults to `false`. + EnableFieldRendering *bool `form:"enable_field_rendering,omitempty" json:"enable_field_rendering,omitempty"` + + // End End of the time range for the search. Accepts absolute timestamps (ISO 8601) or relative date math (e.g. "now", "now-24h"). + End *string `form:"end,omitempty" json:"end,omitempty"` + + // Ids Filter results to the Attack discoveries with the specified IDs + Ids *[]string `form:"ids,omitempty" json:"ids,omitempty"` + + // IncludeUniqueAlertIds If `true`, the response will include `unique_alert_ids` and `unique_alert_ids_count` aggregated across the matched Attack discoveries + IncludeUniqueAlertIds *bool `form:"include_unique_alert_ids,omitempty" json:"include_unique_alert_ids,omitempty"` + + // Page Page number to return (used for pagination). Defaults to 1. + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage Number of Attack discoveries to return per page (used for pagination). Defaults to 10. + PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Search Free-text search query applied to relevant text fields of Attack discoveries (title, description, tags, etc.) + Search *string `form:"search,omitempty" json:"search,omitempty"` + + // Shared Whether to filter by shared visibility. If omitted, both shared and privately visible Attack discoveries are returned. Use `true` to return only shared discoveries, `false` to return only those visible to the current user. + Shared *bool `form:"shared,omitempty" json:"shared,omitempty"` + + // SortField Field used to sort results. See `AttackDiscoveryFindSortField` for allowed values. + SortField *SecurityAIAssistantAPIAttackDiscoveryFindSortField `form:"sort_field,omitempty" json:"sort_field,omitempty"` + + // SortOrder Sort order direction `asc` for ascending or `desc` for descending. Defaults to `desc`. + SortOrder *SecurityAIAssistantAPISortOrder `form:"sort_order,omitempty" json:"sort_order,omitempty"` + + // Start Start of the time range for the search. Accepts absolute timestamps (ISO 8601) or relative date math (e.g. "now-7d"). + Start *string `form:"start,omitempty" json:"start,omitempty"` + + // Status Filter by alert workflow status. Provide one or more of the allowed workflow states. + Status *[]AttackDiscoveryFindParamsStatus `form:"status,omitempty" json:"status,omitempty"` + + // WithReplacements When true, return the created Attack discoveries with text replacements applied to the detailsMarkdown, entitySummaryMarkdown, summaryMarkdown, and title fields. Defaults to `true`. + WithReplacements *bool `form:"with_replacements,omitempty" json:"with_replacements,omitempty"` +} + +// AttackDiscoveryFindParamsStatus defines parameters for AttackDiscoveryFind. +type AttackDiscoveryFindParamsStatus string + +// GetAttackDiscoveryGenerationsParams defines parameters for GetAttackDiscoveryGenerations. +type GetAttackDiscoveryGenerationsParams struct { + // End End of the time range for filtering generations. Accepts absolute timestamps (ISO 8601) or relative date math (e.g. "now", "now-24h"). + End *string `form:"end,omitempty" json:"end,omitempty"` + + // Size The maximum number of generations to retrieve + Size float32 `form:"size" json:"size"` + + // Start Start of the time range for filtering generations. Accepts absolute timestamps (ISO 8601) or relative date math (e.g. "now-7d"). + Start *string `form:"start,omitempty" json:"start,omitempty"` +} + +// GetAttackDiscoveryGenerationParams defines parameters for GetAttackDiscoveryGeneration. +type GetAttackDiscoveryGenerationParams struct { + // EnableFieldRendering Enables a markdown syntax used to render pivot fields, for example `{{ user.name james }}`. When disabled, the same example would be rendered as `james`. This is primarily used for Attack discovery views within Kibana. Defaults to `false`. + EnableFieldRendering *bool `form:"enable_field_rendering,omitempty" json:"enable_field_rendering,omitempty"` + + // WithReplacements When true, return the created Attack discoveries with text replacements applied to the detailsMarkdown, entitySummaryMarkdown, summaryMarkdown, and title fields. Defaults to `true`. + WithReplacements *bool `form:"with_replacements,omitempty" json:"with_replacements,omitempty"` +} + +// FindAttackDiscoverySchedulesParams defines parameters for FindAttackDiscoverySchedules. +type FindAttackDiscoverySchedulesParams struct { + // Page Page number to return (used for pagination). Defaults to 1. + Page *float32 `form:"page,omitempty" json:"page,omitempty"` + + // PerPage Number of Attack discovery schedules to return per page (used for pagination). Defaults to 10. + PerPage *float32 `form:"per_page,omitempty" json:"per_page,omitempty"` + + // SortField Field used to sort results. Common fields include 'name', 'created_at', 'updated_at', and 'enabled'. + SortField *SecurityAIAssistantAPINonEmptyString `form:"sort_field,omitempty" json:"sort_field,omitempty"` + + // SortDirection Sort order direction. Use 'asc' for ascending or 'desc' for descending. Defaults to 'asc'. + SortDirection *FindAttackDiscoverySchedulesParamsSortDirection `form:"sort_direction,omitempty" json:"sort_direction,omitempty"` +} + +// FindAttackDiscoverySchedulesParamsSortDirection defines parameters for FindAttackDiscoverySchedules. +type FindAttackDiscoverySchedulesParamsSortDirection string + // DeleteCaseDefaultSpaceParams defines parameters for DeleteCaseDefaultSpace. type DeleteCaseDefaultSpaceParams struct { // Ids The cases that you want to removed. All non-ASCII characters must be URL encoded. @@ -26764,6 +27716,11 @@ type ListEntitiesParams struct { // ListEntitiesParamsSortOrder defines parameters for ListEntities. type ListEntitiesParamsSortOrder string +// UpsertEntityParams defines parameters for UpsertEntity. +type UpsertEntityParams struct { + Force *bool `form:"force,omitempty" json:"force,omitempty"` +} + // GetEntityStoreStatusParams defines parameters for GetEntityStoreStatus. type GetEntityStoreStatusParams struct { // IncludeComponents If true returns a detailed status of the engine including all it's components @@ -27697,6 +28654,103 @@ type GetFleetCheckPermissionsParams struct { FleetServerSetup *bool `form:"fleetServerSetup,omitempty" json:"fleetServerSetup,omitempty"` } +// GetFleetCloudConnectorsParams defines parameters for GetFleetCloudConnectors. +type GetFleetCloudConnectorsParams struct { + Page *string `form:"page,omitempty" json:"page,omitempty"` + PerPage *string `form:"perPage,omitempty" json:"perPage,omitempty"` +} + +// PostFleetCloudConnectorsJSONBody defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBody struct { + CloudProvider PostFleetCloudConnectorsJSONBodyCloudProvider `json:"cloudProvider"` + Name string `json:"name"` + Vars map[string]PostFleetCloudConnectorsJSONBody_Vars_AdditionalProperties `json:"vars"` +} + +// PostFleetCloudConnectorsJSONBodyCloudProvider defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBodyCloudProvider string + +// PostFleetCloudConnectorsJSONBodyVars0 defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBodyVars0 = string + +// PostFleetCloudConnectorsJSONBodyVars1 defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBodyVars1 = float32 + +// PostFleetCloudConnectorsJSONBodyVars2 defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBodyVars2 = bool + +// PostFleetCloudConnectorsJSONBodyVars3 defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBodyVars3 struct { + Frozen *bool `json:"frozen,omitempty"` + Type string `json:"type"` + Value PostFleetCloudConnectorsJSONBody_Vars_3_Value `json:"value"` +} + +// PostFleetCloudConnectorsJSONBodyVars3Value0 defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBodyVars3Value0 = string + +// PostFleetCloudConnectorsJSONBodyVars3Value1 defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBodyVars3Value1 struct { + Id string `json:"id"` + IsSecretRef bool `json:"isSecretRef"` +} + +// PostFleetCloudConnectorsJSONBody_Vars_3_Value defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBody_Vars_3_Value struct { + union json.RawMessage +} + +// PostFleetCloudConnectorsJSONBody_Vars_AdditionalProperties defines parameters for PostFleetCloudConnectors. +type PostFleetCloudConnectorsJSONBody_Vars_AdditionalProperties struct { + union json.RawMessage +} + +// DeleteFleetCloudConnectorsCloudconnectoridParams defines parameters for DeleteFleetCloudConnectorsCloudconnectorid. +type DeleteFleetCloudConnectorsCloudconnectoridParams struct { + Force *bool `form:"force,omitempty" json:"force,omitempty"` +} + +// PutFleetCloudConnectorsCloudconnectoridJSONBody defines parameters for PutFleetCloudConnectorsCloudconnectorid. +type PutFleetCloudConnectorsCloudconnectoridJSONBody struct { + Name *string `json:"name,omitempty"` + Vars *map[string]PutFleetCloudConnectorsCloudconnectoridJSONBody_Vars_AdditionalProperties `json:"vars,omitempty"` +} + +// PutFleetCloudConnectorsCloudconnectoridJSONBodyVars0 defines parameters for PutFleetCloudConnectorsCloudconnectorid. +type PutFleetCloudConnectorsCloudconnectoridJSONBodyVars0 = string + +// PutFleetCloudConnectorsCloudconnectoridJSONBodyVars1 defines parameters for PutFleetCloudConnectorsCloudconnectorid. +type PutFleetCloudConnectorsCloudconnectoridJSONBodyVars1 = float32 + +// PutFleetCloudConnectorsCloudconnectoridJSONBodyVars2 defines parameters for PutFleetCloudConnectorsCloudconnectorid. +type PutFleetCloudConnectorsCloudconnectoridJSONBodyVars2 = bool + +// PutFleetCloudConnectorsCloudconnectoridJSONBodyVars3 defines parameters for PutFleetCloudConnectorsCloudconnectorid. +type PutFleetCloudConnectorsCloudconnectoridJSONBodyVars3 struct { + Frozen *bool `json:"frozen,omitempty"` + Type string `json:"type"` + Value PutFleetCloudConnectorsCloudconnectoridJSONBody_Vars_3_Value `json:"value"` +} + +// PutFleetCloudConnectorsCloudconnectoridJSONBodyVars3Value0 defines parameters for PutFleetCloudConnectorsCloudconnectorid. +type PutFleetCloudConnectorsCloudconnectoridJSONBodyVars3Value0 = string + +// PutFleetCloudConnectorsCloudconnectoridJSONBodyVars3Value1 defines parameters for PutFleetCloudConnectorsCloudconnectorid. +type PutFleetCloudConnectorsCloudconnectoridJSONBodyVars3Value1 struct { + Id string `json:"id"` + IsSecretRef bool `json:"isSecretRef"` +} + +// PutFleetCloudConnectorsCloudconnectoridJSONBody_Vars_3_Value defines parameters for PutFleetCloudConnectorsCloudconnectorid. +type PutFleetCloudConnectorsCloudconnectoridJSONBody_Vars_3_Value struct { + union json.RawMessage +} + +// PutFleetCloudConnectorsCloudconnectoridJSONBody_Vars_AdditionalProperties defines parameters for PutFleetCloudConnectorsCloudconnectorid. +type PutFleetCloudConnectorsCloudconnectoridJSONBody_Vars_AdditionalProperties struct { + union json.RawMessage +} + // GetFleetEnrollmentApiKeysParams defines parameters for GetFleetEnrollmentApiKeys. type GetFleetEnrollmentApiKeysParams struct { Page *float32 `form:"page,omitempty" json:"page,omitempty"` @@ -27889,6 +28943,11 @@ type PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsJSONBody struct { SpaceIds *[]string `json:"space_ids,omitempty"` } +// PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONBody defines parameters for PostFleetEpmPackagesPkgnamePkgversionRuleAssets. +type PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONBody struct { + Force *bool `json:"force,omitempty"` +} + // PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeJSONBody defines parameters for PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorize. type PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeJSONBody struct { Transforms []struct { @@ -27922,21 +28981,38 @@ type PostFleetFleetServerHostsJSONBody struct { ProxyId *string `json:"proxy_id,omitempty"` Secrets *struct { Ssl *struct { - EsKey *PostFleetFleetServerHostsJSONBody_Secrets_Ssl_EsKey `json:"es_key,omitempty"` - Key *PostFleetFleetServerHostsJSONBody_Secrets_Ssl_Key `json:"key,omitempty"` + AgentKey *PostFleetFleetServerHostsJSONBody_Secrets_Ssl_AgentKey `json:"agent_key,omitempty"` + EsKey *PostFleetFleetServerHostsJSONBody_Secrets_Ssl_EsKey `json:"es_key,omitempty"` + Key *PostFleetFleetServerHostsJSONBody_Secrets_Ssl_Key `json:"key,omitempty"` } `json:"ssl,omitempty"` } `json:"secrets,omitempty"` Ssl *struct { - Certificate *string `json:"certificate,omitempty"` - CertificateAuthorities *[]string `json:"certificate_authorities,omitempty"` - ClientAuth *PostFleetFleetServerHostsJSONBodySslClientAuth `json:"client_auth,omitempty"` - EsCertificate *string `json:"es_certificate,omitempty"` - EsCertificateAuthorities *[]string `json:"es_certificate_authorities,omitempty"` - EsKey *string `json:"es_key,omitempty"` - Key *string `json:"key,omitempty"` + AgentCertificate *string `json:"agent_certificate,omitempty"` + AgentCertificateAuthorities *[]string `json:"agent_certificate_authorities,omitempty"` + AgentKey *string `json:"agent_key,omitempty"` + Certificate *string `json:"certificate,omitempty"` + CertificateAuthorities *[]string `json:"certificate_authorities,omitempty"` + ClientAuth *PostFleetFleetServerHostsJSONBodySslClientAuth `json:"client_auth,omitempty"` + EsCertificate *string `json:"es_certificate,omitempty"` + EsCertificateAuthorities *[]string `json:"es_certificate_authorities,omitempty"` + EsKey *string `json:"es_key,omitempty"` + Key *string `json:"key,omitempty"` } `json:"ssl,omitempty"` } +// PostFleetFleetServerHostsJSONBodySecretsSslAgentKey0 defines parameters for PostFleetFleetServerHosts. +type PostFleetFleetServerHostsJSONBodySecretsSslAgentKey0 struct { + Id string `json:"id"` +} + +// PostFleetFleetServerHostsJSONBodySecretsSslAgentKey1 defines parameters for PostFleetFleetServerHosts. +type PostFleetFleetServerHostsJSONBodySecretsSslAgentKey1 = string + +// PostFleetFleetServerHostsJSONBody_Secrets_Ssl_AgentKey defines parameters for PostFleetFleetServerHosts. +type PostFleetFleetServerHostsJSONBody_Secrets_Ssl_AgentKey struct { + union json.RawMessage +} + // PostFleetFleetServerHostsJSONBodySecretsSslEsKey0 defines parameters for PostFleetFleetServerHosts. type PostFleetFleetServerHostsJSONBodySecretsSslEsKey0 struct { Id string `json:"id"` @@ -27975,21 +29051,38 @@ type PutFleetFleetServerHostsItemidJSONBody struct { ProxyId *string `json:"proxy_id,omitempty"` Secrets *struct { Ssl *struct { - EsKey *PutFleetFleetServerHostsItemidJSONBody_Secrets_Ssl_EsKey `json:"es_key,omitempty"` - Key *PutFleetFleetServerHostsItemidJSONBody_Secrets_Ssl_Key `json:"key,omitempty"` + AgentKey *PutFleetFleetServerHostsItemidJSONBody_Secrets_Ssl_AgentKey `json:"agent_key,omitempty"` + EsKey *PutFleetFleetServerHostsItemidJSONBody_Secrets_Ssl_EsKey `json:"es_key,omitempty"` + Key *PutFleetFleetServerHostsItemidJSONBody_Secrets_Ssl_Key `json:"key,omitempty"` } `json:"ssl,omitempty"` } `json:"secrets,omitempty"` Ssl *struct { - Certificate *string `json:"certificate,omitempty"` - CertificateAuthorities *[]string `json:"certificate_authorities,omitempty"` - ClientAuth *PutFleetFleetServerHostsItemidJSONBodySslClientAuth `json:"client_auth,omitempty"` - EsCertificate *string `json:"es_certificate,omitempty"` - EsCertificateAuthorities *[]string `json:"es_certificate_authorities,omitempty"` - EsKey *string `json:"es_key,omitempty"` - Key *string `json:"key,omitempty"` + AgentCertificate *string `json:"agent_certificate,omitempty"` + AgentCertificateAuthorities *[]string `json:"agent_certificate_authorities,omitempty"` + AgentKey *string `json:"agent_key,omitempty"` + Certificate *string `json:"certificate,omitempty"` + CertificateAuthorities *[]string `json:"certificate_authorities,omitempty"` + ClientAuth *PutFleetFleetServerHostsItemidJSONBodySslClientAuth `json:"client_auth,omitempty"` + EsCertificate *string `json:"es_certificate,omitempty"` + EsCertificateAuthorities *[]string `json:"es_certificate_authorities,omitempty"` + EsKey *string `json:"es_key,omitempty"` + Key *string `json:"key,omitempty"` } `json:"ssl,omitempty"` } +// PutFleetFleetServerHostsItemidJSONBodySecretsSslAgentKey0 defines parameters for PutFleetFleetServerHostsItemid. +type PutFleetFleetServerHostsItemidJSONBodySecretsSslAgentKey0 struct { + Id string `json:"id"` +} + +// PutFleetFleetServerHostsItemidJSONBodySecretsSslAgentKey1 defines parameters for PutFleetFleetServerHostsItemid. +type PutFleetFleetServerHostsItemidJSONBodySecretsSslAgentKey1 = string + +// PutFleetFleetServerHostsItemidJSONBody_Secrets_Ssl_AgentKey defines parameters for PutFleetFleetServerHostsItemid. +type PutFleetFleetServerHostsItemidJSONBody_Secrets_Ssl_AgentKey struct { + union json.RawMessage +} + // PutFleetFleetServerHostsItemidJSONBodySecretsSslEsKey0 defines parameters for PutFleetFleetServerHostsItemid. type PutFleetFleetServerHostsItemidJSONBodySecretsSslEsKey0 struct { Id string `json:"id"` @@ -28502,6 +29595,27 @@ type PutLogstashPipelineJSONBody struct { Settings *map[string]interface{} `json:"settings,omitempty"` } +// GetMaintenanceWindowFindParams defines parameters for GetMaintenanceWindowFind. +type GetMaintenanceWindowFindParams struct { + // Title The title of the maintenance window. + Title *string `form:"title,omitempty" json:"title,omitempty"` + + // CreatedBy The user who created the maintenance window. + CreatedBy *string `form:"created_by,omitempty" json:"created_by,omitempty"` + + // Status The status of the maintenance window. One of "running", "upcoming", "finished" or "archived". + Status *[]GetMaintenanceWindowFindParamsStatus `form:"status,omitempty" json:"status,omitempty"` + + // Page The page number to return. + Page *float32 `form:"page,omitempty" json:"page,omitempty"` + + // PerPage The number of maintenance windows to return per page. + PerPage *float32 `form:"per_page,omitempty" json:"per_page,omitempty"` +} + +// GetMaintenanceWindowFindParamsStatus defines parameters for GetMaintenanceWindowFind. +type GetMaintenanceWindowFindParamsStatus string + // MlSyncParams defines parameters for MlSync. type MlSyncParams struct { // Simulate When true, simulates the synchronization by returning only the list of actions that would be performed. @@ -28622,6 +29736,7 @@ type PersistPinnedEventRouteJSONBody struct { // ConfigureRiskEngineSavedObjectJSONBody defines parameters for ConfigureRiskEngineSavedObject. type ConfigureRiskEngineSavedObjectJSONBody struct { + EnableResetToZero *bool `json:"enable_reset_to_zero,omitempty"` ExcludeAlertStatuses *[]string `json:"exclude_alert_statuses,omitempty"` ExcludeAlertTags *[]string `json:"exclude_alert_tags,omitempty"` Range *struct { @@ -29496,6 +30611,10 @@ type PutStreamsNameJSONBody00 struct { Kql struct { Query string `json:"query"` } `json:"kql"` + System *struct { + Filter PutStreamsNameJSONBody_0_0_Queries_System_Filter `json:"filter"` + Name string `json:"name"` + } `json:"system,omitempty"` Title string `json:"title"` } `json:"queries"` Rules []string `json:"rules"` @@ -29505,11 +30624,265 @@ type PutStreamsNameJSONBody00 struct { Processing struct { Steps []PutStreamsNameJSONBody_0_0_Stream_Ingest_Processing_Steps_Item `json:"steps"` } `json:"processing"` + Settings struct { + IndexNumberOfReplicas *struct { + Value float32 `json:"value"` + } `json:"index.number_of_replicas,omitempty"` + IndexNumberOfShards *struct { + Value float32 `json:"value"` + } `json:"index.number_of_shards,omitempty"` + IndexRefreshInterval *struct { + Value PutStreamsNameJSONBody_0_0_Stream_Ingest_Settings_IndexRefreshInterval_Value `json:"value"` + } `json:"index.refresh_interval,omitempty"` + } `json:"settings"` } `json:"ingest"` Name interface{} `json:"name,omitempty"` } `json:"stream"` } +// PutStreamsNameJSONBody00QueriesSystemFilter0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter0 struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00 struct { + Contains *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Contains `json:"contains,omitempty"` + EndsWith *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_EndsWith `json:"endsWith,omitempty"` + Eq *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Eq `json:"eq,omitempty"` + Field string `json:"field"` + Gt *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Gt `json:"gt,omitempty"` + Gte *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Gte `json:"gte,omitempty"` + Lt *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Lt `json:"lt,omitempty"` + Lte *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Lte `json:"lte,omitempty"` + Neq *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Neq `json:"neq,omitempty"` + Range *struct { + Gt *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Gt `json:"gt,omitempty"` + Gte *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Gte `json:"gte,omitempty"` + Lt *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Lt `json:"lt,omitempty"` + Lte *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Lte `json:"lte,omitempty"` + } `json:"range,omitempty"` + StartsWith *PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_StartsWith `json:"startsWith,omitempty"` +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00Contains0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Contains0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00Contains1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Contains1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00Contains2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Contains2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Contains defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Contains struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00EndsWith0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00EndsWith0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00EndsWith1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00EndsWith1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00EndsWith2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00EndsWith2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_EndsWith defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_EndsWith struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00Eq0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Eq0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00Eq1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Eq1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00Eq2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Eq2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Eq defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Eq struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00Gt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Gt0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00Gt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Gt1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00Gt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Gt2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Gt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Gt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00Gte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Gte0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00Gte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Gte1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00Gte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Gte2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Gte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Gte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00Lt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Lt0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00Lt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Lt1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00Lt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Lt2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Lt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Lt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00Lte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Lte0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00Lte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Lte1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00Lte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Lte2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Lte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Lte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00Neq0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Neq0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00Neq1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Neq1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00Neq2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00Neq2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Neq defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Neq struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeGt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeGt0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeGt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeGt1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeGt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeGt2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Gt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Gt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeGte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeGte0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeGte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeGte1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeGte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeGte2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Gte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Gte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeLt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeLt0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeLt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeLt1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeLt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeLt2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Lt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Lt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeLte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeLte0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeLte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeLte1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00RangeLte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00RangeLte2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Lte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_Range_Lte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter00StartsWith0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00StartsWith0 = string + +// PutStreamsNameJSONBody00QueriesSystemFilter00StartsWith1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00StartsWith1 = float32 + +// PutStreamsNameJSONBody00QueriesSystemFilter00StartsWith2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter00StartsWith2 = bool + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_StartsWith defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter_0_0_StartsWith struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00QueriesSystemFilter01 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter01 struct { + Exists *bool `json:"exists,omitempty"` + Field string `json:"field"` +} + +// PutStreamsNameJSONBody00QueriesSystemFilter1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter1 struct { + And []interface{} `json:"and"` +} + +// PutStreamsNameJSONBody00QueriesSystemFilter2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter2 struct { + Or []interface{} `json:"or"` +} + +// PutStreamsNameJSONBody00QueriesSystemFilter3 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter3 struct { + Not interface{} `json:"not"` +} + +// PutStreamsNameJSONBody00QueriesSystemFilter4 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter4 struct { + Never map[string]interface{} `json:"never"` +} + +// PutStreamsNameJSONBody00QueriesSystemFilter5 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00QueriesSystemFilter5 struct { + Always map[string]interface{} `json:"always"` +} + +// PutStreamsNameJSONBody_0_0_Queries_System_Filter defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Queries_System_Filter struct { + union json.RawMessage +} + // PutStreamsNameJSONBody00StreamIngestLifecycle0 defines parameters for PutStreamsName. type PutStreamsNameJSONBody00StreamIngestLifecycle0 struct { Dsl struct { @@ -30583,7 +31956,7 @@ type PutStreamsNameJSONBody00StreamIngestProcessingSteps04 struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` Override *bool `json:"override,omitempty"` To string `json:"to"` - Value *string `json:"value,omitempty"` + Value interface{} `json:"value,omitempty"` Where *PutStreamsNameJSONBody_0_0_Stream_Ingest_Processing_Steps_0_4_Where `json:"where,omitempty"` } @@ -31397,7 +32770,8 @@ type PutStreamsNameJSONBody_0_0_Stream_Ingest_Processing_Steps_0_6_Where struct // PutStreamsNameJSONBody00StreamIngestProcessingSteps1 defines parameters for PutStreamsName. type PutStreamsNameJSONBody00StreamIngestProcessingSteps1 struct { - Where struct { + CustomIdentifier *string `json:"customIdentifier,omitempty"` + Where struct { Steps []interface{} `json:"steps"` } `json:"where"` } @@ -31407,6 +32781,17 @@ type PutStreamsNameJSONBody_0_0_Stream_Ingest_Processing_Steps_Item struct { union json.RawMessage } +// PutStreamsNameJSONBody00StreamIngestSettingsIndexRefreshIntervalValue0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00StreamIngestSettingsIndexRefreshIntervalValue0 = string + +// PutStreamsNameJSONBody00StreamIngestSettingsIndexRefreshIntervalValue1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00StreamIngestSettingsIndexRefreshIntervalValue1 float32 + +// PutStreamsNameJSONBody_0_0_Stream_Ingest_Settings_IndexRefreshInterval_Value defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Stream_Ingest_Settings_IndexRefreshInterval_Value struct { + union json.RawMessage +} + // PutStreamsNameJSONBody01 defines parameters for PutStreamsName. type PutStreamsNameJSONBody01 struct { Dashboards []string `json:"dashboards"` @@ -31415,6 +32800,10 @@ type PutStreamsNameJSONBody01 struct { Kql struct { Query string `json:"query"` } `json:"kql"` + System *struct { + Filter PutStreamsNameJSONBody_0_1_Queries_System_Filter `json:"filter"` + Name string `json:"name"` + } `json:"system,omitempty"` Title string `json:"title"` } `json:"queries"` Rules []string `json:"rules"` @@ -31424,11 +32813,265 @@ type PutStreamsNameJSONBody01 struct { Processing struct { Steps []PutStreamsNameJSONBody_0_1_Stream_Ingest_Processing_Steps_Item `json:"steps"` } `json:"processing"` + Settings struct { + IndexNumberOfReplicas *struct { + Value float32 `json:"value"` + } `json:"index.number_of_replicas,omitempty"` + IndexNumberOfShards *struct { + Value float32 `json:"value"` + } `json:"index.number_of_shards,omitempty"` + IndexRefreshInterval *struct { + Value PutStreamsNameJSONBody_0_1_Stream_Ingest_Settings_IndexRefreshInterval_Value `json:"value"` + } `json:"index.refresh_interval,omitempty"` + } `json:"settings"` } `json:"ingest"` Name interface{} `json:"name,omitempty"` } `json:"stream"` } +// PutStreamsNameJSONBody01QueriesSystemFilter0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter0 struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00 struct { + Contains *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Contains `json:"contains,omitempty"` + EndsWith *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_EndsWith `json:"endsWith,omitempty"` + Eq *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Eq `json:"eq,omitempty"` + Field string `json:"field"` + Gt *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Gt `json:"gt,omitempty"` + Gte *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Gte `json:"gte,omitempty"` + Lt *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Lt `json:"lt,omitempty"` + Lte *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Lte `json:"lte,omitempty"` + Neq *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Neq `json:"neq,omitempty"` + Range *struct { + Gt *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Gt `json:"gt,omitempty"` + Gte *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Gte `json:"gte,omitempty"` + Lt *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Lt `json:"lt,omitempty"` + Lte *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Lte `json:"lte,omitempty"` + } `json:"range,omitempty"` + StartsWith *PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_StartsWith `json:"startsWith,omitempty"` +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00Contains0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Contains0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00Contains1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Contains1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00Contains2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Contains2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Contains defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Contains struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00EndsWith0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00EndsWith0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00EndsWith1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00EndsWith1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00EndsWith2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00EndsWith2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_EndsWith defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_EndsWith struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00Eq0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Eq0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00Eq1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Eq1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00Eq2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Eq2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Eq defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Eq struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00Gt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Gt0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00Gt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Gt1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00Gt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Gt2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Gt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Gt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00Gte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Gte0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00Gte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Gte1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00Gte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Gte2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Gte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Gte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00Lt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Lt0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00Lt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Lt1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00Lt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Lt2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Lt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Lt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00Lte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Lte0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00Lte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Lte1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00Lte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Lte2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Lte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Lte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00Neq0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Neq0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00Neq1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Neq1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00Neq2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00Neq2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Neq defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Neq struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeGt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeGt0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeGt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeGt1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeGt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeGt2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Gt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Gt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeGte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeGte0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeGte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeGte1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeGte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeGte2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Gte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Gte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeLt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeLt0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeLt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeLt1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeLt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeLt2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Lt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Lt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeLte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeLte0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeLte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeLte1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00RangeLte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00RangeLte2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Lte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_Range_Lte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter00StartsWith0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00StartsWith0 = string + +// PutStreamsNameJSONBody01QueriesSystemFilter00StartsWith1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00StartsWith1 = float32 + +// PutStreamsNameJSONBody01QueriesSystemFilter00StartsWith2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter00StartsWith2 = bool + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_StartsWith defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter_0_0_StartsWith struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01QueriesSystemFilter01 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter01 struct { + Exists *bool `json:"exists,omitempty"` + Field string `json:"field"` +} + +// PutStreamsNameJSONBody01QueriesSystemFilter1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter1 struct { + And []interface{} `json:"and"` +} + +// PutStreamsNameJSONBody01QueriesSystemFilter2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter2 struct { + Or []interface{} `json:"or"` +} + +// PutStreamsNameJSONBody01QueriesSystemFilter3 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter3 struct { + Not interface{} `json:"not"` +} + +// PutStreamsNameJSONBody01QueriesSystemFilter4 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter4 struct { + Never map[string]interface{} `json:"never"` +} + +// PutStreamsNameJSONBody01QueriesSystemFilter5 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01QueriesSystemFilter5 struct { + Always map[string]interface{} `json:"always"` +} + +// PutStreamsNameJSONBody_0_1_Queries_System_Filter defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Queries_System_Filter struct { + union json.RawMessage +} + // PutStreamsNameJSONBody01StreamIngestLifecycle0 defines parameters for PutStreamsName. type PutStreamsNameJSONBody01StreamIngestLifecycle0 struct { Dsl struct { @@ -32502,7 +34145,7 @@ type PutStreamsNameJSONBody01StreamIngestProcessingSteps04 struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` Override *bool `json:"override,omitempty"` To string `json:"to"` - Value *string `json:"value,omitempty"` + Value interface{} `json:"value,omitempty"` Where *PutStreamsNameJSONBody_0_1_Stream_Ingest_Processing_Steps_0_4_Where `json:"where,omitempty"` } @@ -33316,7 +34959,8 @@ type PutStreamsNameJSONBody_0_1_Stream_Ingest_Processing_Steps_0_6_Where struct // PutStreamsNameJSONBody01StreamIngestProcessingSteps1 defines parameters for PutStreamsName. type PutStreamsNameJSONBody01StreamIngestProcessingSteps1 struct { - Where struct { + CustomIdentifier *string `json:"customIdentifier,omitempty"` + Where struct { Steps []interface{} `json:"steps"` } `json:"where"` } @@ -33326,6 +34970,17 @@ type PutStreamsNameJSONBody_0_1_Stream_Ingest_Processing_Steps_Item struct { union json.RawMessage } +// PutStreamsNameJSONBody01StreamIngestSettingsIndexRefreshIntervalValue0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01StreamIngestSettingsIndexRefreshIntervalValue0 = string + +// PutStreamsNameJSONBody01StreamIngestSettingsIndexRefreshIntervalValue1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01StreamIngestSettingsIndexRefreshIntervalValue1 float32 + +// PutStreamsNameJSONBody_0_1_Stream_Ingest_Settings_IndexRefreshInterval_Value defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Stream_Ingest_Settings_IndexRefreshInterval_Value struct { + union json.RawMessage +} + // PutStreamsNameJSONBody1 defines parameters for PutStreamsName. type PutStreamsNameJSONBody1 struct { Dashboards []string `json:"dashboards"` @@ -33334,6 +34989,10 @@ type PutStreamsNameJSONBody1 struct { Kql struct { Query string `json:"query"` } `json:"kql"` + System *struct { + Filter PutStreamsNameJSONBody_1_Queries_System_Filter `json:"filter"` + Name string `json:"name"` + } `json:"system,omitempty"` Title string `json:"title"` } `json:"queries"` Rules []string `json:"rules"` @@ -33347,6 +35006,249 @@ type PutStreamsNameJSONBody1 struct { } `json:"stream"` } +// PutStreamsNameJSONBody1QueriesSystemFilter0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter0 struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00 struct { + Contains *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Contains `json:"contains,omitempty"` + EndsWith *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_EndsWith `json:"endsWith,omitempty"` + Eq *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Eq `json:"eq,omitempty"` + Field string `json:"field"` + Gt *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Gt `json:"gt,omitempty"` + Gte *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Gte `json:"gte,omitempty"` + Lt *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Lt `json:"lt,omitempty"` + Lte *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Lte `json:"lte,omitempty"` + Neq *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Neq `json:"neq,omitempty"` + Range *struct { + Gt *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Gt `json:"gt,omitempty"` + Gte *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Gte `json:"gte,omitempty"` + Lt *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Lt `json:"lt,omitempty"` + Lte *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Lte `json:"lte,omitempty"` + } `json:"range,omitempty"` + StartsWith *PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_StartsWith `json:"startsWith,omitempty"` +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00Contains0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Contains0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00Contains1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Contains1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00Contains2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Contains2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Contains defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Contains struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00EndsWith0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00EndsWith0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00EndsWith1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00EndsWith1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00EndsWith2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00EndsWith2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_EndsWith defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_EndsWith struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00Eq0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Eq0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00Eq1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Eq1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00Eq2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Eq2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Eq defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Eq struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00Gt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Gt0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00Gt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Gt1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00Gt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Gt2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Gt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Gt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00Gte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Gte0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00Gte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Gte1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00Gte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Gte2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Gte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Gte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00Lt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Lt0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00Lt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Lt1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00Lt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Lt2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Lt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Lt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00Lte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Lte0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00Lte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Lte1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00Lte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Lte2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Lte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Lte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00Neq0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Neq0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00Neq1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Neq1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00Neq2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00Neq2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Neq defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Neq struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeGt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeGt0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeGt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeGt1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeGt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeGt2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Gt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Gt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeGte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeGte0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeGte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeGte1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeGte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeGte2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Gte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Gte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeLt0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeLt0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeLt1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeLt1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeLt2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeLt2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Lt defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Lt struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeLte0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeLte0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeLte1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeLte1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00RangeLte2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00RangeLte2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Lte defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_Range_Lte struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter00StartsWith0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00StartsWith0 = string + +// PutStreamsNameJSONBody1QueriesSystemFilter00StartsWith1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00StartsWith1 = float32 + +// PutStreamsNameJSONBody1QueriesSystemFilter00StartsWith2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter00StartsWith2 = bool + +// PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_StartsWith defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter_0_0_StartsWith struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody1QueriesSystemFilter01 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter01 struct { + Exists *bool `json:"exists,omitempty"` + Field string `json:"field"` +} + +// PutStreamsNameJSONBody1QueriesSystemFilter1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter1 struct { + And []interface{} `json:"and"` +} + +// PutStreamsNameJSONBody1QueriesSystemFilter2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter2 struct { + Or []interface{} `json:"or"` +} + +// PutStreamsNameJSONBody1QueriesSystemFilter3 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter3 struct { + Not interface{} `json:"not"` +} + +// PutStreamsNameJSONBody1QueriesSystemFilter4 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter4 struct { + Never map[string]interface{} `json:"never"` +} + +// PutStreamsNameJSONBody1QueriesSystemFilter5 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody1QueriesSystemFilter5 struct { + Always map[string]interface{} `json:"always"` +} + +// PutStreamsNameJSONBody_1_Queries_System_Filter defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_1_Queries_System_Filter struct { + union json.RawMessage +} + // PostStreamsNameForkJSONBody defines parameters for PostStreamsNameFork. type PostStreamsNameForkJSONBody struct { Status *PostStreamsNameForkJSONBodyStatus `json:"status,omitempty"` @@ -33650,6 +35552,17 @@ type PutStreamsNameIngestJSONBodyIngest0 struct { Processing struct { Steps []PutStreamsNameIngestJSONBody_Ingest_0_Processing_Steps_Item `json:"steps"` } `json:"processing"` + Settings struct { + IndexNumberOfReplicas *struct { + Value float32 `json:"value"` + } `json:"index.number_of_replicas,omitempty"` + IndexNumberOfShards *struct { + Value float32 `json:"value"` + } `json:"index.number_of_shards,omitempty"` + IndexRefreshInterval *struct { + Value PutStreamsNameIngestJSONBody_Ingest_0_Settings_IndexRefreshInterval_Value `json:"value"` + } `json:"index.refresh_interval,omitempty"` + } `json:"settings"` Wired struct { Fields map[string]map[string]PutStreamsNameIngestJSONBody_Ingest_0_Wired_Fields_AdditionalProperties `json:"fields"` Routing []struct { @@ -34733,7 +36646,7 @@ type PutStreamsNameIngestJSONBodyIngest0ProcessingSteps04 struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` Override *bool `json:"override,omitempty"` To string `json:"to"` - Value *string `json:"value,omitempty"` + Value interface{} `json:"value,omitempty"` Where *PutStreamsNameIngestJSONBody_Ingest_0_Processing_Steps_0_4_Where `json:"where,omitempty"` } @@ -35547,7 +37460,8 @@ type PutStreamsNameIngestJSONBody_Ingest_0_Processing_Steps_0_6_Where struct { // PutStreamsNameIngestJSONBodyIngest0ProcessingSteps1 defines parameters for PutStreamsNameIngest. type PutStreamsNameIngestJSONBodyIngest0ProcessingSteps1 struct { - Where struct { + CustomIdentifier *string `json:"customIdentifier,omitempty"` + Where struct { Steps []interface{} `json:"steps"` } `json:"where"` } @@ -35557,6 +37471,17 @@ type PutStreamsNameIngestJSONBody_Ingest_0_Processing_Steps_Item struct { union json.RawMessage } +// PutStreamsNameIngestJSONBodyIngest0SettingsIndexRefreshIntervalValue0 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest0SettingsIndexRefreshIntervalValue0 = string + +// PutStreamsNameIngestJSONBodyIngest0SettingsIndexRefreshIntervalValue1 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest0SettingsIndexRefreshIntervalValue1 float32 + +// PutStreamsNameIngestJSONBody_Ingest_0_Settings_IndexRefreshInterval_Value defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBody_Ingest_0_Settings_IndexRefreshInterval_Value struct { + union json.RawMessage +} + // PutStreamsNameIngestJSONBodyIngest0WiredFields0 defines parameters for PutStreamsNameIngest. type PutStreamsNameIngestJSONBodyIngest0WiredFields0 struct { union json.RawMessage @@ -35863,6 +37788,17 @@ type PutStreamsNameIngestJSONBodyIngest1 struct { Processing struct { Steps []PutStreamsNameIngestJSONBody_Ingest_1_Processing_Steps_Item `json:"steps"` } `json:"processing"` + Settings struct { + IndexNumberOfReplicas *struct { + Value float32 `json:"value"` + } `json:"index.number_of_replicas,omitempty"` + IndexNumberOfShards *struct { + Value float32 `json:"value"` + } `json:"index.number_of_shards,omitempty"` + IndexRefreshInterval *struct { + Value PutStreamsNameIngestJSONBody_Ingest_1_Settings_IndexRefreshInterval_Value `json:"value"` + } `json:"index.refresh_interval,omitempty"` + } `json:"settings"` } // PutStreamsNameIngestJSONBodyIngest1ClassicFieldOverrides0 defines parameters for PutStreamsNameIngest. @@ -36989,7 +38925,7 @@ type PutStreamsNameIngestJSONBodyIngest1ProcessingSteps04 struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` Override *bool `json:"override,omitempty"` To string `json:"to"` - Value *string `json:"value,omitempty"` + Value interface{} `json:"value,omitempty"` Where *PutStreamsNameIngestJSONBody_Ingest_1_Processing_Steps_0_4_Where `json:"where,omitempty"` } @@ -37803,7 +39739,8 @@ type PutStreamsNameIngestJSONBody_Ingest_1_Processing_Steps_0_6_Where struct { // PutStreamsNameIngestJSONBodyIngest1ProcessingSteps1 defines parameters for PutStreamsNameIngest. type PutStreamsNameIngestJSONBodyIngest1ProcessingSteps1 struct { - Where struct { + CustomIdentifier *string `json:"customIdentifier,omitempty"` + Where struct { Steps []interface{} `json:"steps"` } `json:"where"` } @@ -37813,6 +39750,17 @@ type PutStreamsNameIngestJSONBody_Ingest_1_Processing_Steps_Item struct { union json.RawMessage } +// PutStreamsNameIngestJSONBodyIngest1SettingsIndexRefreshIntervalValue0 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest1SettingsIndexRefreshIntervalValue0 = string + +// PutStreamsNameIngestJSONBodyIngest1SettingsIndexRefreshIntervalValue1 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest1SettingsIndexRefreshIntervalValue1 float32 + +// PutStreamsNameIngestJSONBody_Ingest_1_Settings_IndexRefreshInterval_Value defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBody_Ingest_1_Settings_IndexRefreshInterval_Value struct { + union json.RawMessage +} + // PutStreamsNameIngestJSONBody_Ingest defines parameters for PutStreamsNameIngest. type PutStreamsNameIngestJSONBody_Ingest struct { union json.RawMessage @@ -37836,7 +39784,8 @@ type PostStreamsNameContentExportJSONBodyInclude0 struct { // PostStreamsNameContentExportJSONBodyInclude1 defines parameters for PostStreamsNameContentExport. type PostStreamsNameContentExportJSONBodyInclude1 struct { Objects struct { - Queries []struct { + Mappings bool `json:"mappings"` + Queries []struct { Id string `json:"id"` } `json:"queries"` Routing []struct { @@ -37948,10 +39897,257 @@ type PostStreamsNameQueriesBulkJSONBodyOperations0 struct { Kql struct { Query string `json:"query"` } `json:"kql"` + System *struct { + Filter PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter `json:"filter"` + Name string `json:"name"` + } `json:"system,omitempty"` Title string `json:"title"` } `json:"index"` } +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter0 struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00 struct { + Contains *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Contains `json:"contains,omitempty"` + EndsWith *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_EndsWith `json:"endsWith,omitempty"` + Eq *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Eq `json:"eq,omitempty"` + Field string `json:"field"` + Gt *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Gt `json:"gt,omitempty"` + Gte *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Gte `json:"gte,omitempty"` + Lt *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Lt `json:"lt,omitempty"` + Lte *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Lte `json:"lte,omitempty"` + Neq *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Neq `json:"neq,omitempty"` + Range *struct { + Gt *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Gt `json:"gt,omitempty"` + Gte *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Gte `json:"gte,omitempty"` + Lt *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Lt `json:"lt,omitempty"` + Lte *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Lte `json:"lte,omitempty"` + } `json:"range,omitempty"` + StartsWith *PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_StartsWith `json:"startsWith,omitempty"` +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Contains0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Contains0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Contains1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Contains1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Contains2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Contains2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Contains defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Contains struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00EndsWith0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00EndsWith0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00EndsWith1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00EndsWith1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00EndsWith2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00EndsWith2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_EndsWith defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_EndsWith struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Eq0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Eq0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Eq1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Eq1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Eq2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Eq2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Eq defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Eq struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gt0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gt0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gt1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gt1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gt2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gt2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Gt defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Gt struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gte0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gte0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gte1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gte1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gte2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Gte2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Gte defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Gte struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lt0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lt0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lt1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lt1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lt2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lt2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Lt defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Lt struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lte0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lte0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lte1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lte1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lte2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Lte2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Lte defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Lte struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Neq0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Neq0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Neq1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Neq1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Neq2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00Neq2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Neq defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Neq struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGt0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGt0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGt1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGt1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGt2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGt2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Gt defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Gt struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGte0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGte0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGte1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGte1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGte2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeGte2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Gte defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Gte struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLt0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLt0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLt1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLt1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLt2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLt2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Lt defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Lt struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLte0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLte0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLte1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLte1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLte2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00RangeLte2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Lte defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_Range_Lte struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00StartsWith0 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00StartsWith0 = string + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00StartsWith1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00StartsWith1 = float32 + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00StartsWith2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter00StartsWith2 = bool + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_StartsWith defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter_0_0_StartsWith struct { + union json.RawMessage +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter01 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter01 struct { + Exists *bool `json:"exists,omitempty"` + Field string `json:"field"` +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter1 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter1 struct { + And []interface{} `json:"and"` +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter2 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter2 struct { + Or []interface{} `json:"or"` +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter3 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter3 struct { + Not interface{} `json:"not"` +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter4 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter4 struct { + Never map[string]interface{} `json:"never"` +} + +// PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter5 defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBodyOperations0IndexSystemFilter5 struct { + Always map[string]interface{} `json:"always"` +} + +// PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter defines parameters for PostStreamsNameQueriesBulk. +type PostStreamsNameQueriesBulkJSONBody_Operations_0_Index_System_Filter struct { + union json.RawMessage +} + // PostStreamsNameQueriesBulkJSONBodyOperations1 defines parameters for PostStreamsNameQueriesBulk. type PostStreamsNameQueriesBulkJSONBodyOperations1 struct { Delete struct { @@ -37983,9 +40179,256 @@ type PutStreamsNameQueriesQueryidJSONBody struct { Kql struct { Query string `json:"query"` } `json:"kql"` + System *struct { + Filter PutStreamsNameQueriesQueryidJSONBody_System_Filter `json:"filter"` + Name string `json:"name"` + } `json:"system,omitempty"` Title string `json:"title"` } +// PutStreamsNameQueriesQueryidJSONBodySystemFilter0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter0 struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00 struct { + Contains *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Contains `json:"contains,omitempty"` + EndsWith *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_EndsWith `json:"endsWith,omitempty"` + Eq *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Eq `json:"eq,omitempty"` + Field string `json:"field"` + Gt *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Gt `json:"gt,omitempty"` + Gte *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Gte `json:"gte,omitempty"` + Lt *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Lt `json:"lt,omitempty"` + Lte *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Lte `json:"lte,omitempty"` + Neq *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Neq `json:"neq,omitempty"` + Range *struct { + Gt *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Gt `json:"gt,omitempty"` + Gte *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Gte `json:"gte,omitempty"` + Lt *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Lt `json:"lt,omitempty"` + Lte *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Lte `json:"lte,omitempty"` + } `json:"range,omitempty"` + StartsWith *PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_StartsWith `json:"startsWith,omitempty"` +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Contains0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Contains0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Contains1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Contains1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Contains2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Contains2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Contains defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Contains struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00EndsWith0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00EndsWith0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00EndsWith1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00EndsWith1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00EndsWith2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00EndsWith2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_EndsWith defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_EndsWith struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Eq0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Eq0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Eq1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Eq1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Eq2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Eq2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Eq defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Eq struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gt0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gt0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gt1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gt1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gt2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gt2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Gt defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Gt struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gte0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gte0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gte1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gte1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gte2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Gte2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Gte defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Gte struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lt0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lt0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lt1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lt1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lt2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lt2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Lt defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Lt struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lte0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lte0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lte1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lte1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lte2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Lte2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Lte defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Lte struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Neq0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Neq0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Neq1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Neq1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00Neq2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00Neq2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Neq defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Neq struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGt0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGt0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGt1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGt1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGt2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGt2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Gt defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Gt struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGte0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGte0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGte1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGte1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGte2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeGte2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Gte defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Gte struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLt0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLt0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLt1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLt1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLt2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLt2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Lt defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Lt struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLte0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLte0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLte1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLte1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLte2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00RangeLte2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Lte defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_Range_Lte struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00StartsWith0 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00StartsWith0 = string + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00StartsWith1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00StartsWith1 = float32 + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter00StartsWith2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter00StartsWith2 = bool + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_StartsWith defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter_0_0_StartsWith struct { + union json.RawMessage +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter01 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter01 struct { + Exists *bool `json:"exists,omitempty"` + Field string `json:"field"` +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter1 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter1 struct { + And []interface{} `json:"and"` +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter2 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter2 struct { + Or []interface{} `json:"or"` +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter3 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter3 struct { + Not interface{} `json:"not"` +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter4 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter4 struct { + Never map[string]interface{} `json:"never"` +} + +// PutStreamsNameQueriesQueryidJSONBodySystemFilter5 defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBodySystemFilter5 struct { + Always map[string]interface{} `json:"always"` +} + +// PutStreamsNameQueriesQueryidJSONBody_System_Filter defines parameters for PutStreamsNameQueriesQueryid. +type PutStreamsNameQueriesQueryidJSONBody_System_Filter struct { + union json.RawMessage +} + // GetStreamsNameRulesJSONBody defines parameters for GetStreamsNameRules. type GetStreamsNameRulesJSONBody struct { union json.RawMessage @@ -38049,27 +40492,265 @@ type GetStreamsNameSignificantEventsJSONBody1 = interface{} // GetStreamsNameSignificantEventsJSONBody2 defines parameters for GetStreamsNameSignificantEvents. type GetStreamsNameSignificantEventsJSONBody2 = interface{} -// GetStreamsNameSignificantEventsGenerateJSONBody defines parameters for GetStreamsNameSignificantEventsGenerate. -type GetStreamsNameSignificantEventsGenerateJSONBody struct { +// PostStreamsNameSignificantEventsGenerateJSONBody defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody struct { + System *struct { + Description string `json:"description"` + Filter PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter `json:"filter"` + Name string `json:"name"` + } `json:"system,omitempty"` +} + +// PostStreamsNameSignificantEventsGenerateParams defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateParams struct { + ConnectorId string `form:"connectorId" json:"connectorId"` + CurrentDate *string `form:"currentDate,omitempty" json:"currentDate,omitempty"` + From string `form:"from" json:"from"` + To string `form:"to" json:"to"` +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter0 struct { union json.RawMessage } -// GetStreamsNameSignificantEventsGenerateParams defines parameters for GetStreamsNameSignificantEventsGenerate. -type GetStreamsNameSignificantEventsGenerateParams struct { - ConnectorId string `form:"connectorId" json:"connectorId"` - CurrentDate *string `form:"currentDate,omitempty" json:"currentDate,omitempty"` - ShortLookback *string `form:"shortLookback,omitempty" json:"shortLookback,omitempty"` - LongLookback *string `form:"longLookback,omitempty" json:"longLookback,omitempty"` +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00 struct { + Contains *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Contains `json:"contains,omitempty"` + EndsWith *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_EndsWith `json:"endsWith,omitempty"` + Eq *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Eq `json:"eq,omitempty"` + Field string `json:"field"` + Gt *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Gt `json:"gt,omitempty"` + Gte *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Gte `json:"gte,omitempty"` + Lt *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Lt `json:"lt,omitempty"` + Lte *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Lte `json:"lte,omitempty"` + Neq *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Neq `json:"neq,omitempty"` + Range *struct { + Gt *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Gt `json:"gt,omitempty"` + Gte *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Gte `json:"gte,omitempty"` + Lt *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Lt `json:"lt,omitempty"` + Lte *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Lte `json:"lte,omitempty"` + } `json:"range,omitempty"` + StartsWith *PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_StartsWith `json:"startsWith,omitempty"` +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Contains0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Contains0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Contains1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Contains1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Contains2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Contains2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Contains defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Contains struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00EndsWith0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00EndsWith0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00EndsWith1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00EndsWith1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00EndsWith2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00EndsWith2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_EndsWith defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_EndsWith struct { + union json.RawMessage } -// GetStreamsNameSignificantEventsGenerateJSONBody0 defines parameters for GetStreamsNameSignificantEventsGenerate. -type GetStreamsNameSignificantEventsGenerateJSONBody0 = map[string]interface{} +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Eq0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Eq0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Eq1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Eq1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Eq2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Eq2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Eq defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Eq struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gt0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gt0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gt1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gt1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gt2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gt2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Gt defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Gt struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gte0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gte0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gte1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gte1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gte2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Gte2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Gte defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Gte struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lt0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lt0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lt1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lt1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lt2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lt2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Lt defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Lt struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lte0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lte0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lte1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lte1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lte2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Lte2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Lte defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Lte struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Neq0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Neq0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Neq1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Neq1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Neq2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00Neq2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Neq defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Neq struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGt0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGt0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGt1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGt1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGt2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGt2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Gt defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Gt struct { + union json.RawMessage +} -// GetStreamsNameSignificantEventsGenerateJSONBody1 defines parameters for GetStreamsNameSignificantEventsGenerate. -type GetStreamsNameSignificantEventsGenerateJSONBody1 = interface{} +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGte0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGte0 = string -// GetStreamsNameSignificantEventsGenerateJSONBody2 defines parameters for GetStreamsNameSignificantEventsGenerate. -type GetStreamsNameSignificantEventsGenerateJSONBody2 = interface{} +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGte1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGte1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGte2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeGte2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Gte defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Gte struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLt0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLt0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLt1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLt1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLt2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLt2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Lt defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Lt struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLte0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLte0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLte1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLte1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLte2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00RangeLte2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Lte defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_Range_Lte struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00StartsWith0 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00StartsWith0 = string + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00StartsWith1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00StartsWith1 = float32 + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00StartsWith2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter00StartsWith2 = bool + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_StartsWith defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter_0_0_StartsWith struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter01 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter01 struct { + Exists *bool `json:"exists,omitempty"` + Field string `json:"field"` +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter1 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter1 struct { + And []interface{} `json:"and"` +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter2 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter2 struct { + Or []interface{} `json:"or"` +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter3 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter3 struct { + Not interface{} `json:"not"` +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter4 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter4 struct { + Never map[string]interface{} `json:"never"` +} + +// PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter5 defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodySystemFilter5 struct { + Always map[string]interface{} `json:"always"` +} + +// PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBody_System_Filter struct { + union json.RawMessage +} // PostStreamsNameSignificantEventsPreviewJSONBody defines parameters for PostStreamsNameSignificantEventsPreview. type PostStreamsNameSignificantEventsPreviewJSONBody struct { @@ -38077,6 +40758,10 @@ type PostStreamsNameSignificantEventsPreviewJSONBody struct { Kql struct { Query string `json:"query"` } `json:"kql"` + System *struct { + Filter PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter `json:"filter"` + Name string `json:"name"` + } `json:"system,omitempty"` } `json:"query"` } @@ -38087,6 +40772,249 @@ type PostStreamsNameSignificantEventsPreviewParams struct { BucketSize string `form:"bucketSize" json:"bucketSize"` } +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter0 struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00 struct { + Contains *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Contains `json:"contains,omitempty"` + EndsWith *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_EndsWith `json:"endsWith,omitempty"` + Eq *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Eq `json:"eq,omitempty"` + Field string `json:"field"` + Gt *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Gt `json:"gt,omitempty"` + Gte *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Gte `json:"gte,omitempty"` + Lt *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Lt `json:"lt,omitempty"` + Lte *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Lte `json:"lte,omitempty"` + Neq *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Neq `json:"neq,omitempty"` + Range *struct { + Gt *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Gt `json:"gt,omitempty"` + Gte *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Gte `json:"gte,omitempty"` + Lt *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Lt `json:"lt,omitempty"` + Lte *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Lte `json:"lte,omitempty"` + } `json:"range,omitempty"` + StartsWith *PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_StartsWith `json:"startsWith,omitempty"` +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Contains0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Contains0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Contains1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Contains1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Contains2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Contains2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Contains defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Contains struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00EndsWith0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00EndsWith0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00EndsWith1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00EndsWith1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00EndsWith2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00EndsWith2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_EndsWith defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_EndsWith struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Eq0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Eq0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Eq1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Eq1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Eq2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Eq2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Eq defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Eq struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gt0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gt0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gt1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gt1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gt2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gt2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Gt defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Gt struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gte0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gte0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gte1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gte1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gte2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Gte2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Gte defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Gte struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lt0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lt0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lt1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lt1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lt2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lt2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Lt defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Lt struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lte0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lte0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lte1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lte1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lte2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Lte2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Lte defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Lte struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Neq0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Neq0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Neq1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Neq1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Neq2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00Neq2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Neq defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Neq struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGt0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGt0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGt1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGt1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGt2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGt2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Gt defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Gt struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGte0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGte0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGte1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGte1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGte2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeGte2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Gte defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Gte struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLt0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLt0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLt1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLt1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLt2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLt2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Lt defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Lt struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLte0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLte0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLte1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLte1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLte2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00RangeLte2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Lte defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_Range_Lte struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00StartsWith0 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00StartsWith0 = string + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00StartsWith1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00StartsWith1 = float32 + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00StartsWith2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter00StartsWith2 = bool + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_StartsWith defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter_0_0_StartsWith struct { + union json.RawMessage +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter01 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter01 struct { + Exists *bool `json:"exists,omitempty"` + Field string `json:"field"` +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter1 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter1 struct { + And []interface{} `json:"and"` +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter2 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter2 struct { + Or []interface{} `json:"or"` +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter3 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter3 struct { + Not interface{} `json:"not"` +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter4 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter4 struct { + Never map[string]interface{} `json:"never"` +} + +// PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter5 defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBodyQuerySystemFilter5 struct { + Always map[string]interface{} `json:"always"` +} + +// PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter defines parameters for PostStreamsNameSignificantEventsPreview. +type PostStreamsNameSignificantEventsPreviewJSONBody_Query_System_Filter struct { + union json.RawMessage +} + // GetSyntheticMonitorsParams defines parameters for GetSyntheticMonitors. type GetSyntheticMonitorsParams struct { // Filter Additional filtering criteria. @@ -38600,6 +41528,33 @@ type GetDefinitionsOpParams struct { // PostActionsConnectorIdExecuteJSONRequestBody defines body for PostActionsConnectorIdExecute for application/json ContentType. type PostActionsConnectorIdExecuteJSONRequestBody PostActionsConnectorIdExecuteJSONBody +// PostAgentBuilderA2aAgentidJSONRequestBody defines body for PostAgentBuilderA2aAgentid for application/json ContentType. +type PostAgentBuilderA2aAgentidJSONRequestBody = PostAgentBuilderA2aAgentidJSONBody + +// PostAgentBuilderAgentsJSONRequestBody defines body for PostAgentBuilderAgents for application/json ContentType. +type PostAgentBuilderAgentsJSONRequestBody PostAgentBuilderAgentsJSONBody + +// PutAgentBuilderAgentsIdJSONRequestBody defines body for PutAgentBuilderAgentsId for application/json ContentType. +type PutAgentBuilderAgentsIdJSONRequestBody PutAgentBuilderAgentsIdJSONBody + +// PostAgentBuilderConverseJSONRequestBody defines body for PostAgentBuilderConverse for application/json ContentType. +type PostAgentBuilderConverseJSONRequestBody PostAgentBuilderConverseJSONBody + +// PostAgentBuilderConverseAsyncJSONRequestBody defines body for PostAgentBuilderConverseAsync for application/json ContentType. +type PostAgentBuilderConverseAsyncJSONRequestBody PostAgentBuilderConverseAsyncJSONBody + +// PostAgentBuilderMcpJSONRequestBody defines body for PostAgentBuilderMcp for application/json ContentType. +type PostAgentBuilderMcpJSONRequestBody = PostAgentBuilderMcpJSONBody + +// PostAgentBuilderToolsJSONRequestBody defines body for PostAgentBuilderTools for application/json ContentType. +type PostAgentBuilderToolsJSONRequestBody PostAgentBuilderToolsJSONBody + +// PostAgentBuilderToolsExecuteJSONRequestBody defines body for PostAgentBuilderToolsExecute for application/json ContentType. +type PostAgentBuilderToolsExecuteJSONRequestBody PostAgentBuilderToolsExecuteJSONBody + +// PutAgentBuilderToolsToolidJSONRequestBody defines body for PutAgentBuilderToolsToolid for application/json ContentType. +type PutAgentBuilderToolsToolidJSONRequestBody PutAgentBuilderToolsToolidJSONBody + // PostAlertingRuleIdJSONRequestBody defines body for PostAlertingRuleId for application/json ContentType. type PostAlertingRuleIdJSONRequestBody PostAlertingRuleIdJSONBody @@ -38639,6 +41594,18 @@ type CreateAssetCriticalityRecordJSONRequestBody CreateAssetCriticalityRecordJSO // BulkUpsertAssetCriticalityRecordsJSONRequestBody defines body for BulkUpsertAssetCriticalityRecords for application/json ContentType. type BulkUpsertAssetCriticalityRecordsJSONRequestBody BulkUpsertAssetCriticalityRecordsJSONBody +// PostAttackDiscoveryBulkJSONRequestBody defines body for PostAttackDiscoveryBulk for application/json ContentType. +type PostAttackDiscoveryBulkJSONRequestBody PostAttackDiscoveryBulkJSONBody + +// PostAttackDiscoveryGenerateJSONRequestBody defines body for PostAttackDiscoveryGenerate for application/json ContentType. +type PostAttackDiscoveryGenerateJSONRequestBody = SecurityAIAssistantAPIAttackDiscoveryGenerationConfig + +// CreateAttackDiscoverySchedulesJSONRequestBody defines body for CreateAttackDiscoverySchedules for application/json ContentType. +type CreateAttackDiscoverySchedulesJSONRequestBody = SecurityAIAssistantAPIAttackDiscoveryApiScheduleCreateProps + +// UpdateAttackDiscoverySchedulesJSONRequestBody defines body for UpdateAttackDiscoverySchedules for application/json ContentType. +type UpdateAttackDiscoverySchedulesJSONRequestBody = SecurityAIAssistantAPIAttackDiscoveryApiScheduleUpdateProps + // UpdateCaseDefaultSpaceJSONRequestBody defines body for UpdateCaseDefaultSpace for application/json ContentType. type UpdateCaseDefaultSpaceJSONRequestBody = CasesUpdateCaseRequest @@ -38729,6 +41696,9 @@ type SetAlertsStatusJSONRequestBody SetAlertsStatusJSONBody // SetAlertTagsJSONRequestBody defines body for SetAlertTags for application/json ContentType. type SetAlertTagsJSONRequestBody SetAlertTagsJSONBody +// CancelActionJSONRequestBody defines body for CancelAction for application/json ContentType. +type CancelActionJSONRequestBody = SecurityEndpointManagementAPICancelRouteRequestBody + // EndpointExecuteActionJSONRequestBody defines body for EndpointExecuteAction for application/json ContentType. type EndpointExecuteActionJSONRequestBody = SecurityEndpointManagementAPIExecuteRouteRequestBody @@ -38775,7 +41745,7 @@ type CreatePrivMonUserJSONRequestBody = SecurityEntityAnalyticsAPIUserName type PrivmonBulkUploadUsersCSVMultipartRequestBody PrivmonBulkUploadUsersCSVMultipartBody // UpdatePrivMonUserJSONRequestBody defines body for UpdatePrivMonUser for application/json ContentType. -type UpdatePrivMonUserJSONRequestBody = SecurityEntityAnalyticsAPIMonitoredUserDoc +type UpdatePrivMonUserJSONRequestBody = SecurityEntityAnalyticsAPIMonitoredUserUpdateDoc // InitEntityStoreJSONRequestBody defines body for InitEntityStore for application/json ContentType. type InitEntityStoreJSONRequestBody InitEntityStoreJSONBody @@ -38783,6 +41753,9 @@ type InitEntityStoreJSONRequestBody InitEntityStoreJSONBody // InitEntityEngineJSONRequestBody defines body for InitEntityEngine for application/json ContentType. type InitEntityEngineJSONRequestBody InitEntityEngineJSONBody +// UpsertEntityJSONRequestBody defines body for UpsertEntity for application/json ContentType. +type UpsertEntityJSONRequestBody = SecurityEntityAnalyticsAPIEntity + // CreateExceptionListJSONRequestBody defines body for CreateExceptionList for application/json ContentType. type CreateExceptionListJSONRequestBody CreateExceptionListJSONBody @@ -38861,6 +41834,12 @@ type PostFleetAgentsAgentidUnenrollJSONRequestBody PostFleetAgentsAgentidUnenrol // PostFleetAgentsAgentidUpgradeJSONRequestBody defines body for PostFleetAgentsAgentidUpgrade for application/json ContentType. type PostFleetAgentsAgentidUpgradeJSONRequestBody PostFleetAgentsAgentidUpgradeJSONBody +// PostFleetCloudConnectorsJSONRequestBody defines body for PostFleetCloudConnectors for application/json ContentType. +type PostFleetCloudConnectorsJSONRequestBody PostFleetCloudConnectorsJSONBody + +// PutFleetCloudConnectorsCloudconnectoridJSONRequestBody defines body for PutFleetCloudConnectorsCloudconnectorid for application/json ContentType. +type PutFleetCloudConnectorsCloudconnectoridJSONRequestBody PutFleetCloudConnectorsCloudconnectoridJSONBody + // PostFleetEnrollmentApiKeysJSONRequestBody defines body for PostFleetEnrollmentApiKeys for application/json ContentType. type PostFleetEnrollmentApiKeysJSONRequestBody PostFleetEnrollmentApiKeysJSONBody @@ -38891,6 +41870,9 @@ type PutFleetEpmPackagesPkgnamePkgversionJSONRequestBody PutFleetEpmPackagesPkgn // PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsJSONRequestBody defines body for PostFleetEpmPackagesPkgnamePkgversionKibanaAssets for application/json ContentType. type PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsJSONRequestBody PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsJSONBody +// PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONRequestBody defines body for PostFleetEpmPackagesPkgnamePkgversionRuleAssets for application/json ContentType. +type PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONRequestBody PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONBody + // PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeJSONRequestBody defines body for PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorize for application/json ContentType. type PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeJSONRequestBody PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeJSONBody @@ -39173,8 +42155,8 @@ type PutStreamsNameRulesRuleidJSONRequestBody PutStreamsNameRulesRuleidJSONBody // GetStreamsNameSignificantEventsJSONRequestBody defines body for GetStreamsNameSignificantEvents for application/json ContentType. type GetStreamsNameSignificantEventsJSONRequestBody GetStreamsNameSignificantEventsJSONBody -// GetStreamsNameSignificantEventsGenerateJSONRequestBody defines body for GetStreamsNameSignificantEventsGenerate for application/json ContentType. -type GetStreamsNameSignificantEventsGenerateJSONRequestBody GetStreamsNameSignificantEventsGenerateJSONBody +// PostStreamsNameSignificantEventsGenerateJSONRequestBody defines body for PostStreamsNameSignificantEventsGenerate for application/json ContentType. +type PostStreamsNameSignificantEventsGenerateJSONRequestBody PostStreamsNameSignificantEventsGenerateJSONBody // PostStreamsNameSignificantEventsPreviewJSONRequestBody defines body for PostStreamsNameSignificantEventsPreview for application/json ContentType. type PostStreamsNameSignificantEventsPreviewJSONRequestBody PostStreamsNameSignificantEventsPreviewJSONBody @@ -41411,6 +44393,14 @@ func (a *OutputElasticsearchSecretsSslKey0) UnmarshalJSON(b []byte) error { return err } + if raw, found := object["hash"]; found { + err = json.Unmarshal(raw, &a.Hash) + if err != nil { + return fmt.Errorf("error reading 'hash': %w", err) + } + delete(object, "hash") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -41438,6 +44428,13 @@ func (a OutputElasticsearchSecretsSslKey0) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) + if a.Hash != nil { + object["hash"], err = json.Marshal(a.Hash) + if err != nil { + return nil, fmt.Errorf("error marshaling 'hash': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -41893,14 +44890,6 @@ func (a *OutputKafka) UnmarshalJSON(b []byte) error { delete(object, "version") } - if raw, found := object["write_to_logs_streams"]; found { - err = json.Unmarshal(raw, &a.WriteToLogsStreams) - if err != nil { - return fmt.Errorf("error reading 'write_to_logs_streams': %w", err) - } - delete(object, "write_to_logs_streams") - } - if len(object) != 0 { a.AdditionalProperties = make(map[string]interface{}) for fieldName, fieldBuf := range object { @@ -42157,13 +45146,6 @@ func (a OutputKafka) MarshalJSON() ([]byte, error) { } } - if a.WriteToLogsStreams != nil { - object["write_to_logs_streams"], err = json.Marshal(a.WriteToLogsStreams) - if err != nil { - return nil, fmt.Errorf("error marshaling 'write_to_logs_streams': %w", err) - } - } - for fieldName, field := range a.AdditionalProperties { object[fieldName], err = json.Marshal(field) if err != nil { @@ -42564,6 +45546,14 @@ func (a *OutputKafkaSecretsPassword0) UnmarshalJSON(b []byte) error { return err } + if raw, found := object["hash"]; found { + err = json.Unmarshal(raw, &a.Hash) + if err != nil { + return fmt.Errorf("error reading 'hash': %w", err) + } + delete(object, "hash") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -42591,6 +45581,13 @@ func (a OutputKafkaSecretsPassword0) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) + if a.Hash != nil { + object["hash"], err = json.Marshal(a.Hash) + if err != nil { + return nil, fmt.Errorf("error marshaling 'hash': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -42630,6 +45627,14 @@ func (a *OutputKafkaSecretsSslKey0) UnmarshalJSON(b []byte) error { return err } + if raw, found := object["hash"]; found { + err = json.Unmarshal(raw, &a.Hash) + if err != nil { + return fmt.Errorf("error reading 'hash': %w", err) + } + delete(object, "hash") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -42657,6 +45662,13 @@ func (a OutputKafkaSecretsSslKey0) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) + if a.Hash != nil { + object["hash"], err = json.Marshal(a.Hash) + if err != nil { + return nil, fmt.Errorf("error marshaling 'hash': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -42973,14 +45985,6 @@ func (a *OutputLogstash) UnmarshalJSON(b []byte) error { delete(object, "type") } - if raw, found := object["write_to_logs_streams"]; found { - err = json.Unmarshal(raw, &a.WriteToLogsStreams) - if err != nil { - return fmt.Errorf("error reading 'write_to_logs_streams': %w", err) - } - delete(object, "write_to_logs_streams") - } - if len(object) != 0 { a.AdditionalProperties = make(map[string]interface{}) for fieldName, fieldBuf := range object { @@ -43106,13 +46110,6 @@ func (a OutputLogstash) MarshalJSON() ([]byte, error) { return nil, fmt.Errorf("error marshaling 'type': %w", err) } - if a.WriteToLogsStreams != nil { - object["write_to_logs_streams"], err = json.Marshal(a.WriteToLogsStreams) - if err != nil { - return nil, fmt.Errorf("error marshaling 'write_to_logs_streams': %w", err) - } - } - for fieldName, field := range a.AdditionalProperties { object[fieldName], err = json.Marshal(field) if err != nil { @@ -43147,6 +46144,14 @@ func (a *OutputLogstashSecretsSslKey0) UnmarshalJSON(b []byte) error { return err } + if raw, found := object["hash"]; found { + err = json.Unmarshal(raw, &a.Hash) + if err != nil { + return fmt.Errorf("error reading 'hash': %w", err) + } + delete(object, "hash") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -43174,6 +46179,13 @@ func (a OutputLogstashSecretsSslKey0) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) + if a.Hash != nil { + object["hash"], err = json.Marshal(a.Hash) + if err != nil { + return nil, fmt.Errorf("error marshaling 'hash': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -43741,6 +46753,14 @@ func (a *OutputRemoteElasticsearchSecretsServiceToken0) UnmarshalJSON(b []byte) return err } + if raw, found := object["hash"]; found { + err = json.Unmarshal(raw, &a.Hash) + if err != nil { + return fmt.Errorf("error reading 'hash': %w", err) + } + delete(object, "hash") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -43768,6 +46788,13 @@ func (a OutputRemoteElasticsearchSecretsServiceToken0) MarshalJSON() ([]byte, er var err error object := make(map[string]json.RawMessage) + if a.Hash != nil { + object["hash"], err = json.Marshal(a.Hash) + if err != nil { + return nil, fmt.Errorf("error marshaling 'hash': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -43807,6 +46834,14 @@ func (a *OutputRemoteElasticsearchSecretsSslKey0) UnmarshalJSON(b []byte) error return err } + if raw, found := object["hash"]; found { + err = json.Unmarshal(raw, &a.Hash) + if err != nil { + return fmt.Errorf("error reading 'hash': %w", err) + } + delete(object, "hash") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -43834,6 +46869,13 @@ func (a OutputRemoteElasticsearchSecretsSslKey0) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) + if a.Hash != nil { + object["hash"], err = json.Marshal(a.Hash) + if err != nil { + return nil, fmt.Errorf("error marshaling 'hash': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -45452,6 +48494,14 @@ func (a *PackageInfo_InstallationInfo_AdditionalSpacesInstalledKibana_Item) Unma return err } + if raw, found := object["deferred"]; found { + err = json.Unmarshal(raw, &a.Deferred) + if err != nil { + return fmt.Errorf("error reading 'deferred': %w", err) + } + delete(object, "deferred") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -45495,6 +48545,13 @@ func (a PackageInfo_InstallationInfo_AdditionalSpacesInstalledKibana_Item) Marsh var err error object := make(map[string]json.RawMessage) + if a.Deferred != nil { + object["deferred"], err = json.Marshal(a.Deferred) + if err != nil { + return nil, fmt.Errorf("error marshaling 'deferred': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -45847,6 +48904,14 @@ func (a *PackageInfo_InstallationInfo_InstalledKibana_Item) UnmarshalJSON(b []by return err } + if raw, found := object["deferred"]; found { + err = json.Unmarshal(raw, &a.Deferred) + if err != nil { + return fmt.Errorf("error reading 'deferred': %w", err) + } + delete(object, "deferred") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -45890,6 +48955,13 @@ func (a PackageInfo_InstallationInfo_InstalledKibana_Item) MarshalJSON() ([]byte var err error object := make(map[string]json.RawMessage) + if a.Deferred != nil { + object["deferred"], err = json.Marshal(a.Deferred) + if err != nil { + return nil, fmt.Errorf("error marshaling 'deferred': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -46337,6 +49409,14 @@ func (a *PackageInfo_InstallationInfo) UnmarshalJSON(b []byte) error { delete(object, "previous_version") } + if raw, found := object["rolled_back"]; found { + err = json.Unmarshal(raw, &a.RolledBack) + if err != nil { + return fmt.Errorf("error reading 'rolled_back': %w", err) + } + delete(object, "rolled_back") + } + if raw, found := object["type"]; found { err = json.Unmarshal(raw, &a.Type) if err != nil { @@ -46484,6 +49564,13 @@ func (a PackageInfo_InstallationInfo) MarshalJSON() ([]byte, error) { } } + if a.RolledBack != nil { + object["rolled_back"], err = json.Marshal(a.RolledBack) + if err != nil { + return nil, fmt.Errorf("error marshaling 'rolled_back': %w", err) + } + } + object["type"], err = json.Marshal(a.Type) if err != nil { return nil, fmt.Errorf("error marshaling 'type': %w", err) @@ -47721,6 +50808,14 @@ func (a *PackageListItem_InstallationInfo_AdditionalSpacesInstalledKibana_Item) return err } + if raw, found := object["deferred"]; found { + err = json.Unmarshal(raw, &a.Deferred) + if err != nil { + return fmt.Errorf("error reading 'deferred': %w", err) + } + delete(object, "deferred") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -47764,6 +50859,13 @@ func (a PackageListItem_InstallationInfo_AdditionalSpacesInstalledKibana_Item) M var err error object := make(map[string]json.RawMessage) + if a.Deferred != nil { + object["deferred"], err = json.Marshal(a.Deferred) + if err != nil { + return nil, fmt.Errorf("error marshaling 'deferred': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -48116,6 +51218,14 @@ func (a *PackageListItem_InstallationInfo_InstalledKibana_Item) UnmarshalJSON(b return err } + if raw, found := object["deferred"]; found { + err = json.Unmarshal(raw, &a.Deferred) + if err != nil { + return fmt.Errorf("error reading 'deferred': %w", err) + } + delete(object, "deferred") + } + if raw, found := object["id"]; found { err = json.Unmarshal(raw, &a.Id) if err != nil { @@ -48159,6 +51269,13 @@ func (a PackageListItem_InstallationInfo_InstalledKibana_Item) MarshalJSON() ([] var err error object := make(map[string]json.RawMessage) + if a.Deferred != nil { + object["deferred"], err = json.Marshal(a.Deferred) + if err != nil { + return nil, fmt.Errorf("error marshaling 'deferred': %w", err) + } + } + object["id"], err = json.Marshal(a.Id) if err != nil { return nil, fmt.Errorf("error marshaling 'id': %w", err) @@ -48606,6 +51723,14 @@ func (a *PackageListItem_InstallationInfo) UnmarshalJSON(b []byte) error { delete(object, "previous_version") } + if raw, found := object["rolled_back"]; found { + err = json.Unmarshal(raw, &a.RolledBack) + if err != nil { + return fmt.Errorf("error reading 'rolled_back': %w", err) + } + delete(object, "rolled_back") + } + if raw, found := object["type"]; found { err = json.Unmarshal(raw, &a.Type) if err != nil { @@ -48753,6 +51878,13 @@ func (a PackageListItem_InstallationInfo) MarshalJSON() ([]byte, error) { } } + if a.RolledBack != nil { + object["rolled_back"], err = json.Marshal(a.RolledBack) + if err != nil { + return nil, fmt.Errorf("error marshaling 'rolled_back': %w", err) + } + } + object["type"], err = json.Marshal(a.Type) if err != nil { return nil, fmt.Errorf("error marshaling 'type': %w", err) @@ -51577,7 +54709,7 @@ func (t SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) AsSLO // FromSLOsTimesliceMetricBasicMetricWithField overwrites any union data inside the SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item as the provided SLOsTimesliceMetricBasicMetricWithField func (t *SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) FromSLOsTimesliceMetricBasicMetricWithField(v SLOsTimesliceMetricBasicMetricWithField) error { - v.Aggregation = "sum" + v.Aggregation = "std_deviation" b, err := json.Marshal(v) t.union = b return err @@ -51585,7 +54717,7 @@ func (t *SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) From // MergeSLOsTimesliceMetricBasicMetricWithField performs a merge with any union data inside the SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item, using the provided SLOsTimesliceMetricBasicMetricWithField func (t *SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) MergeSLOsTimesliceMetricBasicMetricWithField(v SLOsTimesliceMetricBasicMetricWithField) error { - v.Aggregation = "sum" + v.Aggregation = "std_deviation" b, err := json.Marshal(v) if err != nil { return err @@ -51670,7 +54802,7 @@ func (t SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) Value return t.AsSLOsTimesliceMetricDocCountMetric() case "percentile": return t.AsSLOsTimesliceMetricPercentileMetric() - case "sum": + case "std_deviation": return t.AsSLOsTimesliceMetricBasicMetricWithField() default: return nil, errors.New("unknown discriminator value: " + discriminator) @@ -52871,6 +56003,68 @@ func (t *SecurityAIAssistantAPIKnowledgeBaseEntryUpdateRouteProps) UnmarshalJSON return err } +// AsSecurityAIAssistantAPIQueryQuery0 returns the union data inside the SecurityAIAssistantAPIQuery_Query as a SecurityAIAssistantAPIQueryQuery0 +func (t SecurityAIAssistantAPIQuery_Query) AsSecurityAIAssistantAPIQueryQuery0() (SecurityAIAssistantAPIQueryQuery0, error) { + var body SecurityAIAssistantAPIQueryQuery0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityAIAssistantAPIQueryQuery0 overwrites any union data inside the SecurityAIAssistantAPIQuery_Query as the provided SecurityAIAssistantAPIQueryQuery0 +func (t *SecurityAIAssistantAPIQuery_Query) FromSecurityAIAssistantAPIQueryQuery0(v SecurityAIAssistantAPIQueryQuery0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityAIAssistantAPIQueryQuery0 performs a merge with any union data inside the SecurityAIAssistantAPIQuery_Query, using the provided SecurityAIAssistantAPIQueryQuery0 +func (t *SecurityAIAssistantAPIQuery_Query) MergeSecurityAIAssistantAPIQueryQuery0(v SecurityAIAssistantAPIQueryQuery0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsSecurityAIAssistantAPIQueryQuery1 returns the union data inside the SecurityAIAssistantAPIQuery_Query as a SecurityAIAssistantAPIQueryQuery1 +func (t SecurityAIAssistantAPIQuery_Query) AsSecurityAIAssistantAPIQueryQuery1() (SecurityAIAssistantAPIQueryQuery1, error) { + var body SecurityAIAssistantAPIQueryQuery1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityAIAssistantAPIQueryQuery1 overwrites any union data inside the SecurityAIAssistantAPIQuery_Query as the provided SecurityAIAssistantAPIQueryQuery1 +func (t *SecurityAIAssistantAPIQuery_Query) FromSecurityAIAssistantAPIQueryQuery1(v SecurityAIAssistantAPIQueryQuery1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityAIAssistantAPIQueryQuery1 performs a merge with any union data inside the SecurityAIAssistantAPIQuery_Query, using the provided SecurityAIAssistantAPIQueryQuery1 +func (t *SecurityAIAssistantAPIQuery_Query) MergeSecurityAIAssistantAPIQueryQuery1(v SecurityAIAssistantAPIQueryQuery1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t SecurityAIAssistantAPIQuery_Query) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *SecurityAIAssistantAPIQuery_Query) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + // AsSecurityDetectionsAPIAlertsSortCombinations returns the union data inside the SecurityDetectionsAPIAlertsSort as a SecurityDetectionsAPIAlertsSortCombinations func (t SecurityDetectionsAPIAlertsSort) AsSecurityDetectionsAPIAlertsSortCombinations() (SecurityDetectionsAPIAlertsSortCombinations, error) { var body SecurityDetectionsAPIAlertsSortCombinations @@ -54761,6 +57955,184 @@ func (t *SecurityDetectionsAPIRuleUpdateProps) UnmarshalJSON(b []byte) error { return err } +// AsSecurityDetectionsAPICloseAlertsByIds returns the union data inside the SecurityDetectionsAPISetAlertsStatusByIds as a SecurityDetectionsAPICloseAlertsByIds +func (t SecurityDetectionsAPISetAlertsStatusByIds) AsSecurityDetectionsAPICloseAlertsByIds() (SecurityDetectionsAPICloseAlertsByIds, error) { + var body SecurityDetectionsAPICloseAlertsByIds + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityDetectionsAPICloseAlertsByIds overwrites any union data inside the SecurityDetectionsAPISetAlertsStatusByIds as the provided SecurityDetectionsAPICloseAlertsByIds +func (t *SecurityDetectionsAPISetAlertsStatusByIds) FromSecurityDetectionsAPICloseAlertsByIds(v SecurityDetectionsAPICloseAlertsByIds) error { + v.Status = "closed" + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityDetectionsAPICloseAlertsByIds performs a merge with any union data inside the SecurityDetectionsAPISetAlertsStatusByIds, using the provided SecurityDetectionsAPICloseAlertsByIds +func (t *SecurityDetectionsAPISetAlertsStatusByIds) MergeSecurityDetectionsAPICloseAlertsByIds(v SecurityDetectionsAPICloseAlertsByIds) error { + v.Status = "closed" + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsSecurityDetectionsAPISetAlertsStatusByIdsBase returns the union data inside the SecurityDetectionsAPISetAlertsStatusByIds as a SecurityDetectionsAPISetAlertsStatusByIdsBase +func (t SecurityDetectionsAPISetAlertsStatusByIds) AsSecurityDetectionsAPISetAlertsStatusByIdsBase() (SecurityDetectionsAPISetAlertsStatusByIdsBase, error) { + var body SecurityDetectionsAPISetAlertsStatusByIdsBase + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityDetectionsAPISetAlertsStatusByIdsBase overwrites any union data inside the SecurityDetectionsAPISetAlertsStatusByIds as the provided SecurityDetectionsAPISetAlertsStatusByIdsBase +func (t *SecurityDetectionsAPISetAlertsStatusByIds) FromSecurityDetectionsAPISetAlertsStatusByIdsBase(v SecurityDetectionsAPISetAlertsStatusByIdsBase) error { + v.Status = "Security_Detections_API_SetAlertsStatusByIdsBase" + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityDetectionsAPISetAlertsStatusByIdsBase performs a merge with any union data inside the SecurityDetectionsAPISetAlertsStatusByIds, using the provided SecurityDetectionsAPISetAlertsStatusByIdsBase +func (t *SecurityDetectionsAPISetAlertsStatusByIds) MergeSecurityDetectionsAPISetAlertsStatusByIdsBase(v SecurityDetectionsAPISetAlertsStatusByIdsBase) error { + v.Status = "Security_Detections_API_SetAlertsStatusByIdsBase" + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t SecurityDetectionsAPISetAlertsStatusByIds) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"status"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} + +func (t SecurityDetectionsAPISetAlertsStatusByIds) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() + if err != nil { + return nil, err + } + switch discriminator { + case "Security_Detections_API_SetAlertsStatusByIdsBase": + return t.AsSecurityDetectionsAPISetAlertsStatusByIdsBase() + case "closed": + return t.AsSecurityDetectionsAPICloseAlertsByIds() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) + } +} + +func (t SecurityDetectionsAPISetAlertsStatusByIds) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *SecurityDetectionsAPISetAlertsStatusByIds) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsSecurityDetectionsAPICloseAlertsByQuery returns the union data inside the SecurityDetectionsAPISetAlertsStatusByQuery as a SecurityDetectionsAPICloseAlertsByQuery +func (t SecurityDetectionsAPISetAlertsStatusByQuery) AsSecurityDetectionsAPICloseAlertsByQuery() (SecurityDetectionsAPICloseAlertsByQuery, error) { + var body SecurityDetectionsAPICloseAlertsByQuery + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityDetectionsAPICloseAlertsByQuery overwrites any union data inside the SecurityDetectionsAPISetAlertsStatusByQuery as the provided SecurityDetectionsAPICloseAlertsByQuery +func (t *SecurityDetectionsAPISetAlertsStatusByQuery) FromSecurityDetectionsAPICloseAlertsByQuery(v SecurityDetectionsAPICloseAlertsByQuery) error { + v.Status = "closed" + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityDetectionsAPICloseAlertsByQuery performs a merge with any union data inside the SecurityDetectionsAPISetAlertsStatusByQuery, using the provided SecurityDetectionsAPICloseAlertsByQuery +func (t *SecurityDetectionsAPISetAlertsStatusByQuery) MergeSecurityDetectionsAPICloseAlertsByQuery(v SecurityDetectionsAPICloseAlertsByQuery) error { + v.Status = "closed" + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsSecurityDetectionsAPISetAlertsStatusByQueryBase returns the union data inside the SecurityDetectionsAPISetAlertsStatusByQuery as a SecurityDetectionsAPISetAlertsStatusByQueryBase +func (t SecurityDetectionsAPISetAlertsStatusByQuery) AsSecurityDetectionsAPISetAlertsStatusByQueryBase() (SecurityDetectionsAPISetAlertsStatusByQueryBase, error) { + var body SecurityDetectionsAPISetAlertsStatusByQueryBase + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityDetectionsAPISetAlertsStatusByQueryBase overwrites any union data inside the SecurityDetectionsAPISetAlertsStatusByQuery as the provided SecurityDetectionsAPISetAlertsStatusByQueryBase +func (t *SecurityDetectionsAPISetAlertsStatusByQuery) FromSecurityDetectionsAPISetAlertsStatusByQueryBase(v SecurityDetectionsAPISetAlertsStatusByQueryBase) error { + v.Status = "Security_Detections_API_SetAlertsStatusByQueryBase" + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityDetectionsAPISetAlertsStatusByQueryBase performs a merge with any union data inside the SecurityDetectionsAPISetAlertsStatusByQuery, using the provided SecurityDetectionsAPISetAlertsStatusByQueryBase +func (t *SecurityDetectionsAPISetAlertsStatusByQuery) MergeSecurityDetectionsAPISetAlertsStatusByQueryBase(v SecurityDetectionsAPISetAlertsStatusByQueryBase) error { + v.Status = "Security_Detections_API_SetAlertsStatusByQueryBase" + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t SecurityDetectionsAPISetAlertsStatusByQuery) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"status"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} + +func (t SecurityDetectionsAPISetAlertsStatusByQuery) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() + if err != nil { + return nil, err + } + switch discriminator { + case "Security_Detections_API_SetAlertsStatusByQueryBase": + return t.AsSecurityDetectionsAPISetAlertsStatusByQueryBase() + case "closed": + return t.AsSecurityDetectionsAPICloseAlertsByQuery() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) + } +} + +func (t SecurityDetectionsAPISetAlertsStatusByQuery) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *SecurityDetectionsAPISetAlertsStatusByQuery) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + // AsSecurityDetectionsAPIThresholdField0 returns the union data inside the SecurityDetectionsAPIThresholdField as a SecurityDetectionsAPIThresholdField0 func (t SecurityDetectionsAPIThresholdField) AsSecurityDetectionsAPIThresholdField0() (SecurityDetectionsAPIThresholdField0, error) { var body SecurityDetectionsAPIThresholdField0 @@ -55517,6 +58889,32 @@ func (t *SecurityEndpointManagementAPIRunScriptRouteRequestBody_Parameters) Merg return err } +// AsSecurityEndpointManagementAPIMDERunScriptParameters returns the union data inside the SecurityEndpointManagementAPIRunScriptRouteRequestBody_Parameters as a SecurityEndpointManagementAPIMDERunScriptParameters +func (t SecurityEndpointManagementAPIRunScriptRouteRequestBody_Parameters) AsSecurityEndpointManagementAPIMDERunScriptParameters() (SecurityEndpointManagementAPIMDERunScriptParameters, error) { + var body SecurityEndpointManagementAPIMDERunScriptParameters + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityEndpointManagementAPIMDERunScriptParameters overwrites any union data inside the SecurityEndpointManagementAPIRunScriptRouteRequestBody_Parameters as the provided SecurityEndpointManagementAPIMDERunScriptParameters +func (t *SecurityEndpointManagementAPIRunScriptRouteRequestBody_Parameters) FromSecurityEndpointManagementAPIMDERunScriptParameters(v SecurityEndpointManagementAPIMDERunScriptParameters) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityEndpointManagementAPIMDERunScriptParameters performs a merge with any union data inside the SecurityEndpointManagementAPIRunScriptRouteRequestBody_Parameters, using the provided SecurityEndpointManagementAPIMDERunScriptParameters +func (t *SecurityEndpointManagementAPIRunScriptRouteRequestBody_Parameters) MergeSecurityEndpointManagementAPIMDERunScriptParameters(v SecurityEndpointManagementAPIMDERunScriptParameters) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + func (t SecurityEndpointManagementAPIRunScriptRouteRequestBody_Parameters) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err @@ -61750,6 +65148,68 @@ func (t *RunPushtoservice_SubActionParams_Incident_SourceIp) UnmarshalJSON(b []b return err } +// AsServerHostSecretsSslAgentKey0 returns the union data inside the ServerHost_Secrets_Ssl_AgentKey as a ServerHostSecretsSslAgentKey0 +func (t ServerHost_Secrets_Ssl_AgentKey) AsServerHostSecretsSslAgentKey0() (ServerHostSecretsSslAgentKey0, error) { + var body ServerHostSecretsSslAgentKey0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromServerHostSecretsSslAgentKey0 overwrites any union data inside the ServerHost_Secrets_Ssl_AgentKey as the provided ServerHostSecretsSslAgentKey0 +func (t *ServerHost_Secrets_Ssl_AgentKey) FromServerHostSecretsSslAgentKey0(v ServerHostSecretsSslAgentKey0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeServerHostSecretsSslAgentKey0 performs a merge with any union data inside the ServerHost_Secrets_Ssl_AgentKey, using the provided ServerHostSecretsSslAgentKey0 +func (t *ServerHost_Secrets_Ssl_AgentKey) MergeServerHostSecretsSslAgentKey0(v ServerHostSecretsSslAgentKey0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsServerHostSecretsSslAgentKey1 returns the union data inside the ServerHost_Secrets_Ssl_AgentKey as a ServerHostSecretsSslAgentKey1 +func (t ServerHost_Secrets_Ssl_AgentKey) AsServerHostSecretsSslAgentKey1() (ServerHostSecretsSslAgentKey1, error) { + var body ServerHostSecretsSslAgentKey1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromServerHostSecretsSslAgentKey1 overwrites any union data inside the ServerHost_Secrets_Ssl_AgentKey as the provided ServerHostSecretsSslAgentKey1 +func (t *ServerHost_Secrets_Ssl_AgentKey) FromServerHostSecretsSslAgentKey1(v ServerHostSecretsSslAgentKey1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeServerHostSecretsSslAgentKey1 performs a merge with any union data inside the ServerHost_Secrets_Ssl_AgentKey, using the provided ServerHostSecretsSslAgentKey1 +func (t *ServerHost_Secrets_Ssl_AgentKey) MergeServerHostSecretsSslAgentKey1(v ServerHostSecretsSslAgentKey1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t ServerHost_Secrets_Ssl_AgentKey) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *ServerHost_Secrets_Ssl_AgentKey) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + // AsServerHostSecretsSslEsKey0 returns the union data inside the ServerHost_Secrets_Ssl_EsKey as a ServerHostSecretsSslEsKey0 func (t ServerHost_Secrets_Ssl_EsKey) AsServerHostSecretsSslEsKey0() (ServerHostSecretsSslEsKey0, error) { var body ServerHostSecretsSslEsKey0 @@ -64245,6 +67705,81 @@ type ClientInterface interface { // GetActionsConnectorTypes request GetActionsConnectorTypes(ctx context.Context, params *GetActionsConnectorTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostAgentBuilderA2aAgentidWithBody request with any body + PostAgentBuilderA2aAgentidWithBody(ctx context.Context, agentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostAgentBuilderA2aAgentid(ctx context.Context, agentId string, body PostAgentBuilderA2aAgentidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAgentBuilderA2aAgentidJson request + GetAgentBuilderA2aAgentidJson(ctx context.Context, agentId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAgentBuilderAgents request + GetAgentBuilderAgents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostAgentBuilderAgentsWithBody request with any body + PostAgentBuilderAgentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostAgentBuilderAgents(ctx context.Context, body PostAgentBuilderAgentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAgentBuilderAgentsId request + DeleteAgentBuilderAgentsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAgentBuilderAgentsId request + GetAgentBuilderAgentsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PutAgentBuilderAgentsIdWithBody request with any body + PutAgentBuilderAgentsIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PutAgentBuilderAgentsId(ctx context.Context, id string, body PutAgentBuilderAgentsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAgentBuilderConversations request + GetAgentBuilderConversations(ctx context.Context, params *GetAgentBuilderConversationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAgentBuilderConversationsConversationId request + DeleteAgentBuilderConversationsConversationId(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAgentBuilderConversationsConversationId request + GetAgentBuilderConversationsConversationId(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostAgentBuilderConverseWithBody request with any body + PostAgentBuilderConverseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostAgentBuilderConverse(ctx context.Context, body PostAgentBuilderConverseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostAgentBuilderConverseAsyncWithBody request with any body + PostAgentBuilderConverseAsyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostAgentBuilderConverseAsync(ctx context.Context, body PostAgentBuilderConverseAsyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostAgentBuilderMcpWithBody request with any body + PostAgentBuilderMcpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostAgentBuilderMcp(ctx context.Context, body PostAgentBuilderMcpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAgentBuilderTools request + GetAgentBuilderTools(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostAgentBuilderToolsWithBody request with any body + PostAgentBuilderToolsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostAgentBuilderTools(ctx context.Context, body PostAgentBuilderToolsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostAgentBuilderToolsExecuteWithBody request with any body + PostAgentBuilderToolsExecuteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostAgentBuilderToolsExecute(ctx context.Context, body PostAgentBuilderToolsExecuteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAgentBuilderToolsId request + DeleteAgentBuilderToolsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAgentBuilderToolsId request + GetAgentBuilderToolsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PutAgentBuilderToolsToolidWithBody request with any body + PutAgentBuilderToolsToolidWithBody(ctx context.Context, toolId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PutAgentBuilderToolsToolid(ctx context.Context, toolId string, body PutAgentBuilderToolsToolidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetAlertingHealth request GetAlertingHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -64374,6 +67909,53 @@ type ClientInterface interface { // FindAssetCriticalityRecords request FindAssetCriticalityRecords(ctx context.Context, params *FindAssetCriticalityRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostAttackDiscoveryBulkWithBody request with any body + PostAttackDiscoveryBulkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostAttackDiscoveryBulk(ctx context.Context, body PostAttackDiscoveryBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AttackDiscoveryFind request + AttackDiscoveryFind(ctx context.Context, params *AttackDiscoveryFindParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostAttackDiscoveryGenerateWithBody request with any body + PostAttackDiscoveryGenerateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostAttackDiscoveryGenerate(ctx context.Context, body PostAttackDiscoveryGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAttackDiscoveryGenerations request + GetAttackDiscoveryGenerations(ctx context.Context, params *GetAttackDiscoveryGenerationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAttackDiscoveryGeneration request + GetAttackDiscoveryGeneration(ctx context.Context, executionUuid SecurityAIAssistantAPINonEmptyString, params *GetAttackDiscoveryGenerationParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostAttackDiscoveryGenerationsDismiss request + PostAttackDiscoveryGenerationsDismiss(ctx context.Context, executionUuid SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAttackDiscoverySchedulesWithBody request with any body + CreateAttackDiscoverySchedulesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAttackDiscoverySchedules(ctx context.Context, body CreateAttackDiscoverySchedulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FindAttackDiscoverySchedules request + FindAttackDiscoverySchedules(ctx context.Context, params *FindAttackDiscoverySchedulesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAttackDiscoverySchedules request + DeleteAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAttackDiscoverySchedules request + GetAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateAttackDiscoverySchedulesWithBody request with any body + UpdateAttackDiscoverySchedulesWithBody(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, body UpdateAttackDiscoverySchedulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DisableAttackDiscoverySchedules request + DisableAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EnableAttackDiscoverySchedules request + EnableAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteCaseDefaultSpace request DeleteCaseDefaultSpace(ctx context.Context, params *DeleteCaseDefaultSpaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -64610,6 +68192,11 @@ type ClientInterface interface { // EndpointGetActionsList request EndpointGetActionsList(ctx context.Context, params *EndpointGetActionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // CancelActionWithBody request with any body + CancelActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CancelAction(ctx context.Context, body CancelActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // EndpointExecuteActionWithBody request with any body EndpointExecuteActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -64786,6 +68373,11 @@ type ClientInterface interface { // ListEntities request ListEntities(ctx context.Context, params *ListEntitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpsertEntityWithBody request with any body + UpsertEntityWithBody(ctx context.Context, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpsertEntity(ctx context.Context, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, body UpsertEntityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetEntityStoreStatus request GetEntityStoreStatus(ctx context.Context, params *GetEntityStoreStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -65019,6 +68611,25 @@ type ClientInterface interface { // GetFleetCheckPermissions request GetFleetCheckPermissions(ctx context.Context, params *GetFleetCheckPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetFleetCloudConnectors request + GetFleetCloudConnectors(ctx context.Context, params *GetFleetCloudConnectorsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostFleetCloudConnectorsWithBody request with any body + PostFleetCloudConnectorsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostFleetCloudConnectors(ctx context.Context, body PostFleetCloudConnectorsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteFleetCloudConnectorsCloudconnectorid request + DeleteFleetCloudConnectorsCloudconnectorid(ctx context.Context, cloudConnectorId string, params *DeleteFleetCloudConnectorsCloudconnectoridParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetFleetCloudConnectorsCloudconnectorid request + GetFleetCloudConnectorsCloudconnectorid(ctx context.Context, cloudConnectorId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PutFleetCloudConnectorsCloudconnectoridWithBody request with any body + PutFleetCloudConnectorsCloudconnectoridWithBody(ctx context.Context, cloudConnectorId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PutFleetCloudConnectorsCloudconnectorid(ctx context.Context, cloudConnectorId string, body PutFleetCloudConnectorsCloudconnectoridJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetFleetDataStreams request GetFleetDataStreams(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -65120,6 +68731,11 @@ type ClientInterface interface { PostFleetEpmPackagesPkgnamePkgversionKibanaAssets(ctx context.Context, pkgName string, pkgVersion string, body PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithBody request with any body + PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithBody(ctx context.Context, pkgName string, pkgVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostFleetEpmPackagesPkgnamePkgversionRuleAssets(ctx context.Context, pkgName string, pkgVersion string, body PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeWithBody request with any body PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeWithBody(ctx context.Context, pkgName string, pkgVersion string, params *PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -65366,6 +68982,9 @@ type ClientInterface interface { // GetLogstashPipelines request GetLogstashPipelines(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetMaintenanceWindowFind request + GetMaintenanceWindowFind(ctx context.Context, params *GetMaintenanceWindowFindParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostMaintenanceWindowIdArchive request PostMaintenanceWindowIdArchive(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -65816,10 +69435,10 @@ type ClientInterface interface { GetStreamsNameSignificantEvents(ctx context.Context, name string, params *GetStreamsNameSignificantEventsParams, body GetStreamsNameSignificantEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetStreamsNameSignificantEventsGenerateWithBody request with any body - GetStreamsNameSignificantEventsGenerateWithBody(ctx context.Context, name string, params *GetStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PostStreamsNameSignificantEventsGenerateWithBody request with any body + PostStreamsNameSignificantEventsGenerateWithBody(ctx context.Context, name string, params *PostStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - GetStreamsNameSignificantEventsGenerate(ctx context.Context, name string, params *GetStreamsNameSignificantEventsGenerateParams, body GetStreamsNameSignificantEventsGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + PostStreamsNameSignificantEventsGenerate(ctx context.Context, name string, params *PostStreamsNameSignificantEventsGenerateParams, body PostStreamsNameSignificantEventsGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostStreamsNameSignificantEventsPreviewWithBody request with any body PostStreamsNameSignificantEventsPreviewWithBody(ctx context.Context, name string, params *PostStreamsNameSignificantEventsPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -66107,6 +69726,342 @@ func (c *Client) GetActionsConnectorTypes(ctx context.Context, params *GetAction return c.Client.Do(req) } +func (c *Client) PostAgentBuilderA2aAgentidWithBody(ctx context.Context, agentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderA2aAgentidRequestWithBody(c.Server, agentId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderA2aAgentid(ctx context.Context, agentId string, body PostAgentBuilderA2aAgentidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderA2aAgentidRequest(c.Server, agentId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAgentBuilderA2aAgentidJson(ctx context.Context, agentId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentBuilderA2aAgentidJsonRequest(c.Server, agentId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAgentBuilderAgents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentBuilderAgentsRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderAgentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderAgentsRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderAgents(ctx context.Context, body PostAgentBuilderAgentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderAgentsRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteAgentBuilderAgentsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAgentBuilderAgentsIdRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAgentBuilderAgentsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentBuilderAgentsIdRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PutAgentBuilderAgentsIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutAgentBuilderAgentsIdRequestWithBody(c.Server, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PutAgentBuilderAgentsId(ctx context.Context, id string, body PutAgentBuilderAgentsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutAgentBuilderAgentsIdRequest(c.Server, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAgentBuilderConversations(ctx context.Context, params *GetAgentBuilderConversationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentBuilderConversationsRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteAgentBuilderConversationsConversationId(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAgentBuilderConversationsConversationIdRequest(c.Server, conversationId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAgentBuilderConversationsConversationId(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentBuilderConversationsConversationIdRequest(c.Server, conversationId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderConverseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderConverseRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderConverse(ctx context.Context, body PostAgentBuilderConverseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderConverseRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderConverseAsyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderConverseAsyncRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderConverseAsync(ctx context.Context, body PostAgentBuilderConverseAsyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderConverseAsyncRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderMcpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderMcpRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderMcp(ctx context.Context, body PostAgentBuilderMcpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderMcpRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAgentBuilderTools(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentBuilderToolsRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderToolsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderToolsRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderTools(ctx context.Context, body PostAgentBuilderToolsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderToolsRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderToolsExecuteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderToolsExecuteRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAgentBuilderToolsExecute(ctx context.Context, body PostAgentBuilderToolsExecuteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentBuilderToolsExecuteRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteAgentBuilderToolsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAgentBuilderToolsIdRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAgentBuilderToolsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentBuilderToolsIdRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PutAgentBuilderToolsToolidWithBody(ctx context.Context, toolId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutAgentBuilderToolsToolidRequestWithBody(c.Server, toolId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PutAgentBuilderToolsToolid(ctx context.Context, toolId string, body PutAgentBuilderToolsToolidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutAgentBuilderToolsToolidRequest(c.Server, toolId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) GetAlertingHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetAlertingHealthRequest(c.Server) if err != nil { @@ -66671,6 +70626,210 @@ func (c *Client) FindAssetCriticalityRecords(ctx context.Context, params *FindAs return c.Client.Do(req) } +func (c *Client) PostAttackDiscoveryBulkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAttackDiscoveryBulkRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAttackDiscoveryBulk(ctx context.Context, body PostAttackDiscoveryBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAttackDiscoveryBulkRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AttackDiscoveryFind(ctx context.Context, params *AttackDiscoveryFindParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAttackDiscoveryFindRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAttackDiscoveryGenerateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAttackDiscoveryGenerateRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAttackDiscoveryGenerate(ctx context.Context, body PostAttackDiscoveryGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAttackDiscoveryGenerateRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAttackDiscoveryGenerations(ctx context.Context, params *GetAttackDiscoveryGenerationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAttackDiscoveryGenerationsRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAttackDiscoveryGeneration(ctx context.Context, executionUuid SecurityAIAssistantAPINonEmptyString, params *GetAttackDiscoveryGenerationParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAttackDiscoveryGenerationRequest(c.Server, executionUuid, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostAttackDiscoveryGenerationsDismiss(ctx context.Context, executionUuid SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAttackDiscoveryGenerationsDismissRequest(c.Server, executionUuid) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateAttackDiscoverySchedulesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAttackDiscoverySchedulesRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateAttackDiscoverySchedules(ctx context.Context, body CreateAttackDiscoverySchedulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAttackDiscoverySchedulesRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FindAttackDiscoverySchedules(ctx context.Context, params *FindAttackDiscoverySchedulesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFindAttackDiscoverySchedulesRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAttackDiscoverySchedulesRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAttackDiscoverySchedulesRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAttackDiscoverySchedulesWithBody(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAttackDiscoverySchedulesRequestWithBody(c.Server, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, body UpdateAttackDiscoverySchedulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAttackDiscoverySchedulesRequest(c.Server, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DisableAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDisableAttackDiscoverySchedulesRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EnableAttackDiscoverySchedules(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEnableAttackDiscoverySchedulesRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) DeleteCaseDefaultSpace(ctx context.Context, params *DeleteCaseDefaultSpaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteCaseDefaultSpaceRequest(c.Server, params) if err != nil { @@ -67727,6 +71886,30 @@ func (c *Client) EndpointGetActionsList(ctx context.Context, params *EndpointGet return c.Client.Do(req) } +func (c *Client) CancelActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCancelActionRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CancelAction(ctx context.Context, body CancelActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCancelActionRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) EndpointExecuteActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewEndpointExecuteActionRequestWithBody(c.Server, contentType, body) if err != nil { @@ -68495,6 +72678,30 @@ func (c *Client) ListEntities(ctx context.Context, params *ListEntitiesParams, r return c.Client.Do(req) } +func (c *Client) UpsertEntityWithBody(ctx context.Context, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpsertEntityRequestWithBody(c.Server, entityType, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpsertEntity(ctx context.Context, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, body UpsertEntityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpsertEntityRequest(c.Server, entityType, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) GetEntityStoreStatus(ctx context.Context, params *GetEntityStoreStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetEntityStoreStatusRequest(c.Server, params) if err != nil { @@ -69527,6 +73734,90 @@ func (c *Client) GetFleetCheckPermissions(ctx context.Context, params *GetFleetC return c.Client.Do(req) } +func (c *Client) GetFleetCloudConnectors(ctx context.Context, params *GetFleetCloudConnectorsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFleetCloudConnectorsRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostFleetCloudConnectorsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostFleetCloudConnectorsRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostFleetCloudConnectors(ctx context.Context, body PostFleetCloudConnectorsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostFleetCloudConnectorsRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteFleetCloudConnectorsCloudconnectorid(ctx context.Context, cloudConnectorId string, params *DeleteFleetCloudConnectorsCloudconnectoridParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteFleetCloudConnectorsCloudconnectoridRequest(c.Server, cloudConnectorId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFleetCloudConnectorsCloudconnectorid(ctx context.Context, cloudConnectorId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFleetCloudConnectorsCloudconnectoridRequest(c.Server, cloudConnectorId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PutFleetCloudConnectorsCloudconnectoridWithBody(ctx context.Context, cloudConnectorId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutFleetCloudConnectorsCloudconnectoridRequestWithBody(c.Server, cloudConnectorId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PutFleetCloudConnectorsCloudconnectorid(ctx context.Context, cloudConnectorId string, body PutFleetCloudConnectorsCloudconnectoridJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutFleetCloudConnectorsCloudconnectoridRequest(c.Server, cloudConnectorId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) GetFleetDataStreams(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetFleetDataStreamsRequest(c.Server) if err != nil { @@ -69971,6 +74262,30 @@ func (c *Client) PostFleetEpmPackagesPkgnamePkgversionKibanaAssets(ctx context.C return c.Client.Do(req) } +func (c *Client) PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithBody(ctx context.Context, pkgName string, pkgVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostFleetEpmPackagesPkgnamePkgversionRuleAssetsRequestWithBody(c.Server, pkgName, pkgVersion, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostFleetEpmPackagesPkgnamePkgversionRuleAssets(ctx context.Context, pkgName string, pkgVersion string, body PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostFleetEpmPackagesPkgnamePkgversionRuleAssetsRequest(c.Server, pkgName, pkgVersion, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeWithBody(ctx context.Context, pkgName string, pkgVersion string, params *PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewPostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeRequestWithBody(c.Server, pkgName, pkgVersion, params, contentType, body) if err != nil { @@ -71051,6 +75366,18 @@ func (c *Client) GetLogstashPipelines(ctx context.Context, reqEditors ...Request return c.Client.Do(req) } +func (c *Client) GetMaintenanceWindowFind(ctx context.Context, params *GetMaintenanceWindowFindParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetMaintenanceWindowFindRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) PostMaintenanceWindowIdArchive(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewPostMaintenanceWindowIdArchiveRequest(c.Server, id) if err != nil { @@ -73115,8 +77442,8 @@ func (c *Client) GetStreamsNameSignificantEvents(ctx context.Context, name strin return c.Client.Do(req) } -func (c *Client) GetStreamsNameSignificantEventsGenerateWithBody(ctx context.Context, name string, params *GetStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStreamsNameSignificantEventsGenerateRequestWithBody(c.Server, name, params, contentType, body) +func (c *Client) PostStreamsNameSignificantEventsGenerateWithBody(ctx context.Context, name string, params *PostStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostStreamsNameSignificantEventsGenerateRequestWithBody(c.Server, name, params, contentType, body) if err != nil { return nil, err } @@ -73127,8 +77454,8 @@ func (c *Client) GetStreamsNameSignificantEventsGenerateWithBody(ctx context.Con return c.Client.Do(req) } -func (c *Client) GetStreamsNameSignificantEventsGenerate(ctx context.Context, name string, params *GetStreamsNameSignificantEventsGenerateParams, body GetStreamsNameSignificantEventsGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStreamsNameSignificantEventsGenerateRequest(c.Server, name, params, body) +func (c *Client) PostStreamsNameSignificantEventsGenerate(ctx context.Context, name string, params *PostStreamsNameSignificantEventsGenerateParams, body PostStreamsNameSignificantEventsGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostStreamsNameSignificantEventsGenerateRequest(c.Server, name, params, body) if err != nil { return nil, err } @@ -74351,6 +78678,728 @@ func NewGetActionsConnectorTypesRequest(server string, params *GetActionsConnect return req, nil } +// NewPostAgentBuilderA2aAgentidRequest calls the generic PostAgentBuilderA2aAgentid builder with application/json body +func NewPostAgentBuilderA2aAgentidRequest(server string, agentId string, body PostAgentBuilderA2aAgentidJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostAgentBuilderA2aAgentidRequestWithBody(server, agentId, "application/json", bodyReader) +} + +// NewPostAgentBuilderA2aAgentidRequestWithBody generates requests for PostAgentBuilderA2aAgentid with any type of body +func NewPostAgentBuilderA2aAgentidRequestWithBody(server string, agentId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "agentId", runtime.ParamLocationPath, agentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/a2a/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAgentBuilderA2aAgentidJsonRequest generates requests for GetAgentBuilderA2aAgentidJson +func NewGetAgentBuilderA2aAgentidJsonRequest(server string, agentId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "agentId", runtime.ParamLocationPath, agentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/a2a/%s.json", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAgentBuilderAgentsRequest generates requests for GetAgentBuilderAgents +func NewGetAgentBuilderAgentsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/agents") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostAgentBuilderAgentsRequest calls the generic PostAgentBuilderAgents builder with application/json body +func NewPostAgentBuilderAgentsRequest(server string, body PostAgentBuilderAgentsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostAgentBuilderAgentsRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostAgentBuilderAgentsRequestWithBody generates requests for PostAgentBuilderAgents with any type of body +func NewPostAgentBuilderAgentsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/agents") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteAgentBuilderAgentsIdRequest generates requests for DeleteAgentBuilderAgentsId +func NewDeleteAgentBuilderAgentsIdRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/agents/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAgentBuilderAgentsIdRequest generates requests for GetAgentBuilderAgentsId +func NewGetAgentBuilderAgentsIdRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/agents/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPutAgentBuilderAgentsIdRequest calls the generic PutAgentBuilderAgentsId builder with application/json body +func NewPutAgentBuilderAgentsIdRequest(server string, id string, body PutAgentBuilderAgentsIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPutAgentBuilderAgentsIdRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewPutAgentBuilderAgentsIdRequestWithBody generates requests for PutAgentBuilderAgentsId with any type of body +func NewPutAgentBuilderAgentsIdRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/agents/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAgentBuilderConversationsRequest generates requests for GetAgentBuilderConversations +func NewGetAgentBuilderConversationsRequest(server string, params *GetAgentBuilderConversationsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/conversations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.AgentId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "agent_id", runtime.ParamLocationQuery, *params.AgentId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteAgentBuilderConversationsConversationIdRequest generates requests for DeleteAgentBuilderConversationsConversationId +func NewDeleteAgentBuilderConversationsConversationIdRequest(server string, conversationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "conversation_id", runtime.ParamLocationPath, conversationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/conversations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAgentBuilderConversationsConversationIdRequest generates requests for GetAgentBuilderConversationsConversationId +func NewGetAgentBuilderConversationsConversationIdRequest(server string, conversationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "conversation_id", runtime.ParamLocationPath, conversationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/conversations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostAgentBuilderConverseRequest calls the generic PostAgentBuilderConverse builder with application/json body +func NewPostAgentBuilderConverseRequest(server string, body PostAgentBuilderConverseJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostAgentBuilderConverseRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostAgentBuilderConverseRequestWithBody generates requests for PostAgentBuilderConverse with any type of body +func NewPostAgentBuilderConverseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/converse") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewPostAgentBuilderConverseAsyncRequest calls the generic PostAgentBuilderConverseAsync builder with application/json body +func NewPostAgentBuilderConverseAsyncRequest(server string, body PostAgentBuilderConverseAsyncJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostAgentBuilderConverseAsyncRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostAgentBuilderConverseAsyncRequestWithBody generates requests for PostAgentBuilderConverseAsync with any type of body +func NewPostAgentBuilderConverseAsyncRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/converse/async") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewPostAgentBuilderMcpRequest calls the generic PostAgentBuilderMcp builder with application/json body +func NewPostAgentBuilderMcpRequest(server string, body PostAgentBuilderMcpJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostAgentBuilderMcpRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostAgentBuilderMcpRequestWithBody generates requests for PostAgentBuilderMcp with any type of body +func NewPostAgentBuilderMcpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/mcp") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAgentBuilderToolsRequest generates requests for GetAgentBuilderTools +func NewGetAgentBuilderToolsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/tools") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostAgentBuilderToolsRequest calls the generic PostAgentBuilderTools builder with application/json body +func NewPostAgentBuilderToolsRequest(server string, body PostAgentBuilderToolsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostAgentBuilderToolsRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostAgentBuilderToolsRequestWithBody generates requests for PostAgentBuilderTools with any type of body +func NewPostAgentBuilderToolsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/tools") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewPostAgentBuilderToolsExecuteRequest calls the generic PostAgentBuilderToolsExecute builder with application/json body +func NewPostAgentBuilderToolsExecuteRequest(server string, body PostAgentBuilderToolsExecuteJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostAgentBuilderToolsExecuteRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostAgentBuilderToolsExecuteRequestWithBody generates requests for PostAgentBuilderToolsExecute with any type of body +func NewPostAgentBuilderToolsExecuteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/tools/_execute") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteAgentBuilderToolsIdRequest generates requests for DeleteAgentBuilderToolsId +func NewDeleteAgentBuilderToolsIdRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/tools/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAgentBuilderToolsIdRequest generates requests for GetAgentBuilderToolsId +func NewGetAgentBuilderToolsIdRequest(server string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/tools/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPutAgentBuilderToolsToolidRequest calls the generic PutAgentBuilderToolsToolid builder with application/json body +func NewPutAgentBuilderToolsToolidRequest(server string, toolId string, body PutAgentBuilderToolsToolidJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPutAgentBuilderToolsToolidRequestWithBody(server, toolId, "application/json", bodyReader) +} + +// NewPutAgentBuilderToolsToolidRequestWithBody generates requests for PutAgentBuilderToolsToolid with any type of body +func NewPutAgentBuilderToolsToolidRequestWithBody(server string, toolId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "toolId", runtime.ParamLocationPath, toolId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/agent_builder/tools/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + // NewGetAlertingHealthRequest generates requests for GetAlertingHealth func NewGetAlertingHealthRequest(server string) (*http.Request, error) { var err error @@ -76305,6 +81354,862 @@ func NewFindAssetCriticalityRecordsRequest(server string, params *FindAssetCriti return req, nil } +// NewPostAttackDiscoveryBulkRequest calls the generic PostAttackDiscoveryBulk builder with application/json body +func NewPostAttackDiscoveryBulkRequest(server string, body PostAttackDiscoveryBulkJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostAttackDiscoveryBulkRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostAttackDiscoveryBulkRequestWithBody generates requests for PostAttackDiscoveryBulk with any type of body +func NewPostAttackDiscoveryBulkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/_bulk") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAttackDiscoveryFindRequest generates requests for AttackDiscoveryFind +func NewAttackDiscoveryFindRequest(server string, params *AttackDiscoveryFindParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/_find") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.AlertIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alert_ids", runtime.ParamLocationQuery, *params.AlertIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ConnectorNames != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "connector_names", runtime.ParamLocationQuery, *params.ConnectorNames); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.EnableFieldRendering != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enable_field_rendering", runtime.ParamLocationQuery, *params.EnableFieldRendering); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.End != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Ids != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ids", runtime.ParamLocationQuery, *params.Ids); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IncludeUniqueAlertIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_unique_alert_ids", runtime.ParamLocationQuery, *params.IncludeUniqueAlertIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Shared != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shared", runtime.ParamLocationQuery, *params.Shared); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortField != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_field", runtime.ParamLocationQuery, *params.SortField); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Start != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.WithReplacements != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with_replacements", runtime.ParamLocationQuery, *params.WithReplacements); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostAttackDiscoveryGenerateRequest calls the generic PostAttackDiscoveryGenerate builder with application/json body +func NewPostAttackDiscoveryGenerateRequest(server string, body PostAttackDiscoveryGenerateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostAttackDiscoveryGenerateRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostAttackDiscoveryGenerateRequestWithBody generates requests for PostAttackDiscoveryGenerate with any type of body +func NewPostAttackDiscoveryGenerateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/_generate") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAttackDiscoveryGenerationsRequest generates requests for GetAttackDiscoveryGenerations +func NewGetAttackDiscoveryGenerationsRequest(server string, params *GetAttackDiscoveryGenerationsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/generations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.End != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "size", runtime.ParamLocationQuery, params.Size); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Start != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAttackDiscoveryGenerationRequest generates requests for GetAttackDiscoveryGeneration +func NewGetAttackDiscoveryGenerationRequest(server string, executionUuid SecurityAIAssistantAPINonEmptyString, params *GetAttackDiscoveryGenerationParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "execution_uuid", runtime.ParamLocationPath, executionUuid) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/generations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.EnableFieldRendering != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enable_field_rendering", runtime.ParamLocationQuery, *params.EnableFieldRendering); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.WithReplacements != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with_replacements", runtime.ParamLocationQuery, *params.WithReplacements); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostAttackDiscoveryGenerationsDismissRequest generates requests for PostAttackDiscoveryGenerationsDismiss +func NewPostAttackDiscoveryGenerationsDismissRequest(server string, executionUuid SecurityAIAssistantAPINonEmptyString) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "execution_uuid", runtime.ParamLocationPath, executionUuid) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/generations/%s/_dismiss", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateAttackDiscoverySchedulesRequest calls the generic CreateAttackDiscoverySchedules builder with application/json body +func NewCreateAttackDiscoverySchedulesRequest(server string, body CreateAttackDiscoverySchedulesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAttackDiscoverySchedulesRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateAttackDiscoverySchedulesRequestWithBody generates requests for CreateAttackDiscoverySchedules with any type of body +func NewCreateAttackDiscoverySchedulesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/schedules") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewFindAttackDiscoverySchedulesRequest generates requests for FindAttackDiscoverySchedules +func NewFindAttackDiscoverySchedulesRequest(server string, params *FindAttackDiscoverySchedulesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/schedules/_find") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortField != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_field", runtime.ParamLocationQuery, *params.SortField); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortDirection != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_direction", runtime.ParamLocationQuery, *params.SortDirection); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteAttackDiscoverySchedulesRequest generates requests for DeleteAttackDiscoverySchedules +func NewDeleteAttackDiscoverySchedulesRequest(server string, id SecurityAIAssistantAPINonEmptyString) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/schedules/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAttackDiscoverySchedulesRequest generates requests for GetAttackDiscoverySchedules +func NewGetAttackDiscoverySchedulesRequest(server string, id SecurityAIAssistantAPINonEmptyString) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/schedules/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateAttackDiscoverySchedulesRequest calls the generic UpdateAttackDiscoverySchedules builder with application/json body +func NewUpdateAttackDiscoverySchedulesRequest(server string, id SecurityAIAssistantAPINonEmptyString, body UpdateAttackDiscoverySchedulesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateAttackDiscoverySchedulesRequestWithBody(server, id, "application/json", bodyReader) +} + +// NewUpdateAttackDiscoverySchedulesRequestWithBody generates requests for UpdateAttackDiscoverySchedules with any type of body +func NewUpdateAttackDiscoverySchedulesRequestWithBody(server string, id SecurityAIAssistantAPINonEmptyString, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/schedules/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDisableAttackDiscoverySchedulesRequest generates requests for DisableAttackDiscoverySchedules +func NewDisableAttackDiscoverySchedulesRequest(server string, id SecurityAIAssistantAPINonEmptyString) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/schedules/%s/_disable", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewEnableAttackDiscoverySchedulesRequest generates requests for EnableAttackDiscoverySchedules +func NewEnableAttackDiscoverySchedulesRequest(server string, id SecurityAIAssistantAPINonEmptyString) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/attack_discovery/schedules/%s/_enable", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + // NewDeleteCaseDefaultSpaceRequest generates requests for DeleteCaseDefaultSpace func NewDeleteCaseDefaultSpaceRequest(server string, params *DeleteCaseDefaultSpaceParams) (*http.Request, error) { var err error @@ -79551,6 +85456,46 @@ func NewEndpointGetActionsListRequest(server string, params *EndpointGetActionsL return req, nil } +// NewCancelActionRequest calls the generic CancelAction builder with application/json body +func NewCancelActionRequest(server string, body CancelActionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCancelActionRequestWithBody(server, "application/json", bodyReader) +} + +// NewCancelActionRequestWithBody generates requests for CancelAction with any type of body +func NewCancelActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/endpoint/action/cancel") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + // NewEndpointExecuteActionRequest calls the generic EndpointExecuteAction builder with application/json body func NewEndpointExecuteActionRequest(server string, body EndpointExecuteActionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader @@ -81624,6 +87569,75 @@ func NewListEntitiesRequest(server string, params *ListEntitiesParams) (*http.Re return req, nil } +// NewUpsertEntityRequest calls the generic UpsertEntity builder with application/json body +func NewUpsertEntityRequest(server string, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, body UpsertEntityJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpsertEntityRequestWithBody(server, entityType, params, "application/json", bodyReader) +} + +// NewUpsertEntityRequestWithBody generates requests for UpsertEntity with any type of body +func NewUpsertEntityRequestWithBody(server string, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "entityType", runtime.ParamLocationPath, entityType) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/entity_store/entities/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Force != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + // NewGetEntityStoreStatusRequest generates requests for GetEntityStoreStatus func NewGetEntityStoreStatusRequest(server string, params *GetEntityStoreStatusParams) (*http.Request, error) { var err error @@ -85335,6 +91349,248 @@ func NewGetFleetCheckPermissionsRequest(server string, params *GetFleetCheckPerm return req, nil } +// NewGetFleetCloudConnectorsRequest generates requests for GetFleetCloudConnectors +func NewGetFleetCloudConnectorsRequest(server string, params *GetFleetCloudConnectorsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/fleet/cloud_connectors") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostFleetCloudConnectorsRequest calls the generic PostFleetCloudConnectors builder with application/json body +func NewPostFleetCloudConnectorsRequest(server string, body PostFleetCloudConnectorsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostFleetCloudConnectorsRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostFleetCloudConnectorsRequestWithBody generates requests for PostFleetCloudConnectors with any type of body +func NewPostFleetCloudConnectorsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/fleet/cloud_connectors") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteFleetCloudConnectorsCloudconnectoridRequest generates requests for DeleteFleetCloudConnectorsCloudconnectorid +func NewDeleteFleetCloudConnectorsCloudconnectoridRequest(server string, cloudConnectorId string, params *DeleteFleetCloudConnectorsCloudconnectoridParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cloudConnectorId", runtime.ParamLocationPath, cloudConnectorId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/fleet/cloud_connectors/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Force != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetFleetCloudConnectorsCloudconnectoridRequest generates requests for GetFleetCloudConnectorsCloudconnectorid +func NewGetFleetCloudConnectorsCloudconnectoridRequest(server string, cloudConnectorId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cloudConnectorId", runtime.ParamLocationPath, cloudConnectorId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/fleet/cloud_connectors/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPutFleetCloudConnectorsCloudconnectoridRequest calls the generic PutFleetCloudConnectorsCloudconnectorid builder with application/json body +func NewPutFleetCloudConnectorsCloudconnectoridRequest(server string, cloudConnectorId string, body PutFleetCloudConnectorsCloudconnectoridJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPutFleetCloudConnectorsCloudconnectoridRequestWithBody(server, cloudConnectorId, "application/json", bodyReader) +} + +// NewPutFleetCloudConnectorsCloudconnectoridRequestWithBody generates requests for PutFleetCloudConnectorsCloudconnectorid with any type of body +func NewPutFleetCloudConnectorsCloudconnectoridRequestWithBody(server string, cloudConnectorId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cloudConnectorId", runtime.ParamLocationPath, cloudConnectorId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/fleet/cloud_connectors/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + // NewGetFleetDataStreamsRequest generates requests for GetFleetDataStreams func NewGetFleetDataStreamsRequest(server string) (*http.Request, error) { var err error @@ -86720,7 +92976,50 @@ func NewPutFleetEpmPackagesPkgnamePkgversionRequestWithBody(server string, pkgNa return nil, err } - operationPath := fmt.Sprintf("/api/fleet/epm/packages/%s/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/fleet/epm/packages/%s/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssetsRequest generates requests for DeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssets +func NewDeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssetsRequest(server string, pkgName string, pkgVersion string, params *DeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssetsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "pkgName", runtime.ParamLocationPath, pkgName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "pkgVersion", runtime.ParamLocationPath, pkgVersion) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/fleet/epm/packages/%s/%s/datastream_assets", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -86730,18 +93029,34 @@ func NewPutFleetEpmPackagesPkgnamePkgversionRequestWithBody(server string, pkgNa return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "packagePolicyId", runtime.ParamLocationQuery, params.PackagePolicyId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssetsRequest generates requests for DeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssets -func NewDeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssetsRequest(server string, pkgName string, pkgVersion string, params *DeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssetsParams) (*http.Request, error) { +// NewDeleteFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequest generates requests for DeleteFleetEpmPackagesPkgnamePkgversionKibanaAssets +func NewDeleteFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequest(server string, pkgName string, pkgVersion string) (*http.Request, error) { var err error var pathParam0 string @@ -86763,7 +93078,7 @@ func NewDeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssetsRequest(server st return nil, err } - operationPath := fmt.Sprintf("/api/fleet/epm/packages/%s/%s/datastream_assets", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/fleet/epm/packages/%s/%s/kibana_assets", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -86773,24 +93088,6 @@ func NewDeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssetsRequest(server st return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "packagePolicyId", runtime.ParamLocationQuery, params.PackagePolicyId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err @@ -86799,8 +93096,19 @@ func NewDeleteFleetEpmPackagesPkgnamePkgversionDatastreamAssetsRequest(server st return req, nil } -// NewDeleteFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequest generates requests for DeleteFleetEpmPackagesPkgnamePkgversionKibanaAssets -func NewDeleteFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequest(server string, pkgName string, pkgVersion string) (*http.Request, error) { +// NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequest calls the generic PostFleetEpmPackagesPkgnamePkgversionKibanaAssets builder with application/json body +func NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequest(server string, pkgName string, pkgVersion string, body PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequestWithBody(server, pkgName, pkgVersion, "application/json", bodyReader) +} + +// NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequestWithBody generates requests for PostFleetEpmPackagesPkgnamePkgversionKibanaAssets with any type of body +func NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequestWithBody(server string, pkgName string, pkgVersion string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -86832,27 +93140,29 @@ func NewDeleteFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequest(server string return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequest calls the generic PostFleetEpmPackagesPkgnamePkgversionKibanaAssets builder with application/json body -func NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequest(server string, pkgName string, pkgVersion string, body PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsJSONRequestBody) (*http.Request, error) { +// NewPostFleetEpmPackagesPkgnamePkgversionRuleAssetsRequest calls the generic PostFleetEpmPackagesPkgnamePkgversionRuleAssets builder with application/json body +func NewPostFleetEpmPackagesPkgnamePkgversionRuleAssetsRequest(server string, pkgName string, pkgVersion string, body PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequestWithBody(server, pkgName, pkgVersion, "application/json", bodyReader) + return NewPostFleetEpmPackagesPkgnamePkgversionRuleAssetsRequestWithBody(server, pkgName, pkgVersion, "application/json", bodyReader) } -// NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequestWithBody generates requests for PostFleetEpmPackagesPkgnamePkgversionKibanaAssets with any type of body -func NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequestWithBody(server string, pkgName string, pkgVersion string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostFleetEpmPackagesPkgnamePkgversionRuleAssetsRequestWithBody generates requests for PostFleetEpmPackagesPkgnamePkgversionRuleAssets with any type of body +func NewPostFleetEpmPackagesPkgnamePkgversionRuleAssetsRequestWithBody(server string, pkgName string, pkgVersion string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -86874,7 +93184,7 @@ func NewPostFleetEpmPackagesPkgnamePkgversionKibanaAssetsRequestWithBody(server return nil, err } - operationPath := fmt.Sprintf("/api/fleet/epm/packages/%s/%s/kibana_assets", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/fleet/epm/packages/%s/%s/rule_assets", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -90197,6 +96507,119 @@ func NewGetLogstashPipelinesRequest(server string) (*http.Request, error) { return req, nil } +// NewGetMaintenanceWindowFindRequest generates requests for GetMaintenanceWindowFind +func NewGetMaintenanceWindowFindRequest(server string, params *GetMaintenanceWindowFindParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/maintenance_window/_find") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Title != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "title", runtime.ParamLocationQuery, *params.Title); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.CreatedBy != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_by", runtime.ParamLocationQuery, *params.CreatedBy); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + // NewPostMaintenanceWindowIdArchiveRequest generates requests for PostMaintenanceWindowIdArchive func NewPostMaintenanceWindowIdArchiveRequest(server string, id string) (*http.Request, error) { var err error @@ -95964,19 +102387,19 @@ func NewGetStreamsNameSignificantEventsRequestWithBody(server string, name strin return req, nil } -// NewGetStreamsNameSignificantEventsGenerateRequest calls the generic GetStreamsNameSignificantEventsGenerate builder with application/json body -func NewGetStreamsNameSignificantEventsGenerateRequest(server string, name string, params *GetStreamsNameSignificantEventsGenerateParams, body GetStreamsNameSignificantEventsGenerateJSONRequestBody) (*http.Request, error) { +// NewPostStreamsNameSignificantEventsGenerateRequest calls the generic PostStreamsNameSignificantEventsGenerate builder with application/json body +func NewPostStreamsNameSignificantEventsGenerateRequest(server string, name string, params *PostStreamsNameSignificantEventsGenerateParams, body PostStreamsNameSignificantEventsGenerateJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewGetStreamsNameSignificantEventsGenerateRequestWithBody(server, name, params, "application/json", bodyReader) + return NewPostStreamsNameSignificantEventsGenerateRequestWithBody(server, name, params, "application/json", bodyReader) } -// NewGetStreamsNameSignificantEventsGenerateRequestWithBody generates requests for GetStreamsNameSignificantEventsGenerate with any type of body -func NewGetStreamsNameSignificantEventsGenerateRequestWithBody(server string, name string, params *GetStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostStreamsNameSignificantEventsGenerateRequestWithBody generates requests for PostStreamsNameSignificantEventsGenerate with any type of body +func NewPostStreamsNameSignificantEventsGenerateRequestWithBody(server string, name string, params *PostStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -96032,42 +102455,34 @@ func NewGetStreamsNameSignificantEventsGenerateRequestWithBody(server string, na } - if params.ShortLookback != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "shortLookback", runtime.ParamLocationQuery, *params.ShortLookback); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "from", runtime.ParamLocationQuery, params.From); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) } } - } - if params.LongLookback != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "longLookback", runtime.ParamLocationQuery, *params.LongLookback); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) } } - } queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("GET", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -99348,6 +105763,81 @@ type ClientWithResponsesInterface interface { // GetActionsConnectorTypesWithResponse request GetActionsConnectorTypesWithResponse(ctx context.Context, params *GetActionsConnectorTypesParams, reqEditors ...RequestEditorFn) (*GetActionsConnectorTypesResponse, error) + // PostAgentBuilderA2aAgentidWithBodyWithResponse request with any body + PostAgentBuilderA2aAgentidWithBodyWithResponse(ctx context.Context, agentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderA2aAgentidResponse, error) + + PostAgentBuilderA2aAgentidWithResponse(ctx context.Context, agentId string, body PostAgentBuilderA2aAgentidJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderA2aAgentidResponse, error) + + // GetAgentBuilderA2aAgentidJsonWithResponse request + GetAgentBuilderA2aAgentidJsonWithResponse(ctx context.Context, agentId string, reqEditors ...RequestEditorFn) (*GetAgentBuilderA2aAgentidJsonResponse, error) + + // GetAgentBuilderAgentsWithResponse request + GetAgentBuilderAgentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAgentBuilderAgentsResponse, error) + + // PostAgentBuilderAgentsWithBodyWithResponse request with any body + PostAgentBuilderAgentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderAgentsResponse, error) + + PostAgentBuilderAgentsWithResponse(ctx context.Context, body PostAgentBuilderAgentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderAgentsResponse, error) + + // DeleteAgentBuilderAgentsIdWithResponse request + DeleteAgentBuilderAgentsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAgentBuilderAgentsIdResponse, error) + + // GetAgentBuilderAgentsIdWithResponse request + GetAgentBuilderAgentsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAgentBuilderAgentsIdResponse, error) + + // PutAgentBuilderAgentsIdWithBodyWithResponse request with any body + PutAgentBuilderAgentsIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAgentBuilderAgentsIdResponse, error) + + PutAgentBuilderAgentsIdWithResponse(ctx context.Context, id string, body PutAgentBuilderAgentsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAgentBuilderAgentsIdResponse, error) + + // GetAgentBuilderConversationsWithResponse request + GetAgentBuilderConversationsWithResponse(ctx context.Context, params *GetAgentBuilderConversationsParams, reqEditors ...RequestEditorFn) (*GetAgentBuilderConversationsResponse, error) + + // DeleteAgentBuilderConversationsConversationIdWithResponse request + DeleteAgentBuilderConversationsConversationIdWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*DeleteAgentBuilderConversationsConversationIdResponse, error) + + // GetAgentBuilderConversationsConversationIdWithResponse request + GetAgentBuilderConversationsConversationIdWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*GetAgentBuilderConversationsConversationIdResponse, error) + + // PostAgentBuilderConverseWithBodyWithResponse request with any body + PostAgentBuilderConverseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderConverseResponse, error) + + PostAgentBuilderConverseWithResponse(ctx context.Context, body PostAgentBuilderConverseJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderConverseResponse, error) + + // PostAgentBuilderConverseAsyncWithBodyWithResponse request with any body + PostAgentBuilderConverseAsyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderConverseAsyncResponse, error) + + PostAgentBuilderConverseAsyncWithResponse(ctx context.Context, body PostAgentBuilderConverseAsyncJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderConverseAsyncResponse, error) + + // PostAgentBuilderMcpWithBodyWithResponse request with any body + PostAgentBuilderMcpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderMcpResponse, error) + + PostAgentBuilderMcpWithResponse(ctx context.Context, body PostAgentBuilderMcpJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderMcpResponse, error) + + // GetAgentBuilderToolsWithResponse request + GetAgentBuilderToolsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAgentBuilderToolsResponse, error) + + // PostAgentBuilderToolsWithBodyWithResponse request with any body + PostAgentBuilderToolsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderToolsResponse, error) + + PostAgentBuilderToolsWithResponse(ctx context.Context, body PostAgentBuilderToolsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderToolsResponse, error) + + // PostAgentBuilderToolsExecuteWithBodyWithResponse request with any body + PostAgentBuilderToolsExecuteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderToolsExecuteResponse, error) + + PostAgentBuilderToolsExecuteWithResponse(ctx context.Context, body PostAgentBuilderToolsExecuteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderToolsExecuteResponse, error) + + // DeleteAgentBuilderToolsIdWithResponse request + DeleteAgentBuilderToolsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAgentBuilderToolsIdResponse, error) + + // GetAgentBuilderToolsIdWithResponse request + GetAgentBuilderToolsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAgentBuilderToolsIdResponse, error) + + // PutAgentBuilderToolsToolidWithBodyWithResponse request with any body + PutAgentBuilderToolsToolidWithBodyWithResponse(ctx context.Context, toolId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAgentBuilderToolsToolidResponse, error) + + PutAgentBuilderToolsToolidWithResponse(ctx context.Context, toolId string, body PutAgentBuilderToolsToolidJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAgentBuilderToolsToolidResponse, error) + // GetAlertingHealthWithResponse request GetAlertingHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertingHealthResponse, error) @@ -99477,6 +105967,53 @@ type ClientWithResponsesInterface interface { // FindAssetCriticalityRecordsWithResponse request FindAssetCriticalityRecordsWithResponse(ctx context.Context, params *FindAssetCriticalityRecordsParams, reqEditors ...RequestEditorFn) (*FindAssetCriticalityRecordsResponse, error) + // PostAttackDiscoveryBulkWithBodyWithResponse request with any body + PostAttackDiscoveryBulkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryBulkResponse, error) + + PostAttackDiscoveryBulkWithResponse(ctx context.Context, body PostAttackDiscoveryBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryBulkResponse, error) + + // AttackDiscoveryFindWithResponse request + AttackDiscoveryFindWithResponse(ctx context.Context, params *AttackDiscoveryFindParams, reqEditors ...RequestEditorFn) (*AttackDiscoveryFindResponse, error) + + // PostAttackDiscoveryGenerateWithBodyWithResponse request with any body + PostAttackDiscoveryGenerateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryGenerateResponse, error) + + PostAttackDiscoveryGenerateWithResponse(ctx context.Context, body PostAttackDiscoveryGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryGenerateResponse, error) + + // GetAttackDiscoveryGenerationsWithResponse request + GetAttackDiscoveryGenerationsWithResponse(ctx context.Context, params *GetAttackDiscoveryGenerationsParams, reqEditors ...RequestEditorFn) (*GetAttackDiscoveryGenerationsResponse, error) + + // GetAttackDiscoveryGenerationWithResponse request + GetAttackDiscoveryGenerationWithResponse(ctx context.Context, executionUuid SecurityAIAssistantAPINonEmptyString, params *GetAttackDiscoveryGenerationParams, reqEditors ...RequestEditorFn) (*GetAttackDiscoveryGenerationResponse, error) + + // PostAttackDiscoveryGenerationsDismissWithResponse request + PostAttackDiscoveryGenerationsDismissWithResponse(ctx context.Context, executionUuid SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryGenerationsDismissResponse, error) + + // CreateAttackDiscoverySchedulesWithBodyWithResponse request with any body + CreateAttackDiscoverySchedulesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAttackDiscoverySchedulesResponse, error) + + CreateAttackDiscoverySchedulesWithResponse(ctx context.Context, body CreateAttackDiscoverySchedulesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAttackDiscoverySchedulesResponse, error) + + // FindAttackDiscoverySchedulesWithResponse request + FindAttackDiscoverySchedulesWithResponse(ctx context.Context, params *FindAttackDiscoverySchedulesParams, reqEditors ...RequestEditorFn) (*FindAttackDiscoverySchedulesResponse, error) + + // DeleteAttackDiscoverySchedulesWithResponse request + DeleteAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*DeleteAttackDiscoverySchedulesResponse, error) + + // GetAttackDiscoverySchedulesWithResponse request + GetAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*GetAttackDiscoverySchedulesResponse, error) + + // UpdateAttackDiscoverySchedulesWithBodyWithResponse request with any body + UpdateAttackDiscoverySchedulesWithBodyWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAttackDiscoverySchedulesResponse, error) + + UpdateAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, body UpdateAttackDiscoverySchedulesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAttackDiscoverySchedulesResponse, error) + + // DisableAttackDiscoverySchedulesWithResponse request + DisableAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*DisableAttackDiscoverySchedulesResponse, error) + + // EnableAttackDiscoverySchedulesWithResponse request + EnableAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*EnableAttackDiscoverySchedulesResponse, error) + // DeleteCaseDefaultSpaceWithResponse request DeleteCaseDefaultSpaceWithResponse(ctx context.Context, params *DeleteCaseDefaultSpaceParams, reqEditors ...RequestEditorFn) (*DeleteCaseDefaultSpaceResponse, error) @@ -99713,6 +106250,11 @@ type ClientWithResponsesInterface interface { // EndpointGetActionsListWithResponse request EndpointGetActionsListWithResponse(ctx context.Context, params *EndpointGetActionsListParams, reqEditors ...RequestEditorFn) (*EndpointGetActionsListResponse, error) + // CancelActionWithBodyWithResponse request with any body + CancelActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelActionResponse, error) + + CancelActionWithResponse(ctx context.Context, body CancelActionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelActionResponse, error) + // EndpointExecuteActionWithBodyWithResponse request with any body EndpointExecuteActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EndpointExecuteActionResponse, error) @@ -99889,6 +106431,11 @@ type ClientWithResponsesInterface interface { // ListEntitiesWithResponse request ListEntitiesWithResponse(ctx context.Context, params *ListEntitiesParams, reqEditors ...RequestEditorFn) (*ListEntitiesResponse, error) + // UpsertEntityWithBodyWithResponse request with any body + UpsertEntityWithBodyWithResponse(ctx context.Context, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertEntityResponse, error) + + UpsertEntityWithResponse(ctx context.Context, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, body UpsertEntityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertEntityResponse, error) + // GetEntityStoreStatusWithResponse request GetEntityStoreStatusWithResponse(ctx context.Context, params *GetEntityStoreStatusParams, reqEditors ...RequestEditorFn) (*GetEntityStoreStatusResponse, error) @@ -100122,6 +106669,25 @@ type ClientWithResponsesInterface interface { // GetFleetCheckPermissionsWithResponse request GetFleetCheckPermissionsWithResponse(ctx context.Context, params *GetFleetCheckPermissionsParams, reqEditors ...RequestEditorFn) (*GetFleetCheckPermissionsResponse, error) + // GetFleetCloudConnectorsWithResponse request + GetFleetCloudConnectorsWithResponse(ctx context.Context, params *GetFleetCloudConnectorsParams, reqEditors ...RequestEditorFn) (*GetFleetCloudConnectorsResponse, error) + + // PostFleetCloudConnectorsWithBodyWithResponse request with any body + PostFleetCloudConnectorsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFleetCloudConnectorsResponse, error) + + PostFleetCloudConnectorsWithResponse(ctx context.Context, body PostFleetCloudConnectorsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostFleetCloudConnectorsResponse, error) + + // DeleteFleetCloudConnectorsCloudconnectoridWithResponse request + DeleteFleetCloudConnectorsCloudconnectoridWithResponse(ctx context.Context, cloudConnectorId string, params *DeleteFleetCloudConnectorsCloudconnectoridParams, reqEditors ...RequestEditorFn) (*DeleteFleetCloudConnectorsCloudconnectoridResponse, error) + + // GetFleetCloudConnectorsCloudconnectoridWithResponse request + GetFleetCloudConnectorsCloudconnectoridWithResponse(ctx context.Context, cloudConnectorId string, reqEditors ...RequestEditorFn) (*GetFleetCloudConnectorsCloudconnectoridResponse, error) + + // PutFleetCloudConnectorsCloudconnectoridWithBodyWithResponse request with any body + PutFleetCloudConnectorsCloudconnectoridWithBodyWithResponse(ctx context.Context, cloudConnectorId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutFleetCloudConnectorsCloudconnectoridResponse, error) + + PutFleetCloudConnectorsCloudconnectoridWithResponse(ctx context.Context, cloudConnectorId string, body PutFleetCloudConnectorsCloudconnectoridJSONRequestBody, reqEditors ...RequestEditorFn) (*PutFleetCloudConnectorsCloudconnectoridResponse, error) + // GetFleetDataStreamsWithResponse request GetFleetDataStreamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFleetDataStreamsResponse, error) @@ -100223,6 +106789,11 @@ type ClientWithResponsesInterface interface { PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsWithResponse(ctx context.Context, pkgName string, pkgVersion string, body PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsResponse, error) + // PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithBodyWithResponse request with any body + PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse, error) + + PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithResponse(ctx context.Context, pkgName string, pkgVersion string, body PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse, error) + // PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeWithBodyWithResponse request with any body PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeResponse, error) @@ -100469,6 +107040,9 @@ type ClientWithResponsesInterface interface { // GetLogstashPipelinesWithResponse request GetLogstashPipelinesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogstashPipelinesResponse, error) + // GetMaintenanceWindowFindWithResponse request + GetMaintenanceWindowFindWithResponse(ctx context.Context, params *GetMaintenanceWindowFindParams, reqEditors ...RequestEditorFn) (*GetMaintenanceWindowFindResponse, error) + // PostMaintenanceWindowIdArchiveWithResponse request PostMaintenanceWindowIdArchiveWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PostMaintenanceWindowIdArchiveResponse, error) @@ -100919,10 +107493,10 @@ type ClientWithResponsesInterface interface { GetStreamsNameSignificantEventsWithResponse(ctx context.Context, name string, params *GetStreamsNameSignificantEventsParams, body GetStreamsNameSignificantEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStreamsNameSignificantEventsResponse, error) - // GetStreamsNameSignificantEventsGenerateWithBodyWithResponse request with any body - GetStreamsNameSignificantEventsGenerateWithBodyWithResponse(ctx context.Context, name string, params *GetStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStreamsNameSignificantEventsGenerateResponse, error) + // PostStreamsNameSignificantEventsGenerateWithBodyWithResponse request with any body + PostStreamsNameSignificantEventsGenerateWithBodyWithResponse(ctx context.Context, name string, params *PostStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStreamsNameSignificantEventsGenerateResponse, error) - GetStreamsNameSignificantEventsGenerateWithResponse(ctx context.Context, name string, params *GetStreamsNameSignificantEventsGenerateParams, body GetStreamsNameSignificantEventsGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStreamsNameSignificantEventsGenerateResponse, error) + PostStreamsNameSignificantEventsGenerateWithResponse(ctx context.Context, name string, params *PostStreamsNameSignificantEventsGenerateParams, body PostStreamsNameSignificantEventsGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostStreamsNameSignificantEventsGenerateResponse, error) // PostStreamsNameSignificantEventsPreviewWithBodyWithResponse request with any body PostStreamsNameSignificantEventsPreviewWithBodyWithResponse(ctx context.Context, name string, params *PostStreamsNameSignificantEventsPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStreamsNameSignificantEventsPreviewResponse, error) @@ -101240,6 +107814,405 @@ func (r GetActionsConnectorTypesResponse) StatusCode() int { return 0 } +type PostAgentBuilderA2aAgentidResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostAgentBuilderA2aAgentidResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAgentBuilderA2aAgentidResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAgentBuilderA2aAgentidJsonResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetAgentBuilderA2aAgentidJsonResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentBuilderA2aAgentidJsonResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAgentBuilderAgentsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetAgentBuilderAgentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentBuilderAgentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostAgentBuilderAgentsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostAgentBuilderAgentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAgentBuilderAgentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAgentBuilderAgentsIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteAgentBuilderAgentsIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAgentBuilderAgentsIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAgentBuilderAgentsIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetAgentBuilderAgentsIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentBuilderAgentsIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutAgentBuilderAgentsIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PutAgentBuilderAgentsIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutAgentBuilderAgentsIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAgentBuilderConversationsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetAgentBuilderConversationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentBuilderConversationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAgentBuilderConversationsConversationIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteAgentBuilderConversationsConversationIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAgentBuilderConversationsConversationIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAgentBuilderConversationsConversationIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetAgentBuilderConversationsConversationIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentBuilderConversationsConversationIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostAgentBuilderConverseResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostAgentBuilderConverseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAgentBuilderConverseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostAgentBuilderConverseAsyncResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostAgentBuilderConverseAsyncResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAgentBuilderConverseAsyncResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostAgentBuilderMcpResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostAgentBuilderMcpResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAgentBuilderMcpResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAgentBuilderToolsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetAgentBuilderToolsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentBuilderToolsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostAgentBuilderToolsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostAgentBuilderToolsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAgentBuilderToolsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostAgentBuilderToolsExecuteResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostAgentBuilderToolsExecuteResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAgentBuilderToolsExecuteResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAgentBuilderToolsIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteAgentBuilderToolsIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAgentBuilderToolsIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAgentBuilderToolsIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetAgentBuilderToolsIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentBuilderToolsIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutAgentBuilderToolsToolidResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PutAgentBuilderToolsToolidResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutAgentBuilderToolsToolidResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type GetAlertingHealthResponse struct { Body []byte HTTPResponse *http.Response @@ -103586,6 +110559,460 @@ func (r FindAssetCriticalityRecordsResponse) StatusCode() int { return 0 } +type PostAttackDiscoveryBulkResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Data Array of updated Attack discovery alert objects. Each item includes the applied modifications from the bulk update request. + Data []SecurityAIAssistantAPIAttackDiscoveryApiAlert `json:"data"` + } + JSON400 *struct { + // Error Error type + Error string `json:"error"` + + // Message Human-readable error message describing what went wrong with the bulk update request + Message string `json:"message"` + + // StatusCode HTTP status code + StatusCode float32 `json:"status_code"` + } +} + +// Status returns HTTPResponse.Status +func (r PostAttackDiscoveryBulkResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAttackDiscoveryBulkResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AttackDiscoveryFindResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // ConnectorNames List of human readable connector names that are present in the matched Attack discoveries. Useful for building client filters or summaries. + ConnectorNames []string `json:"connector_names"` + + // Data Array of matched Attack discovery objects. Each item follows the `AttackDiscoveryApiAlert` schema. + Data []SecurityAIAssistantAPIAttackDiscoveryApiAlert `json:"data"` + + // Page Current page number of the paginated result set. + Page int `json:"page"` + + // PerPage Number of items requested per page. + PerPage int `json:"per_page"` + + // Total Total number of Attack discoveries matching the query (across all pages). + Total int `json:"total"` + + // UniqueAlertIds List of unique alert IDs aggregated from the matched Attack discoveries. Only present if `include_unique_alert_ids=true` in the request. + UniqueAlertIds *[]string `json:"unique_alert_ids,omitempty"` + + // UniqueAlertIdsCount Number of unique alert IDs across all matched Attack discoveries. Only present if `include_unique_alert_ids=true` in the request. + UniqueAlertIdsCount int `json:"unique_alert_ids_count"` + } + JSON400 *struct { + // Error Error type + Error *string `json:"error,omitempty"` + + // Message Human-readable error message + Message *string `json:"message,omitempty"` + + // StatusCode HTTP status code + StatusCode *float32 `json:"status_code,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r AttackDiscoveryFindResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AttackDiscoveryFindResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostAttackDiscoveryGenerateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // ExecutionUuid A string that does not contain only whitespace characters. + ExecutionUuid SecurityAIAssistantAPINonEmptyString `json:"execution_uuid"` + } + JSON400 *struct { + // Error Error type + Error string `json:"error"` + + // Message Human-readable error message describing what went wrong + Message string `json:"message"` + + // StatusCode HTTP status code + StatusCode float32 `json:"status_code"` + } +} + +// Status returns HTTPResponse.Status +func (r PostAttackDiscoveryGenerateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAttackDiscoveryGenerateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAttackDiscoveryGenerationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Generations List of attack discovery generations + Generations []SecurityAIAssistantAPIAttackDiscoveryGeneration `json:"generations"` + } + JSON400 *struct { + // Error Error type + Error *string `json:"error,omitempty"` + + // Message Human-readable error message + Message *string `json:"message,omitempty"` + + // StatusCode HTTP status code + StatusCode *float32 `json:"status_code,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r GetAttackDiscoveryGenerationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAttackDiscoveryGenerationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAttackDiscoveryGenerationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Data Array of Attack discoveries generated during this execution. + Data []SecurityAIAssistantAPIAttackDiscoveryApiAlert `json:"data"` + Generation *SecurityAIAssistantAPIAttackDiscoveryGeneration `json:"generation,omitempty"` + } + JSON400 *struct { + // Error Error type + Error string `json:"error"` + + // Message Human-readable error message describing what went wrong with the request + Message string `json:"message"` + + // StatusCode HTTP status code + StatusCode float32 `json:"status_code"` + } +} + +// Status returns HTTPResponse.Status +func (r GetAttackDiscoveryGenerationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAttackDiscoveryGenerationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostAttackDiscoveryGenerationsDismissResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // AlertsContextCount The number of alerts that were sent as context to the LLM for this generation. + AlertsContextCount *float32 `json:"alerts_context_count,omitempty"` + + // ConnectorId The unique identifier of the connector used to generate the attack discoveries. + ConnectorId string `json:"connector_id"` + + // ConnectorStats Statistical information about the connector's performance for this user, providing insights into usage patterns and success rates. + ConnectorStats *struct { + // AverageSuccessfulDurationNanoseconds The average duration in nanoseconds for successful generations using this connector by the current user. + AverageSuccessfulDurationNanoseconds *float32 `json:"average_successful_duration_nanoseconds,omitempty"` + + // SuccessfulGenerations The total number of Attack discoveries successfully created for this generation + SuccessfulGenerations *float32 `json:"successful_generations,omitempty"` + } `json:"connector_stats,omitempty"` + + // Discoveries The number of attack discoveries that were generated during this execution. + Discoveries float32 `json:"discoveries"` + + // End The timestamp when the generation process completed, in ISO 8601 format. This field may be absent for generations that haven't finished. + End *string `json:"end,omitempty"` + + // ExecutionUuid The unique identifier for this attack discovery generation execution. This UUID can be used to reference this specific generation in other API calls. + ExecutionUuid string `json:"execution_uuid"` + + // LoadingMessage A human-readable message describing the current state or progress of the generation process. Provides context about what the AI is analyzing. + LoadingMessage string `json:"loading_message"` + + // Reason Additional context or reasoning provided when a generation fails or encounters issues. This field helps diagnose problems with the generation process. + Reason *string `json:"reason,omitempty"` + + // Start The timestamp when the generation process began, in ISO 8601 format. This marks the beginning of the AI analysis. + Start string `json:"start"` + + // Status The current status of the attack discovery generation. After dismissing, this will be set to "dismissed". + Status PostAttackDiscoveryGenerationsDismiss200Status `json:"status"` + } + JSON400 *struct { + // Error Error type or category + Error string `json:"error"` + + // Message Human-readable error message describing what went wrong with the request. + Message string `json:"message"` + + // StatusCode HTTP status code indicating the type of client error + StatusCode float32 `json:"status_code"` + } +} +type PostAttackDiscoveryGenerationsDismiss200Status string + +// Status returns HTTPResponse.Status +func (r PostAttackDiscoveryGenerationsDismissResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAttackDiscoveryGenerationsDismissResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAttackDiscoverySchedulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SecurityAIAssistantAPIAttackDiscoveryApiSchedule + JSON400 *SecurityAIAssistantAPIAttackDiscoveryGenericError +} + +// Status returns HTTPResponse.Status +func (r CreateAttackDiscoverySchedulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAttackDiscoverySchedulesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type FindAttackDiscoverySchedulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Data Array of matched Attack discovery schedule objects. + Data []SecurityAIAssistantAPIAttackDiscoveryApiSchedule `json:"data"` + + // Page Current page number of the paginated result set. + Page float32 `json:"page"` + + // PerPage Number of items requested per page. + PerPage float32 `json:"per_page"` + + // Total Total number of Attack discovery schedules matching the query (across all pages). + Total float32 `json:"total"` + } + JSON400 *struct { + // Error Error type + Error *string `json:"error,omitempty"` + + // Message Human-readable error message + Message *string `json:"message,omitempty"` + + // StatusCode HTTP status code + StatusCode *float32 `json:"status_code,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r FindAttackDiscoverySchedulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r FindAttackDiscoverySchedulesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAttackDiscoverySchedulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Id A string that does not contain only whitespace characters. + Id SecurityAIAssistantAPINonEmptyString `json:"id"` + } + JSON400 *SecurityAIAssistantAPIAttackDiscoveryGenericError +} + +// Status returns HTTPResponse.Status +func (r DeleteAttackDiscoverySchedulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAttackDiscoverySchedulesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAttackDiscoverySchedulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SecurityAIAssistantAPIAttackDiscoveryApiSchedule + JSON400 *SecurityAIAssistantAPIAttackDiscoveryGenericError +} + +// Status returns HTTPResponse.Status +func (r GetAttackDiscoverySchedulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAttackDiscoverySchedulesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateAttackDiscoverySchedulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SecurityAIAssistantAPIAttackDiscoveryApiSchedule + JSON400 *SecurityAIAssistantAPIAttackDiscoveryGenericError +} + +// Status returns HTTPResponse.Status +func (r UpdateAttackDiscoverySchedulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateAttackDiscoverySchedulesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DisableAttackDiscoverySchedulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Id A string that does not contain only whitespace characters. + Id SecurityAIAssistantAPINonEmptyString `json:"id"` + } + JSON400 *SecurityAIAssistantAPIAttackDiscoveryGenericError +} + +// Status returns HTTPResponse.Status +func (r DisableAttackDiscoverySchedulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DisableAttackDiscoverySchedulesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EnableAttackDiscoverySchedulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Id A string that does not contain only whitespace characters. + Id SecurityAIAssistantAPINonEmptyString `json:"id"` + } + JSON400 *SecurityAIAssistantAPIAttackDiscoveryGenericError +} + +// Status returns HTTPResponse.Status +func (r EnableAttackDiscoverySchedulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EnableAttackDiscoverySchedulesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type DeleteCaseDefaultSpaceResponse struct { Body []byte HTTPResponse *http.Response @@ -105347,6 +112774,28 @@ func (r EndpointGetActionsListResponse) StatusCode() int { return 0 } +type CancelActionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SecurityEndpointManagementAPIResponseActionCreateSuccessResponse +} + +// Status returns HTTPResponse.Status +func (r CancelActionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CancelActionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type EndpointExecuteActionResponse struct { Body []byte HTTPResponse *http.Response @@ -106016,6 +113465,7 @@ type InitMonitoringEngineResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SecurityEntityAnalyticsAPIMonitoringEngineDescriptor + JSON500 *SecurityEntityAnalyticsAPIMonitoringEngineDescriptor } // Status returns HTTPResponse.Status @@ -106070,7 +113520,18 @@ type PrivMonHealthResponse struct { Error *struct { Message *string `json:"message,omitempty"` } `json:"error,omitempty"` + + // Status The status of the Privilege Monitoring Engine Status SecurityEntityAnalyticsAPIPrivilegeMonitoringEngineStatus `json:"status"` + + // Users User statistics for privilege monitoring + Users *struct { + // CurrentCount Current number of privileged users being monitored + CurrentCount int `json:"current_count"` + + // MaxAllowed Maximum number of privileged users allowed to be monitored + MaxAllowed int `json:"max_allowed"` + } `json:"users,omitempty"` } } @@ -106516,6 +113977,28 @@ func (r ListEntitiesResponse) StatusCode() int { return 0 } +type UpsertEntityResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SecurityEntityAnalyticsAPIEntity +} + +// Status returns HTTPResponse.Status +func (r UpsertEntityResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpsertEntityResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type GetEntityStoreStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -107398,6 +114881,7 @@ type PostFleetAgentPoliciesBulkGetResponse struct { DataOutputId *string `json:"data_output_id"` Description *string `json:"description,omitempty"` DownloadSourceId *string `json:"download_source_id"` + FipsAgents *float32 `json:"fips_agents,omitempty"` FleetServerHostId *string `json:"fleet_server_host_id"` // GlobalDataTags User defined data tags that are added to all of the inputs. The values can be strings or numbers. @@ -107486,8 +114970,11 @@ type PostFleetAgentPoliciesBulkGet200ItemsPackagePolicies1 = []struct { // AdditionalDatastreamsPermissions Additional datastream permissions, that will be added to the agent policy. AdditionalDatastreamsPermissions *[]string `json:"additional_datastreams_permissions"` Agents *float32 `json:"agents,omitempty"` - CreatedAt string `json:"created_at"` - CreatedBy string `json:"created_by"` + + // CloudConnectorId ID of the cloud connector associated with this package policy. + CloudConnectorId *string `json:"cloud_connector_id"` + CreatedAt string `json:"created_at"` + CreatedBy string `json:"created_by"` // Description Package policy description Description *string `json:"description,omitempty"` @@ -107518,6 +115005,7 @@ type PostFleetAgentPoliciesBulkGet200ItemsPackagePolicies1 = []struct { Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -107539,11 +115027,14 @@ type PostFleetAgentPoliciesBulkGet200ItemsPackagePolicies1 = []struct { SpaceIds *[]string `json:"spaceIds,omitempty"` // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. - SupportsAgentless *bool `json:"supports_agentless"` - UpdatedAt string `json:"updated_at"` - UpdatedBy string `json:"updated_by"` - Vars *PostFleetAgentPoliciesBulkGet_200_Items_PackagePolicies_1_Vars `json:"vars,omitempty"` - Version *string `json:"version,omitempty"` + SupportsAgentless *bool `json:"supports_agentless"` + + // SupportsCloudConnector Indicates whether the package policy supports cloud connectors. + SupportsCloudConnector *bool `json:"supports_cloud_connector"` + UpdatedAt string `json:"updated_at"` + UpdatedBy string `json:"updated_by"` + Vars *PostFleetAgentPoliciesBulkGet_200_Items_PackagePolicies_1_Vars `json:"vars,omitempty"` + Version *string `json:"version,omitempty"` } type PostFleetAgentPoliciesBulkGet_200_Items_PackagePolicies_1_Elasticsearch_Privileges struct { Cluster *[]string `json:"cluster,omitempty"` @@ -107911,6 +115402,7 @@ type PostFleetAgentPoliciesAgentpolicyidCopyResponse struct { DataOutputId *string `json:"data_output_id"` Description *string `json:"description,omitempty"` DownloadSourceId *string `json:"download_source_id"` + FipsAgents *float32 `json:"fips_agents,omitempty"` FleetServerHostId *string `json:"fleet_server_host_id"` // GlobalDataTags User defined data tags that are added to all of the inputs. The values can be strings or numbers. @@ -107999,8 +115491,11 @@ type PostFleetAgentPoliciesAgentpolicyidCopy200ItemPackagePolicies1 = []struct { // AdditionalDatastreamsPermissions Additional datastream permissions, that will be added to the agent policy. AdditionalDatastreamsPermissions *[]string `json:"additional_datastreams_permissions"` Agents *float32 `json:"agents,omitempty"` - CreatedAt string `json:"created_at"` - CreatedBy string `json:"created_by"` + + // CloudConnectorId ID of the cloud connector associated with this package policy. + CloudConnectorId *string `json:"cloud_connector_id"` + CreatedAt string `json:"created_at"` + CreatedBy string `json:"created_by"` // Description Package policy description Description *string `json:"description,omitempty"` @@ -108031,6 +115526,7 @@ type PostFleetAgentPoliciesAgentpolicyidCopy200ItemPackagePolicies1 = []struct { Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -108052,11 +115548,14 @@ type PostFleetAgentPoliciesAgentpolicyidCopy200ItemPackagePolicies1 = []struct { SpaceIds *[]string `json:"spaceIds,omitempty"` // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. - SupportsAgentless *bool `json:"supports_agentless"` - UpdatedAt string `json:"updated_at"` - UpdatedBy string `json:"updated_by"` - Vars *PostFleetAgentPoliciesAgentpolicyidCopy_200_Item_PackagePolicies_1_Vars `json:"vars,omitempty"` - Version *string `json:"version,omitempty"` + SupportsAgentless *bool `json:"supports_agentless"` + + // SupportsCloudConnector Indicates whether the package policy supports cloud connectors. + SupportsCloudConnector *bool `json:"supports_cloud_connector"` + UpdatedAt string `json:"updated_at"` + UpdatedBy string `json:"updated_by"` + Vars *PostFleetAgentPoliciesAgentpolicyidCopy_200_Item_PackagePolicies_1_Vars `json:"vars,omitempty"` + Version *string `json:"version,omitempty"` } type PostFleetAgentPoliciesAgentpolicyidCopy_200_Item_PackagePolicies_1_Elasticsearch_Privileges struct { Cluster *[]string `json:"cluster,omitempty"` @@ -109718,6 +117217,197 @@ func (r GetFleetCheckPermissionsResponse) StatusCode() int { return 0 } +type GetFleetCloudConnectorsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []struct { + CloudProvider string `json:"cloudProvider"` + CreatedAt string `json:"created_at"` + Id string `json:"id"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + PackagePolicyCount float32 `json:"packagePolicyCount"` + UpdatedAt string `json:"updated_at"` + Vars map[string]interface{} `json:"vars"` + } `json:"items"` + } + JSON400 *struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r GetFleetCloudConnectorsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetFleetCloudConnectorsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostFleetCloudConnectorsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Item struct { + CloudProvider string `json:"cloudProvider"` + CreatedAt string `json:"created_at"` + Id string `json:"id"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + PackagePolicyCount float32 `json:"packagePolicyCount"` + UpdatedAt string `json:"updated_at"` + Vars map[string]interface{} `json:"vars"` + } `json:"item"` + } + JSON400 *struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r PostFleetCloudConnectorsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostFleetCloudConnectorsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteFleetCloudConnectorsCloudconnectoridResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id string `json:"id"` + } + JSON400 *struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r DeleteFleetCloudConnectorsCloudconnectoridResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteFleetCloudConnectorsCloudconnectoridResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetFleetCloudConnectorsCloudconnectoridResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Item struct { + CloudProvider string `json:"cloudProvider"` + CreatedAt string `json:"created_at"` + Id string `json:"id"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + PackagePolicyCount float32 `json:"packagePolicyCount"` + UpdatedAt string `json:"updated_at"` + Vars map[string]interface{} `json:"vars"` + } `json:"item"` + } + JSON400 *struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r GetFleetCloudConnectorsCloudconnectoridResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetFleetCloudConnectorsCloudconnectoridResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutFleetCloudConnectorsCloudconnectoridResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Item struct { + CloudProvider string `json:"cloudProvider"` + CreatedAt string `json:"created_at"` + Id string `json:"id"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + PackagePolicyCount float32 `json:"packagePolicyCount"` + UpdatedAt string `json:"updated_at"` + Vars map[string]interface{} `json:"vars"` + } `json:"item"` + } + JSON400 *struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r PutFleetCloudConnectorsCloudconnectoridResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutFleetCloudConnectorsCloudconnectoridResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type GetFleetDataStreamsResponse struct { Body []byte HTTPResponse *http.Response @@ -110055,6 +117745,7 @@ type PostFleetEpmCustomIntegrationsResponse struct { } } type PostFleetEpmCustomIntegrations200Items0 struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type PostFleetEpmCustomIntegrations_200_Items_0_Type `json:"type"` @@ -110230,6 +117921,7 @@ type PostFleetEpmPackagesBulk200Items0 struct { Version string `json:"version"` } type PostFleetEpmPackagesBulk200Items0ResultAssets0 struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type PostFleetEpmPackagesBulk_200_Items_0_Result_Assets_0_Type `json:"type"` @@ -110563,6 +118255,7 @@ type DeleteFleetEpmPackagesPkgnamePkgversionResponse struct { } } type DeleteFleetEpmPackagesPkgnamePkgversion200Items0 struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type DeleteFleetEpmPackagesPkgnamePkgversion_200_Items_0_Type `json:"type"` @@ -110652,6 +118345,7 @@ type PostFleetEpmPackagesPkgnamePkgversionResponse struct { } } type PostFleetEpmPackagesPkgnamePkgversion200Items0 struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type PostFleetEpmPackagesPkgnamePkgversion_200_Items_0_Type `json:"type"` @@ -110744,6 +118438,7 @@ type PutFleetEpmPackagesPkgnamePkgversion_200_Item_InstallationInfo_AdditionalSp union json.RawMessage } type PutFleetEpmPackagesPkgnamePkgversion_200_Item_InstallationInfo_AdditionalSpacesInstalledKibana_Item struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type PutFleetEpmPackagesPkgnamePkgversion_200_Item_InstallationInfo_AdditionalSpacesInstalledKibana_Type `json:"type"` @@ -110777,6 +118472,7 @@ type PutFleetEpmPackagesPkgnamePkgversion_200_Item_InstallationInfo_InstalledKib union json.RawMessage } type PutFleetEpmPackagesPkgnamePkgversion_200_Item_InstallationInfo_InstalledKibana_Item struct { + Deferred *bool `json:"deferred,omitempty"` Id string `json:"id"` OriginId *string `json:"originId,omitempty"` Type PutFleetEpmPackagesPkgnamePkgversion_200_Item_InstallationInfo_InstalledKibana_Type `json:"type"` @@ -110816,6 +118512,7 @@ type PutFleetEpmPackagesPkgnamePkgversion_200_Item_InstallationInfo struct { Name string `json:"name"` Namespaces *[]string `json:"namespaces,omitempty"` PreviousVersion *string `json:"previous_version"` + RolledBack *bool `json:"rolled_back,omitempty"` Type string `json:"type"` UpdatedAt *string `json:"updated_at,omitempty"` VerificationKeyId *string `json:"verification_key_id"` @@ -111002,6 +118699,37 @@ func (r PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsResponse) StatusCode() return 0 } +type PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Success bool `json:"success"` + } + JSON400 *struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeResponse struct { Body []byte HTTPResponse *http.Response @@ -111761,8 +119489,11 @@ type PostFleetPackagePoliciesBulkGetResponse struct { // AdditionalDatastreamsPermissions Additional datastream permissions, that will be added to the agent policy. AdditionalDatastreamsPermissions *[]string `json:"additional_datastreams_permissions"` Agents *float32 `json:"agents,omitempty"` - CreatedAt string `json:"created_at"` - CreatedBy string `json:"created_by"` + + // CloudConnectorId ID of the cloud connector associated with this package policy. + CloudConnectorId *string `json:"cloud_connector_id"` + CreatedAt string `json:"created_at"` + CreatedBy string `json:"created_by"` // Description Package policy description Description *string `json:"description,omitempty"` @@ -111793,6 +119524,7 @@ type PostFleetPackagePoliciesBulkGetResponse struct { Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -111814,11 +119546,14 @@ type PostFleetPackagePoliciesBulkGetResponse struct { SpaceIds *[]string `json:"spaceIds,omitempty"` // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. - SupportsAgentless *bool `json:"supports_agentless"` - UpdatedAt string `json:"updated_at"` - UpdatedBy string `json:"updated_by"` - Vars *PostFleetPackagePoliciesBulkGet_200_Items_Vars `json:"vars,omitempty"` - Version *string `json:"version,omitempty"` + SupportsAgentless *bool `json:"supports_agentless"` + + // SupportsCloudConnector Indicates whether the package policy supports cloud connectors. + SupportsCloudConnector *bool `json:"supports_cloud_connector"` + UpdatedAt string `json:"updated_at"` + UpdatedBy string `json:"updated_by"` + Vars *PostFleetPackagePoliciesBulkGet_200_Items_Vars `json:"vars,omitempty"` + Version *string `json:"version,omitempty"` } `json:"items"` } JSON400 *struct { @@ -111996,6 +119731,7 @@ type PostFleetPackagePoliciesDeleteResponse struct { Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -112150,8 +119886,11 @@ type PostFleetPackagePoliciesUpgradeDryrun200Diff0 struct { // AdditionalDatastreamsPermissions Additional datastream permissions, that will be added to the agent policy. AdditionalDatastreamsPermissions *[]string `json:"additional_datastreams_permissions"` Agents *float32 `json:"agents,omitempty"` - CreatedAt string `json:"created_at"` - CreatedBy string `json:"created_by"` + + // CloudConnectorId ID of the cloud connector associated with this package policy. + CloudConnectorId *string `json:"cloud_connector_id"` + CreatedAt string `json:"created_at"` + CreatedBy string `json:"created_by"` // Description Package policy description Description *string `json:"description,omitempty"` @@ -112182,6 +119921,7 @@ type PostFleetPackagePoliciesUpgradeDryrun200Diff0 struct { Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -112203,11 +119943,14 @@ type PostFleetPackagePoliciesUpgradeDryrun200Diff0 struct { SpaceIds *[]string `json:"spaceIds,omitempty"` // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. - SupportsAgentless *bool `json:"supports_agentless"` - UpdatedAt string `json:"updated_at"` - UpdatedBy string `json:"updated_by"` - Vars *PostFleetPackagePoliciesUpgradeDryrun_200_Diff_0_Vars `json:"vars,omitempty"` - Version *string `json:"version,omitempty"` + SupportsAgentless *bool `json:"supports_agentless"` + + // SupportsCloudConnector Indicates whether the package policy supports cloud connectors. + SupportsCloudConnector *bool `json:"supports_cloud_connector"` + UpdatedAt string `json:"updated_at"` + UpdatedBy string `json:"updated_by"` + Vars *PostFleetPackagePoliciesUpgradeDryrun_200_Diff_0_Vars `json:"vars,omitempty"` + Version *string `json:"version,omitempty"` } type PostFleetPackagePoliciesUpgradeDryrun_200_Diff_0_Elasticsearch_Privileges struct { Cluster *[]string `json:"cluster,omitempty"` @@ -112339,8 +120082,11 @@ type PostFleetPackagePoliciesUpgradeDryrun_200_Diff_0_Vars struct { type PostFleetPackagePoliciesUpgradeDryrun200Diff1 struct { // AdditionalDatastreamsPermissions Additional datastream permissions, that will be added to the agent policy. AdditionalDatastreamsPermissions *[]string `json:"additional_datastreams_permissions"` - CreatedAt *string `json:"created_at,omitempty"` - CreatedBy *string `json:"created_by,omitempty"` + + // CloudConnectorId ID of the cloud connector associated with this package policy. + CloudConnectorId *string `json:"cloud_connector_id"` + CreatedAt *string `json:"created_at,omitempty"` + CreatedBy *string `json:"created_by,omitempty"` // Description Package policy description Description *string `json:"description,omitempty"` @@ -112430,6 +120176,7 @@ type PostFleetPackagePoliciesUpgradeDryrun200Diff1 struct { Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -112450,9 +120197,12 @@ type PostFleetPackagePoliciesUpgradeDryrun200Diff1 struct { } `json:"secret_references,omitempty"` // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. - SupportsAgentless *bool `json:"supports_agentless"` - UpdatedAt *string `json:"updated_at,omitempty"` - UpdatedBy *string `json:"updated_by,omitempty"` + SupportsAgentless *bool `json:"supports_agentless"` + + // SupportsCloudConnector Indicates whether the package policy supports cloud connectors. + SupportsCloudConnector *bool `json:"supports_cloud_connector"` + UpdatedAt *string `json:"updated_at,omitempty"` + UpdatedBy *string `json:"updated_by,omitempty"` // Vars Package variable (see integration documentation for more information) Vars *map[string]struct { @@ -112974,7 +120724,8 @@ type GetFleetSettingsResponse struct { HTTPResponse *http.Response JSON200 *struct { Item struct { - DeleteUnenrolledAgents *struct { + ActionSecretStorageRequirementsMet *bool `json:"action_secret_storage_requirements_met,omitempty"` + DeleteUnenrolledAgents *struct { Enabled bool `json:"enabled"` IsPreconfigured bool `json:"is_preconfigured"` } `json:"delete_unenrolled_agents,omitempty"` @@ -113024,7 +120775,8 @@ type PutFleetSettingsResponse struct { HTTPResponse *http.Response JSON200 *struct { Item struct { - DeleteUnenrolledAgents *struct { + ActionSecretStorageRequirementsMet *bool `json:"action_secret_storage_requirements_met,omitempty"` + DeleteUnenrolledAgents *struct { Enabled bool `json:"enabled"` IsPreconfigured bool `json:"is_preconfigured"` } `json:"delete_unenrolled_agents,omitempty"` @@ -113874,6 +121626,97 @@ func (r GetLogstashPipelinesResponse) StatusCode() int { return 0 } +type GetMaintenanceWindowFindResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + MaintenanceWindows []struct { + // CreatedAt The date and time when the maintenance window was created. + CreatedAt string `json:"created_at"` + + // CreatedBy The identifier for the user that created the maintenance window. + CreatedBy *string `json:"created_by"` + + // Enabled Whether the current maintenance window is enabled. Disabled maintenance windows do not suppress notifications. + Enabled bool `json:"enabled"` + + // Id The identifier for the maintenance window. + Id string `json:"id"` + Schedule struct { + Custom struct { + // Duration The duration of the schedule. It allows values in `` format. `` is one of `d`, `h`, `m`, or `s` for hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`. + Duration string `json:"duration"` + Recurring *struct { + // End The end date of a recurring schedule, provided in ISO 8601 format and set to the UTC timezone. For example: `2025-04-01T00:00:00.000Z`. + End *string `json:"end,omitempty"` + + // Every The interval and frequency of a recurring schedule. It allows values in `` format. `` is one of `d`, `w`, `M`, or `y` for days, weeks, months, years. For example: `15d`, `2w`, `3m`, `1y`. + Every *string `json:"every,omitempty"` + + // Occurrences The total number of recurrences of the schedule. + Occurrences *float32 `json:"occurrences,omitempty"` + + // OnMonth The specific months for a recurring schedule. Valid values are 1-12. + OnMonth *[]float32 `json:"onMonth,omitempty"` + + // OnMonthDay The specific days of the month for a recurring schedule. Valid values are 1-31. + OnMonthDay *[]float32 `json:"onMonthDay,omitempty"` + + // OnWeekDay The specific days of the week (`[MO,TU,WE,TH,FR,SA,SU]`) or nth day of month (`[+1MO, -3FR, +2WE, -4SA, -5SU]`) for a recurring schedule. + OnWeekDay *[]string `json:"onWeekDay,omitempty"` + } `json:"recurring,omitempty"` + + // Start The start date and time of the schedule, provided in ISO 8601 format and set to the UTC timezone. For example: `2025-03-12T12:00:00.000Z`. + Start string `json:"start"` + + // Timezone The timezone of the schedule. The default timezone is UTC. + Timezone *string `json:"timezone,omitempty"` + } `json:"custom"` + } `json:"schedule"` + Scope *struct { + Alerting struct { + Query struct { + // Kql A filter written in Kibana Query Language (KQL). + Kql string `json:"kql"` + } `json:"query"` + } `json:"alerting"` + } `json:"scope,omitempty"` + + // Status The current status of the maintenance window. + Status GetMaintenanceWindowFind200MaintenanceWindowsStatus `json:"status"` + + // Title The name of the maintenance window. + Title string `json:"title"` + + // UpdatedAt The date and time when the maintenance window was last updated. + UpdatedAt string `json:"updated_at"` + + // UpdatedBy The identifier for the user that last updated this maintenance window. + UpdatedBy *string `json:"updated_by"` + } `json:"maintenanceWindows"` + Page float32 `json:"page"` + PerPage float32 `json:"per_page"` + Total float32 `json:"total"` + } +} +type GetMaintenanceWindowFind200MaintenanceWindowsStatus string + +// Status returns HTTPResponse.Status +func (r GetMaintenanceWindowFindResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetMaintenanceWindowFindResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type PostMaintenanceWindowIdArchiveResponse struct { Body []byte HTTPResponse *http.Response @@ -115529,6 +123372,9 @@ type ReadKnowledgeBaseResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + // DefendInsightsExists Indicates if Defend Insights documentation exists in the KnowledgeBase. + DefendInsightsExists *bool `json:"defend_insights_exists,omitempty"` + // ElserExists Indicates if the ELSER model exists for the KnowledgeBase. ElserExists *bool `json:"elser_exists,omitempty"` @@ -116553,13 +124399,13 @@ func (r GetStreamsNameSignificantEventsResponse) StatusCode() int { return 0 } -type GetStreamsNameSignificantEventsGenerateResponse struct { +type PostStreamsNameSignificantEventsGenerateResponse struct { Body []byte HTTPResponse *http.Response } // Status returns HTTPResponse.Status -func (r GetStreamsNameSignificantEventsGenerateResponse) Status() string { +func (r PostStreamsNameSignificantEventsGenerateResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -116567,7 +124413,7 @@ func (r GetStreamsNameSignificantEventsGenerateResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStreamsNameSignificantEventsGenerateResponse) StatusCode() int { +func (r PostStreamsNameSignificantEventsGenerateResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -118338,6 +126184,249 @@ func (c *ClientWithResponses) GetActionsConnectorTypesWithResponse(ctx context.C return ParseGetActionsConnectorTypesResponse(rsp) } +// PostAgentBuilderA2aAgentidWithBodyWithResponse request with arbitrary body returning *PostAgentBuilderA2aAgentidResponse +func (c *ClientWithResponses) PostAgentBuilderA2aAgentidWithBodyWithResponse(ctx context.Context, agentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderA2aAgentidResponse, error) { + rsp, err := c.PostAgentBuilderA2aAgentidWithBody(ctx, agentId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderA2aAgentidResponse(rsp) +} + +func (c *ClientWithResponses) PostAgentBuilderA2aAgentidWithResponse(ctx context.Context, agentId string, body PostAgentBuilderA2aAgentidJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderA2aAgentidResponse, error) { + rsp, err := c.PostAgentBuilderA2aAgentid(ctx, agentId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderA2aAgentidResponse(rsp) +} + +// GetAgentBuilderA2aAgentidJsonWithResponse request returning *GetAgentBuilderA2aAgentidJsonResponse +func (c *ClientWithResponses) GetAgentBuilderA2aAgentidJsonWithResponse(ctx context.Context, agentId string, reqEditors ...RequestEditorFn) (*GetAgentBuilderA2aAgentidJsonResponse, error) { + rsp, err := c.GetAgentBuilderA2aAgentidJson(ctx, agentId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentBuilderA2aAgentidJsonResponse(rsp) +} + +// GetAgentBuilderAgentsWithResponse request returning *GetAgentBuilderAgentsResponse +func (c *ClientWithResponses) GetAgentBuilderAgentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAgentBuilderAgentsResponse, error) { + rsp, err := c.GetAgentBuilderAgents(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentBuilderAgentsResponse(rsp) +} + +// PostAgentBuilderAgentsWithBodyWithResponse request with arbitrary body returning *PostAgentBuilderAgentsResponse +func (c *ClientWithResponses) PostAgentBuilderAgentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderAgentsResponse, error) { + rsp, err := c.PostAgentBuilderAgentsWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderAgentsResponse(rsp) +} + +func (c *ClientWithResponses) PostAgentBuilderAgentsWithResponse(ctx context.Context, body PostAgentBuilderAgentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderAgentsResponse, error) { + rsp, err := c.PostAgentBuilderAgents(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderAgentsResponse(rsp) +} + +// DeleteAgentBuilderAgentsIdWithResponse request returning *DeleteAgentBuilderAgentsIdResponse +func (c *ClientWithResponses) DeleteAgentBuilderAgentsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAgentBuilderAgentsIdResponse, error) { + rsp, err := c.DeleteAgentBuilderAgentsId(ctx, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAgentBuilderAgentsIdResponse(rsp) +} + +// GetAgentBuilderAgentsIdWithResponse request returning *GetAgentBuilderAgentsIdResponse +func (c *ClientWithResponses) GetAgentBuilderAgentsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAgentBuilderAgentsIdResponse, error) { + rsp, err := c.GetAgentBuilderAgentsId(ctx, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentBuilderAgentsIdResponse(rsp) +} + +// PutAgentBuilderAgentsIdWithBodyWithResponse request with arbitrary body returning *PutAgentBuilderAgentsIdResponse +func (c *ClientWithResponses) PutAgentBuilderAgentsIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAgentBuilderAgentsIdResponse, error) { + rsp, err := c.PutAgentBuilderAgentsIdWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutAgentBuilderAgentsIdResponse(rsp) +} + +func (c *ClientWithResponses) PutAgentBuilderAgentsIdWithResponse(ctx context.Context, id string, body PutAgentBuilderAgentsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAgentBuilderAgentsIdResponse, error) { + rsp, err := c.PutAgentBuilderAgentsId(ctx, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutAgentBuilderAgentsIdResponse(rsp) +} + +// GetAgentBuilderConversationsWithResponse request returning *GetAgentBuilderConversationsResponse +func (c *ClientWithResponses) GetAgentBuilderConversationsWithResponse(ctx context.Context, params *GetAgentBuilderConversationsParams, reqEditors ...RequestEditorFn) (*GetAgentBuilderConversationsResponse, error) { + rsp, err := c.GetAgentBuilderConversations(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentBuilderConversationsResponse(rsp) +} + +// DeleteAgentBuilderConversationsConversationIdWithResponse request returning *DeleteAgentBuilderConversationsConversationIdResponse +func (c *ClientWithResponses) DeleteAgentBuilderConversationsConversationIdWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*DeleteAgentBuilderConversationsConversationIdResponse, error) { + rsp, err := c.DeleteAgentBuilderConversationsConversationId(ctx, conversationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAgentBuilderConversationsConversationIdResponse(rsp) +} + +// GetAgentBuilderConversationsConversationIdWithResponse request returning *GetAgentBuilderConversationsConversationIdResponse +func (c *ClientWithResponses) GetAgentBuilderConversationsConversationIdWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*GetAgentBuilderConversationsConversationIdResponse, error) { + rsp, err := c.GetAgentBuilderConversationsConversationId(ctx, conversationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentBuilderConversationsConversationIdResponse(rsp) +} + +// PostAgentBuilderConverseWithBodyWithResponse request with arbitrary body returning *PostAgentBuilderConverseResponse +func (c *ClientWithResponses) PostAgentBuilderConverseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderConverseResponse, error) { + rsp, err := c.PostAgentBuilderConverseWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderConverseResponse(rsp) +} + +func (c *ClientWithResponses) PostAgentBuilderConverseWithResponse(ctx context.Context, body PostAgentBuilderConverseJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderConverseResponse, error) { + rsp, err := c.PostAgentBuilderConverse(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderConverseResponse(rsp) +} + +// PostAgentBuilderConverseAsyncWithBodyWithResponse request with arbitrary body returning *PostAgentBuilderConverseAsyncResponse +func (c *ClientWithResponses) PostAgentBuilderConverseAsyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderConverseAsyncResponse, error) { + rsp, err := c.PostAgentBuilderConverseAsyncWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderConverseAsyncResponse(rsp) +} + +func (c *ClientWithResponses) PostAgentBuilderConverseAsyncWithResponse(ctx context.Context, body PostAgentBuilderConverseAsyncJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderConverseAsyncResponse, error) { + rsp, err := c.PostAgentBuilderConverseAsync(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderConverseAsyncResponse(rsp) +} + +// PostAgentBuilderMcpWithBodyWithResponse request with arbitrary body returning *PostAgentBuilderMcpResponse +func (c *ClientWithResponses) PostAgentBuilderMcpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderMcpResponse, error) { + rsp, err := c.PostAgentBuilderMcpWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderMcpResponse(rsp) +} + +func (c *ClientWithResponses) PostAgentBuilderMcpWithResponse(ctx context.Context, body PostAgentBuilderMcpJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderMcpResponse, error) { + rsp, err := c.PostAgentBuilderMcp(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderMcpResponse(rsp) +} + +// GetAgentBuilderToolsWithResponse request returning *GetAgentBuilderToolsResponse +func (c *ClientWithResponses) GetAgentBuilderToolsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAgentBuilderToolsResponse, error) { + rsp, err := c.GetAgentBuilderTools(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentBuilderToolsResponse(rsp) +} + +// PostAgentBuilderToolsWithBodyWithResponse request with arbitrary body returning *PostAgentBuilderToolsResponse +func (c *ClientWithResponses) PostAgentBuilderToolsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderToolsResponse, error) { + rsp, err := c.PostAgentBuilderToolsWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderToolsResponse(rsp) +} + +func (c *ClientWithResponses) PostAgentBuilderToolsWithResponse(ctx context.Context, body PostAgentBuilderToolsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderToolsResponse, error) { + rsp, err := c.PostAgentBuilderTools(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderToolsResponse(rsp) +} + +// PostAgentBuilderToolsExecuteWithBodyWithResponse request with arbitrary body returning *PostAgentBuilderToolsExecuteResponse +func (c *ClientWithResponses) PostAgentBuilderToolsExecuteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentBuilderToolsExecuteResponse, error) { + rsp, err := c.PostAgentBuilderToolsExecuteWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderToolsExecuteResponse(rsp) +} + +func (c *ClientWithResponses) PostAgentBuilderToolsExecuteWithResponse(ctx context.Context, body PostAgentBuilderToolsExecuteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAgentBuilderToolsExecuteResponse, error) { + rsp, err := c.PostAgentBuilderToolsExecute(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentBuilderToolsExecuteResponse(rsp) +} + +// DeleteAgentBuilderToolsIdWithResponse request returning *DeleteAgentBuilderToolsIdResponse +func (c *ClientWithResponses) DeleteAgentBuilderToolsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAgentBuilderToolsIdResponse, error) { + rsp, err := c.DeleteAgentBuilderToolsId(ctx, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAgentBuilderToolsIdResponse(rsp) +} + +// GetAgentBuilderToolsIdWithResponse request returning *GetAgentBuilderToolsIdResponse +func (c *ClientWithResponses) GetAgentBuilderToolsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAgentBuilderToolsIdResponse, error) { + rsp, err := c.GetAgentBuilderToolsId(ctx, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentBuilderToolsIdResponse(rsp) +} + +// PutAgentBuilderToolsToolidWithBodyWithResponse request with arbitrary body returning *PutAgentBuilderToolsToolidResponse +func (c *ClientWithResponses) PutAgentBuilderToolsToolidWithBodyWithResponse(ctx context.Context, toolId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAgentBuilderToolsToolidResponse, error) { + rsp, err := c.PutAgentBuilderToolsToolidWithBody(ctx, toolId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutAgentBuilderToolsToolidResponse(rsp) +} + +func (c *ClientWithResponses) PutAgentBuilderToolsToolidWithResponse(ctx context.Context, toolId string, body PutAgentBuilderToolsToolidJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAgentBuilderToolsToolidResponse, error) { + rsp, err := c.PutAgentBuilderToolsToolid(ctx, toolId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutAgentBuilderToolsToolidResponse(rsp) +} + // GetAlertingHealthWithResponse request returning *GetAlertingHealthResponse func (c *ClientWithResponses) GetAlertingHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertingHealthResponse, error) { rsp, err := c.GetAlertingHealth(ctx, reqEditors...) @@ -118749,6 +126838,155 @@ func (c *ClientWithResponses) FindAssetCriticalityRecordsWithResponse(ctx contex return ParseFindAssetCriticalityRecordsResponse(rsp) } +// PostAttackDiscoveryBulkWithBodyWithResponse request with arbitrary body returning *PostAttackDiscoveryBulkResponse +func (c *ClientWithResponses) PostAttackDiscoveryBulkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryBulkResponse, error) { + rsp, err := c.PostAttackDiscoveryBulkWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAttackDiscoveryBulkResponse(rsp) +} + +func (c *ClientWithResponses) PostAttackDiscoveryBulkWithResponse(ctx context.Context, body PostAttackDiscoveryBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryBulkResponse, error) { + rsp, err := c.PostAttackDiscoveryBulk(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAttackDiscoveryBulkResponse(rsp) +} + +// AttackDiscoveryFindWithResponse request returning *AttackDiscoveryFindResponse +func (c *ClientWithResponses) AttackDiscoveryFindWithResponse(ctx context.Context, params *AttackDiscoveryFindParams, reqEditors ...RequestEditorFn) (*AttackDiscoveryFindResponse, error) { + rsp, err := c.AttackDiscoveryFind(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseAttackDiscoveryFindResponse(rsp) +} + +// PostAttackDiscoveryGenerateWithBodyWithResponse request with arbitrary body returning *PostAttackDiscoveryGenerateResponse +func (c *ClientWithResponses) PostAttackDiscoveryGenerateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryGenerateResponse, error) { + rsp, err := c.PostAttackDiscoveryGenerateWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAttackDiscoveryGenerateResponse(rsp) +} + +func (c *ClientWithResponses) PostAttackDiscoveryGenerateWithResponse(ctx context.Context, body PostAttackDiscoveryGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryGenerateResponse, error) { + rsp, err := c.PostAttackDiscoveryGenerate(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAttackDiscoveryGenerateResponse(rsp) +} + +// GetAttackDiscoveryGenerationsWithResponse request returning *GetAttackDiscoveryGenerationsResponse +func (c *ClientWithResponses) GetAttackDiscoveryGenerationsWithResponse(ctx context.Context, params *GetAttackDiscoveryGenerationsParams, reqEditors ...RequestEditorFn) (*GetAttackDiscoveryGenerationsResponse, error) { + rsp, err := c.GetAttackDiscoveryGenerations(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAttackDiscoveryGenerationsResponse(rsp) +} + +// GetAttackDiscoveryGenerationWithResponse request returning *GetAttackDiscoveryGenerationResponse +func (c *ClientWithResponses) GetAttackDiscoveryGenerationWithResponse(ctx context.Context, executionUuid SecurityAIAssistantAPINonEmptyString, params *GetAttackDiscoveryGenerationParams, reqEditors ...RequestEditorFn) (*GetAttackDiscoveryGenerationResponse, error) { + rsp, err := c.GetAttackDiscoveryGeneration(ctx, executionUuid, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAttackDiscoveryGenerationResponse(rsp) +} + +// PostAttackDiscoveryGenerationsDismissWithResponse request returning *PostAttackDiscoveryGenerationsDismissResponse +func (c *ClientWithResponses) PostAttackDiscoveryGenerationsDismissWithResponse(ctx context.Context, executionUuid SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*PostAttackDiscoveryGenerationsDismissResponse, error) { + rsp, err := c.PostAttackDiscoveryGenerationsDismiss(ctx, executionUuid, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAttackDiscoveryGenerationsDismissResponse(rsp) +} + +// CreateAttackDiscoverySchedulesWithBodyWithResponse request with arbitrary body returning *CreateAttackDiscoverySchedulesResponse +func (c *ClientWithResponses) CreateAttackDiscoverySchedulesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAttackDiscoverySchedulesResponse, error) { + rsp, err := c.CreateAttackDiscoverySchedulesWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAttackDiscoverySchedulesResponse(rsp) +} + +func (c *ClientWithResponses) CreateAttackDiscoverySchedulesWithResponse(ctx context.Context, body CreateAttackDiscoverySchedulesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAttackDiscoverySchedulesResponse, error) { + rsp, err := c.CreateAttackDiscoverySchedules(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAttackDiscoverySchedulesResponse(rsp) +} + +// FindAttackDiscoverySchedulesWithResponse request returning *FindAttackDiscoverySchedulesResponse +func (c *ClientWithResponses) FindAttackDiscoverySchedulesWithResponse(ctx context.Context, params *FindAttackDiscoverySchedulesParams, reqEditors ...RequestEditorFn) (*FindAttackDiscoverySchedulesResponse, error) { + rsp, err := c.FindAttackDiscoverySchedules(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseFindAttackDiscoverySchedulesResponse(rsp) +} + +// DeleteAttackDiscoverySchedulesWithResponse request returning *DeleteAttackDiscoverySchedulesResponse +func (c *ClientWithResponses) DeleteAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*DeleteAttackDiscoverySchedulesResponse, error) { + rsp, err := c.DeleteAttackDiscoverySchedules(ctx, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAttackDiscoverySchedulesResponse(rsp) +} + +// GetAttackDiscoverySchedulesWithResponse request returning *GetAttackDiscoverySchedulesResponse +func (c *ClientWithResponses) GetAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*GetAttackDiscoverySchedulesResponse, error) { + rsp, err := c.GetAttackDiscoverySchedules(ctx, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAttackDiscoverySchedulesResponse(rsp) +} + +// UpdateAttackDiscoverySchedulesWithBodyWithResponse request with arbitrary body returning *UpdateAttackDiscoverySchedulesResponse +func (c *ClientWithResponses) UpdateAttackDiscoverySchedulesWithBodyWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAttackDiscoverySchedulesResponse, error) { + rsp, err := c.UpdateAttackDiscoverySchedulesWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAttackDiscoverySchedulesResponse(rsp) +} + +func (c *ClientWithResponses) UpdateAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, body UpdateAttackDiscoverySchedulesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAttackDiscoverySchedulesResponse, error) { + rsp, err := c.UpdateAttackDiscoverySchedules(ctx, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAttackDiscoverySchedulesResponse(rsp) +} + +// DisableAttackDiscoverySchedulesWithResponse request returning *DisableAttackDiscoverySchedulesResponse +func (c *ClientWithResponses) DisableAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*DisableAttackDiscoverySchedulesResponse, error) { + rsp, err := c.DisableAttackDiscoverySchedules(ctx, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseDisableAttackDiscoverySchedulesResponse(rsp) +} + +// EnableAttackDiscoverySchedulesWithResponse request returning *EnableAttackDiscoverySchedulesResponse +func (c *ClientWithResponses) EnableAttackDiscoverySchedulesWithResponse(ctx context.Context, id SecurityAIAssistantAPINonEmptyString, reqEditors ...RequestEditorFn) (*EnableAttackDiscoverySchedulesResponse, error) { + rsp, err := c.EnableAttackDiscoverySchedules(ctx, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseEnableAttackDiscoverySchedulesResponse(rsp) +} + // DeleteCaseDefaultSpaceWithResponse request returning *DeleteCaseDefaultSpaceResponse func (c *ClientWithResponses) DeleteCaseDefaultSpaceWithResponse(ctx context.Context, params *DeleteCaseDefaultSpaceParams, reqEditors ...RequestEditorFn) (*DeleteCaseDefaultSpaceResponse, error) { rsp, err := c.DeleteCaseDefaultSpace(ctx, params, reqEditors...) @@ -119513,6 +127751,23 @@ func (c *ClientWithResponses) EndpointGetActionsListWithResponse(ctx context.Con return ParseEndpointGetActionsListResponse(rsp) } +// CancelActionWithBodyWithResponse request with arbitrary body returning *CancelActionResponse +func (c *ClientWithResponses) CancelActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelActionResponse, error) { + rsp, err := c.CancelActionWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCancelActionResponse(rsp) +} + +func (c *ClientWithResponses) CancelActionWithResponse(ctx context.Context, body CancelActionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelActionResponse, error) { + rsp, err := c.CancelAction(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCancelActionResponse(rsp) +} + // EndpointExecuteActionWithBodyWithResponse request with arbitrary body returning *EndpointExecuteActionResponse func (c *ClientWithResponses) EndpointExecuteActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EndpointExecuteActionResponse, error) { rsp, err := c.EndpointExecuteActionWithBody(ctx, contentType, body, reqEditors...) @@ -120073,6 +128328,23 @@ func (c *ClientWithResponses) ListEntitiesWithResponse(ctx context.Context, para return ParseListEntitiesResponse(rsp) } +// UpsertEntityWithBodyWithResponse request with arbitrary body returning *UpsertEntityResponse +func (c *ClientWithResponses) UpsertEntityWithBodyWithResponse(ctx context.Context, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertEntityResponse, error) { + rsp, err := c.UpsertEntityWithBody(ctx, entityType, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpsertEntityResponse(rsp) +} + +func (c *ClientWithResponses) UpsertEntityWithResponse(ctx context.Context, entityType SecurityEntityAnalyticsAPIEntityType, params *UpsertEntityParams, body UpsertEntityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertEntityResponse, error) { + rsp, err := c.UpsertEntity(ctx, entityType, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpsertEntityResponse(rsp) +} + // GetEntityStoreStatusWithResponse request returning *GetEntityStoreStatusResponse func (c *ClientWithResponses) GetEntityStoreStatusWithResponse(ctx context.Context, params *GetEntityStoreStatusParams, reqEditors ...RequestEditorFn) (*GetEntityStoreStatusResponse, error) { rsp, err := c.GetEntityStoreStatus(ctx, params, reqEditors...) @@ -120822,6 +129094,67 @@ func (c *ClientWithResponses) GetFleetCheckPermissionsWithResponse(ctx context.C return ParseGetFleetCheckPermissionsResponse(rsp) } +// GetFleetCloudConnectorsWithResponse request returning *GetFleetCloudConnectorsResponse +func (c *ClientWithResponses) GetFleetCloudConnectorsWithResponse(ctx context.Context, params *GetFleetCloudConnectorsParams, reqEditors ...RequestEditorFn) (*GetFleetCloudConnectorsResponse, error) { + rsp, err := c.GetFleetCloudConnectors(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFleetCloudConnectorsResponse(rsp) +} + +// PostFleetCloudConnectorsWithBodyWithResponse request with arbitrary body returning *PostFleetCloudConnectorsResponse +func (c *ClientWithResponses) PostFleetCloudConnectorsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFleetCloudConnectorsResponse, error) { + rsp, err := c.PostFleetCloudConnectorsWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostFleetCloudConnectorsResponse(rsp) +} + +func (c *ClientWithResponses) PostFleetCloudConnectorsWithResponse(ctx context.Context, body PostFleetCloudConnectorsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostFleetCloudConnectorsResponse, error) { + rsp, err := c.PostFleetCloudConnectors(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostFleetCloudConnectorsResponse(rsp) +} + +// DeleteFleetCloudConnectorsCloudconnectoridWithResponse request returning *DeleteFleetCloudConnectorsCloudconnectoridResponse +func (c *ClientWithResponses) DeleteFleetCloudConnectorsCloudconnectoridWithResponse(ctx context.Context, cloudConnectorId string, params *DeleteFleetCloudConnectorsCloudconnectoridParams, reqEditors ...RequestEditorFn) (*DeleteFleetCloudConnectorsCloudconnectoridResponse, error) { + rsp, err := c.DeleteFleetCloudConnectorsCloudconnectorid(ctx, cloudConnectorId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteFleetCloudConnectorsCloudconnectoridResponse(rsp) +} + +// GetFleetCloudConnectorsCloudconnectoridWithResponse request returning *GetFleetCloudConnectorsCloudconnectoridResponse +func (c *ClientWithResponses) GetFleetCloudConnectorsCloudconnectoridWithResponse(ctx context.Context, cloudConnectorId string, reqEditors ...RequestEditorFn) (*GetFleetCloudConnectorsCloudconnectoridResponse, error) { + rsp, err := c.GetFleetCloudConnectorsCloudconnectorid(ctx, cloudConnectorId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFleetCloudConnectorsCloudconnectoridResponse(rsp) +} + +// PutFleetCloudConnectorsCloudconnectoridWithBodyWithResponse request with arbitrary body returning *PutFleetCloudConnectorsCloudconnectoridResponse +func (c *ClientWithResponses) PutFleetCloudConnectorsCloudconnectoridWithBodyWithResponse(ctx context.Context, cloudConnectorId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutFleetCloudConnectorsCloudconnectoridResponse, error) { + rsp, err := c.PutFleetCloudConnectorsCloudconnectoridWithBody(ctx, cloudConnectorId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutFleetCloudConnectorsCloudconnectoridResponse(rsp) +} + +func (c *ClientWithResponses) PutFleetCloudConnectorsCloudconnectoridWithResponse(ctx context.Context, cloudConnectorId string, body PutFleetCloudConnectorsCloudconnectoridJSONRequestBody, reqEditors ...RequestEditorFn) (*PutFleetCloudConnectorsCloudconnectoridResponse, error) { + rsp, err := c.PutFleetCloudConnectorsCloudconnectorid(ctx, cloudConnectorId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutFleetCloudConnectorsCloudconnectoridResponse(rsp) +} + // GetFleetDataStreamsWithResponse request returning *GetFleetDataStreamsResponse func (c *ClientWithResponses) GetFleetDataStreamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFleetDataStreamsResponse, error) { rsp, err := c.GetFleetDataStreams(ctx, reqEditors...) @@ -121145,6 +129478,23 @@ func (c *ClientWithResponses) PostFleetEpmPackagesPkgnamePkgversionKibanaAssetsW return ParsePostFleetEpmPackagesPkgnamePkgversionKibanaAssetsResponse(rsp) } +// PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithBodyWithResponse request with arbitrary body returning *PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse +func (c *ClientWithResponses) PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse, error) { + rsp, err := c.PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithBody(ctx, pkgName, pkgVersion, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse(rsp) +} + +func (c *ClientWithResponses) PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithResponse(ctx context.Context, pkgName string, pkgVersion string, body PostFleetEpmPackagesPkgnamePkgversionRuleAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse, error) { + rsp, err := c.PostFleetEpmPackagesPkgnamePkgversionRuleAssets(ctx, pkgName, pkgVersion, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse(rsp) +} + // PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeWithBodyWithResponse request with arbitrary body returning *PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeResponse func (c *ClientWithResponses) PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeResponse, error) { rsp, err := c.PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeWithBody(ctx, pkgName, pkgVersion, params, contentType, body, reqEditors...) @@ -121931,6 +130281,15 @@ func (c *ClientWithResponses) GetLogstashPipelinesWithResponse(ctx context.Conte return ParseGetLogstashPipelinesResponse(rsp) } +// GetMaintenanceWindowFindWithResponse request returning *GetMaintenanceWindowFindResponse +func (c *ClientWithResponses) GetMaintenanceWindowFindWithResponse(ctx context.Context, params *GetMaintenanceWindowFindParams, reqEditors ...RequestEditorFn) (*GetMaintenanceWindowFindResponse, error) { + rsp, err := c.GetMaintenanceWindowFind(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetMaintenanceWindowFindResponse(rsp) +} + // PostMaintenanceWindowIdArchiveWithResponse request returning *PostMaintenanceWindowIdArchiveResponse func (c *ClientWithResponses) PostMaintenanceWindowIdArchiveWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PostMaintenanceWindowIdArchiveResponse, error) { rsp, err := c.PostMaintenanceWindowIdArchive(ctx, id, reqEditors...) @@ -123413,21 +131772,21 @@ func (c *ClientWithResponses) GetStreamsNameSignificantEventsWithResponse(ctx co return ParseGetStreamsNameSignificantEventsResponse(rsp) } -// GetStreamsNameSignificantEventsGenerateWithBodyWithResponse request with arbitrary body returning *GetStreamsNameSignificantEventsGenerateResponse -func (c *ClientWithResponses) GetStreamsNameSignificantEventsGenerateWithBodyWithResponse(ctx context.Context, name string, params *GetStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStreamsNameSignificantEventsGenerateResponse, error) { - rsp, err := c.GetStreamsNameSignificantEventsGenerateWithBody(ctx, name, params, contentType, body, reqEditors...) +// PostStreamsNameSignificantEventsGenerateWithBodyWithResponse request with arbitrary body returning *PostStreamsNameSignificantEventsGenerateResponse +func (c *ClientWithResponses) PostStreamsNameSignificantEventsGenerateWithBodyWithResponse(ctx context.Context, name string, params *PostStreamsNameSignificantEventsGenerateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStreamsNameSignificantEventsGenerateResponse, error) { + rsp, err := c.PostStreamsNameSignificantEventsGenerateWithBody(ctx, name, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetStreamsNameSignificantEventsGenerateResponse(rsp) + return ParsePostStreamsNameSignificantEventsGenerateResponse(rsp) } -func (c *ClientWithResponses) GetStreamsNameSignificantEventsGenerateWithResponse(ctx context.Context, name string, params *GetStreamsNameSignificantEventsGenerateParams, body GetStreamsNameSignificantEventsGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStreamsNameSignificantEventsGenerateResponse, error) { - rsp, err := c.GetStreamsNameSignificantEventsGenerate(ctx, name, params, body, reqEditors...) +func (c *ClientWithResponses) PostStreamsNameSignificantEventsGenerateWithResponse(ctx context.Context, name string, params *PostStreamsNameSignificantEventsGenerateParams, body PostStreamsNameSignificantEventsGenerateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostStreamsNameSignificantEventsGenerateResponse, error) { + rsp, err := c.PostStreamsNameSignificantEventsGenerate(ctx, name, params, body, reqEditors...) if err != nil { return nil, err } - return ParseGetStreamsNameSignificantEventsGenerateResponse(rsp) + return ParsePostStreamsNameSignificantEventsGenerateResponse(rsp) } // PostStreamsNameSignificantEventsPreviewWithBodyWithResponse request with arbitrary body returning *PostStreamsNameSignificantEventsPreviewResponse @@ -124302,6 +132661,310 @@ func ParseGetActionsConnectorTypesResponse(rsp *http.Response) (*GetActionsConne return response, nil } +// ParsePostAgentBuilderA2aAgentidResponse parses an HTTP response from a PostAgentBuilderA2aAgentidWithResponse call +func ParsePostAgentBuilderA2aAgentidResponse(rsp *http.Response) (*PostAgentBuilderA2aAgentidResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAgentBuilderA2aAgentidResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAgentBuilderA2aAgentidJsonResponse parses an HTTP response from a GetAgentBuilderA2aAgentidJsonWithResponse call +func ParseGetAgentBuilderA2aAgentidJsonResponse(rsp *http.Response) (*GetAgentBuilderA2aAgentidJsonResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentBuilderA2aAgentidJsonResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAgentBuilderAgentsResponse parses an HTTP response from a GetAgentBuilderAgentsWithResponse call +func ParseGetAgentBuilderAgentsResponse(rsp *http.Response) (*GetAgentBuilderAgentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentBuilderAgentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostAgentBuilderAgentsResponse parses an HTTP response from a PostAgentBuilderAgentsWithResponse call +func ParsePostAgentBuilderAgentsResponse(rsp *http.Response) (*PostAgentBuilderAgentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAgentBuilderAgentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseDeleteAgentBuilderAgentsIdResponse parses an HTTP response from a DeleteAgentBuilderAgentsIdWithResponse call +func ParseDeleteAgentBuilderAgentsIdResponse(rsp *http.Response) (*DeleteAgentBuilderAgentsIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAgentBuilderAgentsIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAgentBuilderAgentsIdResponse parses an HTTP response from a GetAgentBuilderAgentsIdWithResponse call +func ParseGetAgentBuilderAgentsIdResponse(rsp *http.Response) (*GetAgentBuilderAgentsIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentBuilderAgentsIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePutAgentBuilderAgentsIdResponse parses an HTTP response from a PutAgentBuilderAgentsIdWithResponse call +func ParsePutAgentBuilderAgentsIdResponse(rsp *http.Response) (*PutAgentBuilderAgentsIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PutAgentBuilderAgentsIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAgentBuilderConversationsResponse parses an HTTP response from a GetAgentBuilderConversationsWithResponse call +func ParseGetAgentBuilderConversationsResponse(rsp *http.Response) (*GetAgentBuilderConversationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentBuilderConversationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseDeleteAgentBuilderConversationsConversationIdResponse parses an HTTP response from a DeleteAgentBuilderConversationsConversationIdWithResponse call +func ParseDeleteAgentBuilderConversationsConversationIdResponse(rsp *http.Response) (*DeleteAgentBuilderConversationsConversationIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAgentBuilderConversationsConversationIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAgentBuilderConversationsConversationIdResponse parses an HTTP response from a GetAgentBuilderConversationsConversationIdWithResponse call +func ParseGetAgentBuilderConversationsConversationIdResponse(rsp *http.Response) (*GetAgentBuilderConversationsConversationIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentBuilderConversationsConversationIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostAgentBuilderConverseResponse parses an HTTP response from a PostAgentBuilderConverseWithResponse call +func ParsePostAgentBuilderConverseResponse(rsp *http.Response) (*PostAgentBuilderConverseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAgentBuilderConverseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostAgentBuilderConverseAsyncResponse parses an HTTP response from a PostAgentBuilderConverseAsyncWithResponse call +func ParsePostAgentBuilderConverseAsyncResponse(rsp *http.Response) (*PostAgentBuilderConverseAsyncResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAgentBuilderConverseAsyncResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostAgentBuilderMcpResponse parses an HTTP response from a PostAgentBuilderMcpWithResponse call +func ParsePostAgentBuilderMcpResponse(rsp *http.Response) (*PostAgentBuilderMcpResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAgentBuilderMcpResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAgentBuilderToolsResponse parses an HTTP response from a GetAgentBuilderToolsWithResponse call +func ParseGetAgentBuilderToolsResponse(rsp *http.Response) (*GetAgentBuilderToolsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentBuilderToolsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostAgentBuilderToolsResponse parses an HTTP response from a PostAgentBuilderToolsWithResponse call +func ParsePostAgentBuilderToolsResponse(rsp *http.Response) (*PostAgentBuilderToolsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAgentBuilderToolsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostAgentBuilderToolsExecuteResponse parses an HTTP response from a PostAgentBuilderToolsExecuteWithResponse call +func ParsePostAgentBuilderToolsExecuteResponse(rsp *http.Response) (*PostAgentBuilderToolsExecuteResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAgentBuilderToolsExecuteResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseDeleteAgentBuilderToolsIdResponse parses an HTTP response from a DeleteAgentBuilderToolsIdWithResponse call +func ParseDeleteAgentBuilderToolsIdResponse(rsp *http.Response) (*DeleteAgentBuilderToolsIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAgentBuilderToolsIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAgentBuilderToolsIdResponse parses an HTTP response from a GetAgentBuilderToolsIdWithResponse call +func ParseGetAgentBuilderToolsIdResponse(rsp *http.Response) (*GetAgentBuilderToolsIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentBuilderToolsIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePutAgentBuilderToolsToolidResponse parses an HTTP response from a PutAgentBuilderToolsToolidWithResponse call +func ParsePutAgentBuilderToolsToolidResponse(rsp *http.Response) (*PutAgentBuilderToolsToolidResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PutAgentBuilderToolsToolidResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + // ParseGetAlertingHealthResponse parses an HTTP response from a GetAlertingHealthWithResponse call func ParseGetAlertingHealthResponse(rsp *http.Response) (*GetAlertingHealthResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -126439,391 +135102,942 @@ func ParseCreateUpdateAgentConfigurationResponse(rsp *http.Response) (*CreateUpd } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest APMUI404Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest APMUI404Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAgentNameForServiceResponse parses an HTTP response from a GetAgentNameForServiceWithResponse call +func ParseGetAgentNameForServiceResponse(rsp *http.Response) (*GetAgentNameForServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentNameForServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest APMUIServiceAgentNameResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APMUI400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest APMUI401Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest APMUI404Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetEnvironmentsForServiceResponse parses an HTTP response from a GetEnvironmentsForServiceWithResponse call +func ParseGetEnvironmentsForServiceResponse(rsp *http.Response) (*GetEnvironmentsForServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetEnvironmentsForServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest APMUIServiceEnvironmentsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APMUI400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest APMUI401Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest APMUI404Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseSearchSingleConfigurationResponse parses an HTTP response from a SearchSingleConfigurationWithResponse call +func ParseSearchSingleConfigurationResponse(rsp *http.Response) (*SearchSingleConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SearchSingleConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest APMUISearchAgentConfigurationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APMUI400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest APMUI401Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest APMUI404Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetSingleAgentConfigurationResponse parses an HTTP response from a GetSingleAgentConfigurationWithResponse call +func ParseGetSingleAgentConfigurationResponse(rsp *http.Response) (*GetSingleAgentConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSingleAgentConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest APMUISingleAgentConfigurationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APMUI400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest APMUI401Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest APMUI404Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetSourceMapsResponse parses an HTTP response from a GetSourceMapsWithResponse call +func ParseGetSourceMapsResponse(rsp *http.Response) (*GetSourceMapsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSourceMapsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest APMUISourceMapsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APMUI400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest APMUI401Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest APMUI500Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest APMUI501Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON501 = &dest + + } + + return response, nil +} + +// ParseUploadSourceMapResponse parses an HTTP response from a UploadSourceMapWithResponse call +func ParseUploadSourceMapResponse(rsp *http.Response) (*UploadSourceMapResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UploadSourceMapResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest APMUIUploadSourceMapsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APMUI400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest APMUI401Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest APMUI403Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest APMUI500Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest APMUI501Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON501 = &dest + + } + + return response, nil +} + +// ParseDeleteSourceMapResponse parses an HTTP response from a DeleteSourceMapWithResponse call +func ParseDeleteSourceMapResponse(rsp *http.Response) (*DeleteSourceMapResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteSourceMapResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APMUI400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest APMUI401Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest APMUI403Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest APMUI500Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON500 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest APMUI501Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON501 = &dest } return response, nil } -// ParseGetAgentNameForServiceResponse parses an HTTP response from a GetAgentNameForServiceWithResponse call -func ParseGetAgentNameForServiceResponse(rsp *http.Response) (*GetAgentNameForServiceResponse, error) { +// ParseDeleteAssetCriticalityRecordResponse parses an HTTP response from a DeleteAssetCriticalityRecordWithResponse call +func ParseDeleteAssetCriticalityRecordResponse(rsp *http.Response) (*DeleteAssetCriticalityRecordResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAgentNameForServiceResponse{ + response := &DeleteAssetCriticalityRecordResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest APMUIServiceAgentNameResponse + var dest struct { + // Deleted True if the record was deleted or false if the record did not exist. + Deleted bool `json:"deleted"` + Record *SecurityEntityAnalyticsAPIAssetCriticalityRecord `json:"record,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APMUI400Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest APMUI401Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest APMUI404Response +// ParseGetAssetCriticalityRecordResponse parses an HTTP response from a GetAssetCriticalityRecordWithResponse call +func ParseGetAssetCriticalityRecordResponse(rsp *http.Response) (*GetAssetCriticalityRecordResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAssetCriticalityRecordResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SecurityEntityAnalyticsAPIAssetCriticalityRecord if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest } return response, nil } -// ParseGetEnvironmentsForServiceResponse parses an HTTP response from a GetEnvironmentsForServiceWithResponse call -func ParseGetEnvironmentsForServiceResponse(rsp *http.Response) (*GetEnvironmentsForServiceResponse, error) { +// ParseCreateAssetCriticalityRecordResponse parses an HTTP response from a CreateAssetCriticalityRecordWithResponse call +func ParseCreateAssetCriticalityRecordResponse(rsp *http.Response) (*CreateAssetCriticalityRecordResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetEnvironmentsForServiceResponse{ + response := &CreateAssetCriticalityRecordResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest APMUIServiceEnvironmentsResponse + var dest SecurityEntityAnalyticsAPIAssetCriticalityRecord if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APMUI400Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest APMUI401Response + return response, nil +} + +// ParseBulkUpsertAssetCriticalityRecordsResponse parses an HTTP response from a BulkUpsertAssetCriticalityRecordsWithResponse call +func ParseBulkUpsertAssetCriticalityRecordsResponse(rsp *http.Response) (*BulkUpsertAssetCriticalityRecordsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &BulkUpsertAssetCriticalityRecordsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Errors []SecurityEntityAnalyticsAPIAssetCriticalityBulkUploadErrorItem `json:"errors"` + Stats SecurityEntityAnalyticsAPIAssetCriticalityBulkUploadStats `json:"stats"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest APMUI404Response + } + + return response, nil +} + +// ParseFindAssetCriticalityRecordsResponse parses an HTTP response from a FindAssetCriticalityRecordsWithResponse call +func ParseFindAssetCriticalityRecordsResponse(rsp *http.Response) (*FindAssetCriticalityRecordsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FindAssetCriticalityRecordsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Page int `json:"page"` + PerPage int `json:"per_page"` + Records []SecurityEntityAnalyticsAPIAssetCriticalityRecord `json:"records"` + Total int `json:"total"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest } return response, nil } -// ParseSearchSingleConfigurationResponse parses an HTTP response from a SearchSingleConfigurationWithResponse call -func ParseSearchSingleConfigurationResponse(rsp *http.Response) (*SearchSingleConfigurationResponse, error) { +// ParsePostAttackDiscoveryBulkResponse parses an HTTP response from a PostAttackDiscoveryBulkWithResponse call +func ParsePostAttackDiscoveryBulkResponse(rsp *http.Response) (*PostAttackDiscoveryBulkResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SearchSingleConfigurationResponse{ + response := &PostAttackDiscoveryBulkResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest APMUISearchAgentConfigurationResponse + var dest struct { + // Data Array of updated Attack discovery alert objects. Each item includes the applied modifications from the bulk update request. + Data []SecurityAIAssistantAPIAttackDiscoveryApiAlert `json:"data"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APMUI400Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest + var dest struct { + // Error Error type + Error string `json:"error"` - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest APMUI401Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + // Message Human-readable error message describing what went wrong with the bulk update request + Message string `json:"message"` - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest APMUI404Response + // StatusCode HTTP status code + StatusCode float32 `json:"status_code"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON400 = &dest } return response, nil } -// ParseGetSingleAgentConfigurationResponse parses an HTTP response from a GetSingleAgentConfigurationWithResponse call -func ParseGetSingleAgentConfigurationResponse(rsp *http.Response) (*GetSingleAgentConfigurationResponse, error) { +// ParseAttackDiscoveryFindResponse parses an HTTP response from a AttackDiscoveryFindWithResponse call +func ParseAttackDiscoveryFindResponse(rsp *http.Response) (*AttackDiscoveryFindResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSingleAgentConfigurationResponse{ + response := &AttackDiscoveryFindResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest APMUISingleAgentConfigurationResponse + var dest struct { + // ConnectorNames List of human readable connector names that are present in the matched Attack discoveries. Useful for building client filters or summaries. + ConnectorNames []string `json:"connector_names"` + + // Data Array of matched Attack discovery objects. Each item follows the `AttackDiscoveryApiAlert` schema. + Data []SecurityAIAssistantAPIAttackDiscoveryApiAlert `json:"data"` + + // Page Current page number of the paginated result set. + Page int `json:"page"` + + // PerPage Number of items requested per page. + PerPage int `json:"per_page"` + + // Total Total number of Attack discoveries matching the query (across all pages). + Total int `json:"total"` + + // UniqueAlertIds List of unique alert IDs aggregated from the matched Attack discoveries. Only present if `include_unique_alert_ids=true` in the request. + UniqueAlertIds *[]string `json:"unique_alert_ids,omitempty"` + + // UniqueAlertIdsCount Number of unique alert IDs across all matched Attack discoveries. Only present if `include_unique_alert_ids=true` in the request. + UniqueAlertIdsCount int `json:"unique_alert_ids_count"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APMUI400Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest + var dest struct { + // Error Error type + Error *string `json:"error,omitempty"` - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest APMUI401Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + // Message Human-readable error message + Message *string `json:"message,omitempty"` - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest APMUI404Response + // StatusCode HTTP status code + StatusCode *float32 `json:"status_code,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON400 = &dest } return response, nil } -// ParseGetSourceMapsResponse parses an HTTP response from a GetSourceMapsWithResponse call -func ParseGetSourceMapsResponse(rsp *http.Response) (*GetSourceMapsResponse, error) { +// ParsePostAttackDiscoveryGenerateResponse parses an HTTP response from a PostAttackDiscoveryGenerateWithResponse call +func ParsePostAttackDiscoveryGenerateResponse(rsp *http.Response) (*PostAttackDiscoveryGenerateResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSourceMapsResponse{ + response := &PostAttackDiscoveryGenerateResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest APMUISourceMapsResponse + var dest struct { + // ExecutionUuid A string that does not contain only whitespace characters. + ExecutionUuid SecurityAIAssistantAPINonEmptyString `json:"execution_uuid"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APMUI400Response + var dest struct { + // Error Error type + Error string `json:"error"` + + // Message Human-readable error message describing what went wrong + Message string `json:"message"` + + // StatusCode HTTP status code + StatusCode float32 `json:"status_code"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest APMUI401Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest APMUI500Response + return response, nil +} + +// ParseGetAttackDiscoveryGenerationsResponse parses an HTTP response from a GetAttackDiscoveryGenerationsWithResponse call +func ParseGetAttackDiscoveryGenerationsResponse(rsp *http.Response) (*GetAttackDiscoveryGenerationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAttackDiscoveryGenerationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Generations List of attack discovery generations + Generations []SecurityAIAssistantAPIAttackDiscoveryGeneration `json:"generations"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: - var dest APMUI501Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + // Error Error type + Error *string `json:"error,omitempty"` + + // Message Human-readable error message + Message *string `json:"message,omitempty"` + + // StatusCode HTTP status code + StatusCode *float32 `json:"status_code,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON501 = &dest + response.JSON400 = &dest } return response, nil } -// ParseUploadSourceMapResponse parses an HTTP response from a UploadSourceMapWithResponse call -func ParseUploadSourceMapResponse(rsp *http.Response) (*UploadSourceMapResponse, error) { +// ParseGetAttackDiscoveryGenerationResponse parses an HTTP response from a GetAttackDiscoveryGenerationWithResponse call +func ParseGetAttackDiscoveryGenerationResponse(rsp *http.Response) (*GetAttackDiscoveryGenerationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UploadSourceMapResponse{ + response := &GetAttackDiscoveryGenerationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest APMUIUploadSourceMapsResponse + var dest struct { + // Data Array of Attack discoveries generated during this execution. + Data []SecurityAIAssistantAPIAttackDiscoveryApiAlert `json:"data"` + Generation *SecurityAIAssistantAPIAttackDiscoveryGeneration `json:"generation,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APMUI400Response + var dest struct { + // Error Error type + Error string `json:"error"` + + // Message Human-readable error message describing what went wrong with the request + Message string `json:"message"` + + // StatusCode HTTP status code + StatusCode float32 `json:"status_code"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest APMUI401Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APMUI403Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest APMUI500Response +// ParsePostAttackDiscoveryGenerationsDismissResponse parses an HTTP response from a PostAttackDiscoveryGenerationsDismissWithResponse call +func ParsePostAttackDiscoveryGenerationsDismissResponse(rsp *http.Response) (*PostAttackDiscoveryGenerationsDismissResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAttackDiscoveryGenerationsDismissResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AlertsContextCount The number of alerts that were sent as context to the LLM for this generation. + AlertsContextCount *float32 `json:"alerts_context_count,omitempty"` + + // ConnectorId The unique identifier of the connector used to generate the attack discoveries. + ConnectorId string `json:"connector_id"` + + // ConnectorStats Statistical information about the connector's performance for this user, providing insights into usage patterns and success rates. + ConnectorStats *struct { + // AverageSuccessfulDurationNanoseconds The average duration in nanoseconds for successful generations using this connector by the current user. + AverageSuccessfulDurationNanoseconds *float32 `json:"average_successful_duration_nanoseconds,omitempty"` + + // SuccessfulGenerations The total number of Attack discoveries successfully created for this generation + SuccessfulGenerations *float32 `json:"successful_generations,omitempty"` + } `json:"connector_stats,omitempty"` + + // Discoveries The number of attack discoveries that were generated during this execution. + Discoveries float32 `json:"discoveries"` + + // End The timestamp when the generation process completed, in ISO 8601 format. This field may be absent for generations that haven't finished. + End *string `json:"end,omitempty"` + + // ExecutionUuid The unique identifier for this attack discovery generation execution. This UUID can be used to reference this specific generation in other API calls. + ExecutionUuid string `json:"execution_uuid"` + + // LoadingMessage A human-readable message describing the current state or progress of the generation process. Provides context about what the AI is analyzing. + LoadingMessage string `json:"loading_message"` + + // Reason Additional context or reasoning provided when a generation fails or encounters issues. This field helps diagnose problems with the generation process. + Reason *string `json:"reason,omitempty"` + + // Start The timestamp when the generation process began, in ISO 8601 format. This marks the beginning of the AI analysis. + Start string `json:"start"` + + // Status The current status of the attack discovery generation. After dismissing, this will be set to "dismissed". + Status PostAttackDiscoveryGenerationsDismiss200Status `json:"status"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: - var dest APMUI501Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + // Error Error type or category + Error string `json:"error"` + + // Message Human-readable error message describing what went wrong with the request. + Message string `json:"message"` + + // StatusCode HTTP status code indicating the type of client error + StatusCode float32 `json:"status_code"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON501 = &dest + response.JSON400 = &dest } return response, nil } -// ParseDeleteSourceMapResponse parses an HTTP response from a DeleteSourceMapWithResponse call -func ParseDeleteSourceMapResponse(rsp *http.Response) (*DeleteSourceMapResponse, error) { +// ParseCreateAttackDiscoverySchedulesResponse parses an HTTP response from a CreateAttackDiscoverySchedulesWithResponse call +func ParseCreateAttackDiscoverySchedulesResponse(rsp *http.Response) (*CreateAttackDiscoverySchedulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSourceMapResponse{ + response := &CreateAttackDiscoverySchedulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest SecurityAIAssistantAPIAttackDiscoveryApiSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APMUI400Response + var dest SecurityAIAssistantAPIAttackDiscoveryGenericError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest APMUI401Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest + } - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APMUI403Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest + return response, nil +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest APMUI500Response +// ParseFindAttackDiscoverySchedulesResponse parses an HTTP response from a FindAttackDiscoverySchedulesWithResponse call +func ParseFindAttackDiscoverySchedulesResponse(rsp *http.Response) (*FindAttackDiscoverySchedulesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FindAttackDiscoverySchedulesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Data Array of matched Attack discovery schedule objects. + Data []SecurityAIAssistantAPIAttackDiscoveryApiSchedule `json:"data"` + + // Page Current page number of the paginated result set. + Page float32 `json:"page"` + + // PerPage Number of items requested per page. + PerPage float32 `json:"per_page"` + + // Total Total number of Attack discovery schedules matching the query (across all pages). + Total float32 `json:"total"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: - var dest APMUI501Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + // Error Error type + Error *string `json:"error,omitempty"` + + // Message Human-readable error message + Message *string `json:"message,omitempty"` + + // StatusCode HTTP status code + StatusCode *float32 `json:"status_code,omitempty"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON501 = &dest + response.JSON400 = &dest } return response, nil } -// ParseDeleteAssetCriticalityRecordResponse parses an HTTP response from a DeleteAssetCriticalityRecordWithResponse call -func ParseDeleteAssetCriticalityRecordResponse(rsp *http.Response) (*DeleteAssetCriticalityRecordResponse, error) { +// ParseDeleteAttackDiscoverySchedulesResponse parses an HTTP response from a DeleteAttackDiscoverySchedulesWithResponse call +func ParseDeleteAttackDiscoverySchedulesResponse(rsp *http.Response) (*DeleteAttackDiscoverySchedulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteAssetCriticalityRecordResponse{ + response := &DeleteAttackDiscoverySchedulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -126831,81 +136045,101 @@ func ParseDeleteAssetCriticalityRecordResponse(rsp *http.Response) (*DeleteAsset switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Deleted True if the record was deleted or false if the record did not exist. - Deleted bool `json:"deleted"` - Record *SecurityEntityAnalyticsAPIAssetCriticalityRecord `json:"record,omitempty"` + // Id A string that does not contain only whitespace characters. + Id SecurityAIAssistantAPINonEmptyString `json:"id"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest SecurityAIAssistantAPIAttackDiscoveryGenericError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + } return response, nil } -// ParseGetAssetCriticalityRecordResponse parses an HTTP response from a GetAssetCriticalityRecordWithResponse call -func ParseGetAssetCriticalityRecordResponse(rsp *http.Response) (*GetAssetCriticalityRecordResponse, error) { +// ParseGetAttackDiscoverySchedulesResponse parses an HTTP response from a GetAttackDiscoverySchedulesWithResponse call +func ParseGetAttackDiscoverySchedulesResponse(rsp *http.Response) (*GetAttackDiscoverySchedulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAssetCriticalityRecordResponse{ + response := &GetAttackDiscoverySchedulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SecurityEntityAnalyticsAPIAssetCriticalityRecord + var dest SecurityAIAssistantAPIAttackDiscoveryApiSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest SecurityAIAssistantAPIAttackDiscoveryGenericError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + } return response, nil } -// ParseCreateAssetCriticalityRecordResponse parses an HTTP response from a CreateAssetCriticalityRecordWithResponse call -func ParseCreateAssetCriticalityRecordResponse(rsp *http.Response) (*CreateAssetCriticalityRecordResponse, error) { +// ParseUpdateAttackDiscoverySchedulesResponse parses an HTTP response from a UpdateAttackDiscoverySchedulesWithResponse call +func ParseUpdateAttackDiscoverySchedulesResponse(rsp *http.Response) (*UpdateAttackDiscoverySchedulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateAssetCriticalityRecordResponse{ + response := &UpdateAttackDiscoverySchedulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SecurityEntityAnalyticsAPIAssetCriticalityRecord + var dest SecurityAIAssistantAPIAttackDiscoveryApiSchedule if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest SecurityAIAssistantAPIAttackDiscoveryGenericError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + } return response, nil } -// ParseBulkUpsertAssetCriticalityRecordsResponse parses an HTTP response from a BulkUpsertAssetCriticalityRecordsWithResponse call -func ParseBulkUpsertAssetCriticalityRecordsResponse(rsp *http.Response) (*BulkUpsertAssetCriticalityRecordsResponse, error) { +// ParseDisableAttackDiscoverySchedulesResponse parses an HTTP response from a DisableAttackDiscoverySchedulesWithResponse call +func ParseDisableAttackDiscoverySchedulesResponse(rsp *http.Response) (*DisableAttackDiscoverySchedulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &BulkUpsertAssetCriticalityRecordsResponse{ + response := &DisableAttackDiscoverySchedulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -126913,28 +136147,35 @@ func ParseBulkUpsertAssetCriticalityRecordsResponse(rsp *http.Response) (*BulkUp switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Errors []SecurityEntityAnalyticsAPIAssetCriticalityBulkUploadErrorItem `json:"errors"` - Stats SecurityEntityAnalyticsAPIAssetCriticalityBulkUploadStats `json:"stats"` + // Id A string that does not contain only whitespace characters. + Id SecurityAIAssistantAPINonEmptyString `json:"id"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest SecurityAIAssistantAPIAttackDiscoveryGenericError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + } return response, nil } -// ParseFindAssetCriticalityRecordsResponse parses an HTTP response from a FindAssetCriticalityRecordsWithResponse call -func ParseFindAssetCriticalityRecordsResponse(rsp *http.Response) (*FindAssetCriticalityRecordsResponse, error) { +// ParseEnableAttackDiscoverySchedulesResponse parses an HTTP response from a EnableAttackDiscoverySchedulesWithResponse call +func ParseEnableAttackDiscoverySchedulesResponse(rsp *http.Response) (*EnableAttackDiscoverySchedulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &FindAssetCriticalityRecordsResponse{ + response := &EnableAttackDiscoverySchedulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -126942,16 +136183,21 @@ func ParseFindAssetCriticalityRecordsResponse(rsp *http.Response) (*FindAssetCri switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Page int `json:"page"` - PerPage int `json:"per_page"` - Records []SecurityEntityAnalyticsAPIAssetCriticalityRecord `json:"records"` - Total int `json:"total"` + // Id A string that does not contain only whitespace characters. + Id SecurityAIAssistantAPINonEmptyString `json:"id"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest SecurityAIAssistantAPIAttackDiscoveryGenericError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + } return response, nil @@ -129322,6 +138568,32 @@ func ParseEndpointGetActionsListResponse(rsp *http.Response) (*EndpointGetAction return response, nil } +// ParseCancelActionResponse parses an HTTP response from a CancelActionWithResponse call +func ParseCancelActionResponse(rsp *http.Response) (*CancelActionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CancelActionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SecurityEndpointManagementAPIResponseActionCreateSuccessResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + // ParseEndpointExecuteActionResponse parses an HTTP response from a EndpointExecuteActionWithResponse call func ParseEndpointExecuteActionResponse(rsp *http.Response) (*EndpointExecuteActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -130294,6 +139566,13 @@ func ParseInitMonitoringEngineResponse(rsp *http.Response) (*InitMonitoringEngin } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest SecurityEntityAnalyticsAPIMonitoringEngineDescriptor + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil @@ -130357,7 +139636,18 @@ func ParsePrivMonHealthResponse(rsp *http.Response) (*PrivMonHealthResponse, err Error *struct { Message *string `json:"message,omitempty"` } `json:"error,omitempty"` + + // Status The status of the Privilege Monitoring Engine Status SecurityEntityAnalyticsAPIPrivilegeMonitoringEngineStatus `json:"status"` + + // Users User statistics for privilege monitoring + Users *struct { + // CurrentCount Current number of privileged users being monitored + CurrentCount int `json:"current_count"` + + // MaxAllowed Maximum number of privileged users allowed to be monitored + MaxAllowed int `json:"max_allowed"` + } `json:"users,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -130872,6 +140162,32 @@ func ParseListEntitiesResponse(rsp *http.Response) (*ListEntitiesResponse, error return response, nil } +// ParseUpsertEntityResponse parses an HTTP response from a UpsertEntityWithResponse call +func ParseUpsertEntityResponse(rsp *http.Response) (*UpsertEntityResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpsertEntityResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SecurityEntityAnalyticsAPIEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + // ParseGetEntityStoreStatusResponse parses an HTTP response from a GetEntityStoreStatusWithResponse call func ParseGetEntityStoreStatusResponse(rsp *http.Response) (*GetEntityStoreStatusResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -132313,6 +141629,7 @@ func ParsePostFleetAgentPoliciesBulkGetResponse(rsp *http.Response) (*PostFleetA DataOutputId *string `json:"data_output_id"` Description *string `json:"description,omitempty"` DownloadSourceId *string `json:"download_source_id"` + FipsAgents *float32 `json:"fips_agents,omitempty"` FleetServerHostId *string `json:"fleet_server_host_id"` // GlobalDataTags User defined data tags that are added to all of the inputs. The values can be strings or numbers. @@ -132685,6 +142002,7 @@ func ParsePostFleetAgentPoliciesAgentpolicyidCopyResponse(rsp *http.Response) (* DataOutputId *string `json:"data_output_id"` Description *string `json:"description,omitempty"` DownloadSourceId *string `json:"download_source_id"` + FipsAgents *float32 `json:"fips_agents,omitempty"` FleetServerHostId *string `json:"fleet_server_host_id"` // GlobalDataTags User defined data tags that are added to all of the inputs. The values can be strings or numbers. @@ -133946,15 +143264,320 @@ func ParseGetFleetAgentsAgentidResponse(rsp *http.Response) (*GetFleetAgentsAgen return response, nil } -// ParsePutFleetAgentsAgentidResponse parses an HTTP response from a PutFleetAgentsAgentidWithResponse call -func ParsePutFleetAgentsAgentidResponse(rsp *http.Response) (*PutFleetAgentsAgentidResponse, error) { +// ParsePutFleetAgentsAgentidResponse parses an HTTP response from a PutFleetAgentsAgentidWithResponse call +func ParsePutFleetAgentsAgentidResponse(rsp *http.Response) (*PutFleetAgentsAgentidResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PutFleetAgentsAgentidResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Item struct { + AccessApiKey *string `json:"access_api_key,omitempty"` + AccessApiKeyId *string `json:"access_api_key_id,omitempty"` + Active bool `json:"active"` + Agent *PutFleetAgentsAgentid_200_Item_Agent `json:"agent,omitempty"` + AuditUnenrolledReason *string `json:"audit_unenrolled_reason,omitempty"` + Components *[]struct { + Id string `json:"id"` + Message string `json:"message"` + Status PutFleetAgentsAgentid200ItemComponentsStatus `json:"status"` + Type string `json:"type"` + Units *[]struct { + Id string `json:"id"` + Message string `json:"message"` + Payload *map[string]interface{} `json:"payload,omitempty"` + Status PutFleetAgentsAgentid200ItemComponentsUnitsStatus `json:"status"` + Type PutFleetAgentsAgentid200ItemComponentsUnitsType `json:"type"` + } `json:"units,omitempty"` + } `json:"components,omitempty"` + DefaultApiKey *string `json:"default_api_key,omitempty"` + DefaultApiKeyHistory *[]struct { + Id string `json:"id"` + RetiredAt string `json:"retired_at"` + } `json:"default_api_key_history,omitempty"` + DefaultApiKeyId *string `json:"default_api_key_id,omitempty"` + EnrolledAt string `json:"enrolled_at"` + Id string `json:"id"` + LastCheckin *string `json:"last_checkin,omitempty"` + LastCheckinMessage *string `json:"last_checkin_message,omitempty"` + LastCheckinStatus *PutFleetAgentsAgentid200ItemLastCheckinStatus `json:"last_checkin_status,omitempty"` + LastKnownStatus *PutFleetAgentsAgentid200ItemLastKnownStatus `json:"last_known_status,omitempty"` + LocalMetadata map[string]interface{} `json:"local_metadata"` + Metrics *struct { + CpuAvg *float32 `json:"cpu_avg,omitempty"` + MemorySizeByteAvg *float32 `json:"memory_size_byte_avg,omitempty"` + } `json:"metrics,omitempty"` + Namespaces *[]string `json:"namespaces,omitempty"` + Outputs *map[string]struct { + ApiKeyId *string `json:"api_key_id,omitempty"` + ToRetireApiKeyIds *[]struct { + Id string `json:"id"` + RetiredAt string `json:"retired_at"` + } `json:"to_retire_api_key_ids,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"outputs,omitempty"` + Packages []string `json:"packages"` + PolicyId *string `json:"policy_id,omitempty"` + PolicyRevision *float32 `json:"policy_revision"` + Sort *[]interface{} `json:"sort,omitempty"` + Status *PutFleetAgentsAgentid200ItemStatus `json:"status,omitempty"` + Tags *[]string `json:"tags,omitempty"` + Type PutFleetAgentsAgentid200ItemType `json:"type"` + UnenrolledAt *string `json:"unenrolled_at,omitempty"` + UnenrollmentStartedAt *string `json:"unenrollment_started_at,omitempty"` + UnhealthyReason *[]PutFleetAgentsAgentid200ItemUnhealthyReason `json:"unhealthy_reason"` + UpgradeAttempts *[]string `json:"upgrade_attempts"` + UpgradeDetails *struct { + ActionId string `json:"action_id"` + Metadata *struct { + DownloadPercent *float32 `json:"download_percent,omitempty"` + DownloadRate *float32 `json:"download_rate,omitempty"` + ErrorMsg *string `json:"error_msg,omitempty"` + FailedState *PutFleetAgentsAgentid200ItemUpgradeDetailsMetadataFailedState `json:"failed_state,omitempty"` + RetryErrorMsg *string `json:"retry_error_msg,omitempty"` + RetryUntil *string `json:"retry_until,omitempty"` + ScheduledAt *string `json:"scheduled_at,omitempty"` + } `json:"metadata,omitempty"` + State PutFleetAgentsAgentid200ItemUpgradeDetailsState `json:"state"` + TargetVersion string `json:"target_version"` + } `json:"upgrade_details"` + UpgradeStartedAt *string `json:"upgrade_started_at"` + UpgradedAt *string `json:"upgraded_at"` + UserProvidedMetadata *map[string]interface{} `json:"user_provided_metadata,omitempty"` + } `json:"item"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParsePostFleetAgentsAgentidActionsResponse parses an HTTP response from a PostFleetAgentsAgentidActionsWithResponse call +func ParsePostFleetAgentsAgentidActionsResponse(rsp *http.Response) (*PostFleetAgentsAgentidActionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostFleetAgentsAgentidActionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Item struct { + AckData interface{} `json:"ack_data"` + Agents *[]string `json:"agents,omitempty"` + CreatedAt string `json:"created_at"` + Data interface{} `json:"data"` + Expiration *string `json:"expiration,omitempty"` + Id string `json:"id"` + MinimumExecutionDuration *float32 `json:"minimum_execution_duration,omitempty"` + Namespaces *[]string `json:"namespaces,omitempty"` + RolloutDurationSeconds *float32 `json:"rollout_duration_seconds,omitempty"` + SentAt *string `json:"sent_at,omitempty"` + SourceUri *string `json:"source_uri,omitempty"` + StartTime *string `json:"start_time,omitempty"` + Total *float32 `json:"total,omitempty"` + Type string `json:"type"` + } `json:"item"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParsePostFleetAgentsAgentidReassignResponse parses an HTTP response from a PostFleetAgentsAgentidReassignWithResponse call +func ParsePostFleetAgentsAgentidReassignResponse(rsp *http.Response) (*PostFleetAgentsAgentidReassignResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostFleetAgentsAgentidReassignResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParsePostFleetAgentsAgentidRequestDiagnosticsResponse parses an HTTP response from a PostFleetAgentsAgentidRequestDiagnosticsWithResponse call +func ParsePostFleetAgentsAgentidRequestDiagnosticsResponse(rsp *http.Response) (*PostFleetAgentsAgentidRequestDiagnosticsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostFleetAgentsAgentidRequestDiagnosticsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + ActionId string `json:"actionId"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParsePostFleetAgentsAgentidUnenrollResponse parses an HTTP response from a PostFleetAgentsAgentidUnenrollWithResponse call +func ParsePostFleetAgentsAgentidUnenrollResponse(rsp *http.Response) (*PostFleetAgentsAgentidUnenrollResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostFleetAgentsAgentidUnenrollResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostFleetAgentsAgentidUpgradeResponse parses an HTTP response from a PostFleetAgentsAgentidUpgradeWithResponse call +func ParsePostFleetAgentsAgentidUpgradeResponse(rsp *http.Response) (*PostFleetAgentsAgentidUpgradeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostFleetAgentsAgentidUpgradeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseGetFleetAgentsAgentidUploadsResponse parses an HTTP response from a GetFleetAgentsAgentidUploadsWithResponse call +func ParseGetFleetAgentsAgentidUploadsResponse(rsp *http.Response) (*GetFleetAgentsAgentidUploadsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutFleetAgentsAgentidResponse{ + response := &GetFleetAgentsAgentidUploadsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -133962,80 +143585,15 @@ func ParsePutFleetAgentsAgentidResponse(rsp *http.Response) (*PutFleetAgentsAgen switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Item struct { - AccessApiKey *string `json:"access_api_key,omitempty"` - AccessApiKeyId *string `json:"access_api_key_id,omitempty"` - Active bool `json:"active"` - Agent *PutFleetAgentsAgentid_200_Item_Agent `json:"agent,omitempty"` - AuditUnenrolledReason *string `json:"audit_unenrolled_reason,omitempty"` - Components *[]struct { - Id string `json:"id"` - Message string `json:"message"` - Status PutFleetAgentsAgentid200ItemComponentsStatus `json:"status"` - Type string `json:"type"` - Units *[]struct { - Id string `json:"id"` - Message string `json:"message"` - Payload *map[string]interface{} `json:"payload,omitempty"` - Status PutFleetAgentsAgentid200ItemComponentsUnitsStatus `json:"status"` - Type PutFleetAgentsAgentid200ItemComponentsUnitsType `json:"type"` - } `json:"units,omitempty"` - } `json:"components,omitempty"` - DefaultApiKey *string `json:"default_api_key,omitempty"` - DefaultApiKeyHistory *[]struct { - Id string `json:"id"` - RetiredAt string `json:"retired_at"` - } `json:"default_api_key_history,omitempty"` - DefaultApiKeyId *string `json:"default_api_key_id,omitempty"` - EnrolledAt string `json:"enrolled_at"` - Id string `json:"id"` - LastCheckin *string `json:"last_checkin,omitempty"` - LastCheckinMessage *string `json:"last_checkin_message,omitempty"` - LastCheckinStatus *PutFleetAgentsAgentid200ItemLastCheckinStatus `json:"last_checkin_status,omitempty"` - LastKnownStatus *PutFleetAgentsAgentid200ItemLastKnownStatus `json:"last_known_status,omitempty"` - LocalMetadata map[string]interface{} `json:"local_metadata"` - Metrics *struct { - CpuAvg *float32 `json:"cpu_avg,omitempty"` - MemorySizeByteAvg *float32 `json:"memory_size_byte_avg,omitempty"` - } `json:"metrics,omitempty"` - Namespaces *[]string `json:"namespaces,omitempty"` - Outputs *map[string]struct { - ApiKeyId *string `json:"api_key_id,omitempty"` - ToRetireApiKeyIds *[]struct { - Id string `json:"id"` - RetiredAt string `json:"retired_at"` - } `json:"to_retire_api_key_ids,omitempty"` - Type *string `json:"type,omitempty"` - } `json:"outputs,omitempty"` - Packages []string `json:"packages"` - PolicyId *string `json:"policy_id,omitempty"` - PolicyRevision *float32 `json:"policy_revision"` - Sort *[]interface{} `json:"sort,omitempty"` - Status *PutFleetAgentsAgentid200ItemStatus `json:"status,omitempty"` - Tags *[]string `json:"tags,omitempty"` - Type PutFleetAgentsAgentid200ItemType `json:"type"` - UnenrolledAt *string `json:"unenrolled_at,omitempty"` - UnenrollmentStartedAt *string `json:"unenrollment_started_at,omitempty"` - UnhealthyReason *[]PutFleetAgentsAgentid200ItemUnhealthyReason `json:"unhealthy_reason"` - UpgradeAttempts *[]string `json:"upgrade_attempts"` - UpgradeDetails *struct { - ActionId string `json:"action_id"` - Metadata *struct { - DownloadPercent *float32 `json:"download_percent,omitempty"` - DownloadRate *float32 `json:"download_rate,omitempty"` - ErrorMsg *string `json:"error_msg,omitempty"` - FailedState *PutFleetAgentsAgentid200ItemUpgradeDetailsMetadataFailedState `json:"failed_state,omitempty"` - RetryErrorMsg *string `json:"retry_error_msg,omitempty"` - RetryUntil *string `json:"retry_until,omitempty"` - ScheduledAt *string `json:"scheduled_at,omitempty"` - } `json:"metadata,omitempty"` - State PutFleetAgentsAgentid200ItemUpgradeDetailsState `json:"state"` - TargetVersion string `json:"target_version"` - } `json:"upgrade_details"` - UpgradeStartedAt *string `json:"upgrade_started_at"` - UpgradedAt *string `json:"upgraded_at"` - UserProvidedMetadata *map[string]interface{} `json:"user_provided_metadata,omitempty"` - } `json:"item"` + Items []struct { + ActionId string `json:"actionId"` + CreateTime string `json:"createTime"` + Error *string `json:"error,omitempty"` + FilePath string `json:"filePath"` + Id string `json:"id"` + Name string `json:"name"` + Status GetFleetAgentsAgentidUploads200ItemsStatus `json:"status"` + } `json:"items"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -134060,15 +143618,15 @@ func ParsePutFleetAgentsAgentidResponse(rsp *http.Response) (*PutFleetAgentsAgen return response, nil } -// ParsePostFleetAgentsAgentidActionsResponse parses an HTTP response from a PostFleetAgentsAgentidActionsWithResponse call -func ParsePostFleetAgentsAgentidActionsResponse(rsp *http.Response) (*PostFleetAgentsAgentidActionsResponse, error) { +// ParseGetFleetCheckPermissionsResponse parses an HTTP response from a GetFleetCheckPermissionsWithResponse call +func ParseGetFleetCheckPermissionsResponse(rsp *http.Response) (*GetFleetCheckPermissionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostFleetAgentsAgentidActionsResponse{ + response := &GetFleetCheckPermissionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -134076,22 +143634,8 @@ func ParsePostFleetAgentsAgentidActionsResponse(rsp *http.Response) (*PostFleetA switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Item struct { - AckData interface{} `json:"ack_data"` - Agents *[]string `json:"agents,omitempty"` - CreatedAt string `json:"created_at"` - Data interface{} `json:"data"` - Expiration *string `json:"expiration,omitempty"` - Id string `json:"id"` - MinimumExecutionDuration *float32 `json:"minimum_execution_duration,omitempty"` - Namespaces *[]string `json:"namespaces,omitempty"` - RolloutDurationSeconds *float32 `json:"rollout_duration_seconds,omitempty"` - SentAt *string `json:"sent_at,omitempty"` - SourceUri *string `json:"source_uri,omitempty"` - StartTime *string `json:"start_time,omitempty"` - Total *float32 `json:"total,omitempty"` - Type string `json:"type"` - } `json:"item"` + Error *GetFleetCheckPermissions200Error `json:"error,omitempty"` + Success bool `json:"success"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -134116,22 +143660,33 @@ func ParsePostFleetAgentsAgentidActionsResponse(rsp *http.Response) (*PostFleetA return response, nil } -// ParsePostFleetAgentsAgentidReassignResponse parses an HTTP response from a PostFleetAgentsAgentidReassignWithResponse call -func ParsePostFleetAgentsAgentidReassignResponse(rsp *http.Response) (*PostFleetAgentsAgentidReassignResponse, error) { +// ParseGetFleetCloudConnectorsResponse parses an HTTP response from a GetFleetCloudConnectorsWithResponse call +func ParseGetFleetCloudConnectorsResponse(rsp *http.Response) (*GetFleetCloudConnectorsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostFleetAgentsAgentidReassignResponse{ + response := &GetFleetCloudConnectorsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest struct { + Items []struct { + CloudProvider string `json:"cloudProvider"` + CreatedAt string `json:"created_at"` + Id string `json:"id"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + PackagePolicyCount float32 `json:"packagePolicyCount"` + UpdatedAt string `json:"updated_at"` + Vars map[string]interface{} `json:"vars"` + } `json:"items"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -134155,15 +143710,15 @@ func ParsePostFleetAgentsAgentidReassignResponse(rsp *http.Response) (*PostFleet return response, nil } -// ParsePostFleetAgentsAgentidRequestDiagnosticsResponse parses an HTTP response from a PostFleetAgentsAgentidRequestDiagnosticsWithResponse call -func ParsePostFleetAgentsAgentidRequestDiagnosticsResponse(rsp *http.Response) (*PostFleetAgentsAgentidRequestDiagnosticsResponse, error) { +// ParsePostFleetCloudConnectorsResponse parses an HTTP response from a PostFleetCloudConnectorsWithResponse call +func ParsePostFleetCloudConnectorsResponse(rsp *http.Response) (*PostFleetCloudConnectorsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostFleetAgentsAgentidRequestDiagnosticsResponse{ + response := &PostFleetCloudConnectorsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -134171,7 +143726,16 @@ func ParsePostFleetAgentsAgentidRequestDiagnosticsResponse(rsp *http.Response) ( switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - ActionId string `json:"actionId"` + Item struct { + CloudProvider string `json:"cloudProvider"` + CreatedAt string `json:"created_at"` + Id string `json:"id"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + PackagePolicyCount float32 `json:"packagePolicyCount"` + UpdatedAt string `json:"updated_at"` + Vars map[string]interface{} `json:"vars"` + } `json:"item"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -134196,38 +143760,24 @@ func ParsePostFleetAgentsAgentidRequestDiagnosticsResponse(rsp *http.Response) ( return response, nil } -// ParsePostFleetAgentsAgentidUnenrollResponse parses an HTTP response from a PostFleetAgentsAgentidUnenrollWithResponse call -func ParsePostFleetAgentsAgentidUnenrollResponse(rsp *http.Response) (*PostFleetAgentsAgentidUnenrollResponse, error) { +// ParseDeleteFleetCloudConnectorsCloudconnectoridResponse parses an HTTP response from a DeleteFleetCloudConnectorsCloudconnectoridWithResponse call +func ParseDeleteFleetCloudConnectorsCloudconnectoridResponse(rsp *http.Response) (*DeleteFleetCloudConnectorsCloudconnectoridResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostFleetAgentsAgentidUnenrollResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostFleetAgentsAgentidUpgradeResponse parses an HTTP response from a PostFleetAgentsAgentidUpgradeWithResponse call -func ParsePostFleetAgentsAgentidUpgradeResponse(rsp *http.Response) (*PostFleetAgentsAgentidUpgradeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostFleetAgentsAgentidUpgradeResponse{ + response := &DeleteFleetCloudConnectorsCloudconnectoridResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest struct { + Id string `json:"id"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -134251,15 +143801,15 @@ func ParsePostFleetAgentsAgentidUpgradeResponse(rsp *http.Response) (*PostFleetA return response, nil } -// ParseGetFleetAgentsAgentidUploadsResponse parses an HTTP response from a GetFleetAgentsAgentidUploadsWithResponse call -func ParseGetFleetAgentsAgentidUploadsResponse(rsp *http.Response) (*GetFleetAgentsAgentidUploadsResponse, error) { +// ParseGetFleetCloudConnectorsCloudconnectoridResponse parses an HTTP response from a GetFleetCloudConnectorsCloudconnectoridWithResponse call +func ParseGetFleetCloudConnectorsCloudconnectoridResponse(rsp *http.Response) (*GetFleetCloudConnectorsCloudconnectoridResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetFleetAgentsAgentidUploadsResponse{ + response := &GetFleetCloudConnectorsCloudconnectoridResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -134267,15 +143817,16 @@ func ParseGetFleetAgentsAgentidUploadsResponse(rsp *http.Response) (*GetFleetAge switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Items []struct { - ActionId string `json:"actionId"` - CreateTime string `json:"createTime"` - Error *string `json:"error,omitempty"` - FilePath string `json:"filePath"` - Id string `json:"id"` - Name string `json:"name"` - Status GetFleetAgentsAgentidUploads200ItemsStatus `json:"status"` - } `json:"items"` + Item struct { + CloudProvider string `json:"cloudProvider"` + CreatedAt string `json:"created_at"` + Id string `json:"id"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + PackagePolicyCount float32 `json:"packagePolicyCount"` + UpdatedAt string `json:"updated_at"` + Vars map[string]interface{} `json:"vars"` + } `json:"item"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -134300,15 +143851,15 @@ func ParseGetFleetAgentsAgentidUploadsResponse(rsp *http.Response) (*GetFleetAge return response, nil } -// ParseGetFleetCheckPermissionsResponse parses an HTTP response from a GetFleetCheckPermissionsWithResponse call -func ParseGetFleetCheckPermissionsResponse(rsp *http.Response) (*GetFleetCheckPermissionsResponse, error) { +// ParsePutFleetCloudConnectorsCloudconnectoridResponse parses an HTTP response from a PutFleetCloudConnectorsCloudconnectoridWithResponse call +func ParsePutFleetCloudConnectorsCloudconnectoridResponse(rsp *http.Response) (*PutFleetCloudConnectorsCloudconnectoridResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetFleetCheckPermissionsResponse{ + response := &PutFleetCloudConnectorsCloudconnectoridResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -134316,8 +143867,16 @@ func ParseGetFleetCheckPermissionsResponse(rsp *http.Response) (*GetFleetCheckPe switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Error *GetFleetCheckPermissions200Error `json:"error,omitempty"` - Success bool `json:"success"` + Item struct { + CloudProvider string `json:"cloudProvider"` + CreatedAt string `json:"created_at"` + Id string `json:"id"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + PackagePolicyCount float32 `json:"packagePolicyCount"` + UpdatedAt string `json:"updated_at"` + Vars map[string]interface{} `json:"vars"` + } `json:"item"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -135565,6 +145124,47 @@ func ParsePostFleetEpmPackagesPkgnamePkgversionKibanaAssetsResponse(rsp *http.Re return response, nil } +// ParsePostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse parses an HTTP response from a PostFleetEpmPackagesPkgnamePkgversionRuleAssetsWithResponse call +func ParsePostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse(rsp *http.Response) (*PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostFleetEpmPackagesPkgnamePkgversionRuleAssetsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Success bool `json:"success"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Attributes interface{} `json:"attributes"` + Error *string `json:"error,omitempty"` + ErrorType *string `json:"errorType,omitempty"` + Message string `json:"message"` + StatusCode *float32 `json:"statusCode,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + // ParsePostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeResponse parses an HTTP response from a PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeWithResponse call func ParsePostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeResponse(rsp *http.Response) (*PostFleetEpmPackagesPkgnamePkgversionTransformsAuthorizeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -136568,8 +146168,11 @@ func ParsePostFleetPackagePoliciesBulkGetResponse(rsp *http.Response) (*PostFlee // AdditionalDatastreamsPermissions Additional datastream permissions, that will be added to the agent policy. AdditionalDatastreamsPermissions *[]string `json:"additional_datastreams_permissions"` Agents *float32 `json:"agents,omitempty"` - CreatedAt string `json:"created_at"` - CreatedBy string `json:"created_by"` + + // CloudConnectorId ID of the cloud connector associated with this package policy. + CloudConnectorId *string `json:"cloud_connector_id"` + CreatedAt string `json:"created_at"` + CreatedBy string `json:"created_by"` // Description Package policy description Description *string `json:"description,omitempty"` @@ -136600,6 +146203,7 @@ func ParsePostFleetPackagePoliciesBulkGetResponse(rsp *http.Response) (*PostFlee Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -136621,11 +146225,14 @@ func ParsePostFleetPackagePoliciesBulkGetResponse(rsp *http.Response) (*PostFlee SpaceIds *[]string `json:"spaceIds,omitempty"` // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. - SupportsAgentless *bool `json:"supports_agentless"` - UpdatedAt string `json:"updated_at"` - UpdatedBy string `json:"updated_by"` - Vars *PostFleetPackagePoliciesBulkGet_200_Items_Vars `json:"vars,omitempty"` - Version *string `json:"version,omitempty"` + SupportsAgentless *bool `json:"supports_agentless"` + + // SupportsCloudConnector Indicates whether the package policy supports cloud connectors. + SupportsCloudConnector *bool `json:"supports_cloud_connector"` + UpdatedAt string `json:"updated_at"` + UpdatedBy string `json:"updated_by"` + Vars *PostFleetPackagePoliciesBulkGet_200_Items_Vars `json:"vars,omitempty"` + Version *string `json:"version,omitempty"` } `json:"items"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -136692,6 +146299,7 @@ func ParsePostFleetPackagePoliciesDeleteResponse(rsp *http.Response) (*PostFleet Tsdb *bool `json:"tsdb,omitempty"` } `json:"features"` } `json:"experimental_data_stream_features,omitempty"` + FipsCompatible *bool `json:"fips_compatible,omitempty"` // Name Package name Name string `json:"name"` @@ -137415,7 +147023,8 @@ func ParseGetFleetSettingsResponse(rsp *http.Response) (*GetFleetSettingsRespons case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Item struct { - DeleteUnenrolledAgents *struct { + ActionSecretStorageRequirementsMet *bool `json:"action_secret_storage_requirements_met,omitempty"` + DeleteUnenrolledAgents *struct { Enabled bool `json:"enabled"` IsPreconfigured bool `json:"is_preconfigured"` } `json:"delete_unenrolled_agents,omitempty"` @@ -137479,7 +147088,8 @@ func ParsePutFleetSettingsResponse(rsp *http.Response) (*PutFleetSettingsRespons case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Item struct { - DeleteUnenrolledAgents *struct { + ActionSecretStorageRequirementsMet *bool `json:"action_secret_storage_requirements_met,omitempty"` + DeleteUnenrolledAgents *struct { Enabled bool `json:"enabled"` IsPreconfigured bool `json:"is_preconfigured"` } `json:"delete_unenrolled_agents,omitempty"` @@ -138965,6 +148575,100 @@ func ParseGetLogstashPipelinesResponse(rsp *http.Response) (*GetLogstashPipeline return response, nil } +// ParseGetMaintenanceWindowFindResponse parses an HTTP response from a GetMaintenanceWindowFindWithResponse call +func ParseGetMaintenanceWindowFindResponse(rsp *http.Response) (*GetMaintenanceWindowFindResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetMaintenanceWindowFindResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + MaintenanceWindows []struct { + // CreatedAt The date and time when the maintenance window was created. + CreatedAt string `json:"created_at"` + + // CreatedBy The identifier for the user that created the maintenance window. + CreatedBy *string `json:"created_by"` + + // Enabled Whether the current maintenance window is enabled. Disabled maintenance windows do not suppress notifications. + Enabled bool `json:"enabled"` + + // Id The identifier for the maintenance window. + Id string `json:"id"` + Schedule struct { + Custom struct { + // Duration The duration of the schedule. It allows values in `` format. `` is one of `d`, `h`, `m`, or `s` for hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`. + Duration string `json:"duration"` + Recurring *struct { + // End The end date of a recurring schedule, provided in ISO 8601 format and set to the UTC timezone. For example: `2025-04-01T00:00:00.000Z`. + End *string `json:"end,omitempty"` + + // Every The interval and frequency of a recurring schedule. It allows values in `` format. `` is one of `d`, `w`, `M`, or `y` for days, weeks, months, years. For example: `15d`, `2w`, `3m`, `1y`. + Every *string `json:"every,omitempty"` + + // Occurrences The total number of recurrences of the schedule. + Occurrences *float32 `json:"occurrences,omitempty"` + + // OnMonth The specific months for a recurring schedule. Valid values are 1-12. + OnMonth *[]float32 `json:"onMonth,omitempty"` + + // OnMonthDay The specific days of the month for a recurring schedule. Valid values are 1-31. + OnMonthDay *[]float32 `json:"onMonthDay,omitempty"` + + // OnWeekDay The specific days of the week (`[MO,TU,WE,TH,FR,SA,SU]`) or nth day of month (`[+1MO, -3FR, +2WE, -4SA, -5SU]`) for a recurring schedule. + OnWeekDay *[]string `json:"onWeekDay,omitempty"` + } `json:"recurring,omitempty"` + + // Start The start date and time of the schedule, provided in ISO 8601 format and set to the UTC timezone. For example: `2025-03-12T12:00:00.000Z`. + Start string `json:"start"` + + // Timezone The timezone of the schedule. The default timezone is UTC. + Timezone *string `json:"timezone,omitempty"` + } `json:"custom"` + } `json:"schedule"` + Scope *struct { + Alerting struct { + Query struct { + // Kql A filter written in Kibana Query Language (KQL). + Kql string `json:"kql"` + } `json:"query"` + } `json:"alerting"` + } `json:"scope,omitempty"` + + // Status The current status of the maintenance window. + Status GetMaintenanceWindowFind200MaintenanceWindowsStatus `json:"status"` + + // Title The name of the maintenance window. + Title string `json:"title"` + + // UpdatedAt The date and time when the maintenance window was last updated. + UpdatedAt string `json:"updated_at"` + + // UpdatedBy The identifier for the user that last updated this maintenance window. + UpdatedBy *string `json:"updated_by"` + } `json:"maintenanceWindows"` + Page float32 `json:"page"` + PerPage float32 `json:"per_page"` + Total float32 `json:"total"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + // ParsePostMaintenanceWindowIdArchiveResponse parses an HTTP response from a PostMaintenanceWindowIdArchiveWithResponse call func ParsePostMaintenanceWindowIdArchiveResponse(rsp *http.Response) (*PostMaintenanceWindowIdArchiveResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -141019,6 +150723,9 @@ func ParseReadKnowledgeBaseResponse(rsp *http.Response) (*ReadKnowledgeBaseRespo switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { + // DefendInsightsExists Indicates if Defend Insights documentation exists in the KnowledgeBase. + DefendInsightsExists *bool `json:"defend_insights_exists,omitempty"` + // ElserExists Indicates if the ELSER model exists for the KnowledgeBase. ElserExists *bool `json:"elser_exists,omitempty"` @@ -141908,15 +151615,15 @@ func ParseGetStreamsNameSignificantEventsResponse(rsp *http.Response) (*GetStrea return response, nil } -// ParseGetStreamsNameSignificantEventsGenerateResponse parses an HTTP response from a GetStreamsNameSignificantEventsGenerateWithResponse call -func ParseGetStreamsNameSignificantEventsGenerateResponse(rsp *http.Response) (*GetStreamsNameSignificantEventsGenerateResponse, error) { +// ParsePostStreamsNameSignificantEventsGenerateResponse parses an HTTP response from a PostStreamsNameSignificantEventsGenerateWithResponse call +func ParsePostStreamsNameSignificantEventsGenerateResponse(rsp *http.Response) (*PostStreamsNameSignificantEventsGenerateResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetStreamsNameSignificantEventsGenerateResponse{ + response := &PostStreamsNameSignificantEventsGenerateResponse{ Body: bodyBytes, HTTPResponse: rsp, } diff --git a/generated/kbapi/transform_schema.go b/generated/kbapi/transform_schema.go index 82a841583..962151838 100644 --- a/generated/kbapi/transform_schema.go +++ b/generated/kbapi/transform_schema.go @@ -566,6 +566,7 @@ var transformers = []TransformFunc{ fixPutSecurityRoleName, fixGetSpacesParams, fixGetSyntheticsMonitorsParams, + fixGetMaintenanceWindowFindParams, transformRemoveExamples, transformRemoveUnusedComponents, transformOmitEmptyNullable, @@ -909,6 +910,10 @@ func fixGetSyntheticsMonitorsParams(schema *Schema) { schema.MustGetPath("/api/synthetics/monitors").MustGetEndpoint("get").Move("parameters.12.schema.oneOf.1", "parameters.12.schema") } +func fixGetMaintenanceWindowFindParams(schema *Schema) { + schema.MustGetPath("/api/maintenance_window/_find").MustGetEndpoint("get").Move("parameters.2.schema.anyOf.1", "parameters.2.schema") +} + // transformFleetPaths fixes the fleet paths. func transformFleetPaths(schema *Schema) { // Agent policies diff --git a/internal/fleet/integration_policy/create.go b/internal/fleet/integration_policy/create.go index 2a47da9b5..d9024792d 100644 --- a/internal/fleet/integration_policy/create.go +++ b/internal/fleet/integration_policy/create.go @@ -22,7 +22,13 @@ func (r *integrationPolicyResource) Create(ctx context.Context, req resource.Cre return } - body, diags := planModel.toAPIModel(ctx, false) + feat, diags := r.buildFeatures(ctx) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + body, diags := planModel.toAPIModel(ctx, false, feat) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return diff --git a/internal/fleet/integration_policy/models.go b/internal/fleet/integration_policy/models.go index 0ffe6014e..a76265d03 100644 --- a/internal/fleet/integration_policy/models.go +++ b/internal/fleet/integration_policy/models.go @@ -2,6 +2,7 @@ package integration_policy import ( "context" + "fmt" "sort" "github.com/elastic/terraform-provider-elasticstack/generated/kbapi" @@ -12,12 +13,17 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) +type features struct { + SupportsPolicyIds bool +} + type integrationPolicyModel struct { ID types.String `tfsdk:"id"` PolicyID types.String `tfsdk:"policy_id"` Name types.String `tfsdk:"name"` Namespace types.String `tfsdk:"namespace"` AgentPolicyID types.String `tfsdk:"agent_policy_id"` + AgentPolicyIDs types.List `tfsdk:"agent_policy_ids"` Description types.String `tfsdk:"description"` Enabled types.Bool `tfsdk:"enabled"` Force types.Bool `tfsdk:"force"` @@ -45,7 +51,40 @@ func (model *integrationPolicyModel) populateFromAPI(ctx context.Context, data * model.PolicyID = types.StringValue(data.Id) model.Name = types.StringValue(data.Name) model.Namespace = types.StringPointerValue(data.Namespace) - model.AgentPolicyID = types.StringPointerValue(data.PolicyId) + + // Only populate the agent policy field that was originally configured + // to avoid Terraform detecting inconsistent state + + originallyUsedAgentPolicyID := utils.IsKnown(model.AgentPolicyID) + originallyUsedAgentPolicyIDs := utils.IsKnown(model.AgentPolicyIDs) + + if originallyUsedAgentPolicyID { + model.AgentPolicyID = types.StringPointerValue(data.PolicyId) + } + if originallyUsedAgentPolicyIDs { + if data.PolicyIds != nil { + agentPolicyIDs, d := types.ListValueFrom(ctx, types.StringType, *data.PolicyIds) + diags.Append(d...) + model.AgentPolicyIDs = agentPolicyIDs + } else { + model.AgentPolicyIDs = types.ListNull(types.StringType) + } + } + + if !originallyUsedAgentPolicyID && !originallyUsedAgentPolicyIDs { + // Handle edge cases: both fields configured or neither configured + // Default to the behavior based on API response structure + if data.PolicyIds != nil && len(*data.PolicyIds) > 1 { + // Multiple policy IDs, use agent_policy_ids + agentPolicyIDs, d := types.ListValueFrom(ctx, types.StringType, *data.PolicyIds) + diags.Append(d...) + model.AgentPolicyIDs = agentPolicyIDs + } else if data.PolicyId != nil { + // Single policy ID, use agent_policy_id + model.AgentPolicyID = types.StringPointerValue(data.PolicyId) + } + } + model.Description = types.StringPointerValue(data.Description) model.Enabled = types.BoolValue(data.Enabled) model.IntegrationName = types.StringValue(data.Package.Name) @@ -81,9 +120,22 @@ func (model *integrationPolicyModel) populateInputFromAPI(ctx context.Context, i } } -func (model integrationPolicyModel) toAPIModel(ctx context.Context, isUpdate bool) (kbapi.PackagePolicyRequest, diag.Diagnostics) { +func (model integrationPolicyModel) toAPIModel(ctx context.Context, isUpdate bool, feat features) (kbapi.PackagePolicyRequest, diag.Diagnostics) { var diags diag.Diagnostics + // Check if agent_policy_ids is configured and version supports it + if utils.IsKnown(model.AgentPolicyIDs) { + if !feat.SupportsPolicyIds { + return kbapi.PackagePolicyRequest{}, diag.Diagnostics{ + diag.NewAttributeErrorDiagnostic( + path.Root("agent_policy_ids"), + "Unsupported Elasticsearch version", + fmt.Sprintf("Agent policy IDs are only supported in Elastic Stack %s and above", MinVersionPolicyIds), + ), + } + } + } + body := kbapi.PackagePolicyRequest{ Description: model.Description.ValueStringPointer(), Force: model.Force.ValueBoolPointer(), @@ -94,7 +146,21 @@ func (model integrationPolicyModel) toAPIModel(ctx context.Context, isUpdate boo Version: model.IntegrationVersion.ValueString(), }, PolicyId: model.AgentPolicyID.ValueStringPointer(), - Vars: utils.MapRef(utils.NormalizedTypeToMap[any](model.VarsJson, path.Root("vars_json"), &diags)), + PolicyIds: func() *[]string { + if !model.AgentPolicyIDs.IsNull() && !model.AgentPolicyIDs.IsUnknown() { + var policyIDs []string + d := model.AgentPolicyIDs.ElementsAs(ctx, &policyIDs, false) + diags.Append(d...) + return &policyIDs + } + // Only return empty array for 8.15+ when agent_policy_ids is not defined + if feat.SupportsPolicyIds { + emptyArray := []string{} + return &emptyArray + } + return nil + }(), + Vars: utils.MapRef(utils.NormalizedTypeToMap[any](model.VarsJson, path.Root("vars_json"), &diags)), } if isUpdate { diff --git a/internal/fleet/integration_policy/resource.go b/internal/fleet/integration_policy/resource.go index b10e68a80..0343b4dca 100644 --- a/internal/fleet/integration_policy/resource.go +++ b/internal/fleet/integration_policy/resource.go @@ -5,6 +5,9 @@ import ( "fmt" "github.com/elastic/terraform-provider-elasticstack/internal/clients" + "github.com/elastic/terraform-provider-elasticstack/internal/diagutil" + "github.com/hashicorp/go-version" + "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" ) @@ -16,6 +19,10 @@ var ( _ resource.ResourceWithUpgradeState = &integrationPolicyResource{} ) +var ( + MinVersionPolicyIds = version.Must(version.NewVersion("8.15.0")) +) + // NewResource is a helper function to simplify the provider implementation. func NewResource() resource.Resource { return &integrationPolicyResource{} @@ -44,3 +51,14 @@ func (r *integrationPolicyResource) UpgradeState(context.Context) map[int64]reso 0: {PriorSchema: getSchemaV0(), StateUpgrader: upgradeV0}, } } + +func (r *integrationPolicyResource) buildFeatures(ctx context.Context) (features, diag.Diagnostics) { + supportsPolicyIds, diags := r.client.EnforceMinVersion(ctx, MinVersionPolicyIds) + if diags.HasError() { + return features{}, diagutil.FrameworkDiagsFromSDK(diags) + } + + return features{ + SupportsPolicyIds: supportsPolicyIds, + }, nil +} diff --git a/internal/fleet/integration_policy/resource_test.go b/internal/fleet/integration_policy/resource_test.go index d9d759df2..578aaabff 100644 --- a/internal/fleet/integration_policy/resource_test.go +++ b/internal/fleet/integration_policy/resource_test.go @@ -21,8 +21,9 @@ import ( ) var ( - minVersionIntegrationPolicy = version.Must(version.NewVersion("8.10.0")) - minVersionSqlIntegration = version.Must(version.NewVersion("9.1.0")) + minVersionIntegrationPolicy = version.Must(version.NewVersion("8.10.0")) + minVersionIntegrationPolicyIds = version.Must(version.NewVersion("8.15.0")) + minVersionSqlIntegration = version.Must(version.NewVersion("9.1.0")) ) func TestJsonTypes(t *testing.T) { @@ -33,6 +34,29 @@ func TestJsonTypes(t *testing.T) { require.False(t, equal) } +func TestAccResourceIntegrationPolicyMultipleAgentPolicies(t *testing.T) { + policyName := sdkacctest.RandStringFromCharSet(22, sdkacctest.CharSetAlphaNum) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acctest.PreCheck(t) }, + CheckDestroy: checkResourceIntegrationPolicyDestroy, + ProtoV6ProviderFactories: acctest.Providers, + Steps: []resource.TestStep{ + { + SkipFunc: versionutils.CheckIfVersionIsUnsupported(minVersionIntegrationPolicyIds), + Config: testAccResourceIntegrationPolicyCreateMultipleAgentPolicies(policyName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("elasticstack_fleet_integration_policy.test_policy", "name", policyName), + resource.TestCheckResourceAttr("elasticstack_fleet_integration_policy.test_policy", "description", "IntegrationPolicyTest Policy"), + resource.TestCheckResourceAttr("elasticstack_fleet_integration_policy.test_policy", "integration_name", "tcp"), + resource.TestCheckResourceAttr("elasticstack_fleet_integration_policy.test_policy", "integration_version", "1.16.0"), + resource.TestCheckResourceAttr("elasticstack_fleet_integration_policy.test_policy", "agent_policy_ids.#", "2"), + ), + }, + }, + }) +} + func TestAccResourceIntegrationPolicy(t *testing.T) { policyName := sdkacctest.RandStringFromCharSet(22, sdkacctest.CharSetAlphaNum) @@ -494,6 +518,64 @@ resource "elasticstack_fleet_integration_policy" "test_policy" { `, common, id, key, id) } +func testAccResourceIntegrationPolicyCreateMultipleAgentPolicies(id string) string { + return fmt.Sprintf(` +provider "elasticstack" { + elasticsearch {} + kibana {} +} +resource "elasticstack_fleet_integration" "test_policy" { + name = "tcp" + version = "1.16.0" + force = true +} +resource "elasticstack_fleet_agent_policy" "test_policy_1" { + name = "%s Agent Policy 1" + namespace = "default" + description = "IntegrationPolicyTest Agent Policy 1" + monitor_logs = true + monitor_metrics = true + skip_destroy = false +} +resource "elasticstack_fleet_agent_policy" "test_policy_2" { + name = "%s Agent Policy 2" + namespace = "default" + description = "IntegrationPolicyTest Agent Policy 2" + monitor_logs = true + monitor_metrics = true + skip_destroy = false +} +resource "elasticstack_fleet_integration_policy" "test_policy" { + name = "%s" + namespace = "default" + description = "IntegrationPolicyTest Policy" + agent_policy_ids = [ + elasticstack_fleet_agent_policy.test_policy_1.policy_id, + elasticstack_fleet_agent_policy.test_policy_2.policy_id + ] + integration_name = elasticstack_fleet_integration.test_policy.name + integration_version = elasticstack_fleet_integration.test_policy.version + input { + input_id = "tcp-tcp" + streams_json = jsonencode({ + "tcp.generic": { + "enabled": true + "vars": { + "listen_address": "localhost" + "listen_port": 8080 + "data_stream.dataset": "tcp.generic" + "tags": [] + "syslog_options": "field: message" + "ssl": "" + "custom": "" + } + } + }) + } +} +`, id, id, id) +} + func testAccResourceIntegrationPolicySecretsIds(id string, key string) string { common := testAccResourceIntegrationPolicyCommon(id, "sql", "1.1.0") return fmt.Sprintf(` diff --git a/internal/fleet/integration_policy/schema.go b/internal/fleet/integration_policy/schema.go index 903c25a09..a50b5e561 100644 --- a/internal/fleet/integration_policy/schema.go +++ b/internal/fleet/integration_policy/schema.go @@ -5,12 +5,17 @@ import ( _ "embed" "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" + "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" + "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" ) //go:embed resource-description.md @@ -51,7 +56,19 @@ func getSchemaV1() schema.Schema { }, "agent_policy_id": schema.StringAttribute{ Description: "ID of the agent policy.", - Required: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.ConflictsWith(path.Root("agent_policy_ids").Expression()), + }, + }, + "agent_policy_ids": schema.ListAttribute{ + Description: "List of agent policy IDs.", + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ConflictsWith(path.Root("agent_policy_id").Expression()), + listvalidator.SizeAtLeast(1), + }, }, "description": schema.StringAttribute{ Description: "The description of the integration policy.", diff --git a/internal/fleet/integration_policy/update.go b/internal/fleet/integration_policy/update.go index d094c2c49..82f70dc7a 100644 --- a/internal/fleet/integration_policy/update.go +++ b/internal/fleet/integration_policy/update.go @@ -22,7 +22,13 @@ func (r *integrationPolicyResource) Update(ctx context.Context, req resource.Upd return } - body, diags := planModel.toAPIModel(ctx, true) + feat, diags := r.buildFeatures(ctx) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + body, diags := planModel.toAPIModel(ctx, true, feat) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return diff --git a/internal/fleet/integration_policy/upgrade.go b/internal/fleet/integration_policy/upgrade.go index 7992ce150..1cf0330ac 100644 --- a/internal/fleet/integration_policy/upgrade.go +++ b/internal/fleet/integration_policy/upgrade.go @@ -4,7 +4,7 @@ import ( "context" "github.com/elastic/terraform-provider-elasticstack/internal/utils" - "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" @@ -14,6 +14,29 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) +// V0 model structures - used regular string types for JSON fields +type integrationPolicyModelV0 struct { + ID types.String `tfsdk:"id"` + PolicyID types.String `tfsdk:"policy_id"` + Name types.String `tfsdk:"name"` + Namespace types.String `tfsdk:"namespace"` + AgentPolicyID types.String `tfsdk:"agent_policy_id"` + Description types.String `tfsdk:"description"` + Enabled types.Bool `tfsdk:"enabled"` + Force types.Bool `tfsdk:"force"` + IntegrationName types.String `tfsdk:"integration_name"` + IntegrationVersion types.String `tfsdk:"integration_version"` + Input types.List `tfsdk:"input"` //> integrationPolicyInputModelV0 + VarsJson types.String `tfsdk:"vars_json"` +} + +type integrationPolicyInputModelV0 struct { + InputID types.String `tfsdk:"input_id"` + Enabled types.Bool `tfsdk:"enabled"` + StreamsJson types.String `tfsdk:"streams_json"` + VarsJson types.String `tfsdk:"vars_json"` +} + func getSchemaV0() *schema.Schema { return &schema.Schema{ Version: 0, @@ -45,70 +68,84 @@ func getSchemaV0() *schema.Schema { } } -func getInputTypeV0() attr.Type { - return getSchemaV0().Blocks["input"].Type().(attr.TypeWithElementType).ElementType() -} - -type integrationPolicyModelV0 struct { - ID types.String `tfsdk:"id"` - PolicyID types.String `tfsdk:"policy_id"` - Name types.String `tfsdk:"name"` - Namespace types.String `tfsdk:"namespace"` - AgentPolicyID types.String `tfsdk:"agent_policy_id"` - Description types.String `tfsdk:"description"` - Enabled types.Bool `tfsdk:"enabled"` - Force types.Bool `tfsdk:"force"` - IntegrationName types.String `tfsdk:"integration_name"` - IntegrationVersion types.String `tfsdk:"integration_version"` - Input types.List `tfsdk:"input"` //> integrationPolicyInputModelV0 - VarsJson types.String `tfsdk:"vars_json"` -} - -type integrationPolicyInputModelV0 struct { - InputID types.String `tfsdk:"input_id"` - Enabled types.Bool `tfsdk:"enabled"` - StreamsJson types.String `tfsdk:"streams_json"` - VarsJson types.String `tfsdk:"vars_json"` -} - // The schema between V0 and V1 is mostly the same, however vars_json and // streams_json saved "" values to the state when null values were in the // config. jsontypes.Normalized correctly states this is invalid JSON. func upgradeV0(ctx context.Context, req resource.UpgradeStateRequest, resp *resource.UpgradeStateResponse) { - var stateModel integrationPolicyModelV0 + var stateModelV0 integrationPolicyModelV0 - diags := req.State.Get(ctx, &stateModel) + diags := req.State.Get(ctx, &stateModelV0) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } - if varsJSON := stateModel.VarsJson.ValueStringPointer(); varsJSON != nil { + // Convert V0 model to V1 model + stateModelV1 := integrationPolicyModel{ + ID: stateModelV0.ID, + PolicyID: stateModelV0.PolicyID, + Name: stateModelV0.Name, + Namespace: stateModelV0.Namespace, + AgentPolicyID: stateModelV0.AgentPolicyID, + AgentPolicyIDs: types.ListNull(types.StringType), // V0 didn't have agent_policy_ids + Description: stateModelV0.Description, + Enabled: stateModelV0.Enabled, + Force: stateModelV0.Force, + IntegrationName: stateModelV0.IntegrationName, + IntegrationVersion: stateModelV0.IntegrationVersion, + } + + // Convert vars_json from string to normalized JSON type + if varsJSON := stateModelV0.VarsJson.ValueStringPointer(); varsJSON != nil { if *varsJSON == "" { - stateModel.VarsJson = types.StringNull() + stateModelV1.VarsJson = jsontypes.NewNormalizedNull() + } else { + stateModelV1.VarsJson = jsontypes.NewNormalizedValue(*varsJSON) } + } else { + stateModelV1.VarsJson = jsontypes.NewNormalizedNull() } - inputs := utils.ListTypeAs[integrationPolicyInputModelV0](ctx, stateModel.Input, path.Root("input"), &resp.Diagnostics) - for index, input := range inputs { - if varsJSON := input.VarsJson.ValueStringPointer(); varsJSON != nil { + // Convert inputs from V0 to V1 + inputsV0 := utils.ListTypeAs[integrationPolicyInputModelV0](ctx, stateModelV0.Input, path.Root("input"), &resp.Diagnostics) + var inputsV1 []integrationPolicyInputModel + + for _, inputV0 := range inputsV0 { + inputV1 := integrationPolicyInputModel{ + InputID: inputV0.InputID, + Enabled: inputV0.Enabled, + } + + // Convert vars_json + if varsJSON := inputV0.VarsJson.ValueStringPointer(); varsJSON != nil { if *varsJSON == "" { - input.VarsJson = types.StringNull() + inputV1.VarsJson = jsontypes.NewNormalizedNull() + } else { + inputV1.VarsJson = jsontypes.NewNormalizedValue(*varsJSON) } + } else { + inputV1.VarsJson = jsontypes.NewNormalizedNull() } - if streamsJSON := input.StreamsJson.ValueStringPointer(); streamsJSON != nil { + + // Convert streams_json + if streamsJSON := inputV0.StreamsJson.ValueStringPointer(); streamsJSON != nil { if *streamsJSON == "" { - input.StreamsJson = types.StringNull() + inputV1.StreamsJson = jsontypes.NewNormalizedNull() + } else { + inputV1.StreamsJson = jsontypes.NewNormalizedValue(*streamsJSON) } + } else { + inputV1.StreamsJson = jsontypes.NewNormalizedNull() } - inputs[index] = input + + inputsV1 = append(inputsV1, inputV1) } - stateModel.Input = utils.ListValueFrom(ctx, inputs, getInputTypeV0(), path.Root("input"), &resp.Diagnostics) + stateModelV1.Input = utils.ListValueFrom(ctx, inputsV1, getInputTypeV1(), path.Root("input"), &resp.Diagnostics) if resp.Diagnostics.HasError() { return } - diags = resp.State.Set(ctx, stateModel) + diags = resp.State.Set(ctx, stateModelV1) resp.Diagnostics.Append(diags...) }