diff --git a/generated/kbapi/Makefile b/generated/kbapi/Makefile index 7082f3194..7838ae396 100644 --- a/generated/kbapi/Makefile +++ b/generated/kbapi/Makefile @@ -2,7 +2,7 @@ SHELL := /bin/bash ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) -github_ref ?= c99d51cf47585e53277092f7678cf33c8e279ef7 +github_ref ?= e84e2ebcadd9232e4da97f4a9ac8c5a66212a4ff oas_url := https://raw.githubusercontent.com/elastic/kibana/$(github_ref)/oas_docs/output/kibana.yaml .PHONY: all diff --git a/generated/kbapi/kibana.gen.go b/generated/kbapi/kibana.gen.go index 00076d17d..baf4d385a 100644 --- a/generated/kbapi/kibana.gen.go +++ b/generated/kbapi/kibana.gen.go @@ -1570,6 +1570,13 @@ const ( SecurityEntityAnalyticsAPIStoreStatusStopped SecurityEntityAnalyticsAPIStoreStatus = "stopped" ) +// Defines values for SecurityEntityAnalyticsAPIUserNameEntityAnalyticsMonitoringLabelsSource. +const ( + Api SecurityEntityAnalyticsAPIUserNameEntityAnalyticsMonitoringLabelsSource = "api" + Csv SecurityEntityAnalyticsAPIUserNameEntityAnalyticsMonitoringLabelsSource = "csv" + IndexSync SecurityEntityAnalyticsAPIUserNameEntityAnalyticsMonitoringLabelsSource = "index_sync" +) + // Defines values for SecurityExceptionsAPIExceptionListItemEntryExistsType. const ( SecurityExceptionsAPIExceptionListItemEntryExistsTypeExists SecurityExceptionsAPIExceptionListItemEntryExistsType = "exists" @@ -1808,6 +1815,13 @@ const ( Tcp SyntheticsTcpMonitorFieldsType = "tcp" ) +// Defines values for AgentPolicyAgentlessCloudConnectorsTargetCsp. +const ( + AgentPolicyAgentlessCloudConnectorsTargetCspAws AgentPolicyAgentlessCloudConnectorsTargetCsp = "aws" + AgentPolicyAgentlessCloudConnectorsTargetCspAzure AgentPolicyAgentlessCloudConnectorsTargetCsp = "azure" + AgentPolicyAgentlessCloudConnectorsTargetCspGcp AgentPolicyAgentlessCloudConnectorsTargetCsp = "gcp" +) + // Defines values for AgentPolicyMonitoringEnabled. const ( AgentPolicyMonitoringEnabledLogs AgentPolicyMonitoringEnabled = "logs" @@ -3288,6 +3302,13 @@ const ( GetFleetAgentPoliciesParamsFormatSimplified GetFleetAgentPoliciesParamsFormat = "simplified" ) +// Defines values for PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCsp. +const ( + PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCspAws PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCsp = "aws" + PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCspAzure PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCsp = "azure" + PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCspGcp PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCsp = "gcp" +) + // Defines values for PostFleetAgentPoliciesJSONBodyMonitoringEnabled. const ( PostFleetAgentPoliciesJSONBodyMonitoringEnabledLogs PostFleetAgentPoliciesJSONBodyMonitoringEnabled = "logs" @@ -3313,6 +3334,13 @@ const ( PutFleetAgentPoliciesAgentpolicyidParamsFormatSimplified PutFleetAgentPoliciesAgentpolicyidParamsFormat = "simplified" ) +// Defines values for PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCsp. +const ( + PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCspAws PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCsp = "aws" + PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCspAzure PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCsp = "azure" + PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCspGcp PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCsp = "gcp" +) + // Defines values for PutFleetAgentPoliciesAgentpolicyidJSONBodyMonitoringEnabled. const ( PutFleetAgentPoliciesAgentpolicyidJSONBodyMonitoringEnabledLogs PutFleetAgentPoliciesAgentpolicyidJSONBodyMonitoringEnabled = "logs" @@ -3370,9 +3398,9 @@ const ( // Defines values for PostFleetCloudConnectorsJSONBodyCloudProvider. const ( - Aws PostFleetCloudConnectorsJSONBodyCloudProvider = "aws" - Azure PostFleetCloudConnectorsJSONBodyCloudProvider = "azure" - Gcp PostFleetCloudConnectorsJSONBodyCloudProvider = "gcp" + PostFleetCloudConnectorsJSONBodyCloudProviderAws PostFleetCloudConnectorsJSONBodyCloudProvider = "aws" + PostFleetCloudConnectorsJSONBodyCloudProviderAzure PostFleetCloudConnectorsJSONBodyCloudProvider = "azure" + PostFleetCloudConnectorsJSONBodyCloudProviderGcp PostFleetCloudConnectorsJSONBodyCloudProvider = "gcp" ) // Defines values for PostFleetEpmCustomIntegrationsJSONBodyDatasetsType. @@ -12884,6 +12912,32 @@ type SecurityDetectionsAPIProcessesParams struct { // SecurityDetectionsAPIProcessesParamsCommand To run an endpoint response action, specify a value for the command field. Example: "command": "isolate" type SecurityDetectionsAPIProcessesParamsCommand string +// SecurityDetectionsAPIQueryAlertsBodyParams defines model for Security_Detections_API_QueryAlertsBodyParams. +type SecurityDetectionsAPIQueryAlertsBodyParams struct { + UnderscoreSource *SecurityDetectionsAPIQueryAlertsBodyParams_Source `json:"_source,omitempty"` + Aggs *map[string]interface{} `json:"aggs,omitempty"` + Fields *[]string `json:"fields,omitempty"` + Query *map[string]interface{} `json:"query,omitempty"` + RuntimeMappings *map[string]interface{} `json:"runtime_mappings,omitempty"` + Size *int `json:"size,omitempty"` + Sort *SecurityDetectionsAPIAlertsSort `json:"sort,omitempty"` + TrackTotalHits *bool `json:"track_total_hits,omitempty"` +} + +// SecurityDetectionsAPIQueryAlertsBodyParamsSource0 defines model for . +type SecurityDetectionsAPIQueryAlertsBodyParamsSource0 = bool + +// SecurityDetectionsAPIQueryAlertsBodyParamsSource1 defines model for . +type SecurityDetectionsAPIQueryAlertsBodyParamsSource1 = string + +// SecurityDetectionsAPIQueryAlertsBodyParamsSource2 defines model for . +type SecurityDetectionsAPIQueryAlertsBodyParamsSource2 = []string + +// SecurityDetectionsAPIQueryAlertsBodyParams_Source defines model for SecurityDetectionsAPIQueryAlertsBodyParams.Source. +type SecurityDetectionsAPIQueryAlertsBodyParams_Source struct { + union json.RawMessage +} + // SecurityDetectionsAPIQueryRule defines model for Security_Detections_API_QueryRule. type SecurityDetectionsAPIQueryRule struct { // Actions Array defining the automated actions (notifications) taken when alerts are generated. @@ -18989,6 +19043,8 @@ type SecurityEntityAnalyticsAPIEntityRiskScoreRecord struct { Category1Score float64 `json:"category_1_score"` Category2Count *int `json:"category_2_count,omitempty"` Category2Score *float64 `json:"category_2_score,omitempty"` + Category3Count *int `json:"category_3_count,omitempty"` + Category3Score *float64 `json:"category_3_score,omitempty"` // CriticalityLevel The criticality level of the asset. CriticalityLevel *SecurityEntityAnalyticsAPIAssetCriticalityLevel `json:"criticality_level,omitempty"` @@ -19001,8 +19057,10 @@ type SecurityEntityAnalyticsAPIEntityRiskScoreRecord struct { IdValue string `json:"id_value"` // Inputs A list of the highest-risk documents contributing to this risk score. Useful for investigative purposes. - Inputs []SecurityEntityAnalyticsAPIRiskScoreInput `json:"inputs"` - Notes []string `json:"notes"` + Inputs []SecurityEntityAnalyticsAPIRiskScoreInput `json:"inputs"` + IsPrivilegedUser *bool `json:"is_privileged_user,omitempty"` + Notes []string `json:"notes"` + PrivilegedUserModifier *float64 `json:"privileged_user_modifier,omitempty"` } // SecurityEntityAnalyticsAPIEntityType defines model for Security_Entity_Analytics_API_EntityType. @@ -19059,7 +19117,8 @@ type SecurityEntityAnalyticsAPIMonitoredUserDoc struct { Labels *[]SecurityEntityAnalyticsAPIMonitoringLabel `json:"labels,omitempty"` } `json:"entity_analytics_monitoring,omitempty"` Event *struct { - Ingested *time.Time `json:"ingested,omitempty"` + Timestamp *time.Time `json:"@timestamp,omitempty"` + Ingested *time.Time `json:"ingested,omitempty"` } `json:"event,omitempty"` Id *string `json:"id,omitempty"` Labels *struct { @@ -19234,12 +19293,29 @@ type SecurityEntityAnalyticsAPIUserEntity struct { // SecurityEntityAnalyticsAPIUserName defines model for Security_Entity_Analytics_API_UserName. type SecurityEntityAnalyticsAPIUserName struct { + // EntityAnalyticsMonitoring Entity analytics monitoring configuration for the user + EntityAnalyticsMonitoring *struct { + // Labels Array of labels associated with the user + Labels *[]struct { + // Field The field name for the label + Field *string `json:"field,omitempty"` + + // Source The source where this label was created (api, csv, or index_sync) + Source *SecurityEntityAnalyticsAPIUserNameEntityAnalyticsMonitoringLabelsSource `json:"source,omitempty"` + + // Value The value of the label + Value *string `json:"value,omitempty"` + } `json:"labels,omitempty"` + } `json:"entity_analytics_monitoring,omitempty"` User *struct { // Name The name of the user. Name *string `json:"name,omitempty"` } `json:"user,omitempty"` } +// SecurityEntityAnalyticsAPIUserNameEntityAnalyticsMonitoringLabelsSource The source where this label was created (api, csv, or index_sync) +type SecurityEntityAnalyticsAPIUserNameEntityAnalyticsMonitoringLabelsSource string + // SecurityExceptionsAPICreateExceptionListItemComment defines model for Security_Exceptions_API_CreateExceptionListItemComment. type SecurityExceptionsAPICreateExceptionListItemComment struct { // Comment A string that does not contain only whitespace characters @@ -21748,8 +21824,8 @@ type AgentPolicy struct { } `json:"agent_features,omitempty"` Agentless *struct { CloudConnectors *struct { - Enabled bool `json:"enabled"` - TargetCsp *string `json:"target_csp,omitempty"` + Enabled bool `json:"enabled"` + TargetCsp *AgentPolicyAgentlessCloudConnectorsTargetCsp `json:"target_csp,omitempty"` } `json:"cloud_connectors,omitempty"` Resources *struct { Requests *struct { @@ -21829,6 +21905,9 @@ type AgentPolicy struct { Version *string `json:"version,omitempty"` } +// AgentPolicyAgentlessCloudConnectorsTargetCsp defines model for AgentPolicy.Agentless.CloudConnectors.TargetCsp. +type AgentPolicyAgentlessCloudConnectorsTargetCsp string + // AgentPolicyMonitoringEnabled defines model for AgentPolicy.MonitoringEnabled. type AgentPolicyMonitoringEnabled string @@ -23875,7 +23954,8 @@ type PackagePolicyRequest struct { // PolicyIds IDs of the agent policies which that package policy will be added to. PolicyIds *[]string `json:"policy_ids,omitempty"` - // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. + // SupportsAgentless Indicates whether the package policy belongs to an agentless agent policy. Deprecated in favor of the Fleet agentless policies API. + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set SupportsAgentless *bool `json:"supports_agentless,omitempty"` Vars *map[string]interface{} `json:"vars,omitempty"` } @@ -24281,7 +24361,7 @@ type ParamsPropertyApmTransactionErrorRateGroupBy string // ParamsPropertyApmTransactionErrorRateWindowUnit The window size unit type ParamsPropertyApmTransactionErrorRateWindowUnit string -// ParamsPropertyInfraInventory defines model for params_property_infra_inventory. +// ParamsPropertyInfraInventory The parameters for the infrastructure inventory rule. These parameters are appropriate when `rule_type_id` is `metrics.alert.inventory.threshold`. type ParamsPropertyInfraInventory struct { AlertOnNoData *bool `json:"alertOnNoData,omitempty"` Criteria *[]struct { @@ -24328,7 +24408,7 @@ type ParamsPropertyInfraInventoryCriteriaWarningComparator string // ParamsPropertyInfraInventoryNodeType defines model for ParamsPropertyInfraInventory.NodeType. type ParamsPropertyInfraInventoryNodeType string -// ParamsPropertyInfraMetricThreshold defines model for params_property_infra_metric_threshold. +// ParamsPropertyInfraMetricThreshold The parameters for the metric threshold rule. These parameters are appropriate when `rule_type_id` is `metrics.alert.threshold`. type ParamsPropertyInfraMetricThreshold struct { // AlertOnGroupDisappear If true, an alert occurs if a group that previously reported metrics does not report them again over the expected time period. This check is not recommended for dynamically scaling infrastructures that might rapidly start and stop nodes automatically. AlertOnGroupDisappear *bool `json:"alertOnGroupDisappear,omitempty"` @@ -24485,7 +24565,7 @@ type ParamsPropertyLogThreshold struct { union json.RawMessage } -// ParamsPropertyLogThreshold0 defines model for . +// ParamsPropertyLogThreshold0 The parameters for a log threshold rule that counts the number of log entries that match the criteria. These parameters are appropriate when `rule_type_id` is `logs.alert.document.count`. type ParamsPropertyLogThreshold0 struct { Count struct { Comparator *ParamsPropertyLogThreshold0CountComparator `json:"comparator,omitempty"` @@ -24528,7 +24608,7 @@ type ParamsPropertyLogThreshold0LogViewType string // ParamsPropertyLogThreshold0TimeUnit defines model for ParamsPropertyLogThreshold.0.TimeUnit. type ParamsPropertyLogThreshold0TimeUnit string -// ParamsPropertyLogThreshold1 defines model for . +// ParamsPropertyLogThreshold1 The parameters for a log threshold rule that calculates the ratio of log entries that match the criteria. These parameters are appropriate when `rule_type_id` is `logs.alert.document.count`. type ParamsPropertyLogThreshold1 struct { Count struct { Comparator *ParamsPropertyLogThreshold1CountComparator `json:"comparator,omitempty"` @@ -24601,7 +24681,7 @@ type ParamsPropertySloBurnRate struct { SloId *string `json:"sloId,omitempty"` } -// ParamsPropertySyntheticsMonitorStatus defines model for params_property_synthetics_monitor_status. +// ParamsPropertySyntheticsMonitorStatus The parameters for the Synthetics monitor status rule. These parameters are appropriate when `rule_type_id` is `xpack.uptime.alerts.monitorStatus`. type ParamsPropertySyntheticsMonitorStatus struct { Availability *struct { Range *float32 `json:"range,omitempty"` @@ -24642,7 +24722,7 @@ type ParamsPropertySyntheticsMonitorStatus_Filters struct { union json.RawMessage } -// ParamsPropertySyntheticsUptimeTls defines model for params_property_synthetics_uptime_tls. +// ParamsPropertySyntheticsUptimeTls The parameters for the synthetics TLS certificate rule. These parameters are appropriate when `rule_type_id` is `xpack.uptime.alerts.tls`. type ParamsPropertySyntheticsUptimeTls struct { CertAgeThreshold *float32 `json:"certAgeThreshold,omitempty"` CertExpirationThreshold *float32 `json:"certExpirationThreshold,omitempty"` @@ -28663,32 +28743,6 @@ type ReadAlertsMigrationStatusParams struct { From string `form:"from" json:"from"` } -// SearchAlertsJSONBody defines parameters for SearchAlerts. -type SearchAlertsJSONBody struct { - UnderscoreSource *SearchAlertsJSONBody_Source `json:"_source,omitempty"` - Aggs *map[string]interface{} `json:"aggs,omitempty"` - Fields *[]string `json:"fields,omitempty"` - Query *map[string]interface{} `json:"query,omitempty"` - RuntimeMappings *map[string]interface{} `json:"runtime_mappings,omitempty"` - Size *int `json:"size,omitempty"` - Sort *SecurityDetectionsAPIAlertsSort `json:"sort,omitempty"` - TrackTotalHits *bool `json:"track_total_hits,omitempty"` -} - -// SearchAlertsJSONBodySource0 defines parameters for SearchAlerts. -type SearchAlertsJSONBodySource0 = bool - -// SearchAlertsJSONBodySource1 defines parameters for SearchAlerts. -type SearchAlertsJSONBodySource1 = string - -// SearchAlertsJSONBodySource2 defines parameters for SearchAlerts. -type SearchAlertsJSONBodySource2 = []string - -// SearchAlertsJSONBody_Source defines parameters for SearchAlerts. -type SearchAlertsJSONBody_Source struct { - union json.RawMessage -} - // SetAlertsStatusJSONBody defines parameters for SetAlertsStatus. type SetAlertsStatusJSONBody struct { union json.RawMessage @@ -29265,8 +29319,8 @@ type PostFleetAgentPoliciesJSONBody struct { } `json:"agent_features,omitempty"` Agentless *struct { CloudConnectors *struct { - Enabled bool `json:"enabled"` - TargetCsp *string `json:"target_csp,omitempty"` + Enabled bool `json:"enabled"` + TargetCsp *PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCsp `json:"target_csp,omitempty"` } `json:"cloud_connectors,omitempty"` Resources *struct { Requests *struct { @@ -29329,7 +29383,8 @@ type PostFleetAgentPoliciesJSONBody struct { } `json:"required_versions,omitempty"` SpaceIds *[]string `json:"space_ids,omitempty"` - // SupportsAgentless Indicates whether the agent policy supports agentless integrations. + // SupportsAgentless Indicates whether the agent policy supports agentless integrations. Deprecated in favor of the Fleet agentless policies API. + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set SupportsAgentless *bool `json:"supports_agentless,omitempty"` UnenrollTimeout *float32 `json:"unenroll_timeout,omitempty"` } @@ -29339,6 +29394,9 @@ type PostFleetAgentPoliciesParams struct { SysMonitoring *bool `form:"sys_monitoring,omitempty" json:"sys_monitoring,omitempty"` } +// PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCsp defines parameters for PostFleetAgentPolicies. +type PostFleetAgentPoliciesJSONBodyAgentlessCloudConnectorsTargetCsp string + // PostFleetAgentPoliciesJSONBodyMonitoringEnabled defines parameters for PostFleetAgentPolicies. type PostFleetAgentPoliciesJSONBodyMonitoringEnabled string @@ -29402,8 +29460,8 @@ type PutFleetAgentPoliciesAgentpolicyidJSONBody struct { } `json:"agent_features,omitempty"` Agentless *struct { CloudConnectors *struct { - Enabled bool `json:"enabled"` - TargetCsp *string `json:"target_csp,omitempty"` + Enabled bool `json:"enabled"` + TargetCsp *PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCsp `json:"target_csp,omitempty"` } `json:"cloud_connectors,omitempty"` Resources *struct { Requests *struct { @@ -29467,7 +29525,8 @@ type PutFleetAgentPoliciesAgentpolicyidJSONBody struct { } `json:"required_versions,omitempty"` SpaceIds *[]string `json:"space_ids,omitempty"` - // SupportsAgentless Indicates whether the agent policy supports agentless integrations. + // SupportsAgentless Indicates whether the agent policy supports agentless integrations. Deprecated in favor of the Fleet agentless policies API. + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set SupportsAgentless *bool `json:"supports_agentless,omitempty"` UnenrollTimeout *float32 `json:"unenroll_timeout,omitempty"` } @@ -29480,6 +29539,9 @@ type PutFleetAgentPoliciesAgentpolicyidParams struct { // PutFleetAgentPoliciesAgentpolicyidParamsFormat defines parameters for PutFleetAgentPoliciesAgentpolicyid. type PutFleetAgentPoliciesAgentpolicyidParamsFormat string +// PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCsp defines parameters for PutFleetAgentPoliciesAgentpolicyid. +type PutFleetAgentPoliciesAgentpolicyidJSONBodyAgentlessCloudConnectorsTargetCsp string + // PutFleetAgentPoliciesAgentpolicyidJSONBodyMonitoringEnabled defines parameters for PutFleetAgentPoliciesAgentpolicyid. type PutFleetAgentPoliciesAgentpolicyidJSONBodyMonitoringEnabled string @@ -29546,6 +29608,16 @@ type GetFleetAgentStatusDataParamsAgentsIds1 = string type PostFleetAgentlessPoliciesJSONBody struct { // AdditionalDatastreamsPermissions Additional datastream permissions, that will be added to the agent policy. AdditionalDatastreamsPermissions *[]string `json:"additional_datastreams_permissions,omitempty"` + CloudConnector *struct { + // CloudConnectorId ID of an existing cloud connector to reuse. If not provided, a new connector will be created. + CloudConnectorId *string `json:"cloud_connector_id,omitempty"` + + // Enabled Whether cloud connectors are enabled for this policy. + Enabled *bool `json:"enabled,omitempty"` + + // Name Optional name for the cloud connector. If not provided, will be auto-generated from credentials. + Name *string `json:"name,omitempty"` + } `json:"cloud_connector,omitempty"` // Description Policy description. Description *string `json:"description,omitempty"` @@ -30770,7 +30842,7 @@ type GetMaintenanceWindowFindParams struct { // 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", "archived", or "disabled". + // Status The status of the maintenance window. It can be "running", "upcoming", "finished", "archived", or "disabled". Status *[]GetMaintenanceWindowFindParamsStatus `form:"status,omitempty" json:"status,omitempty"` // Page The page number to return. @@ -30789,6 +30861,12 @@ type MlSyncParams struct { Simulate *MachineLearningAPIsSimulateParam `form:"simulate,omitempty" json:"simulate,omitempty"` } +// MlUpdateJobsSpacesJSONBody defines parameters for MlUpdateJobsSpaces. +type MlUpdateJobsSpacesJSONBody interface{} + +// MlUpdateTrainedModelsSpacesJSONBody defines parameters for MlUpdateTrainedModelsSpaces. +type MlUpdateTrainedModelsSpacesJSONBody interface{} + // DeleteNoteJSONBody defines parameters for DeleteNote. type DeleteNoteJSONBody struct { union json.RawMessage @@ -47695,7 +47773,7 @@ type AlertsMigrationCleanupJSONRequestBody AlertsMigrationCleanupJSONBody type CreateAlertsMigrationJSONRequestBody CreateAlertsMigrationJSONBody // SearchAlertsJSONRequestBody defines body for SearchAlerts for application/json ContentType. -type SearchAlertsJSONRequestBody SearchAlertsJSONBody +type SearchAlertsJSONRequestBody = SecurityDetectionsAPIQueryAlertsBodyParams // SetAlertsStatusJSONRequestBody defines body for SetAlertsStatus for application/json ContentType. type SetAlertsStatusJSONRequestBody SetAlertsStatusJSONBody @@ -47943,6 +48021,12 @@ type ImportListItemsMultipartRequestBody ImportListItemsMultipartBody // PutLogstashPipelineJSONRequestBody defines body for PutLogstashPipeline for application/json ContentType. type PutLogstashPipelineJSONRequestBody PutLogstashPipelineJSONBody +// MlUpdateJobsSpacesJSONRequestBody defines body for MlUpdateJobsSpaces for application/json ContentType. +type MlUpdateJobsSpacesJSONRequestBody MlUpdateJobsSpacesJSONBody + +// MlUpdateTrainedModelsSpacesJSONRequestBody defines body for MlUpdateTrainedModelsSpaces for application/json ContentType. +type MlUpdateTrainedModelsSpacesJSONRequestBody MlUpdateTrainedModelsSpacesJSONBody + // DeleteNoteJSONRequestBody defines body for DeleteNote for application/json ContentType. type DeleteNoteJSONRequestBody DeleteNoteJSONBody @@ -60785,7 +60869,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 = "cardinality" + v.Aggregation = "avg" b, err := json.Marshal(v) t.union = b return err @@ -60793,7 +60877,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 = "cardinality" + v.Aggregation = "avg" b, err := json.Marshal(v) if err != nil { return err @@ -60874,7 +60958,7 @@ func (t SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) Value return nil, err } switch discriminator { - case "cardinality": + case "avg": return t.AsSLOsTimesliceMetricBasicMetricWithField() case "doc_count": return t.AsSLOsTimesliceMetricDocCountMetric() @@ -62979,6 +63063,94 @@ func (t *SecurityDetectionsAPIMachineLearningJobId) UnmarshalJSON(b []byte) erro return err } +// AsSecurityDetectionsAPIQueryAlertsBodyParamsSource0 returns the union data inside the SecurityDetectionsAPIQueryAlertsBodyParams_Source as a SecurityDetectionsAPIQueryAlertsBodyParamsSource0 +func (t SecurityDetectionsAPIQueryAlertsBodyParams_Source) AsSecurityDetectionsAPIQueryAlertsBodyParamsSource0() (SecurityDetectionsAPIQueryAlertsBodyParamsSource0, error) { + var body SecurityDetectionsAPIQueryAlertsBodyParamsSource0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityDetectionsAPIQueryAlertsBodyParamsSource0 overwrites any union data inside the SecurityDetectionsAPIQueryAlertsBodyParams_Source as the provided SecurityDetectionsAPIQueryAlertsBodyParamsSource0 +func (t *SecurityDetectionsAPIQueryAlertsBodyParams_Source) FromSecurityDetectionsAPIQueryAlertsBodyParamsSource0(v SecurityDetectionsAPIQueryAlertsBodyParamsSource0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityDetectionsAPIQueryAlertsBodyParamsSource0 performs a merge with any union data inside the SecurityDetectionsAPIQueryAlertsBodyParams_Source, using the provided SecurityDetectionsAPIQueryAlertsBodyParamsSource0 +func (t *SecurityDetectionsAPIQueryAlertsBodyParams_Source) MergeSecurityDetectionsAPIQueryAlertsBodyParamsSource0(v SecurityDetectionsAPIQueryAlertsBodyParamsSource0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsSecurityDetectionsAPIQueryAlertsBodyParamsSource1 returns the union data inside the SecurityDetectionsAPIQueryAlertsBodyParams_Source as a SecurityDetectionsAPIQueryAlertsBodyParamsSource1 +func (t SecurityDetectionsAPIQueryAlertsBodyParams_Source) AsSecurityDetectionsAPIQueryAlertsBodyParamsSource1() (SecurityDetectionsAPIQueryAlertsBodyParamsSource1, error) { + var body SecurityDetectionsAPIQueryAlertsBodyParamsSource1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityDetectionsAPIQueryAlertsBodyParamsSource1 overwrites any union data inside the SecurityDetectionsAPIQueryAlertsBodyParams_Source as the provided SecurityDetectionsAPIQueryAlertsBodyParamsSource1 +func (t *SecurityDetectionsAPIQueryAlertsBodyParams_Source) FromSecurityDetectionsAPIQueryAlertsBodyParamsSource1(v SecurityDetectionsAPIQueryAlertsBodyParamsSource1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityDetectionsAPIQueryAlertsBodyParamsSource1 performs a merge with any union data inside the SecurityDetectionsAPIQueryAlertsBodyParams_Source, using the provided SecurityDetectionsAPIQueryAlertsBodyParamsSource1 +func (t *SecurityDetectionsAPIQueryAlertsBodyParams_Source) MergeSecurityDetectionsAPIQueryAlertsBodyParamsSource1(v SecurityDetectionsAPIQueryAlertsBodyParamsSource1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsSecurityDetectionsAPIQueryAlertsBodyParamsSource2 returns the union data inside the SecurityDetectionsAPIQueryAlertsBodyParams_Source as a SecurityDetectionsAPIQueryAlertsBodyParamsSource2 +func (t SecurityDetectionsAPIQueryAlertsBodyParams_Source) AsSecurityDetectionsAPIQueryAlertsBodyParamsSource2() (SecurityDetectionsAPIQueryAlertsBodyParamsSource2, error) { + var body SecurityDetectionsAPIQueryAlertsBodyParamsSource2 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromSecurityDetectionsAPIQueryAlertsBodyParamsSource2 overwrites any union data inside the SecurityDetectionsAPIQueryAlertsBodyParams_Source as the provided SecurityDetectionsAPIQueryAlertsBodyParamsSource2 +func (t *SecurityDetectionsAPIQueryAlertsBodyParams_Source) FromSecurityDetectionsAPIQueryAlertsBodyParamsSource2(v SecurityDetectionsAPIQueryAlertsBodyParamsSource2) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeSecurityDetectionsAPIQueryAlertsBodyParamsSource2 performs a merge with any union data inside the SecurityDetectionsAPIQueryAlertsBodyParams_Source, using the provided SecurityDetectionsAPIQueryAlertsBodyParamsSource2 +func (t *SecurityDetectionsAPIQueryAlertsBodyParams_Source) MergeSecurityDetectionsAPIQueryAlertsBodyParamsSource2(v SecurityDetectionsAPIQueryAlertsBodyParamsSource2) 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 SecurityDetectionsAPIQueryAlertsBodyParams_Source) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *SecurityDetectionsAPIQueryAlertsBodyParams_Source) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + // AsSecurityDetectionsAPIOsqueryResponseAction returns the union data inside the SecurityDetectionsAPIResponseAction as a SecurityDetectionsAPIOsqueryResponseAction func (t SecurityDetectionsAPIResponseAction) AsSecurityDetectionsAPIOsqueryResponseAction() (SecurityDetectionsAPIOsqueryResponseAction, error) { var body SecurityDetectionsAPIOsqueryResponseAction @@ -75914,6 +76086,16 @@ type ClientInterface interface { // MlSync request MlSync(ctx context.Context, params *MlSyncParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // MlUpdateJobsSpacesWithBody request with any body + MlUpdateJobsSpacesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + MlUpdateJobsSpaces(ctx context.Context, body MlUpdateJobsSpacesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // MlUpdateTrainedModelsSpacesWithBody request with any body + MlUpdateTrainedModelsSpacesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + MlUpdateTrainedModelsSpaces(ctx context.Context, body MlUpdateTrainedModelsSpacesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteNoteWithBody request with any body DeleteNoteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -82188,6 +82370,54 @@ func (c *Client) MlSync(ctx context.Context, params *MlSyncParams, reqEditors .. return c.Client.Do(req) } +func (c *Client) MlUpdateJobsSpacesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMlUpdateJobsSpacesRequestWithBody(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) MlUpdateJobsSpaces(ctx context.Context, body MlUpdateJobsSpacesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMlUpdateJobsSpacesRequest(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) MlUpdateTrainedModelsSpacesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMlUpdateTrainedModelsSpacesRequestWithBody(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) MlUpdateTrainedModelsSpaces(ctx context.Context, body MlUpdateTrainedModelsSpacesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMlUpdateTrainedModelsSpacesRequest(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) DeleteNoteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewDeleteNoteRequestWithBody(c.Server, contentType, body) if err != nil { @@ -103267,6 +103497,86 @@ func NewMlSyncRequest(server string, params *MlSyncParams) (*http.Request, error return req, nil } +// NewMlUpdateJobsSpacesRequest calls the generic MlUpdateJobsSpaces builder with application/json body +func NewMlUpdateJobsSpacesRequest(server string, body MlUpdateJobsSpacesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewMlUpdateJobsSpacesRequestWithBody(server, "application/json", bodyReader) +} + +// NewMlUpdateJobsSpacesRequestWithBody generates requests for MlUpdateJobsSpaces with any type of body +func NewMlUpdateJobsSpacesRequestWithBody(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/ml/saved_objects/update_jobs_spaces") + 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 +} + +// NewMlUpdateTrainedModelsSpacesRequest calls the generic MlUpdateTrainedModelsSpaces builder with application/json body +func NewMlUpdateTrainedModelsSpacesRequest(server string, body MlUpdateTrainedModelsSpacesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewMlUpdateTrainedModelsSpacesRequestWithBody(server, "application/json", bodyReader) +} + +// NewMlUpdateTrainedModelsSpacesRequestWithBody generates requests for MlUpdateTrainedModelsSpaces with any type of body +func NewMlUpdateTrainedModelsSpacesRequestWithBody(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/ml/saved_objects/update_trained_models_spaces") + 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 +} + // NewDeleteNoteRequest calls the generic DeleteNote builder with application/json body func NewDeleteNoteRequest(server string, body DeleteNoteJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader @@ -115403,6 +115713,16 @@ type ClientWithResponsesInterface interface { // MlSyncWithResponse request MlSyncWithResponse(ctx context.Context, params *MlSyncParams, reqEditors ...RequestEditorFn) (*MlSyncResponse, error) + // MlUpdateJobsSpacesWithBodyWithResponse request with any body + MlUpdateJobsSpacesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MlUpdateJobsSpacesResponse, error) + + MlUpdateJobsSpacesWithResponse(ctx context.Context, body MlUpdateJobsSpacesJSONRequestBody, reqEditors ...RequestEditorFn) (*MlUpdateJobsSpacesResponse, error) + + // MlUpdateTrainedModelsSpacesWithBodyWithResponse request with any body + MlUpdateTrainedModelsSpacesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MlUpdateTrainedModelsSpacesResponse, error) + + MlUpdateTrainedModelsSpacesWithResponse(ctx context.Context, body MlUpdateTrainedModelsSpacesJSONRequestBody, reqEditors ...RequestEditorFn) (*MlUpdateTrainedModelsSpacesResponse, error) + // DeleteNoteWithBodyWithResponse request with any body DeleteNoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteNoteResponse, error) @@ -123088,8 +123408,8 @@ type PostFleetAgentPoliciesBulkGetResponse struct { } `json:"agent_features,omitempty"` Agentless *struct { CloudConnectors *struct { - Enabled bool `json:"enabled"` - TargetCsp *string `json:"target_csp,omitempty"` + Enabled bool `json:"enabled"` + TargetCsp *PostFleetAgentPoliciesBulkGet200ItemsAgentlessCloudConnectorsTargetCsp `json:"target_csp,omitempty"` } `json:"cloud_connectors,omitempty"` Resources *struct { Requests *struct { @@ -123180,6 +123500,7 @@ type PostFleetAgentPoliciesBulkGetResponse struct { StatusCode *float32 `json:"statusCode,omitempty"` } } +type PostFleetAgentPoliciesBulkGet200ItemsAgentlessCloudConnectorsTargetCsp string type PostFleetAgentPoliciesBulkGet200ItemsGlobalDataTagsValue0 = string type PostFleetAgentPoliciesBulkGet200ItemsGlobalDataTagsValue1 = float32 type PostFleetAgentPoliciesBulkGet_200_Items_GlobalDataTags_Value struct { @@ -123633,8 +123954,8 @@ type PostFleetAgentPoliciesAgentpolicyidCopyResponse struct { } `json:"agent_features,omitempty"` Agentless *struct { CloudConnectors *struct { - Enabled bool `json:"enabled"` - TargetCsp *string `json:"target_csp,omitempty"` + Enabled bool `json:"enabled"` + TargetCsp *PostFleetAgentPoliciesAgentpolicyidCopy200ItemAgentlessCloudConnectorsTargetCsp `json:"target_csp,omitempty"` } `json:"cloud_connectors,omitempty"` Resources *struct { Requests *struct { @@ -123725,6 +124046,7 @@ type PostFleetAgentPoliciesAgentpolicyidCopyResponse struct { StatusCode *float32 `json:"statusCode,omitempty"` } } +type PostFleetAgentPoliciesAgentpolicyidCopy200ItemAgentlessCloudConnectorsTargetCsp string type PostFleetAgentPoliciesAgentpolicyidCopy200ItemGlobalDataTagsValue0 = string type PostFleetAgentPoliciesAgentpolicyidCopy200ItemGlobalDataTagsValue1 = float32 type PostFleetAgentPoliciesAgentpolicyidCopy_200_Item_GlobalDataTags_Value struct { @@ -130311,6 +130633,48 @@ func (r MlSyncResponse) StatusCode() int { return 0 } +type MlUpdateJobsSpacesResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r MlUpdateJobsSpacesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r MlUpdateJobsSpacesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type MlUpdateTrainedModelsSpacesResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r MlUpdateTrainedModelsSpacesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r MlUpdateTrainedModelsSpacesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type DeleteNoteResponse struct { Body []byte HTTPResponse *http.Response @@ -139369,6 +139733,40 @@ func (c *ClientWithResponses) MlSyncWithResponse(ctx context.Context, params *Ml return ParseMlSyncResponse(rsp) } +// MlUpdateJobsSpacesWithBodyWithResponse request with arbitrary body returning *MlUpdateJobsSpacesResponse +func (c *ClientWithResponses) MlUpdateJobsSpacesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MlUpdateJobsSpacesResponse, error) { + rsp, err := c.MlUpdateJobsSpacesWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMlUpdateJobsSpacesResponse(rsp) +} + +func (c *ClientWithResponses) MlUpdateJobsSpacesWithResponse(ctx context.Context, body MlUpdateJobsSpacesJSONRequestBody, reqEditors ...RequestEditorFn) (*MlUpdateJobsSpacesResponse, error) { + rsp, err := c.MlUpdateJobsSpaces(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMlUpdateJobsSpacesResponse(rsp) +} + +// MlUpdateTrainedModelsSpacesWithBodyWithResponse request with arbitrary body returning *MlUpdateTrainedModelsSpacesResponse +func (c *ClientWithResponses) MlUpdateTrainedModelsSpacesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MlUpdateTrainedModelsSpacesResponse, error) { + rsp, err := c.MlUpdateTrainedModelsSpacesWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMlUpdateTrainedModelsSpacesResponse(rsp) +} + +func (c *ClientWithResponses) MlUpdateTrainedModelsSpacesWithResponse(ctx context.Context, body MlUpdateTrainedModelsSpacesJSONRequestBody, reqEditors ...RequestEditorFn) (*MlUpdateTrainedModelsSpacesResponse, error) { + rsp, err := c.MlUpdateTrainedModelsSpaces(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMlUpdateTrainedModelsSpacesResponse(rsp) +} + // DeleteNoteWithBodyWithResponse request with arbitrary body returning *DeleteNoteResponse func (c *ClientWithResponses) DeleteNoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteNoteResponse, error) { rsp, err := c.DeleteNoteWithBody(ctx, contentType, body, reqEditors...) @@ -150532,8 +150930,8 @@ func ParsePostFleetAgentPoliciesBulkGetResponse(rsp *http.Response) (*PostFleetA } `json:"agent_features,omitempty"` Agentless *struct { CloudConnectors *struct { - Enabled bool `json:"enabled"` - TargetCsp *string `json:"target_csp,omitempty"` + Enabled bool `json:"enabled"` + TargetCsp *PostFleetAgentPoliciesBulkGet200ItemsAgentlessCloudConnectorsTargetCsp `json:"target_csp,omitempty"` } `json:"cloud_connectors,omitempty"` Resources *struct { Requests *struct { @@ -150919,8 +151317,8 @@ func ParsePostFleetAgentPoliciesAgentpolicyidCopyResponse(rsp *http.Response) (* } `json:"agent_features,omitempty"` Agentless *struct { CloudConnectors *struct { - Enabled bool `json:"enabled"` - TargetCsp *string `json:"target_csp,omitempty"` + Enabled bool `json:"enabled"` + TargetCsp *PostFleetAgentPoliciesAgentpolicyidCopy200ItemAgentlessCloudConnectorsTargetCsp `json:"target_csp,omitempty"` } `json:"cloud_connectors,omitempty"` Resources *struct { Requests *struct { @@ -157408,6 +157806,38 @@ func ParseMlSyncResponse(rsp *http.Response) (*MlSyncResponse, error) { return response, nil } +// ParseMlUpdateJobsSpacesResponse parses an HTTP response from a MlUpdateJobsSpacesWithResponse call +func ParseMlUpdateJobsSpacesResponse(rsp *http.Response) (*MlUpdateJobsSpacesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &MlUpdateJobsSpacesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseMlUpdateTrainedModelsSpacesResponse parses an HTTP response from a MlUpdateTrainedModelsSpacesWithResponse call +func ParseMlUpdateTrainedModelsSpacesResponse(rsp *http.Response) (*MlUpdateTrainedModelsSpacesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &MlUpdateTrainedModelsSpacesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + // ParseDeleteNoteResponse parses an HTTP response from a DeleteNoteWithResponse call func ParseDeleteNoteResponse(rsp *http.Response) (*DeleteNoteResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body)